Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild... non mi è chiaro [risolto]. Ma è un bug?
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
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Wed Feb 25, 2004 2:44 pm    Post subject: Ebuild... non mi è chiaro [risolto]. Ma è un bug? Reply with quote

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
Code:
 !PNG
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
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Wed Feb 25, 2004 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Wed Feb 25, 2004 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Thu Feb 26, 2004 10:56 pm    Post subject: Ebuild ...non mi è chiaro. [risolto] E' un bug da segnalare Reply with quote

...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
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


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

PostPosted: Fri Feb 27, 2004 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Fri Feb 27, 2004 9:04 am    Post subject: Reply with quote

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

. . ... .......:roll:
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


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

PostPosted: Fri Feb 27, 2004 9:09 am    Post subject: Reply with quote

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
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Fri Feb 27, 2004 9:54 am    Post subject: Reply with quote

cerri wrote:
Ok, allora è un bug.
La tua correzione è giusta, apri un bug report :)


Fatto. :D :D :D :D
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