Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Problema con ebuild libreria
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
squob
n00b
n00b


Joined: 15 Jul 2022
Posts: 12

PostPosted: Thu Jun 01, 2023 7:39 am    Post subject: [RISOLTO] Problema con ebuild libreria Reply with quote

Alora ragazzi provo a spiegare il problema. Sto facendo l'aggiornamento del sistema ma la libreria media-libs/raptor riporta un errore di compilazione interrompendomi la catena degli aggiornamenti.

Code:

raptor_libxml.c: In function 'raptor_libxml_getEntity':
raptor_libxml.c:256:12: error: 'xmlEntity' {aka 'struct _xmlEntity'} has no member named 'checked'
  256 |     if(!ret->checked)
      |            ^~
raptor_libxml.c:257:10: error: 'xmlEntity' {aka 'struct _xmlEntity'} has no member named 'checked'
  257 |       ret->checked = 1;
      |          ^~
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2   -I/usr/include/libxml2  -O2 -pipe -c -o turtle_lexer.lo turtle_lexer.c
make[2]: *** [Makefile:975: raptor_libxml.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -I/usr/include/libxml2 -O2 -pipe -c turtle_lexer.c  -fPIC -DPIC -o .libs/turtle_lexer.o
make[2]: Leaving directory '/var/tmp/portage/media-libs/raptor-2.0.15-r7/work/raptor2-2.0.15-abi_x86_64.amd64/src'
make[1]: *** [Makefile:796: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/raptor-2.0.15-r7/work/raptor2-2.0.15-abi_x86_64.amd64/src'
make: *** [Makefile:534: all-recursive] Error 1
 * ERROR: media-libs/raptor-2.0.15-r7::gentoo failed (compile phase):
 *   emake failed


Sono andato a spulciarmi la funzione incriminata del file raptor_libxml.c che è questa

Code:

#if LIBXML_VERSION >= 20627
    /* Checked field was released in 2.6.27 on 2006-10-25
     * http://git.gnome.org/browse/libxml2/commit/?id=a37a6ad91a61d168ecc4b29263def3363fff4da6
     *
     */

    /* Mark this entity as having been checked - never do this again */
    if(!ret->checked)
      ret->checked = 1;
#endif
  }

  return ret;
}



Dopo un po' di ricerche sono riuscito a fare un piccolo passo avanti andando a controllare il file in questione su github e trovando una differenza nella prima riga della funzione del controllo versione che è la seguente e che porta alla compilazione senza errori della libreria.

Code:

#if LIBXML_VERSION >= 20627 && LIBXML_VERSION < 21100


il problema sta nel fatto che quando poi lancio emerge -avuDN @world lui va a riscaricare di nuovo l'ebuild ed il problema si ripresenta. Ho provato ad escludere l'aggiornamento del pacchetto in questione ma poi il sistema cerca altre vie di aggiornamento ed iniziano ad uscire conflitti vari ed eventuali.
C'è un modo per dire a emerge di utilizzare l'ebuild presente sul sistema invece che sul repository?
Non so se la direzione che sto seguendo è quella corretta ma non mi viene in mente altro.


Last edited by squob on Thu Jun 01, 2023 10:54 am; edited 1 time in total
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 368

PostPosted: Thu Jun 01, 2023 7:55 am    Post subject: Reply with quote

Potresti creare un bug report?

Io creerei un patch (https://github.com/dajobe/raptor/commit/4dbc4c1da2a033c497d84a1291c46f416a9cac51.patch) seguendo https://wiki.gentoo.org/wiki//etc/portage/patches.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 368

PostPosted: Thu Jun 01, 2023 8:01 am    Post subject: Reply with quote

Vedo adesso che il patch esisti per media-libs/raptor-2.0.15-r8.
Back to top
View user's profile Send private message
squob
n00b
n00b


Joined: 15 Jul 2022
Posts: 12

PostPosted: Thu Jun 01, 2023 10:52 am    Post subject: Reply with quote

sMueggli wrote:
Potresti creare un bug report?

Io creerei un patch (https://github.com/dajobe/raptor/commit/4dbc4c1da2a033c497d84a1291c46f416a9cac51.patch) seguendo https://wiki.gentoo.org/wiki//etc/portage/patches.


Grazie, lavora perfettamente. Non mi ero accorto dell'esistenza della patch e sinceramente forse mai l'avrei trovata.

Per il bug report non sono assolutamente in grado di farlo, considerando la mia pessima conoscenza dell'inglese e dell'informatica :D

Ora incrocio le dita per i prossimi 350 ebuild in lista...
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