diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /dev-libs/libffi/libffi-3.3-r2.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-libs/libffi/libffi-3.3-r2.ebuild')
-rw-r--r-- | dev-libs/libffi/libffi-3.3-r2.ebuild | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/dev-libs/libffi/libffi-3.3-r2.ebuild b/dev-libs/libffi/libffi-3.3-r2.ebuild index 19e01b0832dd..55138eb082d5 100644 --- a/dev-libs/libffi/libffi-3.3-r2.ebuild +++ b/dev-libs/libffi/libffi-3.3-r2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit multilib multilib-minimal toolchain-funcs +inherit multilib multilib-minimal MY_PV=${PV/_rc/-rc} MY_P=${PN}-${MY_PV} @@ -32,26 +32,13 @@ PATCHES=( "${FILESDIR}"/${PN}-3.3-power7-memcpy-2.patch "${FILESDIR}"/${PN}-3.3-ppc-int128.patch "${FILESDIR}"/${PN}-3.3-ppc-vector-offset.patch + "${FILESDIR}"/${PN}-3.3-compiler-vendor-quote.patch ) S=${WORKDIR}/${MY_P} ECONF_SOURCE=${S} -pkg_setup() { - # Check for orphaned libffi, see https://bugs.gentoo.org/354903 for example - if [[ ${ROOT} == "/" && ${EPREFIX} == "" ]] && ! has_version ${CATEGORY}/${PN}; then - local base="${T}"/conftest - echo 'int main() { }' > "${base}".c - $(tc-getCC) -o "${base}" "${base}".c -lffi >&/dev/null - if [ $? -eq 0 ]; then - eerror "The linker reported linking against -lffi to be working while it shouldn't have." - eerror "This is wrong and you should find and delete the old copy of libffi before continuing." - die "The system is in inconsistent state with unknown libffi installed." - fi - fi -} - multilib_src_configure() { use userland_BSD && export HOST="${CHOST}" # --includedir= path maintains a few properties: |