diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 19:17:43 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-26 19:17:43 +0200 |
commit | 83abda8e05f874a92b87aaacbf6ce2e1da88a986 (patch) | |
tree | f9daedfefa92db7ea146e3eb17fa9c01b204a4ef /subr | |
parent | 75ba48d087e7d6a90204537fd41eaa9d4fd3e487 (diff) | |
download | midipix_build-83abda8e05f874a92b87aaacbf6ce2e1da88a986.tar.bz2 midipix_build-83abda8e05f874a92b87aaacbf6ce2e1da88a986.tar.xz |
Install Midipix' config.guess w/ autotools packages.
etc/config.guess: cloned from https://dev.midipix.org/toolchain/bautomake/raw/main/f/src/config.guess (via Redfoxmoon.)
Diffstat (limited to 'subr')
-rw-r--r-- | subr/pkg_configure_autotools.subr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/subr/pkg_configure_autotools.subr b/subr/pkg_configure_autotools.subr index c91a08a3..4f7f76ed 100644 --- a/subr/pkg_configure_autotools.subr +++ b/subr/pkg_configure_autotools.subr @@ -29,6 +29,10 @@ pkg_configure_autotools() { "${MIDIPIX_BUILD_PWD}/etc/config.sub" \ "${_subdir_tgt}/config.sub"; then return 1; + elif ! rtl_fileop install -m 0700 \ + "${MIDIPIX_BUILD_PWD}/etc/config.guess" \ + "${_subdir_tgt}/config.guess"; then + return 1; else break; fi; @@ -52,6 +56,12 @@ pkg_configure_autotools() { return 1; fi; done + for _fname in $(find "${PKG_BASE_DIR}/${PKG_SUBDIR}" -name config.guess); do + if ! rtl_fileop mv "${_fname}" "${_fname}.orig"\ + || ! rtl_fileop install -m 0700 "${MIDIPIX_BUILD_PWD}/etc/config.guess" "${_fname}"; then + return 1; + fi; + done if [ "${PKG_BUILD_TYPE}" != host ]; then if ! rtl_fileop touch "${PKG_BUILD_DIR}/config.cache"; then return 1; |