scripts/php*.in: Explicitly define the path to sed.
authorVagrant Cascadian <vagrant@reproducible-builds.org>
Thu, 13 Apr 2023 22:59:57 +0000 (15:59 -0700)
committerOndřej Surý <ondrej@debian.org>
Sun, 3 Aug 2025 07:32:21 +0000 (09:32 +0200)
The full path is detected by configure, resulting in a different build
depending on if it is built on a usrmerge or non-usrmerge system.

Since usrmerge systems contain compatibility symlinks for the
non-usrmerge paths, use the non-usrmerge path which is compatible in
both systems.

https://tests.reproducible-builds.org/debian/issues/bookworm/paths_vary_due_to_usrmerge_issue.html

Gbp-Pq: Name 0040-scripts-php-.in-Explicitly-define-the-path-to-sed.patch

scripts/php-config.in
scripts/phpize.in

index 9e415da893a5df5b5655d94a48514ba6a5a72be0..5fb2a92fdfb9196f08880b4c2e568bf01f3e434e 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-SED="@SED@"
+SED="/bin/sed"
 prefix="@prefix@"
 datarootdir="@datarootdir@"
 exec_prefix="@exec_prefix@"
index 66086aa43ee9061d08a13c62ee84ffd9b05d2780..a7c9f9de932b134b0f8eadbc4d7fc502faa68423 100644 (file)
@@ -7,7 +7,7 @@ exec_prefix="`eval echo @exec_prefix@`"
 phpdir="$prefix/lib/php/@DEBIAN_PHP_API@/build"
 includedir="$prefix/include/php/@DEBIAN_PHP_API@"
 builddir="`pwd`"
-SED="@SED@"
+SED="/bin/sed"
 
 libtool_version=$(dpkg-query -f'${Version}' -W libtool)
 aclocaldir="$prefix/share/aclocal"