From 83abda8e05f874a92b87aaacbf6ce2e1da88a986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 26 Aug 2021 19:17:43 +0200 Subject: 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.) --- subr/pkg_configure_autotools.subr | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'subr') 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; -- cgit v1.2.3