• Bug#266899: Detect BPF properly (for kfreebsd-gnu)

    From Romain Francoise@1:229/2 to Robert Millan on Fri Aug 20 23:20:08 2004
    From: [email protected]

    Robert Millan <[email protected]> writes:

    The attached patch fixes a problem related to BPF detection on
    GNU/kFreeBSD (and FreeBSD) systems.

    When the bpf module is not loaded, the /dev/bpf* devices configure
    checks for won't exist on kFreeBSD 5.x because of devfs. Instead,
    configure should check for /usr/include/net/bpf.h.

    Okay...

    Please could you forward the patch to upstream?

    Won't it break things on other systems using BPF? The script probably
    does that on purpose, the header might exist elsewhere on some systems.

    Other than that, I checked and the patch appears to be needed for
    libpcap0.8 too (which is in Debian) and would also apply to upstream
    HEAD. Shall I apply it to libpcap0.8 as well?

    Also, could you update config.{guess,sub} in this package? A new
    version is needed to detect k*bsd-gnu systems.

    Okay, though note that as soon as sarge is released I will move the
    default libpcap in Debian to libpcap0.8 and hope to get rid of
    libpcap0.7 altogether.

    --
    ,''`.
    : :' : Romain Francoise <[email protected]>
    `. `' http://people.debian.org/~rfrancoise/
    `-


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Robert Millan@1:229/2 to Romain Francoise on Sat Aug 21 18:00:17 2004
    From: [email protected]

    On Fri, Aug 20, 2004 at 10:53:49PM +0200, Romain Francoise wrote:
    Please could you forward the patch to upstream?

    Won't it break things on other systems using BPF? The script probably
    does that on purpose, the header might exist elsewhere on some systems.

    In that case I would suggest to check for both header and device, but I'd
    ask upstream first. Maybe it's safe to assume the header is in /usr/include after all.

    Other than that, I checked and the patch appears to be needed for
    libpcap0.8 too (which is in Debian) and would also apply to upstream
    HEAD. Shall I apply it to libpcap0.8 as well?

    Sure! And if you can sent the patch for upstream HEAD, that'd be even better. Thanks a lot.

    Also, could you update config.{guess,sub} in this package? A new
    version is needed to detect k*bsd-gnu systems.

    Okay, though note that as soon as sarge is released I will move the
    default libpcap in Debian to libpcap0.8 and hope to get rid of
    libpcap0.7 altogether.

    Ok. Then don't bother much with k*bsd-gnu support in libpcap0.7. Just fix
    0.8 and I'll be happy =)

    --
    Robert Millan

    (Debra and Ian) (Gnu's Not (UNiplexed Information and Computing System))/\ (kernel of *(Berkeley Software Distribution))


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)