Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275568 - media-libs/libgphoto2: broken pkg-config file (causes media-gfx/sane-backends and media-gfx/f-spot to abort)
Summary: media-libs/libgphoto2: broken pkg-config file (causes media-gfx/sane-backends...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
: 276200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-27 06:57 UTC by Denis Loginov
Modified: 2009-07-18 00:38 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,4.38 KB, text/plain)
2009-06-27 17:56 UTC, Denis Loginov
Details
/var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log (config.log,306.50 KB, text/plain)
2009-06-27 17:58 UTC, Denis Loginov
Details
complete build.log (build.log,18.54 KB, text/plain)
2009-06-28 18:16 UTC, Denis Loginov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Loginov 2009-06-27 06:57:15 UTC
media-gfx/sane-backends-1.0.20 aborts during emerge with the following message:
.............
checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: Manually selected backends: gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm leo lexmark ma1509 matsushita microtek microtek2 mustek mustek_pp mustek_usb mustek_usb2 nec net niash pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp
*** gphoto2 backend requires gphoto2 and JPEG libraries - aborting

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log
 *
 * ERROR: media-gfx/sane-backends-1.0.20 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2543:  Called econf '--enable-libusb' '--with-gphoto2' '--disable-ipv6' '--disable-avahi' '--disable-latex' '--enable-parport-directio'
 *               ebuild.sh, line  534:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/sane-backends-1.0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/sane-backends-1.0.20/temp/environment'.
 *

However, I've got media-libs/jpeg , media-libs/libgphoto2 and media-gfx/gphoto2 installed.

Reproducible: Always

Steps to Reproduce:
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2009-06-27 13:04:58 UTC
Please attach the emerge --info output and, as requested in the error message, /var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log

Thank you.
Comment 2 Denis Loginov 2009-06-27 17:56:37 UTC
Created attachment 195902 [details]
emerge --info

my emerge --info
Comment 3 Denis Loginov 2009-06-27 17:58:25 UTC
Created attachment 195905 [details]
/var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2009-06-28 09:22:10 UTC
I only manage to reproduce something remotely similar when I put a HAVE_GPHOTO2="false" in my environment, but even then the log is not the same. Can you please attach the complete build log (not just the part before the error) and tell me the output of:
pkg-config --modversion --libs libgphoto2
as well as the output of "emerge -pv sane-backends"?
Thank you!
Comment 5 Denis Loginov 2009-06-28 18:16:34 UTC
Created attachment 195976 [details]
complete build.log
Comment 6 Denis Loginov 2009-06-28 18:17:39 UTC
(In reply to comment #4)
> pkg-config --modversion --libs libgphoto2
Empty package name in Requires or Conflicts in file '/usr/lib/pkgconfig/libgphoto2.pc'
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2009-06-28 21:23:19 UTC
Could you please re-install libgphoto2?
Comment 8 Denis Loginov 2009-06-29 14:52:56 UTC
(In reply to comment #7)
> Could you please re-install libgphoto2?
Alas, it didn't help.
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2009-06-29 19:43:12 UTC
pkg-config still does not know anything about it?
Comment 10 Ulrich Plate 2009-06-29 20:31:41 UTC
Same happened here. 

No idea how it got there, but /usr/lib/pkgconfig/libgphoto2.pc has a comma at the end of line 12 that doesn't seem to belong there:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
VERSION=2.4.6
driverdir=${libdir}/libgphoto2/2.4.6

Name: libgphoto2
Description: Library for easy access to digital cameras
URL: http://gphoto.org/proj/libgphoto2/
Version: 2.4.6
Requires: libgphoto2_port >= 0.6.2,
Libs: -L${libdir} -lgphoto2 -lm
Cflags: -I${includedir}/gphoto2

Deleted it, pkg-config now has meaningful output again, and sane-backends builds, too.
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2009-06-30 09:44:37 UTC
Maybe the libgphoto2 maintainers are interested in this...
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-30 09:51:20 UTC
Erm looks like we have a long standing undercover bug:

    # Fix pkgconfig file when USE="-exif"
    if use exif; then
        sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in || die " libgphoto2.pc sed failed"
    fi

-> try to put a ! before use exif and rebuild libgphoto2, that should fix the problem.
Comment 13 Waldo 2009-07-01 02:17:40 UTC
Same error here.  Taking the comma off of /usr/lib/pkgconfig/libgphoto2.pc fixed it.

W
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-02 11:35:50 UTC
*** Bug 276200 has been marked as a duplicate of this bug. ***
Comment 15 Romain Perier (RETIRED) gentoo-dev 2009-07-02 11:41:23 UTC
(In reply to comment #13)
> Same error here.  Taking the comma off of /usr/lib/pkgconfig/libgphoto2.pc
> fixed it.
> 
> W
> 

I agree, the problem is due to syntax error due to an unnecessary comma, at end of "Requires" line.
Comment 16 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-07-18 00:38:15 UTC
Good catch, Gilles.  Fixed without a bump.
Comment 17 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-07-18 00:38:37 UTC
(And fixed...)