Bug#480130: perl: FTBFS on alpha: 'CONFIG_HZ' undeclared - Debian

This is a discussion on Bug#480130: perl: FTBFS on alpha: 'CONFIG_HZ' undeclared - Debian ; On Thu, May 08, 2008 at 12:01:20PM +0200, maximilian attems wrote: > On Thu, May 08, 2008 at 12:32:35PM +0300, Niko Tyni wrote: > > > > OK, has changed on alpha like this: > > +#define HZ CONFIG_HZ FWIW, ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Bug#480130: perl: FTBFS on alpha: 'CONFIG_HZ' undeclared

  1. Bug#480130: perl: FTBFS on alpha: 'CONFIG_HZ' undeclared

    On Thu, May 08, 2008 at 12:01:20PM +0200, maximilian attems wrote:
    > On Thu, May 08, 2008 at 12:32:35PM +0300, Niko Tyni wrote:
    > >
    > > OK, has changed on alpha like this:


    > > +#define HZ CONFIG_HZ


    FWIW, this was

    http://git.kernel.org/?p=linux/kerne...3d0feb72cb0dc2

    A bit of googling (and a look in the code) indicates at least iputils
    and python2.5 broke too.

    http://bugs.gentoo.org/show_bug.cgi?id=218858

    > we won't diverge on linux-libc-dev headers from upstream,
    > please take that upstream to lkml.


    I really think that's your domain, but if you insist.
    Does something like the m68k fix proposed at

    http://www.ussg.iu.edu/hypermail/lin...04.3/3860.html

    look right?

    > i'd think Perl has no business into looking at the HZ value,
    > as it gives no sense at all now nowadays with the NO_HZ aka
    > dynticks usage.


    Perl doesn't really use it as long as sysconf(_SC_CLK_TCK) works.
    It also has a fallback if HZ isn't defined, the failure mode just
    defeats that.

    #ifndef HZ
    # ifdef CLK_TCK
    # define HZ CLK_TCK
    # else
    # define HZ 60
    # endif
    #endif

    [...]

    #if defined(HAS_SYSCONF) && defined(_SC_CLK_TCK) && !defined(__BEOS__)
    PL_clocktick = sysconf(_SC_CLK_TCK);
    if (PL_clocktick <= 0)
    #endif
    PL_clocktick = HZ;

    --
    Niko Tyni ntyni@debian.org



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  2. Bug#480130: perl: FTBFS on alpha: 'CONFIG_HZ' undeclared

    On Fri, May 09, 2008 at 10:22:53AM +0300, Niko Tyni wrote:

    > > we won't diverge on linux-libc-dev headers from upstream,
    > > please take that upstream to lkml.

    >
    > I really think that's your domain, but if you insist.


    FWIW, there's a complete patch signed off by Mike Frysinger in

    http://www.ussg.iu.edu/hypermail/lin...05.1/1003.html

    --
    Niko Tyni ntyni@debian.org



    --
    To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread