]> git.pld-linux.org Git - packages/samba.git/blobdiff - samba-lib64.patch
- added try-restart
[packages/samba.git] / samba-lib64.patch
index 5c90c6ae2fb30ff528d72c90ef3a28c21af70948..d8a398528c52972f4ac19bd8451e692e8d74513d 100644 (file)
@@ -1,31 +1,46 @@
-diff -Nur samba-3.0.11/source/aclocal.m4 samba-3.0.11.64/source/aclocal.m4
---- samba-3.0.11/source/aclocal.m4     2004-10-25 23:05:11.000000000 +0200
-+++ samba-3.0.11.64/source/aclocal.m4  2005-02-05 11:16:37.674724456 +0100
-@@ -511,7 +511,7 @@
-   fi
+--- samba-3.0.23b.org/source/torture/nsstest.c 2006-04-20 04:29:44.000000000 +0200
++++ samba-3.0.23b/source/torture/nsstest.c     2006-08-09 21:19:38.922291250 +0200
+@@ -21,7 +21,7 @@
+ #include "includes.h"
  
-   AC_REQUIRE([AC_CANONICAL_TARGET])
--  AC_PATH_PROG(PGSQL_CONFIG, pg_config, no, [$PATH:/usr/lib/postgresql/bin])
-+  AC_PATH_PROG(PGSQL_CONFIG, pg_config, no, [$PATH:/usr/lib64/postgresql/bin])
-   AC_MSG_CHECKING(for PGSQL)
-   no_pgsql=""
-   if test "$PGSQL_CONFIG" = "no" ; then
-@@ -541,12 +541,12 @@
+-static const char *so_path = "/lib/libnss_winbind.so";
++static const char *so_path = "/lib64/libnss_winbind.so";
+ static const char *nss_name = "winbind";
+ static int nss_errno;
+ static NSS_STATUS last_error;
+--- samba-3.0.25a/source/aclocal.m4.orig       2007-03-01 05:55:17.000000000 +0100
++++ samba-3.0.25a/source/aclocal.m4    2007-06-14 18:45:50.703496205 +0200
+@@ -268,20 +268,20 @@
    $1=[$]ac_new_flags
  ])
-     
--dnl Removes -L/usr/lib/? from given variable
-+dnl Removes -L/usr/lib64/? from given variable
+-dnl Removes '-L/usr/lib[/]', '-Wl,-rpath,/usr/lib[/]'
+-dnl and '-Wl,-rpath -Wl,/usr/lib[/]' from given variable
++dnl Removes '-L/usr/lib64[/]', '-Wl,-rpath,/usr/lib64[/]'
++dnl and '-Wl,-rpath -Wl,/usr/lib64[/]' from given variable
  AC_DEFUN(LIB_REMOVE_USR_LIB,[
    ac_new_flags=""
+   l=""
    for i in [$]$1; do
-     case [$]i in
--    -L/usr/lib|-L/usr/lib/) ;;
-+    -L/usr/lib64|-L/usr/lib64/) ;;
-     *) ac_new_flags="[$]ac_new_flags [$]i" ;;
-     esac
-   done
-@@ -677,9 +677,9 @@
+     case [$]l[$]i in
+-    -L/usr/lib) ;;
+-    -L/usr/lib/) ;;
+-    -Wl,-rpath,/usr/lib) ;;
+-    -Wl,-rpath,/usr/lib/) ;;
++    -L/usr/lib64) ;;
++    -L/usr/lib64/) ;;
++    -Wl,-rpath,/usr/lib64) ;;
++    -Wl,-rpath,/usr/lib64/) ;;
+     -Wl,-rpath) l=[$]i;;
+-    -Wl,-rpath-Wl,/usr/lib) l="";;
+-    -Wl,-rpath-Wl,/usr/lib/) l="";;
++    -Wl,-rpath-Wl,/usr/lib64) l="";;
++    -Wl,-rpath-Wl,/usr/lib64/) l="";;
+     *)
+       s=" "
+         if test x"[$]ac_new_flags" = x""; then
+@@ -429,9 +429,9 @@
  ])
  
  dnl LIB_ADD_DIR(LDFLAGS, $LIBDIR)
@@ -37,37 +52,27 @@ diff -Nur samba-3.0.11/source/aclocal.m4 samba-3.0.11.64/source/aclocal.m4
      $1="$$1 -L$2"
  fi
  ])
-diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
---- samba-3.0.11/source/configure.in   2005-02-05 11:20:30.587316360 +0100
-+++ samba-3.0.11.64/source/configure.in        2005-02-05 11:16:37.708719288 +0100
-@@ -27,7 +27,7 @@
- mandir="\${prefix}/man"
+--- samba-3.0.25a/source/configure.in.orig     2007-05-23 17:29:20.000000000 +0200
++++ samba-3.0.25a/source/configure.in  2007-06-14 18:49:28.307646759 +0200
+@@ -31,7 +31,7 @@
+ test "${mandir}" || mandir="\${prefix}/man"
  logfilebase="\${VARDIR}"
  privatedir="\${prefix}/private"
--libdir="\${prefix}/lib"
-+libdir="\${prefix}/lib64"
+-test "${libdir}" || libdir="\${prefix}/lib"
++test "${libdir}" || libdir="\${prefix}/lib64"
+ pammodulesdir="\${LIBDIR}/security"
  configdir="\${LIBDIR}"
  swatdir="\${prefix}/swat"
-@@ -40,7 +40,7 @@
+@@ -45,7 +35,7 @@
      mandir="\${prefix}/share/man"
      logfilebase="\${VARDIR}/log/samba"
      privatedir="\${CONFIGDIR}/private"
 -    libdir="\${prefix}/lib/samba"
 +    libdir="\${prefix}/lib64/samba"
-     configdir="${sysconfdir}/samba"
+     configdir="\${sysconfdir}/samba"
      swatdir="\${DATADIR}/samba/swat"
      ;;
-@@ -629,7 +629,7 @@
- # Note: iconv does that explicitly below, but other packages
- # don't.
-       CPPFLAGS="$CPPFLAGS -I/sw/include"
--      LDFLAGS="$LDFLAGS -L/sw/lib"
-+      LDFLAGS="$LDFLAGS -L/sw/lib64"
- # If we have dlsym_prepend_underscore (from Fink's dlcompat),
- # use that instead of plain dlsym.
-@@ -914,7 +914,7 @@
+@@ -1132,7 +1132,7 @@
      _cppflags=${CPPFLAGS}
  
      # Add additional search path
@@ -76,7 +81,7 @@ diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
      CPPFLAGS="-I$with_readline/include $CPPFLAGS"
  
      AC_CHECK_HEADERS(readline.h history.h readline/readline.h)
-@@ -925,7 +925,7 @@
+@@ -1143,7 +1143,7 @@
         AC_CHECK_LIB(${termlib}, tgetent, [TERMLIBS="-l${termlib}"; break])
        done
        AC_CHECK_LIB(readline, rl_callback_handler_install,
@@ -85,7 +90,7 @@ diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
         TERMCPPFLAGS="-I$with_readline/include"
         CPPFLAGS="-I$with_readline/include $CPPFLAGS"
         TERMLIBS="-lreadline $TERMLIBS"
-@@ -1725,7 +1725,7 @@
+@@ -2337,7 +2337,7 @@
  ICONV_LOCATION=standard
  LOOK_DIRS="/usr /usr/local /sw /opt"
  AC_ARG_WITH(libiconv,
@@ -94,7 +99,16 @@ diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
  [
    if test "$withval" = "no" ; then
      AC_MSG_ERROR([argument to --with-libiconv must be a directory])
-@@ -2652,7 +2652,7 @@
+@@ -2366,7 +2366,7 @@
+ dnl library directory is there and check the ABI directory first (which
+ dnl should be harmless on other systems.
+ dnl For IA64 HPUX systems, the libs are located in lib/hpux32 instead of lib.
+-    for l in "lib32" "lib" "lib/hpux32"; do
++    for l in "lib32" "lib64" "lib/hpux32"; do
+         if test -d "$i/$l" ; then
+                 LDFLAGS="$save_LDFLAGS -L$i/$l"
+         LIBS=
+@@ -3370,7 +3370,7 @@
          AC_MSG_RESULT($withval)
          KRB5_CFLAGS="-I$withval/include"
          KRB5_CPPFLAGS="-I$withval/include"
@@ -103,7 +117,7 @@ diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
          FOUND_KRB5=yes
        if test -x "$withval/bin/krb5-config"; then
                KRB5CONFIG=$withval/bin/krb5-config
-@@ -2689,10 +2689,10 @@
+@@ -3407,10 +3407,10 @@
      # see if this box has the SuSE location for the heimdal krb implementation
      AC_MSG_CHECKING(for /usr/include/heimdal)
      if test -d /usr/include/heimdal; then
@@ -116,24 +130,12 @@ diff -Nur samba-3.0.11/source/configure.in samba-3.0.11.64/source/configure.in
            AC_MSG_RESULT(yes)
        else
            KRB5_CFLAGS="-I/usr/include/heimdal"
-@@ -4612,7 +4612,7 @@
- builddir=`pwd`
- AC_SUBST(builddir)
+@@ -6175,7 +6175,7 @@
+ fi
  
 -dnl Remove -L/usr/lib/? from LDFLAGS and LIBS
 +dnl Remove -L/usr/lib64/? from LDFLAGS and LIBS
  LIB_REMOVE_USR_LIB(LDFLAGS)
  LIB_REMOVE_USR_LIB(LIBS)
-diff -Nur samba-3.0.11/source/torture/nsstest.c samba-3.0.11.64/source/torture/nsstest.c
---- samba-3.0.11/source/torture/nsstest.c      2004-10-25 23:05:10.000000000 +0200
-+++ samba-3.0.11.64/source/torture/nsstest.c   2005-02-05 11:16:37.690722024 +0100
-@@ -21,7 +21,7 @@
- #include "includes.h"
--static const char *so_path = "/lib/libnss_winbind.so";
-+static const char *so_path = "/lib64/libnss_winbind.so";
- static const char *nss_name = "winbind";
- static int nss_errno;
- static NSS_STATUS last_error;
+ LIB_REMOVE_USR_LIB(KRB5_LIBS)
This page took 0.081886 seconds and 4 git commands to generate.