Gentoo Archives: gentoo-dev

From: Per Wigren <wigren@××××.se>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Very strange problem...
Date: Fri, 31 May 2002 22:18:38
Message-Id: 200206010518.26634.wigren@home.se
In Reply to: Re: [gentoo-dev] Very strange problem... by Spider
1 Yes, that was it! :)
2
3 That leaves some questions though...
4 1: Why does strip truncate the whole file?
5 2: Why does ebuild run strip on it even when I use cp and mv to copy it to
6 ${D} ??
7
8 // Wigren
9
10 Friday 31 May 2002 22.56 skrev Spider:
11 > Hmm, try to unpack it by hand and run "strip" on it... that could be it
12 >
13 > :)
14 >
15 > //Spider
16 >
17 >
18 > begin quote
19 > On Fri, 31 May 2002 20:48:56 +0200
20 >
21 > Per Wigren <wigren@××××.se> wrote:
22 > > I really don't understand this...
23 > > I have an ebuild for epsxe (playstation emulator)..
24 > > After "ebuild unpack" I check /var/tmp/portage/epsxe-1.5.2/work and it
25 > >
26 > > contains the correct, working binary.
27 > > After "ebuild install", the epsxe binary is in
28 > > /var/tmp/portage/epsxe-1.5.2/image/opt/epsxe, but it is only 92 bytes
29 > > and contais ".ELF............".. The first 92 bytes of the original
30 > > binary that is.. It doesn't matter if I use insinto;doins, dobin, cp
31 > > or mv in src_install.. It still gets truncated to 92 bytes...
32 > >
33 > > Here is the ebuild (dobin ${FILESDIR}-line commented so you can try
34 > > it):
35 > >
36 > >
37 > > # Copyright 1999-2002 Gentoo Technologies, Inc.
38 > > # Distributed under the terms of the GNU General Public License v2
39 > > # Author Per Wigren <wigren@××××.se>
40 > > # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18
41 > > # 17:25:12
42 > > agenkin Exp
43 > >
44 > > DESCRIPTION="ePSXe Playstation Emulator"
45 > >
46 > > HOMEPAGE="http://www.epsxe.com"
47 > >
48 > > LICENSE="Freeware"
49 > >
50 > > use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl"
51 > > use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu"
52 > >
53 > > DEPEND="app-arch/unzip"
54 > > RDEPEND="=dev-libs/glib-1.2
55 > > =x11-libs/gtk+-1.2*
56 > > =sys-libs/ncurses-5*
57 > > =sys-libs/zlib-1*
58 > > app-emulation/psemu-peopsspu
59 > > ${GLDEPEND}"
60 > >
61 > > SRC_URI="http://download.epsxe.com/files/epsxe152lin.zip"
62 > >
63 > > S=${WORKDIR}
64 > >
65 > > src_unpack() {
66 > > unzip ${DISTDIR}/${A}
67 > > }
68 > >
69 > > src_install () {
70 > > #dobin ${FILESDIR}/epsxe
71 > > dodoc docs/*
72 > >
73 > > insinto /opt/epsxe
74 > > doins epsxe
75 > >
76 > > insinto /usr/lib/psemu/cheats
77 > > doins cheats/*
78 > > }
79 > >
80 > > _______________________________________________
81 > > gentoo-dev mailing list
82 > > gentoo-dev@g.o
83 > > http://lists.gentoo.org/mailman/listinfo/gentoo-dev

Replies

Subject Author
Re: [gentoo-dev] Very strange problem... Spider <spider@g.o>