Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301551 - x11-libs/gtk+-2.18.[56] fails to rebuild after updating media-libs/jpeg to 7-r1
Summary: x11-libs/gtk+-2.18.[56] fails to rebuild after updating media-libs/jpeg to 7-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 18:35 UTC by Richard Hendrikse
Modified: 2010-01-20 12:02 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/x11-libs/gtk+-2.18.6/work/gtk+-2.18.6/config.log (config.log,79.23 KB, text/plain)
2010-01-19 18:39 UTC, Richard Hendrikse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Hendrikse 2010-01-19 18:35:28 UTC
after updating jpeg-7 to jpeg-7-r1 in an emerge -uDav system, a necessary rebuild of "GTK+" fails.
configure exists with the following message:

checking for jpeg_destroy_decompress in -ljpeg... no
configure: WARNING: *** JPEG loader will not be built (JPEG library not found) ***
configure: error:
*** Checks for JPEG loader failed. You can build without it by passing
*** --without-libjpeg to configure but some programs using GTK+ may
*** not work properly

no subsequent packages tested

Reproducible: Always

Steps to Reproduce:
Comment 1 Richard Hendrikse 2010-01-19 18:39:34 UTC
Created attachment 216927 [details]
/var/tmp/portage/x11-libs/gtk+-2.18.6/work/gtk+-2.18.6/config.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-01-19 18:43:50 UTC
How did you end up replacing jpeg-7 with jpeg-7-r1? It's not a upgrade over it, jpeg-8 is.

(jpeg-7-r1 is a package that's installing only libjpeg.so.7, for binary-only applications.)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-01-19 18:52:56 UTC
+  19 Jan 2010; Samuli Suominen <ssuominen@gentoo.org> gtk+-2.18.5.ebuild,
+  gtk+-2.18.6.ebuild:
+  Require SLOT="0" of media-libs/jpeg wrt #301551.
Comment 4 Richard Hendrikse 2010-01-19 19:05:36 UTC
like i said (in less words): I emerge --sync'ed, ran emerge -uDav system, which specified an UNMERGE operation for media-libs/jpeg-7 and an install for jpeg-7-r1.

Due to an unfortunate try-out, my entire packages-backup is now nonexistant, so i check back properly. iac, I merged jpeg-7 back in, if i can believe this backed-up symlink, the 3rd of october.

I just tried to return to the previous situation by unmerging jpeg-7-r1 and reinstalling media-libs/jpeg-7.

an emerge -uDav system now gives me: 
[ebuild  NS   ] media-libs/jpeg-7-r1 [7] 0 kB
[blocks B     ] ~media-libs/jpeg-7:0 ("~media-libs/jpeg-7:0" is blocking media-libs/jpeg-7-r1)
[blocks B     ] media-libs/jpeg:7 ("media-libs/jpeg:7" is blocking media-libs/jpeg-7)

(which is almost identical to the emerge output when i wanted to downgrade to jpeg-7 without unmerging jpeg-7-r1)

Comment 5 Richard Hendrikse 2010-01-19 19:39:14 UTC
naturally, the removal of the DEPEND lines in both jpeg ebuilds fixed this behaviour, allowing both to be installed next to eachother.

Anyways, looks like those recently-added dependencies are causing portage to think both jpeg packages can't be installed next to eachother...

Guess I should've named the bug "Portage does not allow the installation of jpeg-7 and jpeg-7-r1 together"

I've been hesitant to reopen the bug, I'd still like to get some more feedback from you on the matter, though...
Comment 6 Richard Hendrikse 2010-01-19 20:55:08 UTC
so, could you then please tell me what you hope(d) to achieve here?

get jpeg-8 to merge 7-r1 as well as a compat library? (the use flag or jpeg-compat thingy spring to mind as a FAR better idea, since having 7-r1 installed qualifies as having got jpeg installed, and when dependencies dont require an update to 8... things break)


Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-20 00:18:54 UTC
would be nice if gnome herd would be made aware of this bug prior to modifications...
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-01-20 12:02:11 UTC
(In reply to comment #7)
> would be nice if gnome herd would be made aware of this bug prior to
> modifications...
> 

Yeah, always use SLOT 0 of media-libs/jpeg for source packages, when you need headers. The other slots are only for binary ABI compat, same way with e.g. libtool

That said, this is fixed in Portage since Comment #3.