Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314057 - dev-libs/glib-2.22.4 installs broken glib-mkenums
Summary: dev-libs/glib-2.22.4 installs broken glib-mkenums
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 313379 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-09 09:28 UTC by Rabbe Fogelholm
Modified: 2010-04-10 18:06 UTC (History)
1 user (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 Rabbe Fogelholm 2010-04-09 09:28:53 UTC
Platform is Gentoo Prefix on SUSE Enterprise 10 SP2. Emerging dev-libs/atk-1.28.0 fails (this library is pulled in by app-admin/gkrellm). Masking 1.28.0 causes 1.26.0 to be tried but this fails too. The failure for 1.28.0 looks like:

make -j3 
make  all-recursive
make[1]: Entering directory `/local/scratch/portage/dev-libs/atk-1.28.0/work/atk-1.28.0'
Making all in atk
make[2]: Entering directory `/local/scratch/portage/dev-libs/atk-1.28.0/work/atk-1.28.0/atk'
glib-genmarshal --prefix=atk_marshal ./atkmarshal.list --header >> xgen-gmh \
	&& (cmp -s xgen-gmh atkmarshal.h || cp xgen-gmh atkmarshal.h) \
	&& rm -f xgen-gmh xgen-gmh~					\
	&& echo timestamp > stamp-atkmarshal.h
glib-genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \
	&& (cmp -s xgen-gmc atkmarshal.c || cp xgen-gmc atkmarshal.c) \
	&& rm -f xgen-gmc xgen-gmc~					\
	&& echo timestamp > stamp-atkmarshal.c
( cd . && glib-mkenums \
			--fhead "#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)\n#error \"Only <atk/atk.h> can be included directly.\"\n#endif\n\n#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
			--fprod "/* enumerations from \"@filename@\" */\n" \
			--vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
			--ftail "G_END_DECLS\n\n#endif /* __ATK_ENUM_TYPES_H__ */" \
		atk.h atkaction.h atkcomponent.h atkdocument.h atkeditabletext.h atkgobjectaccessible.h atkhyperlink.h atkhyperlinkimpl.h atkhypertext.h atknoopobject.h atknoopobjectfactory.h atkobject.h atkobjectfactory.h atkimage.h atkregistry.h atkrelation.h atkrelationtype.h atkrelationset.h atkselection.h atkstate.h atkstateset.h atkstreamablecontent.h atktable.h atktext.h atkutil.h atkmisc.h atkvalue.h ) > tmp-atk-enum-types.h \
	&& (cmp -s tmp-atk-enum-types.h atk-enum-types.h || cp tmp-atk-enum-types.h atk-enum-types.h ) \
	&& rm -f tmp-atk-enum-types.h \
	&& echo timestamp > s-enum-types-h
/usr/bin/env: perl -w: No such file or directory
make[2]: *** [s-enum-types-h] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/local/scratch/portage/dev-libs/atk-1.28.0/work/atk-1.28.0/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/scratch/portage/dev-libs/atk-1.28.0/work/atk-1.28.0'
make: *** [all] Error 2
 * ERROR: dev-libs/atk-1.28.0 failed:
 *   compile failure
Comment 1 Fabian Groffen gentoo-dev 2010-04-09 09:34:14 UTC
can you check what the shebang (first line) of the script $EPREFIX/usr/bin/glib-mkenums is?
Comment 2 Rabbe Fogelholm 2010-04-09 10:08:09 UTC
It is

#!/usr/bin/env perl -w
Comment 3 Fabian Groffen gentoo-dev 2010-04-09 10:19:03 UTC
aha.  On my system it is $EPREFIX/usr/bin/perl -w.
Comment 4 Fabian Groffen gentoo-dev 2010-04-09 10:51:49 UTC
# Need full path to Perl for glib-mkenums
#
if test "x$PERL" != x ; then
  AC_PATH_PROG(PERL_PATH, [$PERL])
fi
if test "x$PERL_PATH" = x ; then
  PERL_PATH="/usr/bin/env perl"
fi
AC_SUBST(PERL_PATH)

hmmm, yeah, that's not going to fly.

I applied this fix, can you try?

Index: glib-2.22.4.ebuild
===================================================================
--- glib-2.22.4.ebuild  (revision 57659)
+++ glib-2.22.4.ebuild  (working copy)
@@ -68,8 +68,8 @@
        # make default sane for us
        if use prefix ; then
                sed -i -e "s:/usr/local:${EPREFIX}:" gio/xdgmime/xdgmime.c || die
-               # bug #308609
-               export PERL="${EPREFIX}"/usr/bin/perl
+               # bug #308609, without path, bug #314057
+               export PERL=perl
        fi
 
        # build glib with parity for native win32
Comment 5 Fabian Groffen gentoo-dev 2010-04-09 10:53:43 UTC
*** Bug 313379 has been marked as a duplicate of this bug. ***
Comment 6 Rabbe Fogelholm 2010-04-09 20:19:54 UTC
Good news: I applied the patch to the glib-2.22.4 ebuild file, re-created the manifest and re-emerged glib. That done I was able to emerge atk-1.28.0 as well.
Comment 7 Fabian Groffen gentoo-dev 2010-04-10 18:06:30 UTC
ok, thanks