From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 6 06:40:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B714106566B for ; Mon, 6 Aug 2012 06:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 060DB8FC15 for ; Mon, 6 Aug 2012 06:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q766e1sC064861 for ; Mon, 6 Aug 2012 06:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q766e1JC064860; Mon, 6 Aug 2012 06:40:01 GMT (envelope-from gnats) Resent-Date: Mon, 6 Aug 2012 06:40:01 GMT Resent-Message-Id: <201208060640.q766e1JC064860@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC794106566C for ; Mon, 6 Aug 2012 06:39:00 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from server4.allsitecontrol.com (server4.allsitecontrol.com [198.136.50.18]) by mx1.freebsd.org (Postfix) with ESMTP id AF50F8FC0A for ; Mon, 6 Aug 2012 06:39:00 +0000 (UTC) Received: from tor18.anonymizer.ccc.de ([31.172.30.1]:51443 helo=internal.tormail.org) by server4.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1SyGxr-001Ae1-89 for FreeBSD-gnats-submit@freebsd.org; Mon, 06 Aug 2012 02:38:57 -0400 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1SyGw1-0003Fn-UR for FreeBSD-gnats-submit@freebsd.org; Mon, 06 Aug 2012 06:37:03 +0000 Message-Id: <1SyGw1-0003Fn-UR@internal.tormail.org> Date: Mon, 06 Aug 2012 06:37:19 +0000 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/170405: [patch] audio/oss: respect SYSDIR/SRC_BASE X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 06:40:02 -0000 >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 ^ 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: