]> git.pld-linux.org Git - packages/php4.git/commitdiff
- fixed link-libs patch to remove redundant linking with libnetsnmp
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 23 Oct 2020 16:08:28 +0000 (18:08 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 23 Oct 2020 16:08:35 +0000 (18:08 +0200)
php4-link-libs.patch
php4.spec

index 32f04efe38ab706e3d12c6925e187d0096e2af25..860f8340d550622369edc1c894d3bf4f702e3621 100644 (file)
  if test "$ac_cv_func_dlopen" = "yes"; then
 --- php.org/ext/ldap/config.m4.org     2006-08-10 14:23:59.583381250 +0000
 +++ php/ext/ldap/config.m4     2006-08-10 14:24:40.013908000 +0000
-@@ -113,8 +113,9 @@
+@@ -113,8 +113,8 @@
    dnl Save original values
    _SAVE_CPPFLAGS=$CPPFLAGS
-   _SAVE_LDFLAGS=$LDFLAGS
+-  _SAVE_LDFLAGS=$LDFLAGS
 -  LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD"
-+  LDFLAGS="$LDFLAGS"
++  _SAVE_LIBS="$LIBS"
    CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
 +  LIBS="$LIBS $LDAP_SHARED_LIBADD"
  
    dnl Check for 3 arg ldap_set_rebind_proc
    AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc,
-@@ -138,4 +139,5 @@
+@@ -138,4 +138,4 @@
    dnl Restore original values
    CPPFLAGS=$_SAVE_CPPFLAGS
-   LDFLAGS=$_SAVE_LDFLAGS
+-  LDFLAGS=$_SAVE_LDFLAGS
 +  LIBS=$_SAVE_LIBS
  fi 
---- php.org/acinclude.m4~      2006-08-20 13:12:40.191078397 +0200
-+++ php/acinclude.m4   2006-08-20 13:14:34.859406479 +0200
-@@ -1607,7 +1607,7 @@
+--- php-4.4.9/acinclude.m4.orig        2020-10-22 22:24:40.164611677 +0200
++++ php-4.4.9/acinclude.m4     2020-10-22 22:25:44.137927068 +0200
+@@ -1621,18 +1621,18 @@
+ dnl Wrapper for AC_CHECK_LIB
+ dnl
+ AC_DEFUN([PHP_CHECK_LIBRARY], [
+-  save_old_LDFLAGS=$LDFLAGS
++  save_old_LIBS=$LIBS
+   ac_stuff="$5"
    
    save_ext_shared=$ext_shared
    ext_shared=yes
 -  PHP_EVAL_LIBLINE([$]ac_stuff, LDFLAGS)
 +  PHP_EVAL_LIBLINE([$]ac_stuff, LIBS)
    AC_CHECK_LIB([$1],[$2],[
-     LDFLAGS=$save_old_LDFLAGS
+-    LDFLAGS=$save_old_LDFLAGS
++    LIBS=$save_old_LIBS
      ext_shared=$save_ext_shared
+     $3
+   ],[
+-    LDFLAGS=$save_old_LDFLAGS
++    LIBS=$save_old_LIBS
+     ext_shared=$save_ext_shared
+     unset ac_cv_lib_$1[]_$2
+     $4
 --- php.org/ext/openssl/config0.m4~    2004-12-30 15:54:35.000000000 +0100
 +++ php/ext/openssl/config0.m4 2006-08-20 13:32:55.412011298 +0200
 @@ -22,6 +22,7 @@
index e268d54db819a0ee0a62f14b386695626ec7976a..5681fd75d274e54b0c6af039c9241ad03eb4664f 100644 (file)
--- a/php4.spec
+++ b/php4.spec
@@ -6,7 +6,6 @@
 # - make additional headers added by mail patch configurable
 # - too many unneccessary libs:
 #  - libkrb5.so.3 is needed by (installed) php4-common-4.4.8-15.i686
-#  - php4-common-4.4.8-15.i686 marks net-snmp-libs-5.4.1.2-1.i686 (cap libnetsnmp.so.15)
 #    php5-common doesn't have such deps
 #  - php4-cli pulls: libltdl
 # - above is caused by openssl linked in statically as openssl links with kerberos
This page took 0.174286 seconds and 4 git commands to generate.