Date: Mon, 05 Feb 2018 23:32:19 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 224217] [patch] Fix cross build of base/ ports Message-ID: <bug-224217-32340-akmBHdBjU5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224217-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-224217-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224217 --- Comment #18 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Mark Millard from comment #17) My results may have been skewed by my forgetting to revert some forced -unknown- usage in BUTARGET and BU_PREFIX in the likes of devel/binutils/Makefile and devel/powerpc64-gcc/Makefile and in CROSS_BINUTILS_PREFIX in devel/powerpc64-xtoolchain-gcc/files/xtoolchain.mk.in . I think this was from my earlier attempt at experimenting with base/binutils and base/gcc . For reference I had: # svnlite diff /usr/ports/devel/binutils/Makefile Index: /usr/ports/devel/binutils/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/devel/binutils/Makefile (revision 460973) +++ /usr/ports/devel/binutils/Makefile (working copy) @@ -36,7 +36,7 @@ GNU_CONFIGURE=3D yes .if defined(PKGNAMEPREFIX) -BUTARGET?=3D ${PKGNAMEPREFIX}${OPSYS:tl} +BUTARGET?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} OPTIONS_EXCLUDE=3D NLS INFO_PATH=3D ${PKGNAMEPREFIX:S/-$//}/info CONFIGURE_ARGS+=3D --disable-shared \ # svnlite diff /usr/ports/devel/powerpc64-gcc/Makefile Index: /usr/ports/devel/powerpc64-gcc/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/devel/powerpc64-gcc/Makefile (revision 460973) +++ /usr/ports/devel/powerpc64-gcc/Makefile (working copy) @@ -29,7 +29,7 @@ .if empty(GCC_TARGET) # We are building for a FreeBSD target GCC_TARGET?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} -BU_PREFIX?=3D ${PKGNAMEPREFIX}${OPSYS:tl} +BU_PREFIX?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} EXTRA_PATCHES+=3D ${FILESDIR}/freebsd-format-extensions .else BU_PREFIX?=3D ${GCC_TARGET} # svnlite diff /usr/ports/devel/powerpc64-xtoolchain-gcc/Makefile Index: /usr/ports/devel/powerpc64-xtoolchain-gcc/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/devel/powerpc64-xtoolchain-gcc/Makefile (revision 460973) +++ /usr/ports/devel/powerpc64-xtoolchain-gcc/Makefile (working copy) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME=3D xtoolchain -PORTVERSION=3D 0.2 +PORTVERSION=3D 0.3 CATEGORIES=3D devel MASTER_SITES=3D # none DISTFILES=3D # none @@ -28,6 +28,7 @@ SUB_FILES=3D xtoolchain.mk SUB_LIST=3D TARGETARCH=3D${TOOLCHAIN_PREFIX:C/-//g} \ OPSYS=3D${OPSYS:tl} \ + OSREL=3D${OSREL} \ XCC=3D${XCC} \ XCXX=3D${XCXX} \ XCPP=3D${XCPP} \ # svnlite diff /usr/ports/devel/powerpc64-xtoolchain-gcc/files/xtoolchain.m= k.in Index: /usr/ports/devel/powerpc64-xtoolchain-gcc/files/xtoolchain.mk.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/devel/powerpc64-xtoolchain-gcc/files/xtoolchain.mk.in=20=20= =20 (revision 460973) +++ /usr/ports/devel/powerpc64-xtoolchain-gcc/files/xtoolchain.mk.in=20=20= =20 (working copy) @@ -1,5 +1,5 @@ XCC=3D%%LOCALBASE%%/bin/%%XCC%% XCXX=3D%%LOCALBASE%%/bin/%%XCXX%% XCPP=3D%%LOCALBASE%%/bin/%%XCPP%% -CROSS_BINUTILS_PREFIX=3D%%LOCALBASE%%/%%TARGETARCH%%-%%OPSYS%%/bin/ +CROSS_BINUTILS_PREFIX=3D%%LOCALBASE%%/%%TARGETARCH%%-unknown-%%OPSYS%%%%OS= REL%%/bin/ X_COMPILER_TYPE=3D%%X_COMPILER_TYPE%% --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224217-32340-akmBHdBjU5>