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
can you check what the shebang (first line) of the script $EPREFIX/usr/bin/glib-mkenums is?
It is #!/usr/bin/env perl -w
aha. On my system it is $EPREFIX/usr/bin/perl -w.
# 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
*** Bug 313379 has been marked as a duplicate of this bug. ***
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.
ok, thanks