From 296dd056c9aaddc9eec492c513b5c02d9fcae978 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Tue, 7 Jun 2016 15:06:01 +0900 Subject: sys-devel/gcc: bump to the git master. Bug: 417647 --- sys-devel/gcc-config/Manifest | 4 +- ...8-dont_source_functions_sh_from_etc_initd.patch | 47 --- .../files/gcc-config-prefix-1.8-r221.patch | 344 --------------------- sys-devel/gcc-config/gcc-config-1.8-r1.ebuild | 57 ---- .../gcc-config/gcc-config-1.8_p20160608.ebuild | 53 ++++ 5 files changed, 55 insertions(+), 450 deletions(-) delete mode 100644 sys-devel/gcc-config/files/gcc-config-1.8-dont_source_functions_sh_from_etc_initd.patch delete mode 100644 sys-devel/gcc-config/files/gcc-config-prefix-1.8-r221.patch delete mode 100644 sys-devel/gcc-config/gcc-config-1.8-r1.ebuild create mode 100644 sys-devel/gcc-config/gcc-config-1.8_p20160608.ebuild diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest index 764ff30..5ee3ecf 100644 --- a/sys-devel/gcc-config/Manifest +++ b/sys-devel/gcc-config/Manifest @@ -1,5 +1,5 @@ AUX gcc-config-1.8-dont_source_functions_sh_from_etc_initd.patch 1427 SHA256 2c09499fd1f9425d8b4c903cdc716ff22d6ea4049bfb5b6e497de01f4c148d5b SHA512 f9ba9341aebbeabfd8fa283b9bf30ad6907398c44a2d6ff113a47b2599a90f5cb0da1947675c0a27881bf1ba8138979b0f4918cbc175c64d6e6f754d6e7d6b9c WHIRLPOOL 79273ee0281ffb6c79c4dd77da3c016b9f867657dd879eb35502ecc393d0bc2d66677b48010ac297c11cccfb4654471c71c82e7ba26c49b4e2794a5b10536cb8 AUX gcc-config-prefix-1.8-r221.patch 12847 SHA256 b9c7df3b58bc7bdc0d4b154e92583d9fd3c07c6ecd9778eda7f06630a7077620 SHA512 741d7edce78a57d8bec10b6612cc543b85aaf449c3144f1e4140354d73c71466635a0d182c829731154e6d6f8241e526c0269faf6eb0d61a650884744f0dc546 WHIRLPOOL a930bba9345705d3115c6ff952e899e98acea323044152e6db7d4cf73a8e62914489b556d1fc7501dce805edd78530ff61a24a356a8fddf0bbcc78d1087dc11d -DIST gcc-config-1.8.tar.xz 15020 SHA256 2453e2a07521b12267ca62b9b860eb2d2bc606cad0f29bf42a1c9543673f5a1b SHA512 3b84af2d961a0527834759e047330dbab7bac0ff3d6aae103f14fca2d44bd612bd4a1005649e8b4198036231ed8a8319fb13326b4d2c40474826cf53f7bc0826 WHIRLPOOL 4899bc1da43a158cc486022f68661e5318db7e4e83afdb5d892fc7ce5098a4bdb059dbab3c50e632901e577cd8760b2386da3ee24f5e944db12d3e246d9c26b6 -EBUILD gcc-config-1.8-r1.ebuild 1325 SHA256 7c180941c8263fa9532a112786601344e2bd3b65f74c90ee2d2f01d93579aa94 SHA512 3f5758e83eba30f4aa9e4565fc7a1b80cd69c45dd4b26676ab64903acfb6772ec0b8acc061980f5116f7a865400feaa7dbe598bf92ed191586aafa60cdeab807 WHIRLPOOL 5c4520e7c1a30c73fa7b47f6a9b354848f0c5e8ae5685ce6103620df9a906c75ec488b224061d7767be1b27e46773bd5af752c464c95fe6e4b4ed790c27dc4c0 +DIST gcc-config-1.8_p20160608.tar.bz2 17446 SHA256 cef5de71a77d9cef4298ec42dd69b9694e53b07ed13a9dd674c5d5ff13fe2432 SHA512 ed3a1dd78a8123435b90283b708cc6141836be93d062606b4262d5c6aeb753efa0f549ac5b75556a1d193cc935e014c69418052cd6f6cab52d3597dcc2b05c12 WHIRLPOOL d3c510526ca76f7a634bafd3a553f017853e76046c16ca4887ffa7c327371e226d434c9c0472f04abf22c626cdc2975231ed182ca58cd59dcfa5ce06ff01a354 +EBUILD gcc-config-1.8_p20160608.ebuild 1251 SHA256 fac987a12abbd7d262f03735ef8b1ae5144a31164f9213267e54a625f651e8ac SHA512 9f35265024c72f47d01c7b03d5a3cda7370830e1270245608059bf2d8bb34db95fa477eb122521aca4b9288fdff6eb0995b168bc334317ae610f206d4dc34304 WHIRLPOOL b9dff6ba3c7bebef78c19c2342fa0df9db33722a6dcc763090204564ad637e017a3deb8b2fe70447042930065115186be1de4353b37fa20797ec315133086ac5 MISC metadata.xml 162 SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a SHA512 2a857e10b277827773a6c7967e070d7bfff23d75f44fa4d4fa8a7339df3225e6dba512a865d91c9c55bdb013dafdce85dface1b845acfbb5473e232666cdda45 WHIRLPOOL f7586c1570803b3e646f0be89ba6c767e82ec6889ef92d15f62a38f1410ed9d82c36892e5e83f694471959783d0d5ad667f1a39b7eb51f2080c269d5fa23d819 diff --git a/sys-devel/gcc-config/files/gcc-config-1.8-dont_source_functions_sh_from_etc_initd.patch b/sys-devel/gcc-config/files/gcc-config-1.8-dont_source_functions_sh_from_etc_initd.patch deleted file mode 100644 index a4b7de2..0000000 --- a/sys-devel/gcc-config/files/gcc-config-1.8-dont_source_functions_sh_from_etc_initd.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- gcc-config-1.8/gcc-config -+++ gcc-config-1.8/gcc-config -@@ -15,8 +15,9 @@ - trap ":" INT QUIT TSTP - - argv0=${0##*/} --source /etc/init.d/functions.sh || { -- echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2 -+functions_script="/lib/gentoo/functions.sh" -+source ${functions_script} || { -+ echo "${argv0}: Could not source ${functions_script}!" 1>&2 - exit 1 - } - esyslog() { :; } - -From d45de09450ffb63b138bbb7f78cae43e1101e2ec Mon Sep 17 00:00:00 2001 -From: Ryan Hill -Date: Tue, 12 May 2015 22:09:28 -0600 -Subject: [PATCH] Ignore whitespace when diffing test results. - -The amount of whitespace output by ebegin/eend from gentoo-functions -is dynamic (seems to be dependent on terminal width). Since we can't -predict this we have to ignore all whitespace differences. - -URL: https://bugs.gentoo.org/547586 -Reported-by: tka -Signed-off-by: Ryan Hill ---- - tests/run_tests | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/run_tests b/tests/run_tests -index 2ff7d77..397d667 100755 ---- a/tests/run_tests -+++ b/tests/run_tests -@@ -44,7 +44,7 @@ cmp_log() { - args+=( -e "s|: line [0-9]*: |: |g" ) - sed "${args[@]}" "${exp}" > "${exp}.tmp" - sed "${args[@]}" "${log}" > "${log}.tmp" -- diff -u "${exp}.tmp" "${log}.tmp" > "${log}.diff" -+ diff -uw "${exp}.tmp" "${log}.tmp" > "${log}.diff" - ret=$? - rm "${exp}.tmp" - return ${ret} --- -2.4.4 - diff --git a/sys-devel/gcc-config/files/gcc-config-prefix-1.8-r221.patch b/sys-devel/gcc-config/files/gcc-config-prefix-1.8-r221.patch deleted file mode 100644 index cef1338..0000000 --- a/sys-devel/gcc-config/files/gcc-config-prefix-1.8-r221.patch +++ /dev/null @@ -1,344 +0,0 @@ -diff --git a/a/Makefile b/b/Makefile ---- a/a/Makefile -+++ b/b/Makefile -@@ -5,7 +5,8 @@ PN = gcc-config - PV = git - P = $(PN)-$(PV) - --PREFIX = /usr -+EPREFIX = -+PREFIX = $(EPREFIX)/usr - BINDIR = $(PREFIX)/bin - SUBLIBDIR = lib - LIBDIR = $(PREFIX)/$(SUBLIBDIR) -@@ -16,6 +17,11 @@ INSTALL_EXE = install -m 755 - - all: wrapper - -+wrapper.c: wrapper.c.in -+ sed \ -+ -e 's:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g' \ -+ wrapper.c.in > wrapper.c -+ - clean: - rm -f wrapper *.o core - -@@ -23,6 +29,7 @@ install: all - $(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBEXECDIR) - $(INSTALL_EXE) wrapper $(DESTDIR)$(LIBEXECDIR)/$(PN) - sed \ -+ -e 's:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g' \ - -e 's:@GENTOO_LIBDIR@:$(SUBLIBDIR):g' \ - -e 's:@PV@:$(PV):g' \ - gcc-config > $(DESTDIR)$(BINDIR)/gcc-config -diff --git a/a/gcc-config b/b/gcc-config -index 18d0b48..935b4c8 100755 ---- a/a/gcc-config -+++ b/b/gcc-config -@@ -9,14 +9,17 @@ - : ${ROOT:=/} - [[ ${ROOT} != */ ]] && ROOT="${ROOT}/" - [[ ${ROOT} != /* ]] && ROOT="${PWD%/}/${ROOT}" -+BPREFIX="@GENTOO_PORTAGE_EPREFIX@" -+: ${EPREFIX:=${BPREFIX}} -+EROOT="${ROOT%/}${EPREFIX}/" - - cd / - - trap ":" INT QUIT TSTP - - argv0=${0##*/} --source /etc/init.d/functions.sh || { -- echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2 -+source "${BPREFIX}"/etc/init.d/functions.sh || { -+ echo "${argv0}: Could not source ${BPREFIX}/etc/init.d/functions.sh!" 1>&2 - exit 1 - } - esyslog() { :; } -@@ -84,16 +87,16 @@ try_real_hard_to_find_CHOST() { - # - - local varname=${1:-CHOST} -- local conf=${ROOT}/etc/portage/make.conf -- if [[ ! -e ${conf} && -e ${ROOT}/etc/make.conf ]] ; then -- conf=${ROOT}/etc/make.conf -+ local conf=${EROOT}/etc/portage/make.conf -+ if [[ ! -e ${conf} && -e ${EROOT}/etc/make.conf ]] ; then -+ conf=${EROOT}/etc/make.conf - fi - local ret=$(source "${conf}" 2>/dev/null ; echo ${!varname}) - if [[ -z ${ret} ]] ; then - # newer portage supports spaces between the var and = - # CHOST = "this-is-retarded" - ret=$(eval $( -- sed -n \ -+ ${SED} -n \ - -e 's:[[:space:]]::g' \ - -e "/^${varname}=/p" \ - "${conf}" -@@ -109,8 +112,8 @@ try_real_hard_to_find_CHOST() { - # - # Then we try /etc/env.d/gcc/config-${CTARGET} - # -- if [[ -s ${ROOT}/etc/env.d/gcc/config-${CTARGET} ]] ; then -- ret=$(split_gcc_ver $(show_var CURRENT "${ROOT}"/etc/env.d/gcc/config-${CTARGET})) -+ if [[ -s ${EROOT}/etc/env.d/gcc/config-${CTARGET} ]] ; then -+ ret=$(split_gcc_ver $(show_var CURRENT "${EROOT}"/etc/env.d/gcc/config-${CTARGET})) - echo ${ret% *} - fi - } -@@ -124,7 +127,7 @@ get_chost() { - - # make sure portage isnt broken - if python -V &>/dev/null ; then -- CHOST=$(portageq envvar CHOST 2>/dev/null) -+ CHOST=$(env -i EPREFIX="${BPREFIX}" "$(PATH="${BPREFIX}/usr/bin:${PATH}" type -P portageq)" envvar CHOST 2>/dev/null) - else - ewarn "Python seems to be broken, attempting to locate CHOST ourselves ..." - CHOST=$(try_real_hard_to_find_CHOST) -@@ -133,7 +136,7 @@ get_chost() { - if [[ -z ${CHOST} ]] ; then - eerror "${argv0}: Could not get portage CHOST!" - eerror "${argv0}: You should verify that CHOST is set in one of these places:" -- eerror "${argv0}: - ${ROOT}/etc/portage/make.conf" -+ eerror "${argv0}: - ${EROOT}/etc/portage/make.conf" - eerror "${argv0}: - active environment" - exit 1 - fi -@@ -196,7 +199,7 @@ update_wrappers() { - # Find the bin wrapper - local wrapper - for wrapper in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do -- wrapper="${ROOT}usr/${wrapper}/misc/gcc-config" -+ wrapper="${EROOT}usr/${wrapper}/misc/gcc-config" - [[ -e ${wrapper} ]] && break - done - -@@ -222,7 +225,7 @@ update_wrappers() { - # new one does not. - for x in "${old_wrappers[@]}" ; do - has "${x}" "${new_wrappers[@]}" && continue -- rm -f "${ROOT}usr/bin/${x}" "${ROOT}usr/bin/${CTARGET}-${x}" -+ rm -f "${EROOT}usr/bin/${x}" "${EROOT}usr/bin/${CTARGET}-${x}" - done - - # For all toolchains, we want to create the fully qualified -@@ -259,20 +262,19 @@ update_wrappers() { - - # Now do the actual wrapper copy with paths to the reference binary - if [[ -x ${ref} ]] ; then -- atomic_cp "${wrapper}" "${ROOT}usr/bin" "${x}" "${ref}" -+ atomic_cp "${wrapper}" "${EROOT}usr/bin" "${x}" "${ref}" - else - ewarn "double insanity with ${x} and ${ref}" - # Make sure we have no stale wrappers -- rm -f "${ROOT}usr/bin/${x}" -+ rm -f "${EROOT}usr/bin/${x}" - fi - done - # legacy cruft, make sure we dont leave it laying around #143205 -- rm -f "${ROOT}usr/bin/${CTARGET}-cc" "${ROOT}usr/bin"/{${CTARGET}-,}g{cc,++}{32,64} -+ rm -f "${EROOT}usr/bin/${CTARGET}-cc" "${EROOT}usr/bin"/{${CTARGET}-,}g{cc,++}{32,64} - - # install the canonical cpp wrapper -- [[ ${CTARGET} == *-solaris* ]] && return 0 - if ! is_cross_compiler ; then -- atomic_cp "${wrapper}" "${ROOT}lib" "cpp" "${ROOT}usr/bin/cpp" -+ atomic_cp "${wrapper}" "${EROOT}lib" "cpp" "${EROOT}usr/bin/cpp" - fi - } - -@@ -301,33 +303,45 @@ handle_split_usr() { - eval $(grep -h '^LDPATH=' "${GCC_ENV_D}"/${CHOST}-* | tail -1) - LDPATH=${LDPATH%%:*} - -- # If /usr isn't a sep mount, then don't bother with linking stuff. -- if ln "${ROOT}/${LDPATH}/libgcc.a" "${ROOT}"/lib/.gcc.config.$$ 2>/dev/null ; then -- rm -f "${ROOT}"/lib/.gcc.config.$$ -- if [[ -n $(find "${ROOT}"/lib*/lib{gcc_s,unwind}.so* 2>/dev/null) ]] ; then -+ # If /usr isn't a sep mount or EPREFIX is set, then don't bother with linking stuff. -+ if [[ -n ${EPREFIX} ]] || ln "${ROOT}/${LDPATH}/libgcc.a" "${EROOT}"/lib/.gcc.config.$$ 2>/dev/null ; then -+ rm -f "${EROOT}"/lib/.gcc.config.$$ -+ if [[ -n $(find "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} 2>/dev/null) ]] ; then - # If we previously had stuff in /, make sure ldconfig gets re-run. -- rm -f "${ROOT}"/lib*/lib{gcc_s,unwind}.so* -+ rm -f "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} - return 1 - fi - return 0 - fi - -- # Only bother with this stuff for the native ABI. We assume the user -- # doesn't have critical binaries for non-native ABIs which is fair. -- local gcclib -- local libdir="${ROOT}${GENTOO_LIBDIR}" -- mkdir -p "${libdir}"/.gcc.config.new || return 0 # !?!?! -- for gcclib in gcc_s unwind ; do -- # This assumes that we always have the .so symlink, -- # but for now, that should be safe ... -- for gcclib in "${ROOT}${LDPATH}"/lib${gcclib}.so.* ; do -- [[ -e ${gcclib} ]] || continue -- cp -pP "${gcclib}" "${libdir}"/.gcc.config.new/ -- # no need to sanity `rm` this as the `mv` should take care -- # of it. we also need this step to be completely atomic -- # for systems that have even `mv` linked against libgcc_s.so. -- # http://bugs.gentoo.org/150257 -- mv -f "${libdir}"/.gcc.config.new/* "${libdir}"/ -+ gcc="${ROOT}${LATEST_GCC_PATH}/gcc" -+ -+ local multilib -+ for multilib in $("${gcc}" -print-multi-lib); do -+ local multiarg=${multilib#*;} -+ multiarg=${multiarg/@/-} -+ local multilibdir=${multilib%;*} -+ local libdir="${EROOT}lib/"$("${gcc}" ${multiarg} -print-multi-os-directory) -+ -+ mkdir -p "${libdir}"/.gcc.config.new || continue # !?!?! -+ -+ # Only bother with this stuff for the native ABI. We assume the user -+ # doesn't have critical binaries for non-native ABIs which is fair. -+ local gcclib -+ local libdir="${ROOT}${GENTOO_LIBDIR}" -+ mkdir -p "${libdir}"/.gcc.config.new || return 0 # !?!?! -+ for gcclib in gcc_s unwind ; do -+ # This assumes that we always have the .so symlink, -+ # but for now, that should be safe ... -+ for gcclib in "${ROOT}${LDPATH}"/lib${gcclib}.so.* ; do -+ [[ -e ${gcclib} ]] || continue -+ cp -pP "${gcclib}" "${libdir}"/.gcc.config.new/ -+ # no need to sanity `rm` this as the `mv` should take care -+ # of it. we also need this step to be completely atomic -+ # for systems that have even `mv` linked against libgcc_s.so. -+ # http://bugs.gentoo.org/150257 -+ mv -f "${libdir}"/.gcc.config.new/* "${libdir}"/ -+ done - done - done - rmdir "${libdir}"/.gcc.config.new -@@ -341,7 +355,7 @@ switch_profile() { - - # Make sure we have write access to the dirs. Do not require `root` - # so that we work with prefix/cross/etc... setups that run as user. -- [[ ! -w ${ROOT} ]] && die "need write access to ${ROOT}" -+ [[ ! -w ${EROOT} ]] && die "need write access to ${EROOT}" - - if is_cross_compiler ; then - ebegin "Switching cross-compiler to ${CC_COMP}" -@@ -408,7 +422,7 @@ switch_profile() { - # Pass all by default - awk '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS|GCC_PATH|MULTIOSDIRS)=/ {print $0}' \ - "${GCC_ENV_D}/${CC_COMP}" >> "${envd}.tmp" -- if [[ -d ${ROOT}/etc/ld.so.conf.d ]] ; then -+ if [[ -z ${EPREFIX} && -d ${ROOT}/etc/ld.so.conf.d ]] ; then - echo "${MY_LDPATH}" > "${ROOT}"/etc/ld.so.conf.d/05gcc-${CTARGET}.conf - else - echo "LDPATH=\"${MY_LDPATH}\"" >> "${envd}.tmp" -@@ -427,7 +441,7 @@ switch_profile() { - local x libdir pkgconfdir - local mver=${CC_COMP_VERSION:0:3} - for libdir in ${MULTIOSDIRS//:/ } ; do -- pkgconfdir="${ROOT}/usr/lib/${libdir}/pkgconfig" -+ pkgconfdir="${EROOT}/usr/lib/${libdir}/pkgconfig" - for x in "" "-${mver}" ; do - x="${pkgconfdir}/libgcj${x}.pc" - if [[ -e ${pkgconfdir}/libgcj-${CC_COMP_VERSION}.pc ]] ; then -@@ -458,7 +472,7 @@ switch_profile() { - ewarn "env-update failed to work properly; making sure ld.so.conf paths" - ewarn "are setup properly. Please rerun gcc-config with the -f option." - echo "" -- if [[ ! -d /etc/ld.so.conf.d ]] ; then -+ if [[ -z ${EPREFIX} && ! -d /etc/ld.so.conf.d ]] ; then - show_var LDPATH "${ROOT}"/etc/env.d/05gcc-${CTARGET} \ - | sed -e 's|:|\n|g' >> /etc/ld.so.conf - fi -@@ -475,7 +489,9 @@ switch_profile() { - ewarn "If you intend to use the gcc from the new profile in an already" - ewarn "running shell, please remember to do:" - echo -- ewarn " . /etc/profile" -+ ewarn " (bash) # . ${EPREFIX}/etc/profile" -+ ewarn "or" -+ ewarn " (tcsh) # source ${EPREFIX}/etc/csh.login" - echo - fi - -@@ -653,7 +669,7 @@ DOIT="" - FORCE="no" - - CC_COMP= --ENV_D="${ROOT}etc/env.d" -+ENV_D="${EROOT}etc/env.d" - GCC_ENV_D="${ENV_D}/gcc" - - for x in "$@" ; do -@@ -784,7 +800,11 @@ if [[ -z ${CC_COMP} ]] ; then - fi - - if [[ ${DOIT} != "get_current_profile" ]] ; then -- GCC_LIB=$(get_lib_path | awk -F/ '{ print "/"$2"/"$3"/"$4"/" }') -+ GCC_LIB=$( -+ get_lib_path | \ -+ sed -e "s|${EPREFIX}/*|/|g" | \ -+ awk -F/ '{ print "/"$2"/"$3"/"$4"/" }' -+ ) - - # For people who insist on using funky version strings ("4.6.x" - # rather than "4.6.2"), allow them to manually specify it. -@@ -797,11 +817,11 @@ if [[ ${DOIT} != "get_current_profile" ]] ; then - CC_COMP_TARGET=${CC_COMP%-${CC_COMP_VERSION}*} - fi - -- if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then -+ if [[ ! -d ${EROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then - CC_COMP_VERSION=${CC_COMP_VERSION%-*} - fi - -- if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]] || \ -+ if [[ ! -d ${EROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]] || \ - [[ ! -f ${GCC_ENV_D}/${CC_COMP} ]] - then - eerror "${argv0}: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2 -diff --git a/a/wrapper.c.in b/b/wrapper.c.in -index 65e5317..afa03bc 100644 ---- a/a/wrapper.c.in -+++ b/b/wrapper.c.in -@@ -21,8 +21,8 @@ - #include - #include - --#define GCC_CONFIG "/usr/bin/gcc-config" --#define ENVD_BASE "/etc/env.d/05gcc" -+#define GCC_CONFIG "@GENTOO_PORTAGE_EPREFIX@/usr/bin/gcc-config" -+#define ENVD_BASE "@GENTOO_PORTAGE_EPREFIX@/etc/env.d/05gcc" - - #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) - -@@ -146,7 +146,7 @@ static int find_target_in_envd(struct wrapper_data *data, int cross_compile) - /* for the sake of speed, we'll keep a symlink around for - * the native compiler. #190260 - */ -- snprintf(envd_file, sizeof(envd_file)-1, "/etc/env.d/gcc/.NATIVE"); -+ snprintf(envd_file, sizeof(envd_file)-1, "@GENTOO_PORTAGE_EPREFIX@/etc/env.d/gcc/.NATIVE"); - } else { - char *ctarget, *end = strrchr(data->name, '-'); - if (end == NULL) -@@ -213,7 +213,7 @@ static void find_wrapper_target(struct wrapper_data *data) - /* Only our wrapper is in PATH, so get the CC path using - * gcc-config and execute the real binary in there ... - */ -- FILE *inpipe = popen("ROOT= " GCC_CONFIG " --get-bin-path", "r"); -+ FILE *inpipe = popen("ROOT= EPREFIX=\"@GENTOO_PORTAGE_EPREFIX@\" " GCC_CONFIG " --get-bin-path", "r"); - if (inpipe == NULL) - wrapper_errp("could not open pipe"); - -@@ -289,8 +289,8 @@ int main(int argc, char *argv[]) - data.name = wrapper_aliases[i].target; - - /* What is the full name of our wrapper? */ -- data.fullname = xmalloc(strlen(data.name) + sizeof("/usr/bin/") + 1); -- sprintf(data.fullname, "/usr/bin/%s", data.name); -+ data.fullname = xmalloc(strlen(data.name) + sizeof("@GENTOO_PORTAGE_EPREFIX@/usr/bin/") + 1); -+ sprintf(data.fullname, "@GENTOO_PORTAGE_EPREFIX@/usr/bin/%s", data.name); - - find_wrapper_target(&data); - diff --git a/sys-devel/gcc-config/gcc-config-1.8-r1.ebuild b/sys-devel/gcc-config/gcc-config-1.8-r1.ebuild deleted file mode 100644 index 40639cf..0000000 --- a/sys-devel/gcc-config/gcc-config-1.8-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils unpacker toolchain-funcs multilib - -DESCRIPTION="utility to manage compilers" -HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" -SRC_URI="mirror://gentoo/${P}.tar.xz - https://dev.gentoo.org/~vapier/dist/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="" - -RDEPEND=">=sys-apps/gentoo-functions-0.10" - -src_prepare() { - mv wrapper.c wrapper.c.in || die - epatch "${FILESDIR}"/${PN}-prefix-${PV}-r221.patch -} - -src_compile() { - emake EPREFIX="${EPREFIX}" CC="$(tc-getCC)" -} - -src_install() { - emake \ - EPREFIX="${EPREFIX}" \ - DESTDIR="${D}" \ - PV="${PV}" \ - SUBLIBDIR="$(get_libdir)" \ - install -} - -pkg_postinst() { - # Scrub eselect-compiler remains - rm -f "${EROOT}"/etc/env.d/05compiler & - - # Make sure old versions dont exist #79062 - rm -f "${EROOT}"/usr/sbin/gcc-config & - - # We not longer use the /usr/include/g++-v3 hacks, as - # it is not needed ... - rm -f "${EROOT}"/usr/include/g++{,-v3} & - - # Do we have a valid multi ver setup ? - local x - for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do - gcc-config ${x} - done - - wait -} diff --git a/sys-devel/gcc-config/gcc-config-1.8_p20160608.ebuild b/sys-devel/gcc-config/gcc-config-1.8_p20160608.ebuild new file mode 100644 index 0000000..76bd57f --- /dev/null +++ b/sys-devel/gcc-config/gcc-config-1.8_p20160608.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils unpacker toolchain-funcs multilib + +DESCRIPTION="utility to manage compilers" +HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + https://dev.gentoo.org/~heroxbd/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="" + +RDEPEND=">=sys-apps/gentoo-functions-0.10" +S="${WORKDIR}/gcc-config-master" + +src_compile() { + emake EPREFIX="${EPREFIX}" CC="$(tc-getCC)" +} + +src_install() { + emake \ + EPREFIX="${EPREFIX}" \ + DESTDIR="${D}" \ + PV="${PV}" \ + SUBLIBDIR="$(get_libdir)" \ + install +} + +pkg_postinst() { + # Scrub eselect-compiler remains + rm -f "${EROOT}"/etc/env.d/05compiler & + + # Make sure old versions dont exist #79062 + rm -f "${EROOT}"/usr/sbin/gcc-config & + + # We not longer use the /usr/include/g++-v3 hacks, as + # it is not needed ... + rm -f "${EROOT}"/usr/include/g++{,-v3} & + + # Do we have a valid multi ver setup ? + local x + for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do + gcc-config ${x} + done + + wait +} -- cgit v1.2.3-65-gdbad