Dropping CentOS 7 / i386

Piotr Kubaj pkubaj at anongoth.pl
Wed Jan 18 12:37:44 UTC 2017


Please test the attached patch. I've also removed all the linux-f10* ports from CONFLICTS. linux-c6 will also get it removed when I do 6.9 (unless someone else does it).

On 17-01-17 18:35:31, Tijl Coosemans wrote:
> On Tue, 17 Jan 2017 14:00:22 +0100 Piotr Kubaj via freebsd-emulation <freebsd-emulation at freebsd.org> wrote:
> > Is it possible that we drop linux c7 variation? CentOS 7 doesn't
> > officially support i386 and there are still no binaries for i386 after
> > over a month since 7.3.1611 release.
> > 
> > For the last 3 weeks I've had a patch to update the ports to 7.3.1611,
> > but obviously it's only for amd64.
> > There would still be c6 ports for anyone that needs them.
> 
> Yes, now that all supported versions of FreeBSD support 64 bit Linux we
> can make the CentOS 7 ports 64 bit only (until upstream does provide i386
> packages).
> 
> Please include the attached patch in your patch.  You just have to change
> LINUX_DIST_VER.  It sets IGNORE for CentOS 7 on i386, makes c7_64 an
> alias for c7 and removes fmake support.

> Index: Mk/Uses/linux.mk
> ===================================================================
> --- Mk/Uses/linux.mk	(revision 431754)
> +++ Mk/Uses/linux.mk	(working copy)
> @@ -31,21 +31,26 @@ linux_ARGS=		${LINUX_DEFAULT:S/_64//}
>  
>  .if ${linux_ARGS} == c6
>  LINUX_DIST_VER?=	6.8
> -.elif ${linux_ARGS} == c7
> -LINUX_DIST_VER?=	7.2.1511
> +.if ${ARCH} == amd64 && ${LINUX_DEFAULT} != c6
> +LINUX_ARCH=		x86_64
> +LINUX_ARCH32=		i386
> +.elif ${ARCH} == amd64 || ${ARCH} == i386
> +LINUX_ARCH=		i386
>  .else
> -IGNORE=			Invalid Linux distribution: ${linux_ARGS}
> +LINUX_ARCH=		${ARCH}
> +IGNORE=			Linux CentOS ${LINUX_DIST_VER} is unsupported on ${ARCH}
>  .endif
> -
> -.if ${LINUX_DEFAULT:M*_64}
> +.elif ${linux_ARGS} == c7
> +LINUX_DIST_VER?=	7.2.1511
> +.if ${ARCH} == amd64
>  LINUX_ARCH=		x86_64
>  LINUX_ARCH32=		i386
> -.if ${ARCH} != amd64 || ${OPSYS} != FreeBSD \
> - || ( ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100105 )
> -IGNORE=			Linux ${LINUX_DEFAULT} is unsupported on pre-release versions of FreeBSD 11. Update to 11.0-RELEASE or higher.
> +.else
> +LINUX_ARCH=		${ARCH}
> +IGNORE=			Linux CentOS ${LINUX_DIST_VER} is unsupported on ${ARCH}
>  .endif
>  .else
> -LINUX_ARCH=		i386
> +IGNORE=			Invalid Linux distribution: ${linux_ARGS}
>  .endif
>  
>  linux_allegro_DEP=		linux-${linux_ARGS}-allegro>0:devel/linux-${linux_ARGS}-allegro
> @@ -230,10 +235,9 @@ LIB_DISTFILES?=		${DISTNAME}${EXTRACT_SU
>  .else
>  BIN_DISTFILES?=		${DISTNAME}${EXTRACT_SUFX}
>  .endif
> -.ifdef LINUX_ARCH32 && EXTRACT_SUFX32
> -.for fmakehack in ${LINUX_ARCH32}
> -.if !(defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${fmakehack})) \
> - && empty(NOT_FOR_ARCHS:M${fmakehack})
> +.if defined(LINUX_ARCH32) && defined(EXTRACT_SUFX32) \
> + && !(defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${LINUX_ARCH32})) \
> + && empty(NOT_FOR_ARCHS:M${LINUX_ARCH32})
>  DISTFILES?=		${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \
>  			${LIB_DISTFILES} ${BIN_DISTFILES}
>  EXTRACT_ONLY?=		${LIB_DISTFILES:S/${EXTRACT_SUFX}/${EXTRACT_SUFX32}/} \
> @@ -242,11 +246,6 @@ EXTRACT_ONLY?=		${LIB_DISTFILES:S/${EXTR
>  DISTFILES?=		${LIB_DISTFILES} ${BIN_DISTFILES}
>  EXTRACT_ONLY?=		${LIB_DISTFILES} ${BIN_DISTFILES}
>  .endif
> -.endfor
> -.else
> -DISTFILES?=		${LIB_DISTFILES} ${BIN_DISTFILES}
> -EXTRACT_ONLY?=		${LIB_DISTFILES} ${BIN_DISTFILES}
> -.endif
>  .ifdef PACKAGE_BUILDING
>  SRC_DISTFILES?=		${LIB_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/} \
>  			${BIN_DISTFILES:S/${EXTRACT_SUFX}/${SRC_SUFX}:SOURCE/}
> @@ -291,12 +290,9 @@ DISTFILES?=		${DISTFILES_${LINUX_ARCH}}
>  .endif
>  .endif
>  
> -# With fmake :M${var} only works when ${var} is a for loop variable.
> -.for fmakehack in ${LINUX_ARCH:S/x86_64/amd64/}
> -.if (defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${fmakehack})) \
> - || !empty(NOT_FOR_ARCHS:M${fmakehack})
> +.if (defined(ONLY_FOR_ARCHS) && empty(ONLY_FOR_ARCHS:M${LINUX_ARCH:S/x86_64/amd64/})) \
> + || !empty(NOT_FOR_ARCHS:M${LINUX_ARCH:S/x86_64/amd64/})
>  IGNORE=			does not run on Linux/${LINUX_ARCH}
>  .endif
> -.endfor
>  
>  .endif # _POSTMKINCLUDED && ! _INCLUDE_USES_LINUX_POST_MK


-- 
 ____________________________________ 
/ Never underestimate the power of a \
\ small tactical nuclear weapon.     /
 ------------------------------------ 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-c7.patch
Type: text/x-diff
Size: 303172 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20170118/fa045e15/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20170118/fa045e15/attachment-0003.sig>


More information about the freebsd-emulation mailing list