magicrescue build dupemap application, but it is non-functional:
dupemap was not compiled because no ndbm.h was found on your system. Please
install the development packages for Berkeley DB or GDBM and recompile.
Really, this is the first time I see application compiled complaining it was not compiled :)
The reason is in configure script: its link check function is not --as-needed friendly, thus test fails and dupemap is not compiled properly.
A patch to fix this is attached.
Created attachment 311559 [details]
Not really needed, bug was tested on multiple Gentoo boxes with rather different setup each.
Created attachment 311561 [details, diff]
In configure $LDFLAGS contains both linking flags and linking libraries. The most proper way to fix this will be to separate $LDFLAGS to $LDFLAGS and $LFLAGS, but this will require a complete rewrite of all configure and config.d.
The simpler way is just to duplicate $LDFLAGS after object file(s).
Created attachment 311563 [details, diff]
Another change required is gdbm dependency: gdbm must be build with berkdb support.
Comment on attachment 311561 [details, diff]
Patch is not working in all cases...
Created attachment 311565 [details, diff]
This patch fixes problem properly.
Build system was not as-needed-friendly at all.
+ 11 Apr 2013; Patrick Lauer <firstname.lastname@example.org>
+ +files/magicrescue-1.1.9-ldflags.patch, magicrescue-1.1.9.ebuild:
+ Build fix for dupemap #415685