Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
db-4.8: add compat libs
our berkeley db is so old, we cannot even find the source packages anymore.
This bee installs v4.8.30 compat libs to replace the installed v.4.8.26 libs.
  • Loading branch information
wwwutz committed Jan 23, 2020
1 parent bc32f1f commit 3cbaeea
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions db_compat-4.8.be0
@@ -0,0 +1,69 @@
#!/usr/bin/env beesh

# BEE_VERSION db_compat-4.8.30-0

# hardwired compat version
# 4.8.26 source not found anymore
# pulled 4.8.30 from
# https://ftp6.gwdg.de/pub/linux/slackware/slackware-14.0/source/l/db48/db-4.8.30.tar.xz
SRCURL[0]="/src/mariux/md5repo/de18e52d5ec52489621cbab083858484/db-4.8.30.tar.xz"

# PATCHURL+=()

#build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

mee_patch_post() {
# fix error on install docs
sed -i '/^library_install:/ s/install_docs//' ${S}/dist/Makefile.in
}

mee_configure() {
# cd build_unix
CFLAGS="-O2 -fPIC" \
CXXFLAGS=${CFLAGS} \
${S}/dist/configure \
--prefix=${PREFIX} \
--enable-compat185 \
--enable-cxx \
--disable-test \
--enable-shared "${@}"
}

mee_build() {
make ${BEE_MAKEFLAGS} ${DEFCONFIG} "$@"
}

mee_install() {
make ${BEE_MAKEFLAGS} install ${DEFCONFIG} DESTDIR=${D} "$@"
}

mee_install_post() {
rm -vrf ${D}/usr/include
rm -vrf ${D}/usr/bin
rm -vf ${D}/usr/lib/libdb.a
rm -vf ${D}/usr/lib/libdb-4.8.a
rm -vf ${D}/usr/lib/libdb_cxx.a
rm -vf ${D}/usr/lib/libdb_cxx-4.8.a
rm -vf ${D}/usr/lib/libdb.so
rm -vf ${D}/usr/lib/libdb_cxx.so
}

if [ -z "${DEFCONFIG}" ] ; then
for var in prefix eprefix bindir sbindir libexecdir sysconfdir \
sharedstatedir localstatedir libdir includedir \
datarootdir datadir infodir localedir mandir docdir ; do
DEFCONFIG="${DEFCONFIG} \${${var^^}:+${var^^}=\${${var^^}}}"
done
fi

eval DEFCONFIG=\"${DEFCONFIG}\"

0 comments on commit 3cbaeea

Please sign in to comment.