Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9576 - KPortage little bug in portage configuration
Summary: KPortage little bug in portage configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Hannes Mehnert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-23 17:28 UTC by Moreno Rizzo
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
Surce file and out file processed by kportage (log.tar.bz2,4.19 KB, application/octet-stream)
2002-12-09 17:44 UTC, Moreno Rizzo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moreno Rizzo 2002-10-23 17:28:25 UTC
Program:KPortage 0.5 for kde 3.0.4
Menu'  :Setting -> portage configuration
Page   :Build option

This mask fail in read configuration file /etc/make.conf
when the statement CXXFLAGS is 2 lines

Statement not cerrectly read
CXXFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer 
-ffast-math -funroll-loops -fforce-addr "

I've solved with a statement in one sigle line, but i think is a little bug.
This work correttly.
CXXFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer .[cut]...."

tanks
Comment 1 SpanKY gentoo-dev 2002-10-23 19:37:19 UTC
kportage is not run by Gentoo ;) 
 
root@rux0r exmh # emerge -s kportage 
Searching...    
[ Results for search key : kportage ] 
[ Applications found : 1 ] 
  
*  app-admin/kportage 
      Latest version available: 0.5 
      Latest version installed: [ Not Installed ] 
      Homepage: http://www.freesoftware.fsf.org/kportage/ 
      Description: A graphical frontend for portage 
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-23 20:55:30 UTC
still an ebuild issue, though..
Comment 3 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-02 10:13:38 UTC
fixed in our cvs. thanks for submission. will leave this open     until anyone confirmed it works now (would be nice if you try it, more information     about our anoncvs can be found at  http://savannah.nongnu.org/cvs/?group=kportage ).  
Comment 4 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-03 10:39:41 UTC
this is fixed in kportage-0.5.1, please test and if it works for you, please mark this 
bug as resolved fixed. 
Comment 5 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-13 16:25:25 UTC
now kportage-0.5.1-r1 is out, which should fix any conf problems. 
would be nice to hear if this works for you. 
Comment 6 Moreno Rizzo 2002-11-14 13:52:59 UTC
Sorry ,  for me kportage-0.5.1-r1 does not work correctly
the error is not the same, but is similar....
This is my file make.conf
#------------------------------------
USE="3dnow alsa apm arts avi
berkdb crypt cups doc dvd encode fbcon
gdbm gif gnome gpm gtk imap imlib innodb
java jpeg kde kerberos libg++ libwww
maildir mbox mikmod mmx motif
mozilla mpeg mysql
ncurses nls oggvorbis
odbc opengl oss pam pdflib
perl png postgres python
qt qtmt quicktime readline ruby
samba sdl slang slp spell ssl svga
tcltk tcpd tetex tiff truetype
X x86 xml2 xmms xv zlib"

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O3 -pipe -m3dnow -mmmx
-fomit-frame-pointer -ffast-math
-funroll-loops -fforce-addr
-falign-functions=4"

CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
#------------------------------------

Now i Enter in Kportage,Setting,Portage-configuration,build option
I Show the paramiter, i'ts correct, but NOW i clik OK button and....

DISASTER This is the new situation....
#------------------------------------
USE="3dnow alsa apm arts avi
#
#
#
#
#
#
#
#
#
#
#
#
#
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer -ffast-math -funroll-loops
-mmmx -fforce-addr "
#
#
-falign-functions=4"
#
CXXFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer -ffast-math -funroll-loops
-mmmx -fforce-addr "
MAKEOPTS="-j2"
AUTOCLEAN="yes"
#------------------------------------

more parameter is lost and there are some unterminated string.
but no problem i've a copy of the original file.
Comment 7 Hannes Mehnert (RETIRED) gentoo-dev 2002-12-08 16:17:09 UTC
ok, since you still have this problem, maybe you want to test our current cvs with enhanced configuration? just go to http://www.freesoftware.fsf.org/kportage and download the cvs ebuild.  it currently does not write any files, it prints the make.conf it would write to stdout (for testing purposes). 
Comment 8 Moreno Rizzo 2002-12-09 17:44:23 UTC
Created attachment 6354 [details]
Surce file and out file processed by kportage
Comment 9 Moreno Rizzo 2002-12-09 17:53:04 UTC
SORRY. I've WRONG created an attachement without message.
This is a message for the previus attachement


Ok, for me is solved in the cvs (stdout) version, but....

I've lunch program with kportage &>kp.log 

The kp.log file i'ts Ok and work, but i dont like it.

In the original make.conf the "use" line is easy
to read, (some line with a lenght <80)
The kp.log contain a single line with leng >300
and i'ts hard to read.

If possible i prefere this long line is splitted 
on some short line (i think is not important if
the format is the same of original file, 
but is important alfabeticaly order and
len <80, for a simple 'human' comparison with
list of use flag).

The same problem is for compile flag.

There are another little problem... (not an error)
but the solution of the problem is more complex
In my original file i've use this syntax

CFLAGS="-mcpu=athlon -O3 -pipe ........."
CXXFLAGS="${CFLAGS}"
and kportage trasform it in 
CFLAGS="-mcpu=athlon -O3 -pipe ........."
CXXFLAGS="-mcpu=athlon -O3 -pipe ........."

I'ts correct, but is more complex to read or modify

I think the solution of this problem is mor complex because
is possible to compose CXXFLAGS like this... 
CXXFLAGS="${CFLAGS}" otherflag1 otherflag2 (I'm not sure of this syntax)

For help you i attach mi original file and the logfile output

Thans