Summary: | media-libs/hermes-1.3.2-r2 emerge failed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jiri Vrba <grimm> |
Component: | New packages | Assignee: | Jeremy Huddleston (RETIRED) <eradicator> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aloughney, esigra, gentoo-tigerp, mr_bones_, tric |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | output of 'emerge hermes' |
Description
Jiri Vrba
2004-11-18 02:57:13 UTC
1)Edit the file /usr/portage/media-libs/hermes/hermes-1.3.2-r2.ebuild change src_install() to asrc_install() save the file 2)cd /usr/portage/media-libs/hermes/ ebuild hermes-1.3.2-r2.ebuild digest 3)now emerge hermes will work Oups sorry you have to change asrc_unpack() to src_unpack() asrc_compile() to src_compile() and not src_install() to asrc_install() Great, it helped... ..but only for the start. After repairing hermes-1.3.2-r2.ebuild, emerge works, configure ok, but compilation ends with: /bin/sh ../libtool --mode=link gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -o libHermes.la -rpath /usr/lib -version-info 1:0:0 \ Clear.lo Convert.lo Blit.lo Dither.lo FactConv.lo Factory.lo Format.lo Hermes.lo List.lo Palette.lo Utility.lo c_16.lo c_24.lo c_32.lo c_clr.lo c_cnv.lo c_cpy.lo c_genrc.lo c_genrc_ac.lo c_genrc_ca.lo c_genrc_a.lo c_genrc_cc.lo c_genrc_cc_blit.lo c_genrc_co_blit.lo c_i8.lo c_muhmu.lo d_32.lo c_genrc_ao_blit.lo mmx_main.lo mmx_clr.lo mmxp_32.lo x86_clr.lo x86_main.lo x86p_16.lo x86p_32.lo x86p_s32.lo x86p_cpy.lo x86p_i8.lo mmxp2_32.lo libtool: link: `mmx_main.lo' is not a valid libtool object make[2]: *** [libHermes.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/hermes-1.3.2-r2/work/Hermes-1.3.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/hermes-1.3.2-r2/work/Hermes-1.3.2/src' make: *** [all-recursive] Error 1 I'm attaching whole output of 'emerge hermes', maybe you can figure out what's the cause. Not a game or game library Created attachment 44237 [details]
output of 'emerge hermes'
fixed in cvs... sorry 'bout that. First part of fix (typo in ebuild) works fine, thanks a lot. But second problem (comment #4) about missing 'mmx_main.lo' when building 'libHermes.la' is still not fixed.. I'm unable to emerge windowmaker because of dependency to hermes... *** Bug 71913 has been marked as a duplicate of this bug. *** I found the spot where the problem is, but I'm not able to repair it myself, so I'm posting this as hint for someone who will be: ebuild->elibtoolize tryes to patch 'ltmain.sh' with '/usr/portage/eclass/ELT-patches/portage/1.4.1' diff and fails. I tryed it myself with --dry-run -verbose with folowing result: (ltmain.sh.rej) *************** *** 3522,3527 **** case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP --- 3552,3561 ---- case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac + # Do not add duplicates + if test "$installed" = yes && test "$D"; then + install_libdir="`echo "$install_libdir" |sed -e "s:$D::g" -e 's://:/:g'`" + fi $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP On my system patching 'ltmain.sh' with '/usr/portage/eclass/ELT-patches/portage/1.4.1' fails completely (both hunks), indeed I can undo the patch successfully. Then I checked what has changes since the last time it worked for me: http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-libs/hermes/hermes-1.3.2-r2.ebuild?r1=1.24&r2=1.26 And guess what? 'elibtoolize' was not called before! So thats what I did: I commented out the line with 'elibtoolize' and moved 'gnuconfig_update' in front of the 'aclocal'. My scr_unpack now looks as follows: src_unpack() { unpack ${A} || die cd ${S} || die epatch ${FILESDIR}/${P}-amd64.patch epatch ${FILESDIR}/${P}-destdir.patch export WANT_AUTOMAKE=1.8 export WANT_AUTOCONF=2.5 gnuconfig_update aclocal || die "aclocal failed" automake -a || die "automake failed" autoconf || die "autoconf failed" # elibtoolize } Now the error at the beginning is gone and hermes compiles :-) May I throw in that v.1.3.3 is out since "a while" (Bug 48156). Just the website is a 404. Other distros ship it, so it should be possible to grab a source package from them. pleasse post the elibtoolize bug in a new report. |