]> git.pld-linux.org Git - packages/php.git/blob - php-libtool.patch
- fix building with icu 69
[packages/php.git] / php-libtool.patch
1 diff -urNp -x '*.orig' php-5.6.40.org/scripts/phpize.in php-5.6.40/scripts/phpize.in
2 --- php-5.6.40.org/scripts/phpize.in    2021-08-23 23:19:31.559120642 +0200
3 +++ php-5.6.40/scripts/phpize.in        2021-08-23 23:19:32.532452961 +0200
4 @@ -6,10 +6,16 @@ datarootdir='@datarootdir@'
5  exec_prefix="`eval echo @exec_prefix@`"
6  phpdir="`eval echo @libdir@`/php/build"
7  includedir="`eval echo @includedir@`/php"
8 +aclocaldir="$prefix/share/aclocal"
9  builddir="`pwd`"
10  SED="@SED@"
11  
12 -FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool libtool.m4"
13 +FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool"
14 +if [ -f "$aclocaldir/ltsugar.m4" ]; then
15 +    LIBTOOL_FILES="libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4"
16 +else
17 +    LIBTOOL_FILES="libtool.m4"
18 +fi
19  FILES="acinclude.m4 Makefile.global config.sub config.guess ltmain.sh run-tests*.php"
20  CLEAN_FILES="$FILES *.o *.lo *.la .deps .libs/ build/ modules/ install-sh \
21         mkinstalldirs missing config.nice config.sub config.guess configure configure.in \
22 @@ -145,8 +151,9 @@ phpize_copy_files()
23    test -d build || mkdir build
24   
25    (cd "$phpdir" && cp $FILES_BUILD "$builddir"/build)
26 +  (cd "$aclocaldir" && cp $LIBTOOL_FILES "$builddir"/build)
27    (cd "$phpdir" && cp $FILES "$builddir")
28 -  (cd "$builddir" && cat acinclude.m4 ./build/libtool.m4 > aclocal.m4)
29 +  (cd "$builddir/build" && cat ../acinclude.m4 $LIBTOOL_FILES > ../aclocal.m4)
30  }
31  
32  phpize_replace_prefix()
This page took 0.059733 seconds and 3 git commands to generate.