@@ -3443,23 +3443,32 @@ create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--bitnes
3443
3443
mkdir -p " $output_path /mingw$bitness /bin" &&
3444
3444
case $bitness in
3445
3445
32)
3446
- BITNESS=32 ARCH=i686 " $output_path /git-cmd.exe" --command=usr\\ bin\\ sh.exe -l \
3446
+ # copy git.exe, for the libssp test
3447
+ git -C " $output_path " show HEAD:mingw32/bin/git.exe \
3448
+ >" $output_path /mingw32/bin/git.exe" &&
3449
+ BITNESS=32 ARCH=i686 " $output_path /git-cmd.exe" --command=usr\\ bin\\ sh.exe -lx \
3447
3450
" ${this_script_path%/* } /make-file-list.sh" |
3448
3451
# escape the ` [` in ` [.exe`
3449
3452
sed -e ' s|[][]|\\&|g' >> " $sparse_checkout_file " &&
3450
- cat << -EOF >>"$sparse_checkout_file "
3451
-
3452
- # For code-signing
3453
- /mingw32/bin/osslsigncode.exe
3454
- /mingw32/bin/libgsf-[0-9]*.dll
3455
- /mingw32/bin/libglib-[0-9]*.dll
3456
- /mingw32/bin/libgobject-[0-9]*.dll
3457
- /mingw32/bin/libgio-[0-9]*.dll
3458
- /mingw32/bin/libxml2-[0-9]*.dll
3459
- /mingw32/bin/libgmodule-[0-9]*.dll
3460
- /mingw32/bin/libzstd*.dll
3461
- /mingw32/bin/libffi-[0-9]*.dll
3462
- EOF
3453
+ if git -C " $git_sdk_path " rev-parse -q --verify HEAD:.sparse/makepkg-git > /dev/null
3454
+ then
3455
+ printf ' \n' >> " $sparse_checkout_file " &&
3456
+ git -C " $git_sdk_path " show HEAD:.sparse/makepkg-git >> " $sparse_checkout_file "
3457
+ else
3458
+ cat << -EOF >>"$sparse_checkout_file "
3459
+
3460
+ # For code-signing
3461
+ /mingw32/bin/osslsigncode.exe
3462
+ /mingw32/bin/libgsf-[0-9]*.dll
3463
+ /mingw32/bin/libglib-[0-9]*.dll
3464
+ /mingw32/bin/libgobject-[0-9]*.dll
3465
+ /mingw32/bin/libgio-[0-9]*.dll
3466
+ /mingw32/bin/libxml2-[0-9]*.dll
3467
+ /mingw32/bin/libgmodule-[0-9]*.dll
3468
+ /mingw32/bin/libzstd*.dll
3469
+ /mingw32/bin/libffi-[0-9]*.dll
3470
+ EOF
3471
+ fi
3463
3472
;;
3464
3473
* )
3465
3474
git -C " $git_sdk_path " show HEAD:.sparse/minimal-sdk > " $sparse_checkout_file " &&
@@ -3543,7 +3552,8 @@ create_sdk_artifact () { # [--out=<directory>] [--git-sdk=<directory>] [--bitnes
3543
3552
fi &&
3544
3553
if test makepkg-git = $mode && test ! -x " $output_path /usr/bin/git"
3545
3554
then
3546
- printf ' #!/bin/sh\n\nexec /mingw64/bin/git.exe "$@"\n' > " $output_path /usr/bin/git"
3555
+ printf ' #!/bin/sh\n\nexec %s/bin/git.exe "$@"\n' \
3556
+ " /mingw$bitness " > " $output_path /usr/bin/git"
3547
3557
fi &&
3548
3558
if test makepkg-git = $mode && ! grep -q http://docbook.sourceforge.net/release/xsl-ns/current " $output_path /etc/xml/catalog"
3549
3559
then
0 commit comments