* [gentoo-dev] Very strange problem...
@ 2002-05-31 18:48 Per Wigren
2002-05-31 20:56 ` Spider
0 siblings, 1 reply; 4+ messages in thread
From: Per Wigren @ 2002-05-31 18:48 UTC (permalink / raw
To: gentoo-dev
I really don't understand this...
I have an ebuild for epsxe (playstation emulator)..
After "ebuild unpack" I check /var/tmp/portage/epsxe-1.5.2/work and it
contains the correct, working binary.
After "ebuild install", the epsxe binary is in
/var/tmp/portage/epsxe-1.5.2/image/opt/epsxe, but it is only 92 bytes and
contais ".ELF............".. The first 92 bytes of the original binary that
is.. It doesn't matter if I use insinto;doins, dobin, cp or mv in
src_install.. It still gets truncated to 92 bytes...
Here is the ebuild (dobin ${FILESDIR}-line commented so you can try it):
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Per Wigren <wigren@home.se>
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18 17:25:12
agenkin Exp
DESCRIPTION="ePSXe Playstation Emulator"
HOMEPAGE="http://www.epsxe.com"
LICENSE="Freeware"
use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl"
use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu"
DEPEND="app-arch/unzip"
RDEPEND="=dev-libs/glib-1.2
=x11-libs/gtk+-1.2*
=sys-libs/ncurses-5*
=sys-libs/zlib-1*
app-emulation/psemu-peopsspu
${GLDEPEND}"
SRC_URI="http://download.epsxe.com/files/epsxe152lin.zip"
S=${WORKDIR}
src_unpack() {
unzip ${DISTDIR}/${A}
}
src_install () {
#dobin ${FILESDIR}/epsxe
dodoc docs/*
insinto /opt/epsxe
doins epsxe
insinto /usr/lib/psemu/cheats
doins cheats/*
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Very strange problem...
2002-05-31 18:48 [gentoo-dev] Very strange problem Per Wigren
@ 2002-05-31 20:56 ` Spider
2002-06-01 3:18 ` Per Wigren
0 siblings, 1 reply; 4+ messages in thread
From: Spider @ 2002-05-31 20:56 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]
Hmm, try to unpack it by hand and run "strip" on it... that could be it
:)
//Spider
begin quote
On Fri, 31 May 2002 20:48:56 +0200
Per Wigren <wigren@home.se> wrote:
> I really don't understand this...
> I have an ebuild for epsxe (playstation emulator)..
> After "ebuild unpack" I check /var/tmp/portage/epsxe-1.5.2/work and it
>
> contains the correct, working binary.
> After "ebuild install", the epsxe binary is in
> /var/tmp/portage/epsxe-1.5.2/image/opt/epsxe, but it is only 92 bytes
> and contais ".ELF............".. The first 92 bytes of the original
> binary that is.. It doesn't matter if I use insinto;doins, dobin, cp
> or mv in src_install.. It still gets truncated to 92 bytes...
>
> Here is the ebuild (dobin ${FILESDIR}-line commented so you can try
> it):
>
>
> # Copyright 1999-2002 Gentoo Technologies, Inc.
> # Distributed under the terms of the GNU General Public License v2
> # Author Per Wigren <wigren@home.se>
> # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18
> # 17:25:12
> agenkin Exp
>
> DESCRIPTION="ePSXe Playstation Emulator"
>
> HOMEPAGE="http://www.epsxe.com"
>
> LICENSE="Freeware"
>
> use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl"
> use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu"
>
> DEPEND="app-arch/unzip"
> RDEPEND="=dev-libs/glib-1.2
> =x11-libs/gtk+-1.2*
> =sys-libs/ncurses-5*
> =sys-libs/zlib-1*
> app-emulation/psemu-peopsspu
> ${GLDEPEND}"
>
> SRC_URI="http://download.epsxe.com/files/epsxe152lin.zip"
>
> S=${WORKDIR}
>
> src_unpack() {
> unzip ${DISTDIR}/${A}
> }
>
> src_install () {
> #dobin ${FILESDIR}/epsxe
> dodoc docs/*
>
> insinto /opt/epsxe
> doins epsxe
>
> insinto /usr/lib/psemu/cheats
> doins cheats/*
> }
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Very strange problem...
2002-05-31 20:56 ` Spider
@ 2002-06-01 3:18 ` Per Wigren
2002-06-01 3:26 ` Spider
0 siblings, 1 reply; 4+ messages in thread
From: Per Wigren @ 2002-06-01 3:18 UTC (permalink / raw
To: gentoo-dev
Yes, that was it! :)
That leaves some questions though...
1: Why does strip truncate the whole file?
2: Why does ebuild run strip on it even when I use cp and mv to copy it to
${D} ??
// Wigren
Friday 31 May 2002 22.56 skrev Spider:
> Hmm, try to unpack it by hand and run "strip" on it... that could be it
>
> :)
>
> //Spider
>
>
> begin quote
> On Fri, 31 May 2002 20:48:56 +0200
>
> Per Wigren <wigren@home.se> wrote:
> > I really don't understand this...
> > I have an ebuild for epsxe (playstation emulator)..
> > After "ebuild unpack" I check /var/tmp/portage/epsxe-1.5.2/work and it
> >
> > contains the correct, working binary.
> > After "ebuild install", the epsxe binary is in
> > /var/tmp/portage/epsxe-1.5.2/image/opt/epsxe, but it is only 92 bytes
> > and contais ".ELF............".. The first 92 bytes of the original
> > binary that is.. It doesn't matter if I use insinto;doins, dobin, cp
> > or mv in src_install.. It still gets truncated to 92 bytes...
> >
> > Here is the ebuild (dobin ${FILESDIR}-line commented so you can try
> > it):
> >
> >
> > # Copyright 1999-2002 Gentoo Technologies, Inc.
> > # Distributed under the terms of the GNU General Public License v2
> > # Author Per Wigren <wigren@home.se>
> > # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18
> > # 17:25:12
> > agenkin Exp
> >
> > DESCRIPTION="ePSXe Playstation Emulator"
> >
> > HOMEPAGE="http://www.epsxe.com"
> >
> > LICENSE="Freeware"
> >
> > use opengl && GLDEPEND="app-emulation/psemu-gpupetemesagl"
> > use opengl || GLDEPEND="app-emulation/psemu-peopssoftgpu"
> >
> > DEPEND="app-arch/unzip"
> > RDEPEND="=dev-libs/glib-1.2
> > =x11-libs/gtk+-1.2*
> > =sys-libs/ncurses-5*
> > =sys-libs/zlib-1*
> > app-emulation/psemu-peopsspu
> > ${GLDEPEND}"
> >
> > SRC_URI="http://download.epsxe.com/files/epsxe152lin.zip"
> >
> > S=${WORKDIR}
> >
> > src_unpack() {
> > unzip ${DISTDIR}/${A}
> > }
> >
> > src_install () {
> > #dobin ${FILESDIR}/epsxe
> > dodoc docs/*
> >
> > insinto /opt/epsxe
> > doins epsxe
> >
> > insinto /usr/lib/psemu/cheats
> > doins cheats/*
> > }
> >
> > _______________________________________________
> > gentoo-dev mailing list
> > gentoo-dev@gentoo.org
> > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Very strange problem...
2002-06-01 3:18 ` Per Wigren
@ 2002-06-01 3:26 ` Spider
0 siblings, 0 replies; 4+ messages in thread
From: Spider @ 2002-06-01 3:26 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
begin quote
On Sat, 1 Jun 2002 05:18:26 +0200
Per Wigren <wigren@home.se> wrote:
> Yes, that was it! :)
>
> That leaves some questions though...
> 1: Why does strip truncate the whole file?
No idea. ask strip ;)
> 2: Why does ebuild run strip on it even when I use cp and mv to copy
> it to ${D} ??
"feature" ...
add RESTRICT="nostrip" in the ebuild
btw.. all binary packages should isntall into /opt/
//Spider
--
begin .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-01 3:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-31 18:48 [gentoo-dev] Very strange problem Per Wigren
2002-05-31 20:56 ` Spider
2002-06-01 3:18 ` Per Wigren
2002-06-01 3:26 ` Spider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox