diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2017-07-17 23:34:52 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2017-07-18 16:09:48 +0000 |
commit | 43c7f8b2781e4b51706915a8dd5e55ff24b18cdc (patch) | |
tree | 2d0d96015f1a20fca1bb88fbefdc9431fbfb5066 /net-fs/cvmfs | |
parent | net-fs/cvmfs: version bump (diff) | |
download | gentoo-43c7f8b2781e4b51706915a8dd5e55ff24b18cdc.tar.gz gentoo-43c7f8b2781e4b51706915a8dd5e55ff24b18cdc.tar.bz2 gentoo-43c7f8b2781e4b51706915a8dd5e55ff24b18cdc.zip |
net-fs/cvmfs: fix to respect toolchain / cross-compiling
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'net-fs/cvmfs')
-rw-r--r-- | net-fs/cvmfs/cvmfs-2.3.5.ebuild | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/net-fs/cvmfs/cvmfs-2.3.5.ebuild b/net-fs/cvmfs/cvmfs-2.3.5.ebuild index ae16006ece1f..8913abdb7b1e 100644 --- a/net-fs/cvmfs/cvmfs-2.3.5.ebuild +++ b/net-fs/cvmfs/cvmfs-2.3.5.ebuild @@ -82,21 +82,22 @@ src_prepare() { sed -e "s:cvmfs-\${CernVM-FS_VERSION_STRING}:${PF}:" \ -i CMakeLists.txt || die - sed -e 's|${res_path}/conf.d|${res_path/modules.d|' \ - -i cvmfs/cvmfs_server || die - - # hack for bundled vjson sha2 and sha3 - # vjson not worth unbundling, already upstream obsolete - # upstream replaced by gason with a new api - sed -e 's/g++/$(CXX)/g' \ - -e 's/ar/$(AR)/' \ - -e 's/ranlib/$(RANLIB)/' \ - -i externals/vjson/src/Makefile || die - local d - for d in vjson sha2 sha3; do - mkdir -p "${WORKDIR}/${P}_build"/externals/build_${d} - cp -r externals/${d}/src/* \ - "${WORKDIR}/${P}_build"/externals/build_${d}/ || die + # hack for bundled packages + # not worth unbundling upstreams are flaky/dead + local pkg + for pkg in vjson sha2 sha3; do + # respect toolchain variables + sed -e 's/g++/$(CXX)/g' \ + -e 's/gcc/$(CC)/g' \ + -e 's/CFLAGS/MYCFLAGS/g' \ + -e 's/-O2/$(CFLAGS)/g' \ + -e 's/-O2/$(CXXFLAGS)/g' \ + -e 's/ar/$(AR)/' \ + -e 's/ranlib/$(RANLIB)/' \ + -i externals/${pkg}/src/Makefile || die + mkdir -p "${WORKDIR}/${P}_build"/externals/build_${pkg} + cp -r externals/${pkg}/src/* \ + "${WORKDIR}/${P}_build"/externals/build_${pkg}/ || die done } |