G'day all,

I've brought this topic up on the forums but it seems fit to send here also.

I've recently been playing around with the drod-bin ebuild in my overlay in order to get it installed into my amd64 environment.

I've managed to get the install to happen by adding some emul-linux dependencies and forcing a compile of the unwrinklepath tool so that it can link to the amd64 libsandbox. (Custom ebuild at the end for reference).

All sounds good except there is one library missing and drod won't run:

$ drod &
[1] 32285
$ /opt/drod/bin/drod.bin: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory



I can probably hack this around and copy the library from my x86 chroot environment but I want this to be elegant. Does anyone know if an emul-linux-* package that will install the lib32 version of libSDL_ttf. emul-linux-x86-sdl doesn't.


Fun fun fun,

Will.


Here's my custom ebuild for reference:

Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/drod-bin/drod-bin-1.6.5.ebuild,v 1.6 2004/09/23 09:54:51 mr_bones_ Exp $


inherit games eutils

DESCRIPTION="Deadly Rooms Of Death: face room upon room of deadly things, armed with only your sword and your wits"
HOMEPAGE="http://www.drod.net/";
SRC_URI="mirror://sourceforge/drod/CDROD-${PV}-setup.sh.bin"


LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="-* x86 ~amd64"
IUSE=""

RDEPEND="virtual/x11
        dev-libs/expat
        media-libs/fmod
        media-libs/libsdl
        >=media-libs/sdl-ttf-2.0.6
        amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0
                         >=app-emulation/emul-linux-x86-sdl-1.0
        )"


S="${WORKDIR}"

src_unpack() {
        unpack_makeself ${A}
        cd "${S}"
        epatch "${FILESDIR}/install.patch"
}

src_compile() {
        cd Install
        rm unwrinklepath
        gcc unwrinklepath.c -o unwrinklepath
        cd "${S}"
}

src_install() {
        ./install.sh -R "${D}" -g -rl -pg -I || die "install.sh failed"
        dodir "${GAMES_BINDIR}"
        dosym /opt/drod/bin/drod "${GAMES_BINDIR}/drod"
        prepgamesdirs
        fperms 770 /opt/drod/bin/Data
}

pkg_preinst() {
if [ -d ${ROOT}/opt/drod/bin/Data ] ; then
mv ${ROOT}/opt/drod/bin/Data{,.backup} || die "failed to backup data"
fi
}


pkg_postinst() {
        games_pkg_postinst
        if [ -d ${ROOT}/opt/drod/bin/Data.backup ] ; then
                ewarn "Your saved games have been backed up to"
                ewarn "/opt/drod/bin/Data.backup"
        fi
}


-- gentoo-amd64@gentoo.org mailing list



Reply via email to