Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

portage not picking up flags from package.use [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

portage not picking up flags from package.use [SOLVED]

  • Quote

Post by _Max_ » Wed Jul 13, 2005 1:11 pm

For some reason portage does not seem to be picking up my per-package useflags from package.use

Code: Select all

# cat /etc/portage/package.use 
www-client/elinks -guile

# emerge -pv elinks

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] www-client/elinks-0.10.5 [0.10.4] +X +gpm +guile +ipv6 -lua +ssl +zlib 0 kB 

Total size of downloads: 0 kB
It still works like this, though:

Code: Select all

# USE=-guile emerge -pv elinks

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] www-client/elinks-0.10.5 [0.10.4] +X +gpm -guile* +ipv6 -lua +ssl +zlib 0 kB 

Total size of downloads: 0 kB
/etc/portage/package.use used to work for me - how did I manage to break it this time?

Thanks.

(portage-2.0.51.22-r1)
Last edited by _Max_ on Thu Jul 14, 2005 1:38 pm, edited 1 time in total.
Ceci n'est pas une sig.
Top
gentsquash
l33t
l33t
Posts: 753
Joined: Wed Nov 03, 2004 7:36 pm
Location: Still a Gentoo beginner.
Contact:
Contact gentsquash
Website

  • Quote

Post by gentsquash » Wed Jul 13, 2005 6:33 pm

I'm clutching at straws here... Is it possible that your
USE env-var is set? You could try

Code: Select all

export USE=
emerge -pv elinks 
What is the result of

Code: Select all

ls -l /etc/portage/package.use 
Mine has these permissions and owner/group:

Code: Select all

-rw-r--r--  1 root root 1471 Jul 12 15:11 /etc/portage/package.use
Portage has config files that set variables which determine where
various portage-files are searched-for. E.g, file /etc/make.globals has lines

Code: Select all

...
# Repository Paths
PORTDIR=/usr/portage
DISTDIR=/usr/portage/distfiles
PKGDIR=/usr/portage/packages
RPMDIR=/usr/portage/rpm
...
I didn't see a variable that specifies where USE-variables are to
be read-from, but one of Portage's configs could have such.

Did you change profiles recently? Did you change config files
recently with dispatch-conf or etc-update ?

================

Does the problem only occur with USE-flag guile (by the way, it
is not too surprising that a flag named guile might behave in a
sneaky way...)
or only the www-client/elinks pkg?
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Thu Jul 14, 2005 10:28 am

After various experiments, I found that it was that comments did not work as I expected in package.use:

I had something like this
www-client/elinks -guile # removed guile 2004/12/15

Apparently, the second guile (without the minus) switches it back on. The bit after the # is not actually commented out. The syntax highlighting in app-vim/gentoo-syntax seems to suggest otherwise.

I think this is rather strange behaviour.
Ceci n'est pas une sig.
Top
gentsquash
l33t
l33t
Posts: 753
Joined: Wed Nov 03, 2004 7:36 pm
Location: Still a Gentoo beginner.
Contact:
Contact gentsquash
Website

  • Quote

Post by gentsquash » Thu Jul 14, 2005 1:14 pm

I'm bewildered. Your first posting showed
_Max_ wrote:

Code: Select all

# cat /etc/portage/package.use 
www-client/elinks -guile
and does not show a "# removed guile 2004/12/15"?!

At a minimum, you should use ... or some other convention, to indicate
elided material. I read your first post to mean that your
/etc/portage/package.use file literally had one line in it,
exactly the line that you posted.

I'm a little annoyed because I spent a fair amount of time
wracking my brain, and searching Portage config files for you,
trying to find an explanation of what you had posted.

I'm not at all saying that one shouldn't ever omit output, but it
is good to indicate the omission. (I'm certainly not advocating
these enormous postings of /usr/src/linux/.config files, with the
repetition of all the comments that we all have in our own
.config files.)

I'm glad the problem is solved for you, and this thread will be a useful reference for all of us; I've gotten tangled up by USE flags myself. If you agree that your thread is [SOLVED], could you mark it so?
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Thu Jul 14, 2005 1:37 pm

That's because I thought it was a comment and hence irrelevant. How wrong I was... sorry about that. Thanks for your help.
Ceci n'est pas une sig.
Top
gentsquash
l33t
l33t
Posts: 753
Joined: Wed Nov 03, 2004 7:36 pm
Location: Still a Gentoo beginner.
Contact:
Contact gentsquash
Website

  • Quote

Post by gentsquash » Thu Jul 14, 2005 2:04 pm

(Il n'y a rien de grave.)

Just to assault a deceased equine mammal ..., my impression from
reading the Forums is that folks use cat to specifically indicate
that what follows is the literal contents of the file.

Yes, different config-files and different languages have
differing rules for what constitutes a comment. A number of them
give a special interpretation to a character at the beginning of
a line.

Were you to suggest that having a more-consistent overall
comment-structure would be a good idea, you'd get no carping
from me...
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Thu Jul 14, 2005 2:14 pm

Especially since the manpage seems to suggest that the correct way to comment package.use is with hashes.
portage manpage wrote: package.use
Per-package USE flags. Useful for tracking local USE
flags or for enabling USE flags for certain packages
only. Perhaps you develop GTK and thus you want documen-
tation for it, but you don't want documentation for QT.
Easy as pie my friend!

Format:
- comments begin with #

- one DEPEND atom per line with space-delimited USE flags
I did put something into the bugzilla.
Ceci n'est pas une sig.
Top
gentsquash
l33t
l33t
Posts: 753
Joined: Wed Nov 03, 2004 7:36 pm
Location: Still a Gentoo beginner.
Contact:
Contact gentsquash
Website

  • Quote

Post by gentsquash » Thu Jul 14, 2005 2:25 pm

_Max_ wrote:I did put something into the bugzilla.
Good for you... many folks are unwilling to make the extra
effort of posting a clear bug-report. May I suggest that you
post the link to your bug-report, since this thread will be a
good reference.
Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Thu Jul 14, 2005 3:02 pm

I posted this here: Poor handling of /etc/portage/package.use errors since this seems to be an issue with input validation/ parsing. If the comment had produced an error message, the root of the problem would have been very easy to spot.
Ceci n'est pas une sig.
Top
canal
Apprentice
Apprentice
Posts: 203
Joined: Tue Sep 28, 2004 7:07 am

  • Quote

Post by canal » Fri Jul 15, 2005 1:21 am

_Max_ wrote:
Format:
- comments begin with #

- one DEPEND atom per line with space-delimited USE flags
I did put something into the bugzilla.
Now I'm confused: this is quite correct explanation. You have two choices: "comment" (start it with # ) or "DEPEND atom with space-delimited USE flags". No way to produce line with DEPEND atom and comment on single line!

Since it's quite common convention (I think there are more files in /etc where you can not start comment in the middle of line then files where you can) I fail to see your point...
Top
_Max_
Apprentice
Apprentice
Posts: 264
Joined: Mon Mar 03, 2003 3:48 pm
Location: London, UK

  • Quote

Post by _Max_ » Fri Jul 15, 2005 9:06 am

Well, I read the fact that these two items are in a bulleted list as meaning that they are to be combined with an "and/or", not an "exclusive or". This would be the same commenting convention as in python, perl, bash, C/C++ etc. My interpretation is also the one indicated by app-vim/gentoo-syntax syntax highlighting, by the way. Hence my confusion.

In any case, if portage is meant to work according to your interpretation (this is the way it works!), I think it would be nice if it could tell you when you have a malformed line in a config file, rather than quietly trying to make sense of what it is you wrote, don't you think?
Ceci n'est pas une sig.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic