Hi,
I've presented this problem already to 2 developers, both of them where
unable to help me.
I hope I can find a solution on this list.
I've created my first ebuild, I've included the ebuild script the patch
and the output of the emerge tinyscheme command.
The problem is with the install -g root -o root -m 755 scheme etc ..
command, it seems to run fine but at the end nothing is installed ....
If I patch the source myself and run make && make
DESTDIR=/home/jonas/bin install; everything works fine ...
I find it a really odd problem..
Regards Jonas
# Copyright 2000-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="Lightweight scheme interpreter"
HOMEPAGE="http://tinyscheme.sourceforge.net"
SRC_URI="http://tinyscheme.sourceforge.net/tinyscheme-1.35.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~ppc"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A} || die
cd ${S}
epatch ${FILESDIR}/${P}-make-install.patch
}
src_compile() {
emake || die
}
src_install() {
echo ${D}
make DESTDIR=${D} install || die
}
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-scheme/tinyscheme-1.35 to /
>>> md5 files ;-) tinyscheme-1.35.ebuild
>>> md5 files ;-) files/digest-tinyscheme-1.35
>>> md5 files ;-) files/tinyscheme-1.35-make-install.patch
>>> md5 src_uri ;-) tinyscheme-1.35.tar.gz
>>> Unpacking source...
>>> Unpacking tinyscheme-1.35.tar.gz to /var/tmp/portage/tinyscheme-1.35/work
* Applying tinyscheme-1.35-make-install.patch ...
[ ok ]
>>> Source unpacked.
gcc -fpic -I. -c -g -Wno-char-subscripts -O -DSUN_DL=1 -DUSE_DL=1 -DUSE_MATH=0
-DUSE_ASCII_NAMES=0 scheme.c
gcc -fpic -I. -c -g -Wno-char-subscripts -O -DSUN_DL=1 -DUSE_DL=1 -DUSE_MATH=0
-DUSE_ASCII_NAMES=0 dynload.c
dynload.c:24:1: warning: "SUN_DL" redefined
<command line>:11:1: warning: this is the location of the previous definition
gcc -shared -o libtinyscheme.so scheme.o dynload.o -ldl
ar crs libtinyscheme.a scheme.o dynload.o
gcc -fpic -o scheme -g -Wno-char-subscripts -O scheme.o dynload.o -ldl
>>> Test phase [not enabled]: dev-scheme/tinyscheme-1.35
>>> Install tinyscheme-1.35 into /var/tmp/portage/tinyscheme-1.35/image/
>>> category dev-scheme
/var/tmp/portage/tinyscheme-1.35/image/
install -o root -g root -m 755 scheme
/var/tmp/portage/tinyscheme-1.35/image//bin
man:
prepallstrip:
strip: powerpc-unknown-linux-gnu-strip --strip-unneeded
strip: powerpc-unknown-linux-gnu-strip --strip-unneeded
bin
>>> Completed installing tinyscheme-1.35 into
>>> /var/tmp/portage/tinyscheme-1.35/image/
>>> Merging dev-scheme/tinyscheme-1.35 to /
!!! /bin
>>> /bin
>>> Safely unmerging already-installed instance...
--- makefile.b 2003-01-07 20:01:04.000000000 +0100
+++ makefile 2005-05-24 17:00:36.773034840 +0200
@@ -28,6 +28,7 @@
OUT = -o $@
RM= -rm -f
AR= ar crs
+DESTDIR=/usr
# Linux
LD = gcc
@@ -82,3 +83,6 @@
tags: TAGS
TAGS: $(TAGS_SRCS)
etags $(TAGS_SRCS)
+
+install:
+ install -o root -g root -m 755 scheme$(EXE_EXIT) $(DESTDIR)/bin