Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2007 22:16:51 -0400 (EDT)
From:      Wesley Shields <wxs@atarininja.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        onatan@gmail.com
Subject:   ports/113893: [UPDATE]: Mark net/libdnet as broken in a jail.
Message-ID:  <20070621021651.60EEE5C2E@syn.atarininja.org>
Resent-Message-ID: <200706210220.l5L2K1C7037989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         113893
>Category:       ports
>Synopsis:       [UPDATE]: Mark net/libdnet as broken in a jail.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 21 02:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Wesley Shields
>Release:        FreeBSD 6.2-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD syn.csh.rit.edu 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #7: Thu May 24 09:18:59 EDT 2007 root@syn.csh.rit.edu:/usr/obj/usr/src/sys/SMP amd64

>Description:
net/libdnet does not build inside of a jail.  I believe this is because
the configure script looks for /dev/bpf0 and builds eth-bsd.c if it
exists.  In the case of a jail /dev/bpf0 does not exist so the
post-build step fails.  The only reference I could find to this problem
is at:

http://lists.freebsd.org/pipermail/freebsd-ports/2006-November/037099.html

and has no solution.  I've attached a port which marks the port as
broken in the case of /dev/bpf0 not existing.  A better solution would
be to patch configure to still build eth-bsd.c but I hesitate to do that
since building it anyways means it will just error out when running.

I've CC'ed the maintainer on this.

>How-To-Repeat:
Attempt to build net/libdnet in a jail.  You will get the same error
message as referenced in the thread above.

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/libdnet/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	12 Mar 2007 17:51:53 -0000	1.27
+++ Makefile	21 Jun 2007 01:17:58 -0000
@@ -27,6 +27,10 @@
 MAN8=	dnet.8
 .endif
 
+.if !exists(/dev/bpf0)
+BROKEN=	Does not build properly without /dev/bpf0.
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if !defined(LIBDNET_SLAVE)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070621021651.60EEE5C2E>