Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251063 - dev-db/libzdb-2.10.5 (New package)
Summary: dev-db/libzdb-2.10.5 (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks: 404355
  Show dependency tree
 
Reported: 2008-12-15 22:06 UTC by Richard Westwell
Modified: 2012-09-07 12:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libzdb-2.2.ebuild (libzdb-2.2.ebuild,1.11 KB, text/plain)
2008-12-15 22:07 UTC, Richard Westwell
Details
libzdb-2.3.ebuild (libzdb-2.3.ebuild,1.11 KB, text/plain)
2008-12-15 22:07 UTC, Richard Westwell
Details
files/libzdb-mysql-ac.patch (libzdb-mysql-ac.patch,1.22 KB, patch)
2008-12-15 22:08 UTC, Richard Westwell
Details | Diff
libzdb-2.10.3.ebuild (libzdb-2.10.3.ebuild,1.78 KB, text/plain)
2012-05-28 06:19 UTC, Johan Bergström
Details
libzdb-2.10.5.ebuild (libzdb-2.10.5.ebuild,2.05 KB, text/plain)
2012-09-06 08:21 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Westwell 2008-12-15 22:06:15 UTC
Since the next stable branch of dbmail may just be around the corner (the 2.4 series)
here's a couple of ebuilds for libzdb
you'll need libzdb-2.2 for use with dbmail 2.3.4 or above
(libdb-2.3 doesn't seem to be compatible with dbmail 2.3.4, however it's the latest version, and the ebuild is just the same
Comment 1 Richard Westwell 2008-12-15 22:07:07 UTC
Created attachment 175365 [details]
libzdb-2.2.ebuild
Comment 2 Richard Westwell 2008-12-15 22:07:40 UTC
Created attachment 175367 [details]
libzdb-2.3.ebuild
Comment 3 Richard Westwell 2008-12-15 22:08:18 UTC
Created attachment 175369 [details, diff]
files/libzdb-mysql-ac.patch
Comment 4 Thomas Raschbacher gentoo-dev 2009-05-28 10:54:20 UTC
I'll add that after trying it out.
Comment 5 svrmarty 2009-08-16 11:46:49 UTC
any news on this ?
Comment 6 Thomas Raschbacher gentoo-dev 2010-03-28 12:34:47 UTC
yeah i was busy with other stuff so devel version is one of the things at the bottom of my list .. sorry for that gotta try to catch up on the bugs on stable first - and a few other things on my bugzie
Comment 7 Thomas Raschbacher gentoo-dev 2010-04-01 09:13:36 UTC
I'll stick this in my overlay first as i did also remove dbmail 2.3 from main portage tree for now.
Comment 8 Johan Bergström 2012-05-28 06:19:06 UTC
Created attachment 313355 [details]
libzdb-2.10.3.ebuild

Guess what. I ended up using this in a recent project. So, without further ado. Here's an up to date version of the ebuild adapted from a version that used to live here: http://code.google.com/p/slepnoga/

The configure states that args to --with-mysql et al is optional... Well. Its not.

Please consider for inclusion (as well as adding me as proxy)
Comment 9 Johan Bergström 2012-05-28 10:12:57 UTC
Updating ticket info, the connection to dbmail seems long overdue. Also CC:ing proxy to see if they're interested in co-maintaining this with me. I'm a good boy and keep my packages fresh and clean ^_^
Comment 10 Thomas Raschbacher gentoo-dev 2012-06-10 19:15:54 UTC
I just wrote an ebuild for this myself as I had lost this bug .. O.o ..

they are pretty similar ;) I was wondering though as to why you depend on sqlite-unlock by default. sqlite-unlock is optional, so why depend on it by default? 

I will upload a slightly modified version to my overlay in a bit
Comment 11 Thomas Raschbacher gentoo-dev 2012-06-10 19:19:32 UTC
also you have

if use postgres; then
		myconf=" --with-postgresql=${EPREFIX}/usr/bin/pg_config"
	else
		myconf=" --without-postgresql"
	fi

and then

		$(use_with postgres postgresql) \

therefore adding that parameter twice
Comment 12 Thomas Raschbacher gentoo-dev 2012-06-10 20:00:39 UTC
oh and you always overwrote the contents of myconf ;)

and one thing you might want to look at too for future ebuilds:

http://devmanual.gentoo.org/general-concepts/dependencies/index.html#implicit-system-dependency

anyway made those + a few other small changes. you can see them in my dev-overlay
Comment 13 Thomas Raschbacher gentoo-dev 2012-06-10 20:08:49 UTC
I forgot.
you can add my dev-overlay with "layman -a lordvan"

or look at the "changed ebuild here:
http://git.overlays.gentoo.org/gitweb/?p=dev/lordvan.git;a=tree;f=dev-db/libzdb;h=7d9a7a662c2745ce2d4cf01f2c92ca7a280bd6e0;hb=4747cad018329ec47fec634149fb96255c70414b
Comment 14 Johan Bergström 2012-07-12 22:48:40 UTC
@Thomas: Thanks for the updates to the ebuild. I'll use your overlay but would very much like to see this in gentoo-x86 at some point :-)

Cheers,
Johan
Comment 15 Johan Bergström 2012-07-13 04:45:49 UTC
I can't seem to get the sqlite backend running with your ebuild (works with mine). Just emailed you about it.
Comment 16 Johan Bergström 2012-07-23 04:19:39 UTC
So, I figured it out. It's basically a bug in the upstream auto* rig. If using --with-sqlite, it checks for a static library (which we don't have). That's why it wasn't triggering on my version, but was for yours.

Here's a patch that fixes it:

--- configure.ac	2012-07-14 07:14:19.000000000 +1000
+++ ../configure.ac	2012-07-23 14:17:38.702411605 +1000
@@ -298,12 +298,11 @@
                 CPPFLAGS="-I$with_sqlite/include $CPPFLAGS"
                 AC_CHECK_HEADERS([sqlite3.h], [
                         sqlite="yes"
-                        if test -r "$with_sqlite/lib/libsqlite3.a"; then
+                        AC_CHECK_LIB(sqlite3, main,[
+
                                 DBCPPFLAGS="$DBCPPFLAGS -I$with_sqlite/include"
                                 DBLDFLAGS="$DBLDFLAGS -L$with_sqlite/lib/ -lsqlite3"
-                        else
-                                sqlite="no"
-                        fi
+                        ],[sqlite="no"])
                 ], [sqlite="no"])
                 LDFLAGS=$svd_LDFLAGS
                 CPPFLAGS=$svd_CPPFLAGS

I've also sent this upstream.
Comment 17 Johan Bergström 2012-07-25 04:57:54 UTC
Fixed upstream: http://code.google.com/p/libzdb/source/detail?r=501
Comment 18 Ben de Groot (RETIRED) gentoo-dev 2012-07-25 06:16:24 UTC
(In reply to comment #9)
> CC:ing proxy to see if they're interested in co-maintaining this with me.
> I'm a good boy and keep my packages fresh and clean ^_^

Please point me to the latest up-to-date ebuild for this, and I will commit it, with you as maintainer by proxy.
Comment 19 Thomas Raschbacher gentoo-dev 2012-09-05 19:17:44 UTC
Johan, I just did notice your last comments on here when I wanted to just close the bug after commiting the ebuild to the tree.

I added the patch for now. do you know if they plan to release a patched version soon? (2.10.5 seems to have been before this patch according to the release notes
Comment 20 Thomas Raschbacher gentoo-dev 2012-09-06 06:38:09 UTC
@Johan: I just searched my spam mail folder and there was your mail. sorry for not noticing sooner.

Could you test the ebuild in the tree please? (Since I never had the error you had on my box anyway - maybe some old static lib ;))
I would like to commit dbmail 3.0.2 to the tree soon, but I'd prefer if you tested that the patch works for you too (it compiles fine here)
Comment 21 Johan Bergström 2012-09-06 08:21:33 UTC
Created attachment 323048 [details]
libzdb-2.10.5.ebuild

Hey,
there's no need for patches. All of them was applied upstream. 

Attaching ebuild for the latest version. Changes from lordvans overlay:
 - disable tests since they're broken upstream. I will send a patch shortly
 - dep on virtual/pkgconfig over a specific one

@yngwin: sorry for missing your comment :(
Comment 22 Thomas Raschbacher gentoo-dev 2012-09-06 11:45:08 UTC
ah ok good to know I will commiit .5 later when I'm at my dev box again.

btw about the tests. were they already broken on .3 ? I never had any compile errors myself.

Also I'll add you as maintainer/proxy. I forgot last night. (should I forget again don't hesitate to remind me, since I tend to forget about things like metadata stuff ;))
Comment 23 Thomas Raschbacher gentoo-dev 2012-09-07 12:25:15 UTC
commited 2.10.5 and added you to metadata.xml :)
Thanks