View previous topic :: View next topic |
Author |
Message |
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Wed Sep 25, 2013 3:52 pm Post subject: [Solved] Should USE FLAGS be alphabetically ordered? |
|
|
Should the USE FLAGS be altogether on one line?
Should the USE FLAGS be alphabetically ordered?
Why some "-" flags are in paranthesises and some are not?
my /etc/portage/make.conf is Code: | # These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist -gtk -gnome qt4 -kde -dvd alsa -cdr xa libkms sse sse2 sse3 threads (-altivec) -debug -doc mmx postproc -sse4_1 -ssse3 -static-libs consolekit dbus pam policykit udev udisks upower dvd ffmpeg mpeg mad wxwindows aac dts a52 ogg flac theora oggvorbis matroska freetype bidi xv svga gnutls stream vlm httpd cdda vcd cdio live lua"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://ftp.linux.org.tr/gentoo-distfiles/ ftp://ftp.linux.org.tr/gentoo/ http://ftp.linux.org.tr/gentoo/ rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
INPUT_DEVICES="evdev"
VIDEO_CARDS="via"
# Set PORTDIR for backward compatibility with various tools:
# gentoo-bashcomp - bug #478444
# euse - bug #474574
# euses and ufed - bug #478318
PORTDIR="/usr/portage" |
Last edited by certem on Wed Sep 25, 2013 5:18 pm; edited 2 times in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Sep 25, 2013 4:02 pm Post subject: |
|
|
Since pastebins disappear over time, it's better to include short code listing in the actual post so that the thread will be valuable in the long term to anyone else that encounters it. Fixed it for you.
First, make.conf is interpreted by BASH. Therefore variable assignment must follow shell rules. If you want to split the USE variable over multiple lines, you can do something line this: Code: | USE="foo bar"
USE="${USE} -baz bert" | Alphabetical order of USE flag definition in make.conf is not required. Parentheses should not appear in the make.conf USE variable. You should fix that.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Wed Sep 25, 2013 4:15 pm Post subject: |
|
|
Thanks for the valuable info and pastebin fix |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Sep 25, 2013 4:19 pm Post subject: |
|
|
John R. Graham wrote: | First, make.conf is interpreted by BASH. |
No, it is not. It is interpreted by special python code, but the syntax is very similar to that of bash, though there are some subtle differences, especially concerning quoting.
Quote: | If you want to split the USE variable over multiple lines |
If the multiple lines are in quote as in the example, it is fine. For manual configuration, I would also recommend the style which you recommended. However, if you use the great app-portage/ufed (I strongly recommend to use the live or at least the unstable version, since the recent improvements are enormously, and the stable version might even be incompatible with current stable portage), the USE variable will be saved in rather the same style which is used in the original posting. Quote: | Parentheses should not appear in the make.conf USE variable. |
That's probably the main problem. Parantheses are only output by portage to indicate that the flag is masked for some reason (globally or at least for the particular package). |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Sep 25, 2013 4:39 pm Post subject: |
|
|
mv wrote: | John R. Graham wrote: | First, make.conf is interpreted by BASH. |
No, it is not. It is interpreted by special python code... | Yes, I actually knew that. Should've just said shell syntax.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|