diff options
author | 2016-06-14 22:33:51 +0200 | |
---|---|---|
committer | 2016-06-15 06:59:37 +0200 | |
commit | 6fe52a6eaa83ebfdd08170a31643ddb6ececd265 (patch) | |
tree | f05043debae32650ca9a570cefacd60c48ff5e62 | |
parent | Imported profiles from gentoo (diff) | |
download | android-6fe52a6eaa83ebfdd08170a31643ddb6ececd265.tar.gz android-6fe52a6eaa83ebfdd08170a31643ddb6ececd265.tar.bz2 android-6fe52a6eaa83ebfdd08170a31643ddb6ececd265.zip |
Removed the profiles-based prefix-standalone support.
-rw-r--r-- | profiles/prefix/linux-standalone/profile.bashrc | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/profiles/prefix/linux-standalone/profile.bashrc b/profiles/prefix/linux-standalone/profile.bashrc deleted file mode 100644 index 77092b9..0000000 --- a/profiles/prefix/linux-standalone/profile.bashrc +++ /dev/null @@ -1,81 +0,0 @@ -# -*- mode: shell-script; -*- -# RAP specific patches that is pending upstream. -# binutils: http://article.gmane.org/gmane.comp.gnu.binutils/67593 -# gcc: https://gcc.gnu.org/ml/gcc-patches/2014-12/msg00331.html - -# Disable RAP trick during bootstrap stage2 -[[ -z ${BOOTSTRAP_RAP_STAGE2} ]] || return 0 - -if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == configure ]]; then - cd "${S}" - einfo "Prefixifying glibc dynamic linker..." - for h in gcc/config/*/linux*.h; do - ebegin " Updating $h" - sed -i -r "s,(GLIBC_DYNAMIC_LINKER.*\")(/lib),\1${EPREFIX}\2," $h - eend $? - done - - # use sysroot of toolchain to get currect include and library at compile time - EXTRA_ECONF="${EXTRA_ECONF} --with-sysroot=${EPREFIX}" - - ebegin "remove --sysroot call on ld for native toolchain" - sed -i 's/--sysroot=%R//' gcc/gcc.c - eend $? -elif [[ ${CATEGORY}/${PN} == sys-devel/binutils && ${EBUILD_PHASE} == prepare ]]; then - ebegin "Prefixifying native library path" - sed -i -r "/NATIVE_LIB_DIRS/s,((/usr(/local|)|)/lib),${EPREFIX}\1,g" \ - "${S}"/ld/configure.tgt - eend $? - ebegin "Prefixifying path to /etc/ld.so.conf" - sed -i -r "s,\"/etc,\"${EPREFIX}/etc," "${S}"/ld/emultempl/elf32.em - eend $? -elif [[ ${CATEGORY}/${PN} == sys-libs/glibc && ${EBUILD_PHASE} == compile ]]; then - cd "${S}" - einfo "Prefixifying hardcoded path" - - for f in libio/iopopen.c \ - shadow/lckpwdf.c resolv/{netdb,resolv}.h elf/rtld.c \ - nis/nss_compat/compat-{grp,initgroups,{,s}pwd}.c \ - nss/{bug-erange,nss_files/files-init{,groups}}.c \ - sysdeps/{{generic,unix/sysv/linux}/paths.h,posix/system.c} - do - ebegin " Updating $f" - sed -i -r "s,([:\"])/(etc|usr|bin|var),\1${EPREFIX}/\2,g" $f - eend $? - done - ebegin " Updating nss/db-Makefile" - sed -i -r \ - -e "s,/(etc|var),${EPREFIX}/\1,g" \ - nss/db-Makefile - eend $? -elif [[ ${CATEGORY}/${PN} == dev-lang/python && ${EBUILD_PHASE} == configure ]]; then - # Guide h2py to look into glibc of Prefix - ebegin "Guiding h2py to look into Prefix" - export include="${EPREFIX}"/usr/include - sed -i -r \ - -e "s,/usr/include,\"${EPREFIX}\"/usr/include,g" "${S}"/Lib/plat-linux*/regen - eend $? - ebegin "Prefixifying distutils paths" - sed -re "s,([^[:alnum:]])(/usr[/[:alnum:]]*/(lib[[:alnum:]]*|include)|/lib[[:alnum:]]*),\1${EPREFIX}\2,g" \ - -i "${S}"/setup.py - eend $? -elif [[ ${CATEGORY}/${PN} == dev-lang/perl && ${EBUILD_PHASE} == configure ]]; then - ebegin "Prefixifying pwd path" - sed -r "s,'((|/usr)/bin/pwd),'${EPREFIX}\1," -i "${S}"/dist/PathTools/Cwd.pm - eend $? - - # Configure checks for /system/lib/libandroid.so to override linux into linux-android, - # which is not desired for Gentoo - ebegin "Removing Android detection" - sed "/libandroid.so/d" -i "${S}"/Configure - eend $? -elif [[ ${CATEGORY}/${PN} == sys-devel/make && ${EBUILD_PHASE} == prepare ]]; then - ebegin "Prefixifying default shell" - sed -i -r "/default_shell/s,\"(/bin/sh),\"${EPREFIX}\1," "${S}"/job.c - eend $? -elif [[ ${CATEGORY}/${PN} == dev-lang/php && ${EBUILD_PHASE} == prepare ]]; then - # introduced in bug 419525, subtle glibc location difference. - ebegin "Prefixifying ext/iconv/config.m4 paths" - sed -i -r "/for i in/s,(/usr(/local|)),${EPREFIX}\1,g" "${S}"/ext/iconv/config.m4 - eend $? -fi |