Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2012 16:19:46 -0700
From:      Jason Helfman <jgh@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kuriyama@FreeBSD.org
Subject:   ports/169213: [PATCH] emulators/virtio-kmod: fix usage of ${SRC_BASE} before it is defined
Message-ID:  <1340061586.795486.60126.nullmailer@experts-exchange.com>
Resent-Message-ID: <201206182330.q5INUBvU014996@freefall.freebsd.org>

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

>Number:         169213
>Category:       ports
>Synopsis:       [PATCH] emulators/virtio-kmod: fix usage of ${SRC_BASE} before it is defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 18 23:30:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.3-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD dormouse.experts-exchange.com 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr  9 21:23:18 UTC
>Description:

Original PR filed as ports/165994

SRC_BASE is being used before being defined in several ports. it happened to
work anyways in most cases because the main use of SRC_BASE is for checking if
${SRC_BASE}/sys/ (/usr/src/sys/) exists, and if SRC_BASE is empty, it just
checks for /sys/ which does exist on most systems as a symlink to /usr/src/sys/.

Port maintainer (kuriyama@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:

--- virtio-kmod-0.234349.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/emulators/virtio-kmod/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	22 Apr 2012 13:52:23 -0000	1.4
+++ Makefile	18 Jun 2012 23:20:43 -0000
@@ -24,12 +24,12 @@
 NEEDSUBDIRS=	amd64 conf contrib dev/pci geom i386 kern net netinet netinet6 \
 	sys tools vm x86
 
+.include <bsd.port.pre.mk>
+
 .if !exists(${SRC_BASE}/sys/Makefile)
 IGNORE=		requires kernel source to be installed
 .endif
 
-.include <bsd.port.pre.mk>
-
 .if ${OSREL} != "8.2" && ${OSREL} != "8.3" && ${OSREL} != "9.0"
 IGNORE=		not supported $${OSREL} (${OSREL})
 .endif
--- virtio-kmod-0.234349.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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