FreeBSD Bugzilla – Attachment 45391 Details for
Bug 69997
[PATCH] Change USE_LINUX in bsd.port.mk to allow choice between linux_base ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.57 KB, created by
Conor McDermottroe
on 2004-08-04 14:30:22 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Conor McDermottroe
Created:
2004-08-04 14:30:22 UTC
Size:
3.57 KB
patch
obsolete
>--- bsd.port.mk Fri Jul 30 09:35:54 2004 >+++ bsd.port.mk.new Mon Aug 2 02:55:49 2004 >@@ -324,7 +324,20 @@ > # (Only 3 is currently supported). Implies inclusion > # of bsd.kde.mk. Default: not set. > # >-# USE_LINUX - Set to yes to say the port needs emulators/linux_base. >+# USE_LINUX - Define to say that the port requires one of >+# emulators/linux_base*. >+# >+# redhat6 emulators/linux_base-6 >+# redhat7 emulators/linux_base >+# redhat8 emulators/linux_base-8 >+# redhat Tries to autodetect redhat{6,7,8}, >+# defaults to redhat7 >+# debian emulators/linux_base-debian >+# gentoo emulators/linux_base-gentoo-stage1 >+# <anything else> Tries to autodetect the currently >+# installed linux base. Defaults to >+# emulators/linux_base >+# > # Default: not set. > # USE_LINUX_PREFIX - controls the action of PREFIX (see above). > # >@@ -1038,7 +1051,7 @@ > USE_XLIB= yes > .endif > .if defined(USE_LINUX_PREFIX) >-USE_LINUX= yes >+USE_LINUX?= yes > .endif > .if defined(USE_X_PREFIX) > PREFIX?= ${X11BASE} >@@ -1380,7 +1393,51 @@ > .endif > > .if defined(USE_LINUX) >-RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. if ${USE_LINUX} == "redhat6" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6 >+. elif ${USE_LINUX} == "redhat7" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. elif ${USE_LINUX} == "redhat8" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8 >+. elif ${USE_LINUX} == "debian" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/debian_version:${PORTSDIR}/emulators/linux_base-debian >+. elif ${USE_LINUX} == "gentoo" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/gentoo-release:${PORTSDIR}/emulators/linux_base-gentoo-stage1 >+. elif ${USE_LINUX} == "redhat" >+. if exists(${LINUXBASE}/etc/redhat-release) >+ USE_LINUX_REDHAT_VERSION!= cut -d" " -f5 ${LINUXBASE}/etc/redhat-release >+. if ${USE_LINUX_REDHAT_VERSION} == "6.1" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6 >+. elif ${USE_LINUX_REDHAT_VERSION} == "7.1" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. elif ${USE_LINUX_REDHAT_VERSION} == "8.0" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8 >+. else >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. endif >+. else >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. endif >+. else >+. if exists(${LINUXBASE}/etc/redhat-release) >+ USE_LINUX_REDHAT_VERSION!= cut -d" " -f5 ${LINUXBASE}/etc/redhat-release >+. if ${USE_LINUX_REDHAT_VERSION} == "6.1" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-6 >+. elif ${USE_LINUX_REDHAT_VERSION} == "7.1" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. elif ${USE_LINUX_REDHAT_VERSION} == "8.0" >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-8 >+. else >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. endif >+. elif exists(${LINUXBASE}/etc/debian_version) >+ RUN_DEPENDS+= ${LINUXBASE}/etc/debian_version:${PORTSDIR}/emulators/linux_base-debian >+. elif exists(${LINUXBASE}/etc/gentoo-release) >+ RUN_DEPENDS+= ${LINUXBASE}/etc/gentoo-release:${PORTSDIR}/emulators/linux_base-gentoo-stage1 >+. else >+ RUN_DEPENDS+= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base >+. endif >+. endif > .endif > > .if defined(USE_MOTIF)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69997
: 45391