Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 510522

Summary: media-libs/imlib2-1.4.6-r2 - .../work/imlib2-1.4.6/src/bin/imlib2_test.c:5:20: fatal error: Imlib2.h: No such file or directory
Product: Gentoo Linux Reporter: Tom Li <biergaizi2009>
Component: [OLD] LibraryAssignee: Multilib team <multilib+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: enlightenment+disabled, gentoo-bugs, tobi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
Patch for the issue

Description Tom Li 2014-05-17 02:45:13 UTC
Created attachment 377106 [details]
build.log

/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_test.c:5:20: fatal error: Imlib2.h: No such file or directory
 #include <Imlib2.h>
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_test.o' failed
make[3]: *** [imlib2_test.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_conv.c:12:20: fatal error: Imlib2.h: No such file or directory
 #include <Imlib2.h>
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_conv.o' failed
make[3]: *** [imlib2_conv.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_show.c:24:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_show.o' failed
make[3]: *** [imlib2_show.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_grab.c:15:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_grab.o' failed
make[3]: *** [imlib2_grab.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_bumpmap.c:23:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_bumpmap.o' failed
make[3]: *** [imlib2_bumpmap.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_poly.c:14:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_poly.o' failed
make[3]: *** [imlib2_poly.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_view.c:15:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_view.o' failed
make[3]: *** [imlib2_view.o] Error 1
/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6/src/bin/imlib2_colorspace.c:14:20: fatal error: Imlib2.h: No such file or directory
 #include "Imlib2.h"
                    ^
compilation terminated.
Makefile:495: recipe for target 'imlib2_colorspace.o' failed
make[3]: *** [imlib2_colorspace.o] Error 1
make[3]: Leaving directory '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6-amd64/src/bin'
Makefile:361: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6-amd64/src'
Makefile:519: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6-amd64'
Makefile:386: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/imlib2-1.4.6-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/imlib2-1.4.6-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/imlib2-1.4.6-r2::gentoo'`.
 * The complete build log is located at '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/temp/build.log'.
 * The ebuild environment file is located at '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/temp/environment'.
 * Working directory: '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6-amd64'
 * S: '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6'

>>> Failed to emerge media-libs/imlib2-1.4.6-r2, Log file:

>>>  '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/temp/build.log'

 * Messages for package media-libs/imlib2-1.4.6-r2:

 * ERROR: media-libs/imlib2-1.4.6-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/imlib2-1.4.6-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/imlib2-1.4.6-r2::gentoo'`.
 * The complete build log is located at '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/temp/build.log'.
 * The ebuild environment file is located at '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/temp/environment'.
 * Working directory: '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6-amd64'
 * S: '/mnt/vm/compile/portage/media-libs/imlib2-1.4.6-r2/work/imlib2-1.4.6'
Comment 1 Tom Li 2014-05-17 02:46:17 UTC
Created attachment 377108 [details]
emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-17 07:04:38 UTC
This seems to be our fault.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-17 07:25:10 UTC
Created attachment 377116 [details, diff]
Patch for the issue
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-17 07:36:09 UTC
@enlightenment: does upstream support imlib2 at all? I can't find the project on their bug tracker.

@vapier: you seem to have commit access there. Could you proceed with committing the attached patch?
Comment 5 Alan McKinnon 2014-06-19 10:49:06 UTC
imlib2 was used in e17 years ago and the strng "imlib" does not appear in sources for current version at all. The lib is only used in e16.

imlib2 should probably be removed from deps in the ebuild
Comment 6 Alan McKinnon 2014-06-19 10:59:05 UTC
(In reply to Alan McKinnon from comment #5)
> imlib2 was used in e17 years ago and the strng "imlib" does not appear in
> sources for current version at all. The lib is only used in e16.
> 
> imlib2 should probably be removed from deps in the ebuild

Scratch comment 5, I got confused with SLOT numbers.
imlib2 is indeed only used in E16 ebuilds
Comment 7 meta_system 2014-06-23 09:28:08 UTC
same bug for me, solved by installing r1 before and r2 after.
Possibly files are needed in system and not present in sources.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-23 14:12:25 UTC
+  23 Jun 2014; Michał Górny <mgorny@gentoo.org>
+  +files/imlib2-1.4.6-out-of-source-build.patch, imlib2-1.4.6-r2.ebuild:
+  Fix out-of-source builds, bug #510522.

Leaving it open so that we could either upstream it or add to -9999.