Date: Mon, 06 Aug 2012 06:37:19 +0000 From: Jan Beich <jbeich@tormail.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/170405: [patch] audio/oss: respect SYSDIR/SRC_BASE Message-ID: <1SyGw1-0003Fn-UR@internal.tormail.org> Resent-Message-ID: <201208060640.q766e1JC064860@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1SyGw1-0003Fn-UR>