[php-src] PHP-7.3.28: Fix ./makedist wrt. to GH move
| From: | Christoph M. Becker | Date: | Tue, 27 Apr 2021 13:54:21 +0000 |
| Subject: | [php-src] PHP-7.3.28: Fix ./makedist wrt. to GH move | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-115887@lists.php.net to get a copy of this message | ||
Author: Christoph M. Becker (cmb69)
Date: 2021-04-27T15:53:53+02:00
Commit: https://github.com/php/php-src/commit/eb7cdb8f4a829d218a12a91380cf7c75e8e3ec8f
Raw diff: https://github.com/php/php-src/commit/eb7cdb8f4a829d218a12a91380cf7c75e8e3ec8f.diff
Fix ./makedist wrt. to GH move
We can no longer export from git.php.net, and apparently exporting from
Github is not supported. We apply a quick fix to export from the local
clone by default, still leaving an option to export from some other
repo. This is, unfortunately, a minor BC break in a security release.
Co-authored-by: Remi Collet <remi@php.net>
Closes GH-6919.
(cherry picked from commit 096f148c6124d5a7ec727d38cca3a8e6a9b419b1)
Changed paths:
M makedist
Diff:
diff --git a/makedist b/makedist
index 452768683aa4..c0861b4aab1d 100755
--- a/makedist
+++ b/makedist
@@ -40,8 +40,10 @@ if test "${2}" -lt "13" -o "${2}" -eq
"13" -a "${3}" -lt "5"; then
fi
IFS="$old_IFS"
-if test "x$PHPROOT" = "x"; then
- PHPROOT=git@git.php.net:php-src.git;
+if test "x$PHPROOT" != "x"; then
+ remote_option=--remote=$PHPROOT
+else
+ remote_option=
fi
LT_TARGETS='ltconfig ltmain.sh config.guess config.sub'
@@ -72,7 +74,7 @@ fi
# Export PHP
$ECHO_N "makedist: exporting tag 'php-$VER' from
'$PHPROOT'...$ECHO_C"
-git archive --format=tar --remote=$PHPROOT refs/tags/php-$VER --prefix=php-$VER/ | (cd $MY_OLDPWD;
tar xvf -) || exit 4
+git archive --format=tar $remote_option refs/tags/php-$VER --prefix=php-$VER/ | (cd $MY_OLDPWD; tar
xvf -) || exit 4
echo ""
cd $DIR || exit 5