Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135147 - imlib.m4 calculates wrong version number
Summary: imlib.m4 calculates wrong version number
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 05:54 UTC by Tobias Wahl
Modified: 2006-06-01 11:56 UTC (History)
0 users

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 Tobias Wahl 2006-06-01 05:54:33 UTC
In the file /usr/share/aclocal/imlib.m4, which comes with the imlib, is a bug.  This may cause, that a configure-script calculates the wrong version number (major/minir/micro).  So the configuration stops with an error-message, but imlib is correct installed.

For example I always get the same error as John Altstadt (see #8 in http://bugs.gentoo.org/show_bug.cgi?id=117591) when installing gnome-base/control-center-1.4.0.5-r2.

... and here is a patch:
-------------------------------

+++ imlib.m4    2006-06-01 14:21:24.000000000 +0200
@@ -41,11 +41,11 @@
     IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs`

     imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
-           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
     imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
-           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
     imlib_micro_version=`$IMLIB_CONFIG $imlib_args --version | \
-           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
     if test "x$enable_imlibtest" = "xyes" ; then
       ac_save_CFLAGS="$CFLAGS"
       ac_save_LIBS="$LIBS"
Comment 1 Tobias Wahl 2006-06-01 07:17:53 UTC
Hmm, my patch did not fix the issue.  The problem seems to be somewhere else.
The configure skript compiles a small test program.  But linking fails because the linker is called with "-lungif" and there is no longer libungif on my laptop.  I dont know why libungif should be linked to the test program.  The test program for esd compiles and links without problem (and without -lungif).
Comment 2 Tobias Wahl 2006-06-01 11:56:07 UTC
Sorry, everything is ok with imlib.
I yust had ro re-emerge it.