View previous topic :: View next topic |
Author |
Message |
MoEbIuZ n00b
Joined: 25 Jan 2004 Posts: 15 Location: Italy
|
Posted: Sun Jan 25, 2004 3:38 pm Post subject: Problemi nel creare .ebuild per pyRXP [risolto] |
|
|
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 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 |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Sun Jan 25, 2004 6:08 pm Post subject: |
|
|
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 |
|
|
MoEbIuZ n00b
Joined: 25 Jan 2004 Posts: 15 Location: Italy
|
Posted: Mon Jan 26, 2004 2:10 pm Post subject: |
|
|
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
che invece, visto che il .tgz non contiene a sua volta una dir "pyrxp", deve essere:
Ora funziona. Come faccio a metterlo a disposizione del mondo??? |
|
Back to top |
|
|
shev Bodhisattva
Joined: 03 Feb 2003 Posts: 4084 Location: Italy
|
Posted: Mon Jan 26, 2004 2:25 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30966 Location: here
|
Posted: Mon Jan 26, 2004 2:30 pm Post subject: |
|
|
Visto che ti hanno gia' detto tutto per il tuo problema io ti dico benvenuto _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
MoEbIuZ n00b
Joined: 25 Jan 2004 Posts: 15 Location: Italy
|
|
Back to top |
|
|
|