Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35915 - ufed-0.34 not handling libg++
Summary: ufed-0.34 not handling libg++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-12-15 21:57 UTC by Madrory
Modified: 2005-02-15 05:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ufed-0.35-plus.patch (ufed-0.35-plus.patch,923 bytes, patch)
2004-09-28 04:34 UTC, Harald van Dijk (RETIRED)
Details | Diff
ufed-0.35-plus.patch (ufed-0.35-plus.patch,1.29 KB, patch)
2004-12-09 16:37 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Madrory 2003-12-15 21:57:43 UTC
I've checked a few times, with varying results.
If libg++ is not already in the USE flags, it runs fine, but then saves make.conf with libg++ as libg\+\+ instead. The next time ufed is run:

[X] libg                 (  +) (Unknown)                                                                                  
[ ] libg++               (   ) Adds C++ modules in dev-db/postgresql (libpq++)                                            

If libg++ is already in the USE flags, ufed dies with the following error:

Nested quantifiers in regex; marked by <-- HERE in m/aalib crypt encode esd fbcon gb gd gdbm gif gpm gstreamer imap ipv6 jpeg kerberos krb4 libg++ <-- HERE  libwww lirc mad maildir mmx mozilla mpeg ncurses nls pdflib perl png postgres python qt quicktime readline slang snmp -ssmtp socks5 spell ssl svga tiff truetype usb X xml xml2 xv zlib/ at /usr/sbin/ufed line 654.

I tried changing line 654 to be a direct assignment as it is calling a function that returns a regex'd scalar. That seemed to get rid of the nested regex, however, the make.conf still was saving libg++ as libg\+\+ , with the above results.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2004-09-28 04:34:29 UTC
Created attachment 40599 [details, diff]
ufed-0.35-plus.patch

ufed 0.35 seems to have fixed most of the problems you described (I haven't
used 0.34, so I don't know exactly what was and wasn't working), but it still
has some bugs with plus signs left. For example, if libg++ is not in your
profile and you add it to your make.conf, run ufed and you'll see libg++
unchecked, even though it says (  +) (and when you save, libg++ is removed from
your make.conf, unless you check it every time you run ufed). (If libg++ is in
your profile, you can probably check it with the c++ flag too.) I created this
patch to get rid of that problem. Does it work for you, or did I miss
something?
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 20:15:13 UTC
patch only works partially for me, it adds libg++ correctly but if libg++ is in make.conf I only get the error message as reported. 
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2004-12-09 16:37:33 UTC
Created attachment 45646 [details, diff]
ufed-0.35-plus.patch

After your comment I looked into it a bit more. You both have -* in your USE
flags, right? I couldn't get it without it, but as soon as I added it, I got
this error too. This should fix it. CleanUpFlags returns a cleaned up string,
not a regex to produce that cleaned up string, so I have no idea what =~ was
doing there instead of = in the first place.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-12-22 16:30:09 UTC
Should be fixed in 0.35-r3
Comment 5 Stefano Debenedetti 2005-02-15 05:46:15 UTC
This bug is still alive in 0.35-r3

Here is the error message I get when I try to run ufed when I have libg++ in my USE flags:

Nested quantifiers in regex; marked by <-- HERE in m/alsa apache2 arts artswrappersuid audiofile bash-completion berkdb bidi bitmap-fonts cdparanoia cjk crypt cups curl dga dhcp divx4linux dv dvb dvd dvdr dvdread edl emacs encode faac faad fam flac gcj gdbm gif gnome gtk gtk2 iconv icq imap imlib innodb java javascript jpeg jpeg2k kde lcms ldap leim libcaca libg++ <-- HERE  libwww lzo mad mailwrapper mime mmx mmx2 motif mozaccess mozcalendar mozdevelop mozilla mozp3p mozsvg mozxmlterm mpi mplayer multislot mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses network nls objc odbc oggvorbis opengl oss pam pcmcia pcre pdf pdflib perl pg-hier php png postgres python qt radeon readline real rtc samba sdl slp sndfile snmp sse sse2 ssl svg tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts vhosts X xine xml2 xosd xv xvid xvmc yahoo zlib/ at /usr/sbin/ufed line 737.

Here are my USE flags (yes I do have -*) :

USE="-* alsa apache2 arts artswrappersuid audiofile bash-completion berkdb \
     bidi bitmap-fonts cdparanoia cjk crypt cups curl dga dhcp divx4linux \
     dv dvb dvd dvdr dvdread edl emacs encode faac faad fam flac gcj gdbm \
     gif gnome gtk gtk2 iconv icq imap imlib innodb java javascript jpeg \
     jpeg2k kde lcms ldap leim libcaca libg++ libwww lzo mad mailwrapper \
     mime mmx mmx2 motif mozaccess mozcalendar mozdevelop mozilla mozp3p \
     mozsvg mozxmlterm mpi mplayer multislot mysql nagios-dns nagios-ntp \
     nagios-ping nagios-s ncurses network nls objc odbc oggvorbis opengl \
     oss pam pcmcia pcre pdf pdflib perl pg-hier php png postgres python \
     qt radeon readline real rtc samba sdl slp sndfile snmp sse sse2 ssl \
     svg tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts vhosts X \
     xine xml2 xosd xv xvid xvmc yahoo zlib"