From 5f08d3d90a09a40ddc363fd3d6384765152d4010 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 15 Dec 2006 21:17:21 +0000 Subject: build/install fixes and improved postinst message svn path=/; revision=66 --- sys-libs/libspe2/files/spe.rc6 | 2 +- sys-libs/libspe2/libspe2-2.0.1.ebuild | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sys-libs/libspe2/files/spe.rc6 b/sys-libs/libspe2/files/spe.rc6 index 0776e88..4614b4a 100644 --- a/sys-libs/libspe2/files/spe.rc6 +++ b/sys-libs/libspe2/files/spe.rc6 @@ -17,7 +17,7 @@ start() { return 1 else if test -f /proc/sys/fs/binfmt_misc/register - echo ':spe:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17::/usr/bin/elfspe:' >/proc/sys/fs/binfmt_misc/register + echo ':spe:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17::/usr/bin/elfspe2:' >/proc/sys/fs/binfmt_misc/register eend $? else eerror "binfmt not available" diff --git a/sys-libs/libspe2/libspe2-2.0.1.ebuild b/sys-libs/libspe2/libspe2-2.0.1.ebuild index b0ce544..08539db 100644 --- a/sys-libs/libspe2/libspe2-2.0.1.ebuild +++ b/sys-libs/libspe2/libspe2-2.0.1.ebuild @@ -4,7 +4,7 @@ DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" HOMEPAGE="http://ozlabs.org/pipermail/cbe-oss-dev/" -SRC_URI="http://dev.gentoo.org/~lu_zero/distfiles/${P}.tar.gz" +SRC_URI="http://dev.gentoo.org/~lu_zero/distfiles/${P}.tar.bz2" LICENSE="LGPL-2" SLOT="0" @@ -37,19 +37,22 @@ src_unpack () { src_compile() { myconf="" use debug && myconf="${myconf} DEBUG=1" - make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" ${myconf} + make all elfspe2-all CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" ${myconf} } src_install() { make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" \ - DESTDIR="$D" install + DESTDIR="$D" install elfspe2-install cp ${FILESDIR}/spe.rc6 ${T}/elfspe doinitd ${T}/elfspe } - pkg_postinst() { einfo "You may want to register elfspe to binfmt using the" einfo "provided initscript" einfo "# rc-update add elfspe boot" + ewarn "make sure your fstab contains the following line" + ewarn "none /spu spufs defaults + 0 0" + ewarn "and that you have spufs support enabled in the kernel" } -- cgit v1.2.3-65-gdbad