summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-27 19:19:26 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-27 19:19:26 +0100
commit2dd87fe03376618bf1aaea316ce5fa94ed841614 (patch)
tree0422a7899819804613d2453694d35f7d941defa6
parentb947460aacf5861255b5d7f1e521b0daf30b3b11 (diff)
downloadmidipix_build-2dd87fe03376618bf1aaea316ce5fa94ed841614.tar.bz2
midipix_build-2dd87fe03376618bf1aaea316ce5fa94ed841614.tar.xz
Fix linking issue when building mpfr on Arch Linux due to library
pathname conflicts not properly handled by libtool. Since .la files need not be included in distribution tarballs, path fixups are applied to them directly. (see <http://www.metastatic.org/text/libtool.html>, reported by noninc.)
-rw-r--r--build.subr2
-rw-r--r--pkg.build5
2 files changed, 5 insertions, 2 deletions
diff --git a/build.subr b/build.subr
index 46fc61bd..b695429c 100644
--- a/build.subr
+++ b/build.subr
@@ -248,7 +248,7 @@ parse_with_pkg_name() {
[ -z "${PKG_FNAME}" ] && PKG_FNAME=${PKG_URL##*/};
[ -z "${PKG_SUBDIR}" ] && PKG_SUBDIR=${PKG_FNAME%%.tar*};
[ -n "${PKG_ENV_VARS_EXTRA}" ] && export ${PKG_ENV_VARS_EXTRA};
- return 0;
+ export PKG_PREFIX=$(get_var_unsafe PREFIX_LVL${PKG_LVL}); return 0;
fi; shift;
done; return 1;
};
diff --git a/pkg.build b/pkg.build
index dee48376..e61ac95e 100644
--- a/pkg.build
+++ b/pkg.build
@@ -41,8 +41,11 @@ if ! is_build_script_done patch; then
fi;
[ -x ${PKG_SUBDIR}/configure ] && \
cp portage/config.cache ${PKG_BUILD_DIR}/;
- [ ${PKG_LIBTOOL_MIDIPIX:-0} -eq 1 ] && \
+ if [ ${PKG_LIBTOOL_MIDIPIX:-0} -eq 1 ]; then
cp portage/libtool.midipix ${PKG_SUBDIR}/;
+ sed -i.orig -e "/^libdir=/s/libdir='/libdir='\$PKG_PREFIX\//"\
+ ${PKG_SUBDIR}/libtool.midipix;
+ fi;
set_build_script_done patch -configure;
fi;
cd ${PKG_BUILD_DIR};