View | Details | Raw Unified | Return to bug 135221
Collapse All | Expand All

(-)ports/Mk/bsd.port.mk (-1 / +53 lines)
Lines 477-482 Link Here
477
#				  Set to value <X>, if the port needs emulators/linux_base-<X>.
477
#				  Set to value <X>, if the port needs emulators/linux_base-<X>.
478
#				  If set to "7", a dependency is registered to emulators/linux_base.
478
#				  If set to "7", a dependency is registered to emulators/linux_base.
479
#				  Implies appropriate settings for STRIP and STRIP_CMD.
479
#				  Implies appropriate settings for STRIP and STRIP_CMD.
480
#
481
# USE_LINUX_OSRELEASE	- Controls the exact, the maximal or the minimal working LINUX_OSRELEASE
482
#				  value the port works with.
483
#
484
# USE_LINUX_OSRELEASE_REASON	- Sets a reason for the dependency, which is used to
485
#				  set IGNORE.
486
#
480
# USE_LINUX_PREFIX
487
# USE_LINUX_PREFIX
481
#				- controls the action of PREFIX (see above). Only use this
488
#				- controls the action of PREFIX (see above). Only use this
482
#				  if the port is a linux infrastructure port (e.g. contains libs
489
#				  if the port is a linux infrastructure port (e.g. contains libs
Lines 1809-1816 Link Here
1809
USE_LINUX?=	yes
1816
USE_LINUX?=	yes
1810
.endif
1817
.endif
1811
1818
1812
.if defined(USE_LINUX)
1819
.if defined(USE_LINUX_OSRELEASE)
1820
.if !defined(LINUX_OSRELEASE)
1821
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
1822
.endif
1823
1824
.if ${LINUX_OSRELEASE}x == "x"
1825
IGNORE=		Linuxulator is not (kld)loaded
1826
.endif
1827
1828
linux_major=	${LINUX_OSRELEASE:C|\..*||}
1829
_linux_minor=	${LINUX_OSRELEASE:S|^${linux_major}||:S|^.||:C|\..*||}
1830
_linux_micro=	${LINUX_OSRELEASE:S|^${linux_major}||:S|^.${_linux_minor}||:S|^.||:C|\..*||}
1831
linux_minor=	${_linux_minor:S|^|000|:C|.*(...)|\1|}
1832
linux_micro=	${_linux_micro:S|^|00|:C|.*(..)|\1|}
1833
linux_osrel=	${linux_major}${linux_minor}${linux_micro}
1834
1835
want_linux_sign=	${USE_LINUX_OSRELEASE:C|^[0-9.]+||}
1836
want_linux_ver=		${USE_LINUX_OSRELEASE:S|${want_linux_sign}$||}
1837
want_linux_major=	${want_linux_ver:C|\..*||}
1838
_want_linux_minor=	${want_linux_ver:S|^${want_linux_major}||:S|^.||:C|\..*||}
1839
_want_linux_micro=	${want_linux_ver:S|^${want_linux_major}||:S|^.${_want_linux_minor}||:S|^.||:C|\..*||}
1840
want_linux_minor=	${_want_linux_minor:S|^|000|:C|.*(...)|\1|}
1841
want_linux_micro=	${_want_linux_micro:S|^|00|:C|.*(..)|\1|}
1842
want_linux_osrel=	${want_linux_major}${want_linux_minor}${want_linux_micro}
1843
1844
.if ${want_linux_sign} == "+"
1845
.if ${want_linux_osrel} > ${linux_osrel}
1846
USE_LINUX_OSRELEASE_REASON?=      requires Linux emulation ${want_linux_ver} or later, please consult the documentation and set the compat.linux.osrelease sysctl appropriately
1847
IGNORE= ${USE_LINUX_OSRELEASE_REASON}
1848
.endif
1849
.elif ${want_linux_sign} == ""
1850
.if ${want_linux_osrel} != ${linux_osrel}
1851
USE_LINUX_OSRELEASE_REASON?=      requires Linux emulation ${want_linux_ver} exactly, please consult the documentation and set the compat.linux.osrelease sysctl appropriately
1852
IGNORE= ${USE_LINUX_OSRELEASE_REASON}
1853
.endif
1854
.elif ${want_linux_sign} == "-"
1855
.if ${want_linux_osrel} <= ${linux_osrel}
1856
USE_LINUX_OSRELEASE_REASON?=      requires Linux emulation earlier than ${want_linux_ver}, please consult the documentation and set the compat.linux.osrelease sysctl appropriately
1857
IGNORE= ${USE_LINUX_OSRELEASE_REASON}
1858
.endif
1859
.else # wrong suffix
1860
IGNORE= improper use of USE_LINUX_OSRELEASE
1861
.endif
1813
1862
1863
.endif
1864
1865
.if defined(USE_LINUX)
1814
.  if !defined(LINUX_OSRELEASE)
1866
.  if !defined(LINUX_OSRELEASE)
1815
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
1867
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
1816
.  endif
1868
.  endif
(-)ports/devel/uppaal/Makefile (-6 / +1 lines)
Lines 15-20 Link Here
15
15
16
USE_ZIP=	yes
16
USE_ZIP=	yes
17
USE_LINUX=	yes
17
USE_LINUX=	yes
18
USE_LINUX_OSRELEASE=	2.6.16+
18
USE_JAVA=	yes
19
USE_JAVA=	yes
19
JAVA_VERSION=	1.6+
20
JAVA_VERSION=	1.6+
20
JAVA_RUN=	yes
21
JAVA_RUN=	yes
Lines 33-44 Link Here
33
34
34
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
35
36
36
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
37
38
.if ${LINUX_OSRELEASE} == "2.4.2" || ${OSVERSION} < 700000
39
IGNORE=requires compat.linux.osrelease of at least 2.6.16 (needs 7.0 or later)
40
.endif
41
42
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
37
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
43
ECHO_MSG=/usr/bin/printf
38
ECHO_MSG=/usr/bin/printf
44
IGNORE=Please download ${DISTNAME}${EXTRACT_SUFX} into\
39
IGNORE=Please download ${DISTNAME}${EXTRACT_SUFX} into\
(-)ports/emulators/linux_base-f10/Makefile (-8 / +1 lines)
Lines 108-113 Link Here
108
ONLY_FOR_ARCHS=		i386 amd64
108
ONLY_FOR_ARCHS=		i386 amd64
109
LINUX_RPM_ARCH=		i386
109
LINUX_RPM_ARCH=		i386
110
USE_LINUX_PREFIX=	yes
110
USE_LINUX_PREFIX=	yes
111
USE_LINUX_OSRELEASE=	2.6.16+
111
NO_WRKSUBDIR=		yes
112
NO_WRKSUBDIR=		yes
112
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
113
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
113
PLIST_SUB=		GLIBCVER="2.9"
114
PLIST_SUB=		GLIBCVER="2.9"
Lines 123-136 Link Here
123
124
124
.include <bsd.port.pre.mk>
125
.include <bsd.port.pre.mk>
125
126
126
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
127
128
.if ${LINUX_OSRELEASE}x == "x"
129
IGNORE=			linuxulator is not (kld)loaded
130
.elif ${LINUX_OSRELEASE} == "2.4.2"
131
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16
132
.endif
133
134
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
127
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
135
			usr/local usr/tmp
128
			usr/local usr/tmp
136
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
129
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
(-)ports/emulators/linux_base-f7/Makefile (-8 / +1 lines)
Lines 98-103 Link Here
98
ONLY_FOR_ARCHS=		i386 amd64
98
ONLY_FOR_ARCHS=		i386 amd64
99
LINUX_RPM_ARCH=		i386
99
LINUX_RPM_ARCH=		i386
100
USE_LINUX_PREFIX=	yes
100
USE_LINUX_PREFIX=	yes
101
USE_LINUX_OSRELEASE=	2.6.16+
101
NO_WRKSUBDIR=		yes
102
NO_WRKSUBDIR=		yes
102
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
103
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
103
PLIST_SUB=		GLIBCVER="2.6"
104
PLIST_SUB=		GLIBCVER="2.6"
Lines 113-126 Link Here
113
114
114
.include <bsd.port.pre.mk>
115
.include <bsd.port.pre.mk>
115
116
116
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
117
118
.if ${LINUX_OSRELEASE}x == "x"
119
IGNORE=			linuxulator is not (kld)loaded
120
.elif ${LINUX_OSRELEASE} == "2.4.2"
121
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported
122
.endif
123
124
REMOVE_DIRS=		boot dev home initrd root tmp var/log var/run var/tmp \
117
REMOVE_DIRS=		boot dev home initrd root tmp var/log var/run var/tmp \
125
			usr/local usr/tmp
118
			usr/local usr/tmp
126
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
119
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
(-)ports/emulators/linux_base-f8/Makefile (-8 / +1 lines)
Lines 107-112 Link Here
107
ONLY_FOR_ARCHS=		i386 amd64
107
ONLY_FOR_ARCHS=		i386 amd64
108
LINUX_RPM_ARCH=		i386
108
LINUX_RPM_ARCH=		i386
109
USE_LINUX_PREFIX=	yes
109
USE_LINUX_PREFIX=	yes
110
USE_LINUX_OSRELEASE=	2.6.16+
110
NO_WRKSUBDIR=		yes
111
NO_WRKSUBDIR=		yes
111
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
112
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
112
PLIST_SUB=		GLIBCVER="2.7"
113
PLIST_SUB=		GLIBCVER="2.7"
Lines 122-135 Link Here
122
123
123
.include <bsd.port.pre.mk>
124
.include <bsd.port.pre.mk>
124
125
125
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
126
127
.if ${LINUX_OSRELEASE}x == "x"
128
IGNORE=			linuxulator is not (kld)loaded
129
.elif ${LINUX_OSRELEASE} == "2.4.2"
130
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported
131
.endif
132
133
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
126
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
134
			usr/local usr/tmp
127
			usr/local usr/tmp
135
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
128
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
(-)ports/emulators/linux_base-f9/Makefile (-8 / +1 lines)
Lines 112-117 Link Here
112
			linux_base-f7-[0-9]* linux_base-f8-[0-9]* linux-glib2-*
112
			linux_base-f7-[0-9]* linux_base-f8-[0-9]* linux-glib2-*
113
ONLY_FOR_ARCHS=		i386 amd64
113
ONLY_FOR_ARCHS=		i386 amd64
114
LINUX_RPM_ARCH=		i386
114
LINUX_RPM_ARCH=		i386
115
USE_LINUX_OSRELEASE=	2.6.16+
115
USE_LINUX_PREFIX=	yes
116
USE_LINUX_PREFIX=	yes
116
NO_WRKSUBDIR=		yes
117
NO_WRKSUBDIR=		yes
117
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
118
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
Lines 128-141 Link Here
128
129
129
.include <bsd.port.pre.mk>
130
.include <bsd.port.pre.mk>
130
131
131
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
132
133
.if ${LINUX_OSRELEASE}x == "x"
134
IGNORE=			linuxulator is not (kld)loaded
135
.elif ${LINUX_OSRELEASE} == "2.4.2"
136
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported, please use 2.6.16
137
.endif
138
139
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
132
REMOVE_DIRS=		boot dev etc/fonts home initrd root tmp var/log var/run var/tmp \
140
			usr/local usr/tmp
133
			usr/local usr/tmp
141
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
134
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
(-)ports/emulators/linux_base-fc6/Makefile (-8 / +1 lines)
Lines 102-107 Link Here
102
ONLY_FOR_ARCHS=		i386 amd64
102
ONLY_FOR_ARCHS=		i386 amd64
103
LINUX_RPM_ARCH=		i386
103
LINUX_RPM_ARCH=		i386
104
USE_LINUX_PREFIX=	yes
104
USE_LINUX_PREFIX=	yes
105
USE_LINUX_OSRELEASE=	2.6.16+
105
NO_WRKSUBDIR=		yes
106
NO_WRKSUBDIR=		yes
106
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
107
MD5_FILE?=		${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
107
PLIST_SUB=		GLIBCVER="2.5"
108
PLIST_SUB=		GLIBCVER="2.5"
Lines 117-130 Link Here
117
118
118
.include <bsd.port.pre.mk>
119
.include <bsd.port.pre.mk>
119
120
120
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
121
122
.if ${LINUX_OSRELEASE}x == "x"
123
IGNORE=			linuxulator is not (kld)loaded
124
.elif ${LINUX_OSRELEASE} == "2.4.2"
125
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported
126
.endif
127
128
REMOVE_DIRS=		boot dev home initrd root tmp var/log var/run var/tmp \
121
REMOVE_DIRS=		boot dev home initrd root tmp var/log var/run var/tmp \
129
			usr/local usr/tmp
122
			usr/local usr/tmp
130
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
123
REMOVE_FILES=		bin/df bin/su etc/exports etc/group etc/localtime \
(-)ports/emulators/linux_dist-gentoo-stage1/Makefile (-8 / +1 lines)
Lines 18-23 Link Here
18
RESTRICTED=	binaries licensed under GNU GPL without accompanying source
18
RESTRICTED=	binaries licensed under GNU GPL without accompanying source
19
19
20
USE_BZIP2=		YES
20
USE_BZIP2=		YES
21
USE_LINUX_OSRELEASE=	2.6.16+
21
DIST_SUBDIR=		gentoo-linux
22
DIST_SUBDIR=		gentoo-linux
22
NO_BUILD=		YES
23
NO_BUILD=		YES
23
ONLY_FOR_ARCHS=		amd64 i386
24
ONLY_FOR_ARCHS=		amd64 i386
Lines 43-56 Link Here
43
44
44
.include <bsd.port.pre.mk>
45
.include <bsd.port.pre.mk>
45
46
46
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
47
48
.if ${LINUX_OSRELEASE}x == "x"
49
IGNORE=			linuxulator is not (kld)loaded
50
.elif ${LINUX_OSRELEASE} == "2.4.2"
51
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported
52
.endif
53
54
do-extract:
47
do-extract:
55
	${MKDIR} ${WRKDIR}
48
	${MKDIR} ${WRKDIR}
56
49
(-)ports/emulators/linux_dist-gentoo-stage3/Makefile (-8 / +1 lines)
Lines 16-21 Link Here
16
RESTRICTED=	binaries licensed under GNU GPL without accompanying source
16
RESTRICTED=	binaries licensed under GNU GPL without accompanying source
17
17
18
USE_BZIP2=		YES
18
USE_BZIP2=		YES
19
USE_LINUX_OSRELEASE=	2.6.16+
19
DIST_SUBDIR=		gentoo-linux
20
DIST_SUBDIR=		gentoo-linux
20
NO_BUILD=		YES
21
NO_BUILD=		YES
21
ONLY_FOR_ARCHS=		i386 amd64
22
ONLY_FOR_ARCHS=		i386 amd64
Lines 43-56 Link Here
43
44
44
.include <bsd.port.pre.mk>
45
.include <bsd.port.pre.mk>
45
46
46
LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
47
48
.if ${LINUX_OSRELEASE}x == "x"
49
IGNORE=			linuxulator is not (kld)loaded
50
.elif ${LINUX_OSRELEASE} == "2.4.2"
51
IGNORE=			compat.linux.osrelease: 2.4.2 is not supported
52
.endif
53
54
.if (${GENTOO_OPTIMIZED} == "i686")
47
.if (${GENTOO_OPTIMIZED} == "i686")
55
MASTER_SITE_SUBDIR=	releases/x86/${PORTVERSION}/stages
48
MASTER_SITE_SUBDIR=	releases/x86/${PORTVERSION}/stages
56
DISTNAME=	stage3-${GENTOO_OPTIMIZED}-${PORTVERSION}
49
DISTNAME=	stage3-${GENTOO_OPTIMIZED}-${PORTVERSION}

Return to bug 135221