From 8523a8508b3b3350547e842ace63b10bd22a8fe7 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Dec 07 2016 20:21:02 +0000 Subject: weechat: patch autogen.sh to run autoreconf w/o -f so that it doesn't overwrite our config.sub. build/pkg.build: adds `patch_pre' build step. etc/build.usage: updated to document the above. --- diff --git a/build/pkg.build b/build/pkg.build index bcc6c20..d87fdab 100644 --- a/build/pkg.build +++ b/build/pkg.build @@ -55,7 +55,22 @@ if ! is_build_script_done build_dir; then [ "${PKG_SUBDIR}" != "${PKG_BUILD_DIR}" ] &&\ secure_rm ${PKG_BUILD_DIR}; insecure_mkdir ${PKG_BUILD_DIR}; - set_build_script_done build_dir -patch; + set_build_script_done build_dir -patch_pre; +fi; +if ! is_build_script_done patch_pre; then + for __ in \ + ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local.patch \ + ${MIDIPIX_BUILD_PWD}/patches/${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch \ + ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local.patch \ + ${MIDIPIX_BUILD_PWD}/../${PKG_SUBDIR}_pre.local@${BUILD_HNAME}.patch; do + if [ -r "${__}" ]; then + patch -b -d ${PKG_SUBDIR} -p1 < ${__}; + fi; + done; unset __; + if test_cmd pkg_${PKG_NAME}_patch_pre_post; then + pkg_${PKG_NAME}_patch_pre_post; + fi; + set_build_script_done patch_pre -autoconf; fi; if [ -e ${PKG_SUBDIR}/configure -o \ -e ${PKG_SUBDIR}/configure.ac -o \ diff --git a/etc/build.usage b/etc/build.usage index 9fd4540..3025367 100644 --- a/etc/build.usage +++ b/etc/build.usage @@ -12,7 +12,8 @@ usage: ./build.sh [-x] [-a nt32|nt64] [-b debug|release] [-c] [-C] [-h] -N Offline mode: no {wget,git-{clone,pull}}(1) calls. -r package[,...][:step] Restart the specified comma-separated build(s) completely or at the optionally specified step. Currently defined steps are: - fetch extract build_dir autoconf patch configure clean build install + fetch extract build_dir patch_pre autoconf patch configure clean + build install. -t[.gz|.bz2|.xz] Produce binary distribution and source tarballs containing ${PREFIX} sans ${WORKDIR} and ${PREFIX}/src/midipix_build and ${WORKDIR} sans top- level regular files at the end of a build with zero failures. The diff --git a/patches/weechat-1.6_pre.local.patch b/patches/weechat-1.6_pre.local.patch new file mode 100644 index 0000000..53b0736 --- /dev/null +++ b/patches/weechat-1.6_pre.local.patch @@ -0,0 +1,11 @@ +--- weechat-1.6/autogen.sh.orig 2016-10-02 09:35:04.000000000 +0200 ++++ weechat-1.6/autogen.sh 2016-12-07 21:16:43.722726800 +0100 +@@ -64,7 +64,7 @@ + run "rm -rf intl" + + # execute autoreconf cmds +-run "autoreconf -fvi" ++run "autoreconf -vi" + + # ending + rm -f $AUTOGEN_LOG