diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-27 19:19:26 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-27 19:19:26 +0100 |
commit | 2dd87fe03376618bf1aaea316ce5fa94ed841614 (patch) | |
tree | 0422a7899819804613d2453694d35f7d941defa6 | |
parent | b947460aacf5861255b5d7f1e521b0daf30b3b11 (diff) | |
download | midipix_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.subr | 2 | ||||
-rw-r--r-- | pkg.build | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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; }; @@ -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}; |