Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where do I change the use flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
BarneyRubble
n00b
n00b


Joined: 20 Feb 2005
Posts: 51
Location: NSW,Australia

PostPosted: Sat Feb 11, 2012 7:15 pm    Post subject: Where do I change the use flags Reply with quote

I have a problem finding my use flags which I want to adjust, When I used gentoo years ago I could just change my "make.conf" to add things & make changes . But my install this time has my make.conf settings in folders in /etc ,& inside the folder "package.use" is a file called portato which seems to have some info in it because I used portato it seems.
So where can I add or take away use.flags?

I will give 2 examples. I will show my make.conf & emerge --info to show what I mean.


JASONS-BRAAAIN hutchy # emerge --info
--- Invalid atom in /etc/portage/package.mask: =net-misc/networkmanager
--- Invalid atom in /etc/portage/package.mask: =net-misc/networkmanager-openvpn
--- Invalid atom in /etc/portage/package.mask: =net-misc/networkmanager-0.8.2.r1
--- Invalid atom in /etc/portage/package.mask: =net-misc/networkmanager-0.9.2.0-r3 ~amd64
--- Invalid atom in /etc/portage/package.mask: =net-misc/networkmanager-openvpn-0.9.2.0-r3 ~amd64
Portage 2.2.0_alpha85 (!../var/lib/layman/calculate/profiles/calculate/desktop/CLD/amd64/binary, gcc-4.6.0, glibc-2.14, 3.2.5-calculate x86_64)
=================================================================
System uname: Linux-3.2.5-calculate-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-11.6
Timestamp of tree: Sat, 11 Feb 2012 17:30:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.2-r3, 3.1.4-r3
dev-util/cmake: 2.8.7-r2
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.4.5, 4.5.3-r1, 4.6.0
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14
Repositories: gentoo calculate
Installed sets:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/var/calculate/remote/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles getbinpkg metadata-transfer parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.channelx.biz/ http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en bg de es fr it pl pt pt_BR ro ru uk"
MAKEOPTS="-j9"
PKGDIR="/var/calculate/remote/packages/CLD/x86_64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/calculate/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/calculate"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 amr audiofile avi bash-completion berkdb bittorrent bluetooth bzip2 cairo cdda cddb cdparanoia cdr chm clamav cli consolekit cpudetection cracklib crypt css cups cxx dbus djvu dri dv dvd dvdr dvdread ebook encode exif fbcon ffmpeg flac flash foomaticdb fortran ftp gd gdbm ggi gif gphoto2 gpm gtk iconv id3tag ieee1394 imagemagick ipod ipv6 irc jabber jingle jpeg jpeg2k kde libcaca libnotify libwww lirc logrotate lzo mad matroska mbox mikmod mmx mmxext mng modules mp3 mpeg mplayer mudflap multilib musepack nas ncurses networkmanager nfs nls nptl nptlonly nsplugin ogg oggvorbis openal opencore-amr openexr opengl openmp oscar pam pcre pdf png policykit portaudio ppp pppd qt3support qt4 quicktime raw rdesktop readline samba scanner sdl semantic-desktop session smp speex spell srt sse sse2 sse3 sse4.1 sse4.2 sse4a sse5 ssl ssse3 svg sysfs tcpd tga theora tiff truetype unicode usb userlocales v4l v4l2 vaapi vcd vdpau vhosts vorbis webkit wimax wmf wxwindows x264 xanim xcomposite xinerama xorg xpm xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALCULATE="printer wireless" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="* ptp2" CDISTRO="CLD desktop" CL="builder client desktop installgui" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev mutouch synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en bg de es fr it pl pt pt_BR ro ru uk" LIRC_DEVICES="devinput" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware nouveau nvidia radeonhd dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

#####################

hutchy@JASONS-BRAAAIN ~ $ cat /etc/make.conf
#------------------------------------------------------------------------------
# Modified Calculate-install 2.2.19
# Processed template files:
# /usr/share/calculate/templates/install/1merge/portage/make.conf
#------------------------------------------------------------------------------

#-------------------
# Basic build option
#-------------------
# Exception of the software. The list of possible flags can be found here:
# /var/lib/layman/calculate/profiles/desc/calculate.desc
# Separated by a space. To remove programs, do update `emerge -uDN world`,
# and then delete the packages by running `emerge -ac`.
#CALCULATE=""

# Valid license. Need to specify for such packages as:
# net-wireless/broadcom-sta, dev-java/sun-jdk and others.
ACCEPT_LICENSE="*"

# Alternative mirror updates repository. In case of problems with access
# at the beginning try to update the overlay by running `layman-s calculate`.
#PORTAGE_BINHOST="http://77.88.19.68/calculate/CLD/grp/x86_64"
#PORTAGE_BINHOST="ftp://ftp.linux.kiev.ua/pub/Linux/Calculate/CLD/grp/x86_64"
#PORTAGE_BINHOST="ftp://opennix.tula.su/calculate/CLD/grp/x86_64"
#PORTAGE_BINHOST="http://mirror.cnet.kz/calculate/CLD/grp/x86_64"

# Connecting overlays layman. You should not change this setting, as this may
# disrupt the package manager.
source /var/lib/layman/make.conf

#-----------------
# Compiler Options
#-----------------
# Additional options passed to the compiler. The flag "-march=native"
# Optimize the program by your hardware.
#CFLAGS="-O2 -march=native -pipe"
#CXXFLAGS="${CFLAGS}"

#-------------------
# Faster Compilation
#-------------------
# Number of parallel processes that run when you install.
MAKEOPTS="-j9"

# The number of packets for simultaneous assembly.
#EMERGE_DEFAULT_OPTS="--jobs=4"

GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.channelx.biz/ http://gentoo.osuosl.org/"


So it seems I cannot adjust my "make.conf" to change flags etc?
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2803
Location: Richmond, BC, Canada

PostPosted: Sat Feb 11, 2012 7:21 pm    Post subject: Reply with quote

make.conf is for globally enabling a USE flag. /etc/portage/package.use is for enabling a use flag for individual pkgs only.

You can also make /etc/portage/package.use a directory and have files inside it with entries. That is good for keeping them organized. I have {system, gnome, test,...} files in mine. Is better if you have a bunch of them, instead of looking for one inside a big long list.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
BarneyRubble
n00b
n00b


Joined: 20 Feb 2005
Posts: 51
Location: NSW,Australia

PostPosted: Sat Feb 11, 2012 7:36 pm    Post subject: Reply with quote

Thanks for reply,
My problem is this, if you look at my "emerge --info" you will see a use flag for "wimax" which I dont want installed. but it tries to install when I do a rebuild which I dont want. But I can not find anywhere I can deselect "wimax" as a use flag no matter which folder I have looked in. So where can I deselect it so it doesnt get installed. I have tried masking it ,but it complains it needs unmasking to do the rebuild it seems.
Thanks
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2803
Location: Richmond, BC, Canada

PostPosted: Sat Feb 11, 2012 8:05 pm    Post subject: Reply with quote

It may be enabled by default for your selected profile and/or arch.

To globally disable them. put "-wimax -wimax-tools" in make.conf's USE=

If you want to disable them for only one pkg then put it in /etc/portage/package.use as cat/pkg -wimanx -wimax-tools

To see what pkgs you have installed has them then enabled
Code:
equery hasuse wimax
equery hasuse wimax-tools

_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
BarneyRubble
n00b
n00b


Joined: 20 Feb 2005
Posts: 51
Location: NSW,Australia

PostPosted: Sat Feb 11, 2012 8:43 pm    Post subject: Reply with quote

Brilliant, Even though my make.conf didnt have "USE=" I copied the use flags from my "emerge --info" to make.conf & added "-wimax -wimax-tools" to it & that did the trick.
Also youre tip using "equery" was a bonus as it let me know what could be pulling WIMAX in.
Thanks :wink:
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5325

PostPosted: Sat Feb 11, 2012 8:51 pm    Post subject: Reply with quote

BarneyRubble wrote:
Brilliant, Even though my make.conf didnt have "USE=" I copied the use flags from my "emerge --info" to make.conf & added "-wimax -wimax-tools" to it & that did the trick.
Also youre tip using "equery" was a bonus as it let me know what could be pulling WIMAX in.
Thanks :wink:


what disturbs me more is that your make.conf doesn't include CFLAGS and CXXFLAGS.

that can cause serious problems and your missing the entire reason to install gentoo in the first place.

I suspect that you haven't followed the handbook. I assume it is because you've not installed gentoo, rather than calculate linux.
if I'm correct, than you should ask in the calculate linux forums.
if I'm wrong, please consult the handbook on how to properly use all features in gentoo.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13724

PostPosted: Sat Feb 11, 2012 9:34 pm    Post subject: Reply with quote

BarneyRubble wrote:
Brilliant, Even though my make.conf didnt have "USE=" I copied the use flags from my "emerge --info" to make.conf
Although this works, it is not really the best approach. You have now locked your system to that set of profile-supplied flags, even if the developers later change some of those flags to be off-by-default. In general, you should only list flags in USE= if you have a specific reason for wanting the flag to have that value. The USE= specified in make.conf is merged with the flags from the profile, so anything you do not specify will go with the defaults currently endorsed by the developers.
Back to top
View user's profile Send private message
BarneyRubble
n00b
n00b


Joined: 20 Feb 2005
Posts: 51
Location: NSW,Australia

PostPosted: Sun Feb 12, 2012 10:54 am    Post subject: Reply with quote

I usually do go to CalculateLinux forums,especially if I feel its more related for them to answer, But the problem is that they are very slow in answering there at times so I come here when I feel its appropriate, My last post there seems of took a week to get answered .
Also the answer to this post that I kindly got from dol-seen where I replied "Brilliant" was because I was glad I got a temp solution to this problem that had been bugging me for a while,as I do realise I may have to make changes afterwards but it helped me to do something about this -I didnt mean to give the impression that I felt all was now solved & wouldnt have to change my make.conf back etc.

Also I have had a lot of help from the gentoo forums in the past that have helped me learn & get me out of trouble as CalculateLinux is not only Gentoo But a very good Gentoo at that & I would recommend it to just about anyone .
This calculatelinux is setup a bit different to the way I used to use gentoo, as in the early days of using Gentoo I could just go straight to my "make.conf" to make changes whereas now I need to find out where these files & folders are that make up my "emerge --info" so I can make changes to my make.conf if needed.
In fact I have been using Calculte for a very long time & am still trying to find out where these files & folders are or at least remember where they are which is my biggest problem.

So thanks to all those who have helped me here at Gentoo Forums over the years. "AMEN"

I also noticed they have set up a CalculateLinux Forum at linuxquestions ,-Bonus
Back to top
View user's profile Send private message
BarneyRubble
n00b
n00b


Joined: 20 Feb 2005
Posts: 51
Location: NSW,Australia

PostPosted: Mon Feb 13, 2012 5:16 pm    Post subject: Reply with quote

DaggyStyle Said "what disturbs me more is that your make.conf doesn't include CFLAGS and CXXFLAGS."
That was exactly my point, My emerge info shows I have CFLAGS and CXXFLAGS which is good but make.conf shows there marked# out ,which is what bothered me as it is different to do the old gentoo I used to use as I could just go to make.conf & make changes ,but this is different.
AnyWay
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5325

PostPosted: Mon Feb 13, 2012 6:43 pm    Post subject: Reply with quote

BarneyRubble wrote:
DaggyStyle Said "what disturbs me more is that your make.conf doesn't include CFLAGS and CXXFLAGS."
That was exactly my point, My emerge info shows I have CFLAGS and CXXFLAGS which is good but make.conf shows there marked# out ,which is what bothered me as it is different to do the old gentoo I used to use as I could just go to make.conf & make changes ,but this is different.
AnyWay


the -march is generic, you are probably not using all cpu's features.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10205
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Feb 14, 2012 2:07 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software. Although many will be (and have been) willing to help, this isn't strictly about Gentoo, so it fits better here.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
flybyray
n00b
n00b


Joined: 06 Mar 2011
Posts: 2

PostPosted: Wed Mar 14, 2012 6:35 pm    Post subject: Reply with quote

this is really not gentoo, it is calculate linux (a distribution based on gentoo). but they make heavy use of their overlay
Code:
PORTDIR_OVERLAY="/var/lib/layman/calculate"


you have to understand that your /etc/make.conf is processed very late in the emerge --info

you should run
Code:
eselect profile list

and check the * behind an entry in the list. than you know your activated profile.

from your "emerge --info" output:
Code:
Portage 2.2.0_alpha85 (!../var/lib/layman/calculate/profiles/calculate/desktop/CLD/amd64/binary, gcc-4.6.0, glibc-2.14, 3.2.5-calculate x86_64)

i would suggest your selected profile is actually
Code:
calculate/desktop/CLD/amd64/binary


therefore alle make.conf files under this folder are processed before /etc/make.conf
perhaps those:
Code:
/var/lib/layman/calculate/profiles/calculate/make.conf/make.defaults
/var/lib/layman/calculate/profiles/calculate/make.conf/amd64/make.defaults
/var/lib/layman/calculate/profiles/calculate/desktop/make.conf/make.defaults
/var/lib/layman/calculate/profiles/calculate/desktop/CLD/make.conf/make.defaults
/var/lib/layman/calculate/profiles/calculate/desktop/CLD/amd64/make.defaults
/var/lib/layman/calculate/profiles/calculate/desktop/CLD/binary/make.conf/make.defaults
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum