Sounds a bit like, eg, bug #331739 Note that manually running the same ./configure line in /var/tmp/portage/ does succeed ! The "static" use flag should probably depends on the ncurses[static] use flag but a true solution would allows one to build a static testdisk without static ncurses. Reproducible: Always
Created attachment 259090 [details] build log
Created attachment 259091 [details] emerge --info
ncurses -static AND testdisk -static builds fine: true but, correction : ncurses +static-libs AND testdisk +static throws the same error
To build with this : [ebuild R ] app-admin/testdisk-6.12 USE="jpeg static -ntfs -reiserfs" I need to set USEflag "static-libs" to : media-libs/jpeg sys-libs/ncurses It seem to be a problem of dependancies checking. To build testdisk with "static" useflag, media-libs/jpeg sys-libs/ncurses have to be build with "static-libs" useflag.
Any news on this? Can I commit the change to deps in the tree?
Created attachment 337350 [details] app-admin/testdisk-6.13 +static error (build.log) 1) Just a simple attempt of testdisks 6.13 +static (sys-libs/ncurses -static-libs) configure: error: At least one of ncursesw/ncurses/pdcurses/curses library must be present As Sebastien stated, both ncurses and jpeg needs statics-libs. (anyway I'm not using media-libs/jpeg, but virtual/jpeg + media-libs/libjpeg-turbo) 2) So I recompiled both (+ virtual/jpeg) then testdisks +static configured... a bit further ... but failed on reiserfs: checking for libreiserfs_get_version in -lreiserfs... no I believe DEPENDS should be updated, but I can't tell exactly how, yet.
adding static-libs to sys-fs/progsreiserfs and sys-fs/ntfs3g did the trick with both 6.12 and 6.13 Probably nothing related, but testdisk is unusable using a dark bg terminal. (I don't remember that was it the case 2 years ago)
app-admin/testdisk-7.0 builds with "static". Please give that a try.
Closing. If this happens again with a more recent version, please open a new bug.