Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545732 - sci-geosciences/viking-1.6 (USE=exif) should depend on media-libs/gexiv2
Summary: sci-geosciences/viking-1.6 (USE=exif) should depend on media-libs/gexiv2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-06 13:04 UTC by jospezial
Modified: 2015-04-13 17:45 UTC (History)
4 users (show)

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


Attachments
sci-geosciences/viking-1.6.ebuild (fixed) (viking-1.6.ebuild,1.60 KB, text/plain)
2015-04-12 17:27 UTC, José María Fernández González
Details
Patch of viking-1.6.ebuild (viking-1.6.ebuild.patch,383 bytes, patch)
2015-04-12 17:29 UTC, José María Fernández González
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2015-04-06 13:04:38 UTC
checking whether to enable Geotag Support... (cached) yes
checking for gexiv2_metadata_new in -lgexiv2... no
configure: error: libgexiv2 is needed but not found - you will need to install package 'libgexiv2-dev' or similar. The feature can be disabled with --disable-geotag

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-geosciences/viking-1.6/work/viking-1.6/config.log
 * ERROR: sci-geosciences/viking-1.6::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line   93:  Called src_configure
 *             environment, line 1946:  Called econf '--disable-deprecations' '--with-libcurl' '--with-expat' '--enable-google' '--enable-terraserver' '--enable-expedia' '--enable-openstreetmap' '--enable-bluemarble' '--enable-geonames' '--enable-geocaches' '--disable-dem24k' '--enable-geotag' '--disable-realtime-gps-tracking' '--enable-magic' '--disable-mapnik' '--enable-nls' '--enable-mbtiles'
 *        phase-helpers.sh, line  662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 

This something like https://bugs.gentoo.org/show_bug.cgi?id=463232 but note now exiv instead of exif .
Comment 1 jospezial 2015-04-06 13:07:21 UTC
oh I see it is installed:

emerge -va1 exiv2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-gfx/exiv2-0.24-r1:0/13::gentoo  USE="nls xmp zlib -contrib -doc -examples -static-libs" ABI_X86="(64) -32 (-x32)" LINGUAS="de -es -fi -fr -pl -ru -sk" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 2 jospezial 2015-04-06 21:42:20 UTC
configure:10658: checking whether to enable Geotag Support
configure:10665: result: yes
configure:10728: checking for gexiv2_metadata_new in -lgexiv2
configure:10753: x86_64-pc-linux-gnu-gcc -std=gnu99 -o conftest -march=native -g  -Wl,-O1 -Wl,--as-needed conftest.c -l
gexiv2  -lX11 -lz -lm  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgexiv2
collect2: error: ld returned 1 exit status
configure:10753: $? = 1




equery f exiv2     
 * Searching for exiv2 ...
 * Contents of media-gfx/exiv2-0.24-r1:
/usr
/usr/bin
/usr/bin/exiv2
/usr/include
/usr/include/exiv2
/usr/include/exiv2/asfvideo.hpp
/usr/include/exiv2/basicio.hpp
/usr/include/exiv2/bmpimage.hpp
/usr/include/exiv2/convert.hpp
/usr/include/exiv2/cr2image.hpp
/usr/include/exiv2/crwimage.hpp
/usr/include/exiv2/datasets.hpp
/usr/include/exiv2/easyaccess.hpp
/usr/include/exiv2/epsimage.hpp
/usr/include/exiv2/error.hpp
/usr/include/exiv2/exif.hpp
/usr/include/exiv2/exiv2.hpp
/usr/include/exiv2/exv_conf.h
/usr/include/exiv2/futils.hpp
/usr/include/exiv2/gifimage.hpp
/usr/include/exiv2/image.hpp
/usr/include/exiv2/iptc.hpp
/usr/include/exiv2/jp2image.hpp
/usr/include/exiv2/jpgimage.hpp
/usr/include/exiv2/matroskavideo.hpp
/usr/include/exiv2/metadatum.hpp
/usr/include/exiv2/mrwimage.hpp
/usr/include/exiv2/orfimage.hpp
/usr/include/exiv2/pgfimage.hpp
/usr/include/exiv2/pngimage.hpp
/usr/include/exiv2/preview.hpp
/usr/include/exiv2/properties.hpp
/usr/include/exiv2/psdimage.hpp
/usr/include/exiv2/quicktimevideo.hpp
/usr/include/exiv2/rafimage.hpp
/usr/include/exiv2/riffvideo.hpp
/usr/include/exiv2/rw2image.hpp
/usr/include/exiv2/tags.hpp
/usr/include/exiv2/tgaimage.hpp
/usr/include/exiv2/tiffimage.hpp
/usr/include/exiv2/types.hpp
/usr/include/exiv2/value.hpp
/usr/include/exiv2/version.hpp
/usr/include/exiv2/xmp.hpp
/usr/include/exiv2/xmpsidecar.hpp
/usr/lib64
/usr/lib64/libexiv2.so -> libexiv2.so.13.0.0
/usr/lib64/libexiv2.so.13 -> libexiv2.so.13.0.0
/usr/lib64/libexiv2.so.13.0.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/exiv2.pc
/usr/share
/usr/share/doc
/usr/share/doc/exiv2-0.24-r1
/usr/share/doc/exiv2-0.24-r1/COPYING-XMPSDK.bz2
/usr/share/doc/exiv2-0.24-r1/ChangeLog.bz2
/usr/share/doc/exiv2-0.24-r1/README-XMP.bz2
/usr/share/doc/exiv2-0.24-r1/README.bz2
/usr/share/doc/exiv2-0.24-r1/cmd.txt.bz2
/usr/share/doc/exiv2-0.24-r1/cmdxmp.txt.bz2
/usr/share/locale
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/exiv2.mo
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/exiv2.1.bz2
Comment 3 Hans de Graaff gentoo-dev Security 2015-04-07 05:50:25 UTC
This should be provided by media-libs/gexiv2 (not media-gfx/exiv2).

Can you confirm that you are trying to build without the "exif" USE flag?
Comment 4 Markus 2015-04-07 08:29:36 UTC
Same problem.

1) With "-exif" it is building fine.

2) With "exif" it failes with:
checking for gexiv2_metadata_new in -lgexiv2... no
configure: error: libgexiv2 is needed but not found - you will need to install package 'libgexiv2-dev' or similar. The feature can be disabled with --disable-geotag

3)If I install "media-libs/gexiv2-0.6.1" manually, it builds fine with "exif".
Comment 5 José María Fernández González 2015-04-12 17:25:48 UTC
I can confirm the issue, but there is an alternative way to fix it. Looking at viking's configure, the program depends either on gexiv2 or libexif for exif management, defaulting on gexiv2. You can explicitly set libexif as the preferred one setting --with-libexif flag.

So, I have added that flag to the ebuild, and it worked. I'm just adding as attachments both the modified viking-1.6.ebuild and its diff with the public one.
Comment 6 José María Fernández González 2015-04-12 17:27:08 UTC
Created attachment 401122 [details]
sci-geosciences/viking-1.6.ebuild (fixed)

This is the fixed version of viking-1.6.ebuild (just one additional line)
Comment 7 José María Fernández González 2015-04-12 17:29:39 UTC
Created attachment 401124 [details, diff]
Patch of viking-1.6.ebuild

This patch can be applied over public viking-1.6.ebuild to fix this bug
Comment 8 Hans de Graaff gentoo-dev Security 2015-04-13 17:45:24 UTC
This is now fixed in viking-1.6-r1

USE="-exif"        : no dependencies on exif code, no exif support
USE="exif"         : depend on gexiv2 to provide exif support
USE="exif libexif" : depend on libexif to provide exif support

This should make sure dependencies match what is actually compiled and also keep the upstream default of using gexiv2 as the default exif library.