* [gentoo-dev] problem with first ebuild
@ 2005-05-24 17:17 Jonas Geiregat
2005-05-24 17:27 ` Donnie Berkholz
2005-05-24 17:28 ` Mike Frysinger
0 siblings, 2 replies; 3+ messages in thread
From: Jonas Geiregat @ 2005-05-24 17:17 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
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
[-- Attachment #2: tinyscheme-1.35.ebuild --]
[-- Type: text/plain, Size: 554 bytes --]
# 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
}
[-- Attachment #3: tinyscheme-emerge.out --]
[-- Type: text/plain, Size: 1680 bytes --]
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...
[-- Attachment #4: tinyscheme-1.35-make-install.patch --]
[-- Type: text/plain, Size: 347 bytes --]
--- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] problem with first ebuild
2005-05-24 17:17 [gentoo-dev] problem with first ebuild Jonas Geiregat
@ 2005-05-24 17:27 ` Donnie Berkholz
2005-05-24 17:28 ` Mike Frysinger
1 sibling, 0 replies; 3+ messages in thread
From: Donnie Berkholz @ 2005-05-24 17:27 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jonas Geiregat wrote:
> 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 you're manually running the install command, you might need to state
that you're installing it to ${D}.
> If I patch the source myself and run make && make
> DESTDIR=/home/jonas/bin install; everything works fine ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCk2QSXVaO67S1rtsRAr8HAKCowsc+L9YshT3ag38ZKt7UlG9qGwCg31AR
r8nSMIgv4UYECxUizIL+6ds=
=Z8s+
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] problem with first ebuild
2005-05-24 17:17 [gentoo-dev] problem with first ebuild Jonas Geiregat
2005-05-24 17:27 ` Donnie Berkholz
@ 2005-05-24 17:28 ` Mike Frysinger
1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2005-05-24 17:28 UTC (permalink / raw
To: gentoo-dev
On Tuesday 24 May 2005 01:17 pm, Jonas Geiregat wrote:
> 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 ....
the problem is the silly install command
your binary is being installed as '/bin' not as '/bin/scheme'
you can fix this by patching the makefile to do a `install -d $(DESTDIR)/bin`
before trying to install the binary, or you can change it to do:
install -o root -g root -m 755 scheme -D $(DESTDIR)/bin/scheme
or you can be lazy and add a `dodir /bin/` before the `make install`, but
that's weak :P
side note, there's no reason to install scheme into /bin ... it should go
into /usr/bin
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-24 17:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 17:17 [gentoo-dev] problem with first ebuild Jonas Geiregat
2005-05-24 17:27 ` Donnie Berkholz
2005-05-24 17:28 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox