View previous topic :: View next topic |
Author |
Message |
tocas Apprentice
Joined: 01 Jan 2004 Posts: 280 Location: 43°50'-10°27'
|
Posted: Wed Feb 25, 2004 2:44 pm Post subject: Ebuild... non mi è chiaro [risolto]. Ma è un bug? |
|
|
In un precedente post si è parlato di Lcd4linux ed ho voluto provarlo subito in modalità raster la quale prevede la generazione di un'immagine PNG da inserire in una eventuale pagina web.
Il portage viene compilato regolarmente ma quando lancio il seguente comando:
/usr/bin/lcd4linux -vvv -F -o /root/test.png
ottengo questo errore
Code: |
Version 0.9.10 starting
lcd4linux.c: initializing driver PNG
lcd_init(PNG) failed: no such display
|
Ho controllato i sorgenti ed ho visto che è possibile disabilitare in fase di compilazione alcune modalità di visualizzazione tra le quali anche PNG e il mi dubbio è che non venga inserito durante il config.
La variabile USE ha il PNG abilitato e questa è la parte dell'ebuild che dovrebbe interessare:
Code: | LICENSE="GPL-2"
KEYWORDS="x86"
IUSE="kde pda png X usb"
DEPEND="png? ( media-libs/libpng
sys-libs/zlib
media-libs/libgd )"
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
epatch ${DISTDIR}/${P}-cf634.diff
}
src_compile() {
local myconf
use png || myconf=",!PNG"
use pda || myconf="${myconf},!PalmPilot"
use X || myconf="${myconf},!X11"
use usb || myconf="${myconf},!USBLCD"
econf \
--sysconfdir=/etc/lcd4linux \
--with-drivers="all${myconf},!PNG"
emake || die
}
|
Preciso che esclude la compilazione.
Avendo png incluso in IUSE non dovrebbe sovrascrivere il valore del flag USE e quindi abilitarlo comunque ?
Saluti
Last edited by tocas on Thu Feb 26, 2004 11:00 pm; edited 2 times in total |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Wed Feb 25, 2004 3:05 pm Post subject: |
|
|
IUSE elenca semplicemente le variabili che influenzano un pacchetto (viene utilizzata ad esempio per l'output di emerge -vp). _________________ "Larry the Cow was a bit frustrated at the current state of Linux Distributions..." |
|
Back to top |
|
|
tocas Apprentice
Joined: 01 Jan 2004 Posts: 280 Location: 43°50'-10°27'
|
Posted: Wed Feb 25, 2004 5:50 pm Post subject: |
|
|
MyZelF wrote: | IUSE elenca semplicemente le variabili che influenzano un pacchetto (viene utilizzata ad esempio per l'output di emerge -vp). |
Adesso questo mi è chiaro, grazie !
Continuo ad avere il dubbio sulla corretta interpretazione dello script di ebuild, ammesso che la USE ha la variabile png settata, mi sembra di capire che myconf sarà uguale a ,!PNG. |
|
Back to top |
|
|
tocas Apprentice
Joined: 01 Jan 2004 Posts: 280 Location: 43°50'-10°27'
|
Posted: Thu Feb 26, 2004 10:56 pm Post subject: Ebuild ...non mi è chiaro. [risolto] E' un bug da segnalare |
|
|
...visto che non ho ricevuto nessun ulteriore aiuto ho cercato in giro e mi sono spulciato
http://www.gentoo.org/doc/en/gentoo-howto.xml.
Mi è bastato modificare l'ebuild script di lcd4linux togliendo !PNG alla riga sotto riportata:
Code: | econf \
--sysconfdir=/etc/lcd4linux \
--with-drivers="all${myconf},!PNG" |
come segue:
Code: | econf \
--sysconfdir=/etc/lcd4linux \
--with-drivers="all${myconf}"
|
In questo modo, avendo la variabile PNG in USE il portage viene compilato correttamente abilitando anche la modalità display raster.
A questo punto chiedo agli esperti: è necessario attivare la procedura di segnalazione del bug ? |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Fri Feb 27, 2004 7:40 am Post subject: |
|
|
Puoi postare il risultato di
Code: | $ emerge -vp lcd4linux |
? _________________ 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 |
|
|
tocas Apprentice
Joined: 01 Jan 2004 Posts: 280 Location: 43°50'-10°27'
|
Posted: Fri Feb 27, 2004 9:04 am Post subject: |
|
|
cerri wrote: | Puoi postare il risultato di
Code: | $ emerge -vp lcd4linux |
|
Certo..
Code: | These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] app-misc/lcd4linux-0.9.10 +kde -pda +png +X -usb |
. . ... ....... |
|
Back to top |
|
|
cerri Bodhisattva
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Fri Feb 27, 2004 9:09 am Post subject: |
|
|
Ok, allora è un bug.
La tua correzione è giusta, apri un bug report _________________ 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 |
|
|
tocas Apprentice
Joined: 01 Jan 2004 Posts: 280 Location: 43°50'-10°27'
|
Posted: Fri Feb 27, 2004 9:54 am Post subject: |
|
|
cerri wrote: | Ok, allora è un bug.
La tua correzione è giusta, apri un bug report |
Fatto. |
|
Back to top |
|
|
|