Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemi nel creare .ebuild per pyRXP [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
MoEbIuZ
n00b
n00b


Joined: 25 Jan 2004
Posts: 15
Location: Italy

PostPosted: Sun Jan 25, 2004 3:38 pm    Post subject: Problemi nel creare .ebuild per pyRXP [risolto] Reply with quote

Ciao, mi sto avventurando nell'impresa di fare un ebuild e per comunciare ho scelto un modulo per python (pyRXP), perchè grazie alle distutils speravo la cosa fosse più semplice... invece mi sono incartato lo stesso.

il mio ebuild è questo:

Code:
#goofy tarball versioning
vmaj=${PV%%.*}
vmin=${PV##*.}

inherit distutils

S=${WORKDIR}/${PN}
DESCRIPTION="Bindigs to RXP, validating XML parser libary."
SRC_URI="http://www.reportlab.org/ftp/pyRXP-${vmaj}-${vmin}.tgz"
HOMEPAGE="http://www.reportlab.org/pyrxp.html"

DEPEND="virtual/python"

IUSE=""
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86"
DOCS="PKG-INFO"


Però dopo aver fatto
Code:
ebuild /usr/portage/dev-python/pyrxp/pyrxp-0.9.ebuild digest
e
Code:
emerge pyrxp
ottengo questo errore:

Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-python/pyrxp-0.9 to /
>>> md5 src_uri ;-) pyRXP-0-9.tgz
>>> Unpacking source...
>>> Unpacking pyRXP-0-9.tgz to /var/tmp/portage/pyrxp-0.9/work
>>> Source unpacked.
python: can't open file 'setup.py'

!!! ERROR: dev-python/pyrxp-0.9 failed.
!!! Function distutils_src_compile, Line 38, Exitcode 2
!!! compilation failed


Il problema forse è nel fatto che il tgz di reportlab non contiene come di solito una dir "pyrxp-0.9" ma contiene subito i sorgenti e le sottodirectory ed io non so dove va emerge a cercare setup.py di default...

Qualcuno può darmi qualche consiglio per sbloccare la situazione?

Grazie, Matteo


Last edited by MoEbIuZ on Mon Jan 26, 2004 4:43 pm; edited 3 times in total
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Jan 25, 2004 6:08 pm    Post subject: Reply with quote

Devi azzeccare la directory nella quale lavorare.
Controlla quello che succede lanciando emerge con -d (debug).
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
MoEbIuZ
n00b
n00b


Joined: 25 Jan 2004
Posts: 15
Location: Italy

PostPosted: Mon Jan 26, 2004 2:10 pm    Post subject: Reply with quote

E' vero, avevo già provato con debug, ma guardando meglio ho trovato questo rigo:

Code:
+ '[' -d /var/tmp/portage/pyrxp-0.9/work/pyrxp ']'


Che corrisponde alla definizione
Code:
S=${WORKDIR}/${PN}

che invece, visto che il .tgz non contiene a sua volta una dir "pyrxp", deve essere:
Code:
S=${WORKDIR}/


Ora funziona. Come faccio a metterlo a disposizione del mondo???
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Mon Jan 26, 2004 2:25 pm    Post subject: Reply with quote

MoEbIuZ wrote:
Ora funziona. Come faccio a metterlo a disposizione del mondo???


Leggi questa quida, Gentoo crea guide per ogni cosa ;)
Ovviamente è presente anche in versione italiana.

Se poi nel frattempo ci posti il collegameno al tuo ebuild possiamo usarlo anche senza aspettare che venga integrato in portage :)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Mon Jan 26, 2004 2:30 pm    Post subject: Reply with quote

Visto che ti hanno gia' detto tutto per il tuo problema io ti dico benvenuto :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
MoEbIuZ
n00b
n00b


Joined: 25 Jan 2004
Posts: 15
Location: Italy

PostPosted: Mon Jan 26, 2004 3:57 pm    Post subject: Provate il pacchetto! Reply with quote

Potete provare l'ebuild a questo indirizzo:

http://naufraghi.freezope.org/wiki/PyRXP

Oppure nei bugs della Gentoo:

https://bugs.gentoo.org/show_bug.cgi?id=39457
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum