Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340505 - media-libs/imlib: imlib-config: punt broken --{cflags,libs}-gdk since imlib gdk has been removed too
Summary: media-libs/imlib: imlib-config: punt broken --{cflags,libs}-gdk since imlib g...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2010-10-11 11:03 UTC by Martin Mokrejš
Modified: 2022-07-15 15:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-10-11 11:03:32 UTC
I just hits this issue while installing fvwm:

>>> Completed installing fvwm-2.5.31 into /var/tmp/portage/x11-wm/fvwm-2.5.31/image/

 * QA Notice: command not found:
 * 
 *      checking for GDK IMLIB - version >= 1.8.0... /usr/bin/imlib-config: line 52: --cflags: command not found
 *      /usr/bin/imlib-config: line 60: --libs: command not found
ecompressdir: bzip2 -9 /usr/share/man

>>> Installing (1 of 1) x11-wm/fvwm-2.5.31


It seems there are backticks instead of apostrophes in the shell script:

51     --cflags-gdk)
52       echo ` --cflags` $includes
53       ;;
54     --libs)
55       libdirs=-L${exec_prefix}/lib
56       echo $libdirs -lImlib -Wl,-O1 $gx_libs -lXext   -lSM -lICE -lXext -lX11
57       ;;
58     --libs-gdk)
59       libdirs=-L${exec_prefix}/lib
60       echo $libdirs -lgdk_imlib$gdk_gx_libs ` --libs` $gdk_libs
61       ;;
62     *)
63       echo "${usage}" 1>&2
64       exit 1
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-11 13:15:49 UTC
For imlib gdk, you need to compile media-libs/imlib with USE deprecated, that will pull in gtk+-1.2

so I assume fvwm is missing USE dep of media-libs/imlib[deprecated] or rather, because *nothing* should depend on the deprecated flag anymore because it's about to be removed entirely the check for it should be patched out of fvwm's configure script.

so a fvwm bug, not a imlib bug
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-10-11 13:18:28 UTC
so fvwm maintainers: please remove any checks for GDK IMLIB from your package. thanks
Comment 3 Martin Mokrejš 2010-10-11 13:26:23 UTC
(In reply to comment #2)
> so fvwm maintainers: please remove any checks for GDK IMLIB from your package.
> thanks
> 

Who will fix the /usr/bin/imlib-config file? I changed the backticks on lines 52 and 60 and everything seemd fine. Or does the commenmt #2 means the fiel will be dropped? No, can't be, it belongs to imlib and not to fvwm, so I am puzzled.


I have on my system (if it helps to you):

# emerge --unmerge --pretend gtk+
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

>>> These are the packages that would be unmerged:

 x11-libs/gtk+
    selected: 1.2.10-r12 2.20.1-r1 
   protected: none 
     omitted: none 
^C
# emerge -pv gtk+ fvwm imlib

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

Calculating dependencies... done!
[ebuild   R   ] x11-wm/fvwm-2.5.31  USE="netpbm nls perl png readline svg tk truetype xinerama -bidi -debug -doc -gtk2-perl -lock -rplay -stroke -vanilla" 0 kB
[ebuild   R   ] media-libs/imlib-1.9.15-r2  USE="-deprecated -doc*" 668 kB
[ebuild   R   ] x11-libs/gtk+-2.20.1-r1  USE="cups jpeg jpeg2k tiff vim-syntax xinerama (-aqua) -debug -doc (-introspection) -test" 0 kB
Comment 4 Jesús Guerrero Botella (RETIRED) gentoo-dev 2011-03-09 09:44:14 UTC
(In reply to comment #1)
> For imlib gdk, you need to compile media-libs/imlib with USE deprecated, that
> will pull in gtk+-1.2
> 
> so I assume fvwm is missing USE dep of media-libs/imlib[deprecated] or rather,

Nah, you don't think so. At least that's what the Changelog says ;)

  24 Nov 2009; Samuli Suominen <ssuominen@gentoo.org>
  -fvwm-2.5.18-r1.ebuild, fvwm-2.5.27-r1.ebuild, fvwm-2.5.28.ebuild:
  Remove USE gtk and imlib (media-libs/imlib[deprecated]).

It was removed for a reason, and I remember working on this some time ago. I contributed some fixes via Jeremy Olexa as a proxy maintainer, though I can hardly remember the details. In any case, I don't think we should be adding gtk+-1.x based functionality in Gentoo again, after having battled for so long to remove xmms and the likes from the tree.

The ebuild even implicitly removes some file that need the gtk-perl module (gtk 1.x based), and that's fully intentional.

> because *nothing* should depend on the deprecated flag anymore because it's
> about to be removed entirely the check for it should be patched out of fvwm's
> configure script.
> 
> so a fvwm bug, not a imlib bug

Probably, but this builds for me. I can't certainly reproduce this error using the USE flags the original posted supplied above. I can see the configure script fails to find imlib gdk, but that's quite usual in configure scripts, isn't it?

checking for imlib-config... no
checking for GDK IMLIB - version >= 1.8.0... no
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-15 12:50:02 UTC
imlib-config is entirely gone now as of 1.7.5.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-15 12:50:16 UTC
(In reply to Sam James from comment #5)
> imlib-config is entirely gone now as of 1.7.5.

Oh, sorry, that's imlib2.