media-gfx/sane-frontends don't find sane libraries or headers from media-gfx/sane-backends at configure step and print the following error: checking for sane-config... /usr/bin/sane-config checking for SANE - version >= 1.0.0... no *** Could not run SANE test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding SANE or finding the wrong *** version of SANE. If it is not finding SANE, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location. Also, make sure you have run ldconfig if that *** is required on your system. *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** ********************************************************************** ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons: - sane-backends isn't installed (install sane-backends before sane-frontends) - the SANE header files aren't installed (if you installed SANE as RPM make sure you also included the sane-devel RPM) - the SANE libraries can't be found because /usr/local/lib/ isn't searched by the dynamic linker (see INSTALL for details) ********************************************************************** Reproducible: Always
Please attach the build log, config.log, and provide emerge --info.
Created attachment 895235 [details] emerge --info
Created attachment 895236 [details] build log
Created attachment 900103 [details] emerge --info same problem
The configure fails because the test uses is missing a #include <stdlib.h> I'll upload a patch and ebuild that fixes it
Created attachment 903172 [details, diff] Patch to fix the configure testing for the sane-backend libraries Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
Created attachment 903173 [details] ebuild that contains what's needed to fix the socket.h issue in sanei_debug Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
I saw this but then realized that I don't use the frontends. From the looks of it, there's a newer debian release with patches for this issue.
Upstream merged a number of patches for this. https://gitlab.com/sane-project/frontends
Looking.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84b9d64c5f3592acf05c6e728afec29b2440b1fd commit 84b9d64c5f3592acf05c6e728afec29b2440b1fd Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-12 06:21:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-12 06:29:55 +0000 media-gfx/sane-frontends: update EAPI 7 -> 8, fix Modern C issues Use a hack to avoid needing gimp in BDEPEND for eautoreconf. Closes: https://bugs.gentoo.org/933615 Thanks-to: Stephane Bakhos <nuitari@nuitari.net> Signed-off-by: Stephane Bakhos <nuitari@nuitari.net> Signed-off-by: Sam James <sam@gentoo.org> media-gfx/sane-frontends/files/gimp-2.0.m4 | 180 +++++++++++++++++++++ .../files/sane-frontends-1.0.14-c99.patch | 51 ++++++ .../sane-frontends/sane-frontends-1.0.14-r6.ebuild | 20 ++- 3 files changed, 247 insertions(+), 4 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e9710ff4dde087a8bb834852b3b4232757ddb4 commit e7e9710ff4dde087a8bb834852b3b4232757ddb4 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-12 06:30:55 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-12 06:30:55 +0000 media-gfx/sane-frontends: add revbump for earlier change Bug: https://bugs.gentoo.org/933615 Signed-off-by: Sam James <sam@gentoo.org> .../{sane-frontends-1.0.14-r6.ebuild => sane-frontends-1.0.14-r7.ebuild} | 0 1 file changed, 0 insertions(+), 0 deletions(-)