Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Mar 2009 13:01:28 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: [patch] Mk/bsd.linux-rpm.mk: introduce some linux-f8 infrastructure
Message-ID:  <79218247@bb.ipt.ru>
In-Reply-To: <20090304103247.417765zrsapwwow0@webmail.leidinger.net> (Alexander Leidinger's message of "Wed\, 04 Mar 2009 10\:32\:47 %2B0100")
References:  <14905754@bb.ipt.ru> <20090304093137.10733oaty524f0is@webmail.leidinger.net> <11370520@bb.ipt.ru> <20090304103247.417765zrsapwwow0@webmail.leidinger.net>

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

[-- Attachment #1 --]
Yes, good catch, thanks! The first .endif was misplaced. Seems that
the following patch is what you meant:

[-- Attachment #2 --]
--- bsd.linux-rpm.mk.orig	2008-08-15 16:29:42.000000000 +0400
+++ bsd.linux-rpm.mk	2009-03-04 12:53:35.000000000 +0300
@@ -27,6 +27,11 @@
 #					  contain libraries.
 # BRANDELF_FILES	- A list of files to brand as a linux executable in
 #					  case BRANDELF_DIRS can't be used.
+# LINUX_OSRELEASE	- Contains the value of compat.linux.osrelease sysctl.
+#					  Will be used to distinguish which linux
+#					  infrastructure ports should be used.
+#					  Valid values: 2.4.2, 2.6.16.
+#					  Note: this variable must be used at bsd.linux.mk should it exists
 
 .if !defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Pre_Include)
 
@@ -52,6 +57,10 @@
 LINUX_RPM_ARCH?=	${ARCH}
 .  endif
 
+.if !defined(LINUX_OSRELEASE)
+LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
+.endif
+
 .endif
 
 .if defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Post_Include)
@@ -67,10 +76,20 @@
 .    if ${LINUX_DIST} == "fedora"
 .      ifndef MASTER_SITES
 MASTER_SITES?=			${MASTER_SITE_FEDORA_LINUX}
+.        if ${LINUX_DIST_VER} == 8
+.          if (${LINUX_OSRELEASE} != "2.6.16") && defined(PACKAGE_BUILDING)
+IGNORE=		packages should be built with compat.linux.osrelease=2.6.16
+.          endif
+MASTER_SITE_SUBDIR?=	../releases/${LINUX_DIST_VER}/Everything/${LINUX_RPM_ARCH}/os/Packages \
+			../updates/${LINUX_DIST_VER}/${LINUX_RPM_ARCH}.newkey
+MASTER_SITE_SRC_SUBDIR?=	../releases/${LINUX_DIST_VER}/Everything/source/SRPMS \
+				../updates/${LINUX_DIST_VER}/SRPMS.newkey
+.        else
 MASTER_SITE_SUBDIR?=	${LINUX_DIST_VER}/${LINUX_RPM_ARCH}/os/Fedora/RPMS \
 			updates/${LINUX_DIST_VER}/${LINUX_RPM_ARCH}
 MASTER_SITE_SRC_SUBDIR?=	${LINUX_DIST_VER}/SRPMS \
 				updates/${LINUX_DIST_VER}/SRPMS
+.        endif
 .      endif
 .    else
 IGNORE=	unknown LINUX_DIST in port Makefile

[-- Attachment #3 --]

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