]> git.pld-linux.org Git - packages/samba.git/blobdiff - samba-lib64.patch
- added try-restart
[packages/samba.git] / samba-lib64.patch
index de39e5e97b3cef2af9282faed580d407876877c3..d8a398528c52972f4ac19bd8451e692e8d74513d 100644 (file)
@@ -1,22 +1,46 @@
-diff -urN samba-3.0.4.org/source/aclocal.m4 samba-3.0.4/source/aclocal.m4
---- samba-3.0.4.org/source/aclocal.m4  2004-05-13 02:29:15.224209664 +0200
-+++ samba-3.0.4/source/aclocal.m4      2004-05-13 02:29:22.478106904 +0200
-@@ -541,12 +541,12 @@
+--- 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"
+-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)
@@ -28,43 +52,27 @@ diff -urN samba-3.0.4.org/source/aclocal.m4 samba-3.0.4/source/aclocal.m4
      $1="$$1 -L$2"
  fi
  ])
-diff -urN samba-3.0.4.org/source/configure.in samba-3.0.4/source/configure.in
---- samba-3.0.4.org/source/configure.in        2004-05-13 02:29:15.234208144 +0200
-+++ samba-3.0.4/source/configure.in    2004-05-13 02:32:02.287812136 +0200
-@@ -19,7 +19,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"
-@@ -27,12 +27,12 @@
- [  --with-fhs              Use FHS-compliant paths (default=no)],
- [ case "$withval" in
-   yes)
--    lockdir="\${VARDIR}/lib/samba"
-+    lockdir="\${VARDIR}/lib64/samba"
-     piddir="\${VARDIR}/run"
+@@ -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"
      ;;
-@@ -587,7 +587,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.
-@@ -868,7 +868,7 @@
+@@ -1132,7 +1132,7 @@
      _cppflags=${CPPFLAGS}
  
      # Add additional search path
@@ -73,7 +81,7 @@ diff -urN samba-3.0.4.org/source/configure.in samba-3.0.4/source/configure.in
      CPPFLAGS="-I$with_readline/include $CPPFLAGS"
  
      AC_CHECK_HEADERS(readline.h history.h readline/readline.h)
-@@ -879,7 +879,7 @@
+@@ -1143,7 +1143,7 @@
         AC_CHECK_LIB(${termlib}, tgetent, [TERMLIBS="-l${termlib}"; break])
        done
        AC_CHECK_LIB(readline, rl_callback_handler_install,
@@ -82,7 +90,7 @@ diff -urN samba-3.0.4.org/source/configure.in samba-3.0.4/source/configure.in
         TERMCPPFLAGS="-I$with_readline/include"
         CPPFLAGS="-I$with_readline/include $CPPFLAGS"
         TERMLIBS="-lreadline $TERMLIBS"
-@@ -1658,7 +1658,7 @@
+@@ -2337,7 +2337,7 @@
  ICONV_LOCATION=standard
  LOOK_DIRS="/usr /usr/local /sw /opt"
  AC_ARG_WITH(libiconv,
@@ -91,25 +99,25 @@ diff -urN samba-3.0.4.org/source/configure.in samba-3.0.4/source/configure.in
  [
    if test "$withval" = "no" ; then
      AC_MSG_ERROR([argument to --with-libiconv must be a directory])
-@@ -1708,7 +1708,7 @@
-         # check for iconv in libc
-         ic_save_LIBS="$LIBS"
-         if test x"$ICONV_PATH_SPEC" = "xyes" ; then
--           LIBS="$LIBS -L$ICONV_LOCATION/lib"
-+           LIBS="$LIBS -L$ICONV_LOCATION/lib64"
-         fi
-         if test x"$jm_cv_lib_iconv" != x; then
-            LIBS="$LIBS -l$jm_cv_lib_iconv"
-@@ -2568,7 +2568,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"
 -        KRB5_LDFLAGS="-L$withval/lib"
 +        KRB5_LDFLAGS="-L$withval/lib64"
          FOUND_KRB5=yes
-         ;;
-       esac ],
-@@ -2581,10 +2581,10 @@
+       if test -x "$withval/bin/krb5-config"; then
+               KRB5CONFIG=$withval/bin/krb5-config
+@@ -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
@@ -122,40 +130,12 @@ diff -urN samba-3.0.4.org/source/configure.in samba-3.0.4/source/configure.in
            AC_MSG_RESULT(yes)
        else
            KRB5_CFLAGS="-I/usr/include/heimdal"
-@@ -4372,7 +4372,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 -urN samba-3.0.4.org/source/Makefile.in samba-3.0.4/source/Makefile.in
---- samba-3.0.4.org/source/Makefile.in 2004-05-13 02:29:15.223209816 +0200
-+++ samba-3.0.4/source/Makefile.in     2004-05-13 02:29:22.474107512 +0200
-@@ -1278,9 +1278,9 @@
-       @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
- installclientlib: installdirs libsmbclient
--      @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib
--      -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)${prefix}/lib
--      -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)${prefix}/lib
-+      @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib64
-+      -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)${prefix}/lib64
-+      -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)${prefix}/lib64
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/include
-       -$(INSTALLCMD) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include
-diff -urN samba-3.0.4.org/source/torture/nsstest.c samba-3.0.4/source/torture/nsstest.c
---- samba-3.0.4.org/source/torture/nsstest.c   2004-05-13 02:29:15.062234288 +0200
-+++ samba-3.0.4/source/torture/nsstest.c       2004-05-13 02:29:22.503103104 +0200
-@@ -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.088178 seconds and 4 git commands to generate.