diff options
author | Akinori Hattori <hattya@gentoo.org> | 2010-11-25 09:51:32 +0000 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2010-11-25 09:51:32 +0000 |
commit | b2b85b82488a4fbb630d93fa40a196661120b892 (patch) | |
tree | 57b29ba9fc50e99882431c944adc4190ade93577 /dev-db | |
parent | Version bump, fixes buffer overflow vulnerability, bug #346191, thank Tim Sam... (diff) | |
download | gentoo-2-b2b85b82488a4fbb630d93fa40a196661120b892.tar.gz gentoo-2-b2b85b82488a4fbb630d93fa40a196661120b892.tar.bz2 gentoo-2-b2b85b82488a4fbb630d93fa40a196661120b892.zip |
new upstream release. fixes bug #331553.
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/qdbm/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/qdbm/files/qdbm-perl-runpath-vendor.diff | 12 | ||||
-rw-r--r-- | dev-db/qdbm/qdbm-1.8.78.ebuild | 130 |
3 files changed, 141 insertions, 9 deletions
diff --git a/dev-db/qdbm/ChangeLog b/dev-db/qdbm/ChangeLog index ea9ef022bee8..0df33cff2503 100644 --- a/dev-db/qdbm/ChangeLog +++ b/dev-db/qdbm/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/qdbm # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.130 2010/07/31 10:28:55 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.131 2010/11/25 09:51:32 hattya Exp $ + +*qdbm-1.8.78 (25 Nov 2010) + + 25 Nov 2010; Akinori Hattori <hattya@gentoo.org> +qdbm-1.8.78.ebuild, + files/qdbm-perl-runpath-vendor.diff: + new upstream release. fixes bug #331553. 31 Jul 2010; Akinori Hattori <hattya@gentoo.org> -files/qdbm-1.8.75-runpath.diff, qdbm-1.8.77.ebuild, diff --git a/dev-db/qdbm/files/qdbm-perl-runpath-vendor.diff b/dev-db/qdbm/files/qdbm-perl-runpath-vendor.diff index e5395ec4719a..d46f9b3f236e 100644 --- a/dev-db/qdbm/files/qdbm-perl-runpath-vendor.diff +++ b/dev-db/qdbm/files/qdbm-perl-runpath-vendor.diff @@ -1,26 +1,22 @@ diff -ur qdbm-1.8.62.orig/perl/Makefile.in qdbm-1.8.62/perl/Makefile.in --- qdbm-1.8.62.orig/perl/Makefile.in +++ qdbm-1.8.62/perl/Makefile.in -@@ -42,16 +42,16 @@ +@@ -42,15 +42,15 @@ all : cd depot && [ -f Makefile ] || \ $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \ - LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \ -- $(RUNENV) make + LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \ -+ $(RUNENV) make LD_RUN_PATH= + $(RUNENV) make cd curia && [ -f Makefile ] || \ $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \ - LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \ -- $(RUNENV) make + LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \ -+ $(RUNENV) make LD_RUN_PATH= + $(RUNENV) make cd villa && [ -f Makefile ] || \ $(RUNENV) perl Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \ - LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; \ -- $(RUNENV) make + LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" INSTALLDIRS=vendor ; \ -+ $(RUNENV) make LD_RUN_PATH= + $(RUNENV) make @printf '\n' @printf '#================================================================\n' - @printf '# Ready to install.\n' diff --git a/dev-db/qdbm/qdbm-1.8.78.ebuild b/dev-db/qdbm/qdbm-1.8.78.ebuild new file mode 100644 index 000000000000..1a519c3d9f3a --- /dev/null +++ b/dev-db/qdbm/qdbm-1.8.78.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.78.ebuild,v 1.1 2010/11/25 09:51:32 hattya Exp $ + +EAPI="3" + +inherit eutils java-pkg-opt-2 multilib + +IUSE="cxx debug java perl ruby zlib" + +DESCRIPTION="Quick Database Manager" +HOMEPAGE="http://fallabs.com/qdbm/" +SRC_URI="http://fallabs.com/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +SLOT="0" + +RDEPEND="java? ( >=virtual/jre-1.4 ) + perl? ( dev-lang/perl ) + ruby? ( dev-lang/ruby:1.8 ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + java? ( >=virtual/jdk-1.4 )" + +src_prepare() { + + epatch "${FILESDIR}"/${PN}-runpath.diff + epatch "${FILESDIR}"/${PN}-perl-runpath-vendor.diff + + # apply flags + sed -i "/^CFLAGS/s/$/ ${CFLAGS}/" Makefile.in || die + sed -i "/^CXXFLAGS/s/$/ ${CXXFLAGS}/" plus/Makefile.in || die + sed -i "/^JAVACFLAGS/s/$/ ${JAVACFLAGS}/" java/Makefile.in || die + + # replace make -> $(MAKE) + sed -i "s/make\( \|$\)/\$(MAKE)\1/g" \ + Makefile.in \ + {cgi,java,perl,plus,ruby}/Makefile.in \ + || die + +} + +qdbm_api_for() { + + local u + + for u in cxx java perl ruby; do + if ! use "${u}"; then + continue + fi + + if [ "${u}" = "cxx" ]; then + u="plus" + fi + + cd "${u}" + case "${EBUILD_PHASE}" in + configure) + econf || die + ;; + compile) + emake || die + ;; + test) + emake -j1 check || die + ;; + install) + emake \ + DESTDIR="${ED}" \ + MYDATADIR=/usr/share/doc/${P}/html \ + install \ + || die + esac + cd - + done + +} + +src_configure() { + + econf \ + $(use_enable debug) \ + $(use_enable zlib) \ + --enable-pthread \ + --enable-iconv \ + || die + qdbm_api_for # configure + +} + +src_compile() { + + emake || die + qdbm_api_for # compile + +} + +src_test() { + + emake -j1 check || die + qdbm_api_for # test + +} + +src_install() { + + emake DESTDIR="${ED}" install || die + + dodoc ChangeLog NEWS README THANKS + dohtml -r doc/ + + rm -rf "${ED}"/usr/share/${PN} + + qdbm_api_for # install + + if use java; then + java-pkg_dojar "${ED}"/usr/$(get_libdir)/*.jar + rm -f "${ED}"/usr/$(get_libdir)/*.jar + + elif use perl; then + rm -f "${ED}"/$(perl -V:installarchlib | cut -d\' -f2)/*.pod + find "${ED}" -name .packlist -print0 | xargs -0 rm -f + + fi + + rm -f "${D}"/usr/bin/*test + rm -f "${D}"/usr/share/man/man1/*test.1* + +} |