ports/118212: [patch] USE_LINUX is not defined if USE_LINUX_PREFIX and USE_LDCONFIG
Vasil Dimov
vd at FreeBSD.org
Fri Nov 23 10:00:06 UTC 2007
>Number: 118212
>Category: ports
>Synopsis: [patch] USE_LINUX is not defined if USE_LINUX_PREFIX and USE_LDCONFIG
>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: Fri Nov 23 10:00:06 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Vasil Dimov
>Release: FreeBSD 6.2-STABLE i386
>Organization:
N/A
>Environment:
>Description:
USE_LINUX is automatically defined when USE_LINUX_PREFIX and
INSTALLS_SHLIB are defined but it is not when USE_LDCONFIG is defined
instead of INSTALLS_SHLIB.
>How-To-Repeat:
(any port would do for the test, ports-mgmt/portsearch in this example)
% cd /usr/ports/ports-mgmt/portsearch
% make USE_LINUX_PREFIX=y INSTALLS_SHLIB=y -V USE_LINUX
yes
%
% make USE_LINUX_PREFIX=y USE_LDCONFIG=y -V USE_LINUX
%
After the fix:
% make USE_LINUX_PREFIX=y USE_LDCONFIG=y -V USE_LINUX
yes
%
>Fix:
--- bsd.port.mk-linux.diff begins here ---
--- bsd.port.mk.orig 2007-11-23 11:48:29.000000000 +0200
+++ bsd.port.mk 2007-11-23 11:51:32.000000000 +0200
@@ -468,7 +468,8 @@
# or a sound server which supports the FreeBSD native one),
# use the default or the X11 prefix if it's a leaf port
# (e.g. a game or program).
-# Implies NO_MTREE=yes, and, if INSTALLS_SHLIB is defined:
+# Implies NO_MTREE=yes, and, if INSTALLS_SHLIB
+# or USE_LDCONFIG is defined:
# - USE_LINUX=yes
# - appropriate invocation of the Linux ldconfig
# USE_LINUX_RPM - Set to yes to pull in variables and targets useful to Linux
@@ -1777,7 +1778,7 @@
. endif
.endif
-.if defined(USE_LINUX_PREFIX) && defined(INSTALLS_SHLIB)
+.if defined(USE_LINUX_PREFIX) && (defined(INSTALLS_SHLIB) || defined(USE_LDCONFIG))
# we need ${LINUXBASE}/sbin/ldconfig
USE_LINUX?= yes
.endif
--- bsd.port.mk-linux.diff ends here ---
--
Vasil Dimov
moc.elcaro at vomid.lisav Software Developer @ Oracle/Innobase Oy
gro.DSBeerF at dv Committer @ FreeBSD.org
gro.d5v at dv Home @ Sofia, Bulgaria
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list