ports/170405: [patch] audio/oss: respect SYSDIR/SRC_BASE
Jan Beich
jbeich at tormail.org
Mon Aug 6 06:40:02 UTC 2012
>Number: 170405
>Category: ports
>Synopsis: [patch] audio/oss: respect SYSDIR/SRC_BASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 06 06:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
SRC_BASE=/foo
SYSDIR=/foo/sys
>Description:
>How-To-Repeat:
$ make
[...]
ossdetect.c:25:10: fatal error: 'dev/pci/pcireg.h' file not found
#include <dev/pci/pcireg.h>
^
1 error generated.
>Fix:
--- current.diff begins here ---
Index: audio/oss/files/patch-os_cmd-FreeBSD-.config
===================================================================
--- audio/oss/files/patch-os_cmd-FreeBSD-.config (revision 0)
+++ audio/oss/files/patch-os_cmd-FreeBSD-.config (working copy)
@@ -0,0 +1,7 @@
+--- os_cmd/FreeBSD/.config~
++++ os_cmd/FreeBSD/.config
+@@ -1,3 +1,3 @@
+ targetos=FreeBSD
+ mode=sbin
+-cflags=-I/sys
++cflags=-I${SYSDIR}
Index: audio/oss/Makefile
===================================================================
--- audio/oss/Makefile (revision 301674)
+++ audio/oss/Makefile (working copy)
@@ -71,6 +71,8 @@ CONFIGURE_ENV+= OGG_SUPPORT=YES
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel source to be installed
+.elif !defined(SYSDIR)
+MAKE_ENV+= SYSDIR="${SRC_BASE}/sys"
.endif
pre-patch:
--- current.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list