From fd0cbe07c215869d1276bafa43194db0c0741aad Mon Sep 17 00:00:00 2001 From: jperkin Date: Fri, 21 Jun 2013 09:40:47 +0000 Subject: Revert part of previous, GCC_TARGET_MACHINE must be used so that, when set by the user, the runtime directory is in sync between the main gcc package and the gcc-libs package. Bump PKGREVISIONs. --- lang/gcc47-libs/Makefile | 18 +++++++++--------- lang/gcc47-libs/buildlink3.mk | 6 +++--- lang/gcc48-libs/Makefile | 18 +++++++++--------- lang/gcc48-libs/buildlink3.mk | 6 +++--- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lang/gcc47-libs/Makefile b/lang/gcc47-libs/Makefile index 0061b4a3571..1ca7680c522 100644 --- a/lang/gcc47-libs/Makefile +++ b/lang/gcc47-libs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2013/06/14 09:01:41 jperkin Exp $ +# $NetBSD: Makefile,v 1.16 2013/06/21 09:40:47 jperkin Exp $ GCC_PKGNAME= gcc47 .include "../../lang/${GCC_PKGNAME}/version.mk" @@ -8,7 +8,7 @@ PKGNAME= ${GCC_PKGNAME}-libs-${GCC47_DIST_VERSION} ## The PKGREVISION of this package needs to be at least 1 more than the ## PKGREVISION of the lang/gcc47 package so that with the dependence pattern ## '{gcc47,gcc47-libs}>=4.7.*' pkg_all will choose gcc47-libs over gcc47. -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= # empty DISTFILES= # empty @@ -32,8 +32,8 @@ FIND_PREFIX:= GCC_PKG_PREFIX=${GCC_PKGNAME}-${GCC47_DIST_VERSION}* LIBGCC_SUBPREFIX= ${GCC_PKGNAME} LIBGCC_PREFIX= ${GCC_PKG_PREFIX}/${LIBGCC_SUBPREFIX} -LIBGCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} -BUILD_DEFS+= LIBGCC_TARGET_MACHINE +GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} +BUILD_DEFS+= GCC_TARGET_MACHINE .include "../../mk/bsd.prefs.mk" .if ${_OPSYS_SHLIB_TYPE} == "dylib" @@ -44,10 +44,10 @@ SHLIB_EXT= so LIBRARY_FILES= ${WRKDIR}/lib_files -GENERATE_PLIST+= ${SED} -e 's,^,${LIBGCC_SUBPREFIX}/${LIBGCC_TARGET_MACHINE}/,' \ +GENERATE_PLIST+= ${SED} -e 's,^,${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/,' \ ${LIBRARY_FILES}; GENERATE_PLIST+= ${GREP} -q 'lib/' ${LIBRARY_FILES} || \ - ${ECHO} '@pkgdir ${LIBGCC_SUBPREFIX}/${LIBGCC_TARGET_MACHINE}/lib' ; + ${ECHO} '@pkgdir ${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/lib' ; ${LIBRARY_FILES}: ${PKG_INFO} -qL '${GCC_PKGNAME}-${GCC47_DIST_VERSION}*' | \ @@ -56,10 +56,10 @@ ${LIBRARY_FILES}: -e'/lib.*\.${SHLIB_EXT}/p' >${LIBRARY_FILES} do-install: ${LIBRARY_FILES} - ${TEST} -d ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib || \ - ${MKDIR} ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib + ${TEST} -d ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib || \ + ${MKDIR} ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib cd ${LIBGCC_PREFIX} && \ - ${PAX} -rw ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE} <${LIBRARY_FILES} + ${PAX} -rw ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE} <${LIBRARY_FILES} .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/gcc47-libs/buildlink3.mk b/lang/gcc47-libs/buildlink3.mk index ecfdff7ba6a..498eac3f49d 100644 --- a/lang/gcc47-libs/buildlink3.mk +++ b/lang/gcc47-libs/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.8 2013/06/14 08:53:26 jperkin Exp $ +# $NetBSD: buildlink3.mk,v 1.9 2013/06/21 09:40:47 jperkin Exp $ BUILDLINK_TREE+= gcc47-libs @@ -25,12 +25,12 @@ WRAPPER_TARGETS+= ${SPECS_LIBGCC} LIBGCC_SUBPREFIX= gcc47 LIBGCC_PREFIX= ${BUILDLINK_PREFIX.gcc47-libs}/${LIBGCC_SUBPREFIX} -LIBGCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} +GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} # XXX: Using %M requires patched version of gcc (e.g. lang/gcc47) ${SPECS_LIBGCC}: @${ECHO} "*link_libgcc:" >${SPECS_LIBGCC} - @${ECHO} "%D $(LINKER_RPATH_FLAG)${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC} + @${ECHO} "%D $(LINKER_RPATH_FLAG)${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC} _WRAP_EXTRA_ARGS.CC+= -specs ${SPECS_LIBGCC} _WRAP_EXTRA_ARGS.CXX+= -specs ${SPECS_LIBGCC} diff --git a/lang/gcc48-libs/Makefile b/lang/gcc48-libs/Makefile index 926621fd211..37d8db5d718 100644 --- a/lang/gcc48-libs/Makefile +++ b/lang/gcc48-libs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2013/06/14 09:01:41 jperkin Exp $ +# $NetBSD: Makefile,v 1.8 2013/06/21 09:40:47 jperkin Exp $ GCC_PKGNAME= gcc48 .include "../../lang/${GCC_PKGNAME}/version.mk" @@ -8,7 +8,7 @@ PKGNAME= ${GCC_PKGNAME}-libs-${GCC48_DIST_VERSION} ## The PKGREVISION of this package needs to be at least 1 more than the ## PKGREVISION of the lang/gcc48 package so that with the dependence pattern ## '{gcc48,gcc48-libs}>=4.8.*' pkg_all will choose gcc48-libs over gcc48. -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= # empty DISTFILES= # empty @@ -32,8 +32,8 @@ FIND_PREFIX:= GCC_PKG_PREFIX=${GCC_PKGNAME}-${GCC48_DIST_VERSION}* LIBGCC_SUBPREFIX= ${GCC_PKGNAME} LIBGCC_PREFIX= ${GCC_PKG_PREFIX}/${LIBGCC_SUBPREFIX} -LIBGCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} -BUILD_DEFS+= LIBGCC_TARGET_MACHINE +GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} +BUILD_DEFS+= GCC_TARGET_MACHINE .include "../../mk/bsd.prefs.mk" .if ${_OPSYS_SHLIB_TYPE} == "dylib" @@ -44,10 +44,10 @@ SHLIB_EXT= so LIBRARY_FILES= ${WRKDIR}/lib_files -GENERATE_PLIST+= ${SED} -e 's,^,${LIBGCC_SUBPREFIX}/${LIBGCC_TARGET_MACHINE}/,' \ +GENERATE_PLIST+= ${SED} -e 's,^,${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/,' \ ${LIBRARY_FILES}; GENERATE_PLIST+= ${GREP} -q 'lib/' ${LIBRARY_FILES} || \ - ${ECHO} '@pkgdir ${LIBGCC_SUBPREFIX}/${LIBGCC_TARGET_MACHINE}/lib' ; + ${ECHO} '@pkgdir ${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/lib' ; ${LIBRARY_FILES}: ${PKG_INFO} -qL '${GCC_PKGNAME}-${GCC48_DIST_VERSION}*' | \ @@ -56,10 +56,10 @@ ${LIBRARY_FILES}: -e'/lib.*\.${SHLIB_EXT}/p' >${LIBRARY_FILES} do-install: ${LIBRARY_FILES} - ${TEST} -d ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib || \ - ${MKDIR} ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib + ${TEST} -d ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib || \ + ${MKDIR} ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib cd ${LIBGCC_PREFIX} && \ - ${PAX} -rw ${DESTDIR}${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE} <${LIBRARY_FILES} + ${PAX} -rw ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE} <${LIBRARY_FILES} .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/gcc48-libs/buildlink3.mk b/lang/gcc48-libs/buildlink3.mk index e34c3682376..39261beaa7d 100644 --- a/lang/gcc48-libs/buildlink3.mk +++ b/lang/gcc48-libs/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.4 2013/06/14 08:53:26 jperkin Exp $ +# $NetBSD: buildlink3.mk,v 1.5 2013/06/21 09:40:47 jperkin Exp $ BUILDLINK_TREE+= gcc48-libs @@ -25,12 +25,12 @@ WRAPPER_TARGETS+= ${SPECS_LIBGCC} LIBGCC_SUBPREFIX= gcc48 LIBGCC_PREFIX= ${BUILDLINK_PREFIX.gcc48-libs}/${LIBGCC_SUBPREFIX} -LIBGCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} +GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} # XXX: Using %M requires patched version of gcc (e.g. lang/gcc48) ${SPECS_LIBGCC}: @${ECHO} "*link_libgcc:" >${SPECS_LIBGCC} - @${ECHO} "%D $(LINKER_RPATH_FLAG)${LIBGCC_PREFIX}/${LIBGCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC} + @${ECHO} "%D $(LINKER_RPATH_FLAG)${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC} _WRAP_EXTRA_ARGS.CC+= -specs ${SPECS_LIBGCC} _WRAP_EXTRA_ARGS.CXX+= -specs ${SPECS_LIBGCC} -- cgit v1.2.3