Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4172 - useflag only parses one line even when \s exist
Summary: useflag only parses one line even when \s exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-25 20:55 UTC by Brandon Low (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
useflag - 16164 bytes (useflag,15.79 KB, text/plain)
2002-06-29 23:04 UTC, Michael Thompson
Details
useflag.1 - 5461 bytes (useflag.1,5.33 KB, text/plain)
2002-06-29 23:07 UTC, Michael Thompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Low (RETIRED) gentoo-dev 2002-06-25 20:55:48 UTC
Summary pretty much says it, in my make.conf my USE looks like
USE="asdf asdfl asdfljk \
     asdfk dfkk asdfkk"
it only reads the first line... perhaps source /etc/make.conf in the script
would be a better way to get the use flags? I dunno though so I'm bugging you :)
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-06-26 16:39:54 UTC
Ask the author to make a fix:  Michael Thompson <psionix@grandecom.net>, and ask
him to attach the fix to this bug.
Comment 2 Michael Thompson 2002-06-28 22:44:16 UTC
Told you I had a horrible lack of coding skills, but nobody listens. ^_^  I
didn't know that Portage parsed multi-line variables, so I never even thought of
it.  Sorry.

A fix is nearly ready.  Should have it to you tomorrow.
Comment 3 Michael Thompson 2002-06-29 23:04:44 UTC
Created attachment 1875 [details]
useflag - 16164 bytes

This fix allows the script to parse multi-line USE variables.  However, it
writes the variable back out in one line (removing the other lines).  When I
have time, I'll make an update that writes USE variables back out in similarly
sized lines as the input.
Comment 4 Michael Thompson 2002-06-29 23:07:24 UTC
Created attachment 1876 [details]
useflag.1 - 5461 bytes

This is an updated man page that fixes the grammatical issues that karltk
mentioned in the original submission.  The utility has also been updated.
Comment 5 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-07-03 18:46:45 UTC
Fix committed. See #4507 for a related bug in useflags.