Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=e3c7c740007bb101a1585980b07620b56cdbe37a

commit e3c7c740007bb101a1585980b07620b56cdbe37a
Author: bouleetbil <[email protected]>
Date:   Tue Jan 25 15:51:53 2011 +0100

libxml2-2.7.8-2-x86_64
*Fix the shared lib versionning breakage of 2.7.8
*big thanks to fedora guys !!!

diff --git a/source/base/libxml2/FrugalBuild b/source/base/libxml2/FrugalBuild
index 00d7f88..a12a6e3 100644
--- a/source/base/libxml2/FrugalBuild
+++ b/source/base/libxml2/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=libxml2
pkgver=2.7.8
-pkgrel=1
+pkgrel=2
pkgdesc="XML parsing library"
url="http://www.xmlsoft.org/";
groups=('base' 'chroot-core')
@@ -13,7 +13,7 @@ depends=('zlib>=1.2.3-6')
makedepends=('python>=2.7' 'readline>=5.2-4')
#up2date="lynx -dump 'ftp://xmlsoft.org/libxml2/'|grep -m1 
'LATEST_LIBXML2_IS_'|sed 's/.*xml2-\(.*\).t.*/\1/'"
up2date="Flasttar ftp://xmlsoft.org/libxml2/";
-source=(ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz)
+source=(ftp://xmlsoft.org/$pkgname/$pkgname-$pkgver.tar.gz versioning.diff)

subpkgs=("$pkgname-docs")
subdescs=("Documentation for $pkgname")
@@ -23,13 +23,18 @@ subarchs=('i686 x86_64 ppc')

build() {
Fcd
+       Fpatchall
+       Fautoreconf
Fsed "tail -1" "tail -n 1" configure
Fsed "head -1" "head -n 1" configure
-       Fbuild --with-threads --with-debug --with-readline --with-zlib
+       Fmake --with-threads --with-debug --with-readline --with-zlib
+       Fmakeinstall
Ffilerel libxml-2.0.pc /usr/lib/pkgconfig/libxml-2.0.pc
Fsplit $pkgname-docs usr/share/gtk-doc
Fsplit $pkgname-docs usr/share/doc
}

-sha1sums=('859dd535edbb851cc15b64740ee06551a7a17d40')
+sha1sums=('859dd535edbb851cc15b64740ee06551a7a17d40' \
+          'efddf417eea0586ffdef2f063aa55a135f47328f')
+
# optimization OK
diff --git a/source/base/libxml2/versioning.diff 
b/source/base/libxml2/versioning.diff
new file mode 100644
index 0000000..fd7a683
--- /dev/null
+++ b/source/base/libxml2/versioning.diff
@@ -0,0 +1,58 @@
+diff --git a/configure.in b/configure.in
+index 59d0629..39b66dd 100644
+--- a/configure.in
++++ b/configure.in
+@@ -75,6 +75,8 @@ dnl if the system support linker version scripts for symbol 
versioning
+ dnl then add it
+ dnl
+ VERSION_SCRIPT_FLAGS=
++echo host $host
++echo lt_cv_prog_gnu_ld $lt_cv_prog_gnu_ld
+ # lt_cv_prog_gnu_ld is from libtool 2.+
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+   VERSION_SCRIPT_FLAGS=-Wl,--version-script=
+@@ -82,9 +84,12 @@ else
+   case $host in
+   *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
+   esac
++  case $host in
++  *-*-linux*) VERSION_SCRIPT_FLAGS="-Wl,--version-script=";;
++  esac
+ fi
+ AC_SUBST(VERSION_SCRIPT_FLAGS)
+-AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -z "$VERSION_SCRIPT_FLAGS"])
++AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])
+
+ dnl
+ dnl We process the AC_ARG_WITH first so that later we can modify
+diff --git a/configure.in b/configure.in
+*** a/configure
+--- b/configure
+*************** CC="$lt_save_CC"
+*** 11405,11410 ****
+--- 11405,11412 ----
+
+
+  VERSION_SCRIPT_FLAGS=
++ echo host $host
++ echo lt_cv_prog_gnu_ld $lt_cv_prog_gnu_ld
+  # lt_cv_prog_gnu_ld is from libtool 2.+
+  if test "$lt_cv_prog_gnu_ld" = yes; then
+    VERSION_SCRIPT_FLAGS=-Wl,--version-script=
+*************** else
+*** 11414,11420 ****
+    esac
+  fi
+
+!  if test -z "$VERSION_SCRIPT_FLAGS"; then
+    USE_VERSION_SCRIPT_TRUE=
+    USE_VERSION_SCRIPT_FALSE='#'
+  else
+--- 11416,11422 ----
+    esac
+  fi
+
+!  if test -n "$VERSION_SCRIPT_FLAGS"; then
+    USE_VERSION_SCRIPT_TRUE=
+    USE_VERSION_SCRIPT_FALSE='#'
+  else
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to