'emerge hermes' returns folowing result: root@home grimm # emerge hermes Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/hermes-1.3.2-r2 to / >>> md5 src_uri ;-) Hermes-1.3.2.tar.gz >>> Unpacking source... >>> Unpacking Hermes-1.3.2.tar.gz to /var/tmp/portage/hermes-1.3.2-r2/work >>> Source unpacked. >>> Test phase [not enabled]: media-libs/hermes-1.3.2-r2 >>> Install hermes-1.3.2-r2 into /var/tmp/portage/hermes-1.3.2-r2/image/ category media-libs make: *** No rule to make target `install'. Stop. !!! ERROR: media-libs/hermes-1.3.2-r2 failed. !!! Function src_install, Line 49, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge hermes 2. 3. Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686) ================================================================= System uname: 2.6.9-gentoo-r4 i686 Celeron (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/www/localhost/htdocs//mythweb/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.linux.no/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.linux.no/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd ethereal f77 fam flac foomaticdb fortran gd gdbm gif gpm gtk2 i810 imagemagick imlib java jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl pgsql png postgres python qt quicktime readline samba sdl slang spell ssl tcltk tcpd tiff truetype x86 xml2 xmms xv zlib video_cards_i810"
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.