Skip to content

Commit 9ea521a

Browse files
committed
Autoreconf must run after we run our fixes, fix workflow cache key incase deps change
1 parent d902d65 commit 9ea521a

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.github/workflows/restore_deps_to_cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
path: |
3131
d:/artifacts
32-
key: ${{ inputs.BuildPkg }}
32+
key: ${{ inputs.BuildPkg }}-${{ inputs.RequiredDeps }}
3333
lookup-only: true
3434

3535
- uses: actions/[email protected]
@@ -129,7 +129,7 @@ jobs:
129129
with:
130130
path: |
131131
d:/artifacts
132-
key: ${{ inputs.BuildPkg }}
132+
key: ${{ inputs.BuildPkg }}-${{ inputs.RequiredDeps }}
133133
# - name: Debug Session
134134
# if: ${{ failure() }}
135135
# run: D:/a/docs/docs/.github/debug_ssh_start.ps1

build/f_libhsts_build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fi
3232
gnulib_ensure_buildaux_scripts_copied
3333
autoreconf --symlink --verbose --install
3434
libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
35+
autoreconf --verbose #update for libtool fixes
3536
SKIP_STEP=""
3637
fi
3738

build/f_libpsl_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ fi
5252
gnulib_add_addl_modules_to_bootstrap;
5353
gnulib_ensure_buildaux_scripts_copied;
5454
setup_gnulibtool_py_autoconfwrapper #needed for generated .mk/.ac files but if just stock then the below line likely works
55-
libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
5655
./bootstrap --no-bootstrap-sync --no-git --gnulib-srcdir=gnulib --skip-po
56+
libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
57+
autoreconf --verbose #update for libtool fixes
5758
SKIP_STEP=""
5859
fi
5960
fi

build/f_wget2_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fi
4141
SKIP_STEP=""
4242
fi
4343
OLDPATH="$PATH"
44+
# build-aux\ltmain.sh
4445

4546
if [[ -z $SKIP_STEP || $SKIP_STEP == "vcpkg" ]]; then
4647
TAR_BASE=$(get_install_prefix_for_pkg "tar")
@@ -76,12 +77,15 @@ fi
7677
if [[ -z $SKIP_STEP || $SKIP_STEP == "bootstrap" ]]; then
7778
gnulib_ensure_buildaux_scripts_copied;
7879
setup_gnulibtool_py_autoconfwrapper #needed for generated .mk/.ac files but if just stock then the below line likely works
80+
libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
7981
./bootstrap --no-bootstrap-sync --no-git --gnulib-srcdir=gnulib --skip-po
8082
SKIP_STEP=""
8183
fi
8284
fi
8385
if [[ $SKIP_STEP == "autoconf" ]]; then #not empty allowed as if we bootstrapped above we dont need to run nautoconf
8486
autoreconf --symlink --verbose --install
87+
libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
88+
autoreconf --verbose #update for libtool fixes
8589
gnulib_ensure_buildaux_scripts_copied;
8690
SKIP_STEP="" #to do all the other steps
8791
fi
@@ -110,7 +114,7 @@ fi
110114
if [[ $CALL_CMD == "log_undefines" ]]; then
111115
FL="undefined.txt"
112116
echo "Logging undefined symbols to ${FL}"
113-
make | rg --no-line-number -oP "unresolved external symbol.+referenced" | sed -E 's#unresolved external symbol(.+)referenced#\1#g' | sort -u > $FL
117+
make | rg --no-line-number -oP "unresolved external symbol.+referenced" | sed -E 's#unresolved external symbol(.+)referenced#\\1#g' | sort -u > $FL
114118
exit 1
115119
fi
116120
make -j 8 || make

helpers_gnu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ function libtool_fixes(){
130130
# first the newer libtools have more windows support but that makes things actually a bit harder as it has some issues
131131
# first it puts the export symbol commands in a .exp file but that is used by the compiler too so .expsym is better and used elsewhere
132132
# Secondly it does -Fe [arg] but it needs to be next to the -Fe[arg]
133+
# ie libtool_fixes "build-aux/ltmain.sh" "m4/libtool.m4"
134+
# note you must run autoreconf after this if it wont automatically happen. Sometimes these will not be present until after the first bootstrap though so likely want to run autoreconf ourselves.
133135
# local POS_FILES=("build-aux/ltmain.sh" "m4/libtool.m4")
134136
# for fl in "${POS_FILES[@]}"; do
135137
# if [[ -e "$fl" ]]; then

0 commit comments

Comments
 (0)