summaryrefslogtreecommitdiff
path: root/gdbm
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2011-02-02 11:28:43 +0100
committerJuergen Daubert <jue@jue.li>2011-02-02 11:28:43 +0100
commit18f0a8c588f48f4e2f7a9c0a17f6c1bddd5dd609 (patch)
tree620658d383394363ad8c24061442fcef7218fdbc /gdbm
parent9a874962e4fe964972ad386d9dc2ae17f7552fff (diff)
downloadcore-18f0a8c588f48f4e2f7a9c0a17f6c1bddd5dd609.tar.gz
core-18f0a8c588f48f4e2f7a9c0a17f6c1bddd5dd609.tar.xz
gdbm: fix build in case gdbm is not installed
Diffstat (limited to 'gdbm')
-rw-r--r--gdbm/.md5sum2
-rw-r--r--gdbm/Pkgfile4
-rw-r--r--gdbm/gdbm-1.8.3-compat-linking.patch2
3 files changed, 5 insertions, 3 deletions
diff --git a/gdbm/.md5sum b/gdbm/.md5sum
index d5465f46..b04faa52 100644
--- a/gdbm/.md5sum
+++ b/gdbm/.md5sum
@@ -1,2 +1,2 @@
-13a8dfda02d8f0d1db1a982cd9950e7f gdbm-1.8.3-compat-linking.patch
+b29fe00543068ef12226cec83457716a gdbm-1.8.3-compat-linking.patch
1d1b1d5c0245b1c00aff92da751e9aa1 gdbm-1.8.3.tar.gz
diff --git a/gdbm/Pkgfile b/gdbm/Pkgfile
index e510d80b..4be33bb8 100644
--- a/gdbm/Pkgfile
+++ b/gdbm/Pkgfile
@@ -4,7 +4,7 @@
name=gdbm
version=1.8.3
-release=2
+release=3
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
$name-$version-compat-linking.patch)
@@ -20,6 +20,8 @@ build() {
make -j1 INSTALL_ROOT=$PKG install install-compat
ln -sf gdbm/gdbm.h $PKG/usr/include/gdbm.h
+ sed -i "/dependency_libs/s|=.*$|='/usr/lib/libgdbm.la'|" $PKG/usr/lib/libgdbm_compat.la
+
rm -r $PKG/usr/info
chown -R root.root $PKG
}
diff --git a/gdbm/gdbm-1.8.3-compat-linking.patch b/gdbm/gdbm-1.8.3-compat-linking.patch
index cebcf4e9..189717f0 100644
--- a/gdbm/gdbm-1.8.3-compat-linking.patch
+++ b/gdbm/gdbm-1.8.3-compat-linking.patch
@@ -13,7 +13,7 @@ http://bugs.gentoo.org/165263
rm -f libgdbm_compat.la
$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
- -version-info $(SHLIB_VER) $(C_LOBJS)
-+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
++ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la -L./.libs
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
rm -f gdbm.h

Generated by cgit