Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68691 - Ufed saves the "bootsplash" USE-flag as "bootspla"
Summary: Ufed saves the "bootsplash" USE-flag as "bootspla"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 67339 69823 70411 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-24 04:37 UTC by Nikolas Garofil
Modified: 2004-11-21 21:49 UTC (History)
5 users (show)

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


Attachments
ufed-0.35-mask.patch (ufed-0.35-mask.patch,318 bytes, patch)
2004-10-24 05:39 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 Nikolas Garofil 2004-10-24 04:37:21 UTC
These are the use flags in make.conf:

USE="chroot cscope dga divx4linux fbcon fbdev mmx mp3 mplayer \
     network offensive pcre pnp sse userlocales vim-with-x xvid"

When I run ufed,enable the "bootsplash" flag and save I get the following in make.conf:
USE="bootspla chroot cscope dga divx4linux fbcon fbdev mmx mp3 mplayer \
     network offensive pcre pnp sse userlocales vim-with-x xvid"

(notice that "bootsplash" is saved as "bootspla")

Reproducible: Always
Steps to Reproduce:
1. run ufed, enable bootsplash and save

Actual Results:  
bootsplash is saved as bootspla


Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -mfpmath=sse -mmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -mfpmath=sse -mmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts bootspla chroot crypt cscope cups dga
divx4linux encode f77 fbcon fbdev foomaticdb gdbm gif gnome gpm gtk gtk2 imlib
jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg mplayer ncurses network nls
offensiveoggvorbis opengl oss pam pcre pdflib perl png pnp python qt quicktime
readline sdl slang spell sse ssl svga tcpd truetype userlocales vim-with-x x86
xml2 xmms xprint xv xvid zlib"
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2004-10-24 05:39:12 UTC
Created attachment 42488 [details, diff]
ufed-0.35-mask.patch

The problem:

/usr/portage/profiles/use.desc contains
sh - indicates that architecture is SuperH

which tells ufed to remove any sh flags you may have in your USE list. It's a
bit too aggressive. Attached patch fixes it for me.
Comment 2 Stephane Bonnell 2004-10-24 05:59:12 UTC
Same problem for PHP flag 'flash' saved as 'fla'...
Comment 3 Raul Metsma 2004-10-30 00:42:16 UTC
*** Bug 67339 has been marked as a duplicate of this bug. ***
Comment 4 Nikolas Garofil 2004-10-31 01:19:29 UTC
I tested it and the patch works on ufed 0.35 but also on 0.34
Thanks !
Comment 5 Daniel Webert 2004-11-05 12:47:21 UTC
*** Bug 69823 has been marked as a duplicate of this bug. ***
Comment 6 Bel Zébute 2004-11-08 16:20:14 UTC
Basically, any flag ending with sh will be mangled.  I had a problem nagios-ssh that got mangled to nagios-s.  The patch took care of it.  Quick instructions for those who wonder how to fix it.

Enable PORTAGE_OVERLAY="/usr/local/portage" in /etc/make.conf

# mkdir -p /usr/local/portage/app-portage/ufed/files
# cd /usr/local/portage/app-portage/ufed/files
# wget http://bugs.gentoo.org/attachment.cgi?id=42488 -O ufed-0.35-mask.patch
# cp /usr/portage/app-portage/ufed/files/cascaded-profile-support.patch .
# cd ..
# cp /usr/portage/app-portage/ufed/ufed-0.35-r1.ebuild .
# ebuild ufed-0.35-r1.ebuild digest

Modify ufed-0.35-r1.ebuild with your favorite editor and locate the line begining with epatch.  If you use vi|vim|gvim, you can put the cursor on that line and press "d" twice and then "shift-p" twice.  This will double the epatch line.

It should then look this way:

epatch ${FILESDIR}/${P}-mask.patch

Save and ensure ufed will be updated to the said unstable version:

# mkdir -p /etc/portage
# echo "=app-portage/ufed-0.35-r1 ~x86" >> /etc/portage/package.keyword

emerge -a ufed to besure it will borrow the ebuild from the overlay.
Comment 7 Bel Zébute 2004-11-08 16:29:43 UTC
*** Bug 70411 has been marked as a duplicate of this bug. ***
Comment 8 Richard Scott 2004-11-09 03:25:47 UTC
I've just noticed that the flag bash-completion is saved as ba-completion and is marked as an unknown option when next using ufed.
Comment 9 Richard Scott 2004-11-11 07:22:33 UTC
It also removes the flag "tcltk" from /etc/make.conf when saving you've activated it. However, it shows it as being activated next time you run ufed.

However, to compile something with tcltk support it is required in make.conf.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2004-11-21 21:49:08 UTC
0.35-r2 with the patch is in CVS now.