ports/75301: new USE_LINUX_X11 macro
Trevor Johnson
trevor at FreeBSD.org
Mon Dec 20 12:40:32 UTC 2004
>Number: 75301
>Category: ports
>Synopsis: new USE_LINUX_X11 macro
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 20 12:40:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Trevor Johnson
>Release:
>Organization:
>Environment:
>Description:
The x11/linux-XFree86-libs port installs X11 libraries from the
XFree86 project, compiled for Linux. It is compatible with the
linux_base-8 port and with the pending linux_base-rh-9 and
linux_base-suse-9.1 ports (PRs 75241 and 75296). It conflicts with
the other Linux base ports.
Separating X from the Linux base ports is advantageous because when
there is a security bug in the X libraries, package users need not
download the rest of the Linux base--and similarly when there is a
bug in another Linux base component, users need not download the X
libraries (which are much smaller than the balance). Furthermore,
users of Linux emulation who do not need X can eschew it this way.
With this proposed macro, dependency on x11/linux-XFree86-libs can
be noted compactly. Alexander Leidinger has prepared a list of
ports which have this dependency but for which it has not been
recorded (see PR 70539).
>How-To-Repeat:
Install linux_base-8 and any Linux software which uses the dynamic
X libraries.
>Fix:
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.501
diff -u -r1.501 bsd.port.mk
--- bsd.port.mk 9 Dec 2004 21:44:48 -0000 1.501
+++ bsd.port.mk 20 Dec 2004 11:58:12 -0000
@@ -344,6 +344,7 @@
# USE_LINUX - Set to yes to say the port needs emulators/linux_base.
# USE_LINUX_PREFIX
# - controls the action of PREFIX (see above).
+# USE_LINUX_X11 - Set to yes to use x11/linux-XFree86-libs.
##
# USE_MYSQL - Add MySQL client dependency.
# If no version is given (by the maintainer via the port or
@@ -1483,6 +1484,10 @@
RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
.endif
+.if defined(USE_LINUX_X11)
+RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs
+.endif
+
.if defined(USE_MOTIF)
USE_XPM= yes
.if defined(WANT_LESSTIF)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list