Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your make.conf
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... , 15, 16, 17  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Slated
n00b
n00b


Joined: 16 Oct 2010
Posts: 13

PostPosted: Sun Dec 04, 2016 6:36 pm    Post subject: Reply with quote

Here's my latest for an Atom netbook:

Code:
CFLAGS="-march=bonnell -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j13 -l2"
EMERGE_DEFAULT_OPTS="--jobs=13 --load-average=2"
ACCEPT_KEYWORDS="amd64"
FEATURES="candy cgroup distcc distcc-pump fail-clean fixlafiles news \
          parallel-fetch prelink-checksums split-elog split-log \
          unmerge-logs webrsync-gpg"
LINGUAS="en en_GB"
L10N="en en-GB"
VIDEO_CARDS="intel i915"
INPUT_DEVICES="evdev mouse keyboard synaptics"
PORTAGE_NICENESS=19
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"
PORTDIR="/usr/portage"
PORT_LOGDIR="/var/log/portage"
EMERGE_LOG_DIR="$PORT_LOGDIR"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
USE="aacs alsa bash-completion bluray branding crypt cups device-mapper \
     exif fftw fontconfig gpm ntfs ntfsdecrypt ntfsprogs openal \
     opengl spell startup-notification truetype unicode vim-syntax \
     xattr zsh-completion -accessibility -bindist -exceptions \
     -handbook -pulseaudio -semantic-desktop -systemd mmx mmxext sse \
     sse2 sse3 ssse3"



  • It seems "-march=atom" is now depreciated. My "-march=native" is now something called "bonnell", allegedly
  • I'm now running distcc in pump mode, which is why "jobs" is so high
  • Parallelising with EMERGE_DEFAULT_OPTS has the effect of suppressing all output except a running summary
  • I'm now splitting the logs, but not compressing, since I use logrotate for that
  • Some of the "FEATURES" are already on by default (e.g. "news"), but stated explicitly for clarity


Last edited by Slated on Sun Dec 04, 2016 8:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 540
Location: Italy

PostPosted: Sun Dec 04, 2016 6:40 pm    Post subject: Reply with quote

@Slated: As far as I know CPU options like mmx or sse go into the CPU_FLAGS_X86 variable, not into USE.
Back to top
View user's profile Send private message
Slated
n00b
n00b


Joined: 16 Oct 2010
Posts: 13

PostPosted: Sun Dec 04, 2016 8:10 pm    Post subject: Reply with quote

Quote:
In order to ensure safe migration and maintain compatibility with external repositories, it is recommended to preserve the old USE settings for a period of one year or until no package of interest is still using them.


https://wiki.gentoo.org/wiki/CPU_FLAGS_X86
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 110
Location: São Paulo, Brasil

PostPosted: Mon Dec 12, 2016 8:14 am    Post subject: Reply with quote

As simple as possible:
Code:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

MAKEOPTS="-j5 -l4"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4"

USE_ENABLED="gnome-keyring pulseaudio vaapi vim-syntax"
USE_DISABLED="-exceptions -gtk -introspection -ipv6 -ldap -qt3support -qt4"
USE="${USE_ENABLED} ${USE_DISABLED}"

ABI_X86="64"
ALSA_CARDS="hda-intel"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
INPUT_DEVICES="keyboard mouse synaptics evdev"
LINGUAS="fr en_GB en pt_BR"
L10N="fr en-GB en pt-BR"
SANE_BACKENDS="hp"
VIDEO_CARDS="intel i965"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
INSTALL_MASK="/lib/systemd /usr/lib/systemd"

source /var/lib/layman/make.conf
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41087
Location: 56N 3W

PostPosted: Mon Dec 12, 2016 8:44 am    Post subject: Reply with quote

Raspberry Pi 3 64 bit mode:

I_KNOW_WHAT_I_AM_DOING=1
# ... maybe

CHOST=aarch64-unknown-linux-gnu
ARCH=arm64
ACCEPT_LICENSE="Oracle-BCLA-JavaSE google-chrome"
ACCEPT_KEYWORDS="arm64 ~arm64"

USE="${ARCH} egl icu minizip openssl pcre16 postproc python
     qt5 script sqlite svc threads virt-network
     -modemmanager -pam -skia"
# skia wants to link to neon stuff it doesn't build, in firefox anyway.

# -march=native works with gcc-6.x but that stops us using crossdev
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

#  --map-whole-files           Map whole files to memory (default on 64-bit hosts)
#  --no-map-whole-files        Map relevant file parts to memory (default on 32-bit hosts)
#  --fix-cortex-a53-843419     (AArch64 only) Fix Cortex-A53 erratum 843419.
#  --fix-cortex-a53-835769     (AArch64 only) Fix Cortex-A53 erratum 835769.

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files"

FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc userpriv usersandbox"

PKGDIR=/packages/
DISTDIR="/var/cache/distfiles"
ELIBC="glibc"

L10N="en en-GB"
LINGUAS="en en_GB"

# we don't have the RAM for -j5 on most things but ...
MAKEOPTS="-j5"
# run package lists for lesser MAKEOPTS in .env

INSTALL_MASK=" /usr/lib/systemd *.la"

LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer"

PORTAGE_ELOG_CLASSES="info wan error log qa"
PORT_LOGDIR=/var/log/portage/

PYTHON_SINGLE_TARGET="python3_4"
PYTHON_TARGETS="python2_7 python3_4"

# may run a KVM one day
QEMU_USER_TARGETS="aarch64"
QEMU_SOFTMMU_TARGETS="aarch64"

INPUT_DEVICES="evdev"
# xf86-video-modesetting won't work with xorg-server-1.18.3 yet
# vc4 is very new if it breaks, you can keep the pieces
VIDEO_CARDS="fbdev vc4"

# PORTAGE_OVERLAY="/usr/local/gentoo-static"
Pi3 64bit ~ #

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
keremCozin
n00b
n00b


Joined: 18 Sep 2017
Posts: 3

PostPosted: Mon Sep 18, 2017 1:24 pm    Post subject: Reply with quote

I know this is a very old post. I used to visit this post since the first days i started using Gentoo GNU/Linux.

Code:
ACCEPT_KEYWORDS="~amd64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5 -l4"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

CMAKE_MAKEFILE_GENERATOR="ninja"

EMERGE_DEFAULT_OPTS="--ask --verbose --jobs=5 --load-average=4"

VIDEO_CARDS="intel i965"
INPUT_DEVICES="libinput synaptics"
ALSA_CARDS="hda-intel"

LINGUAS="en en_US"
L10N="en en-US"

CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

USE="qt5 pulseaudio bluetooth ffmpeg openal wayland -cups -qt4 -wayland -handbook"

CALLIGRA_EXPERIMENTAL_FEATURES="stage braindump"


Code:
uname -a
Linux gentoo 4.13.1-gentoo-r1 #1 SMP Thu Sep 14 06:00:18 +03 2017 x86_64 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
hariskar
n00b
n00b


Joined: 29 Jan 2017
Posts: 65
Location: Greece/Kavala

PostPosted: Fri Dec 15, 2017 3:22 pm    Post subject: Reply with quote

keremCozin wrote:
I know this is a very old post. I used to visit this post since the first days i started using Gentoo GNU/Linux.

Code:
ACCEPT_KEYWORDS="~amd64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5 -l4"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

CMAKE_MAKEFILE_GENERATOR="ninja"

EMERGE_DEFAULT_OPTS="--ask --verbose --jobs=5 --load-average=4"

VIDEO_CARDS="intel i965"
INPUT_DEVICES="libinput synaptics"
ALSA_CARDS="hda-intel"

LINGUAS="en en_US"
L10N="en en-US"

CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

USE="qt5 pulseaudio bluetooth ffmpeg openal wayland -cups -qt4 -wayland -handbook"

CALLIGRA_EXPERIMENTAL_FEATURES="stage braindump"


Code:
uname -a
Linux gentoo 4.13.1-gentoo-r1 #1 SMP Thu Sep 14 06:00:18 +03 2017 x86_64 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux


You have in
Code:
USE="qt5 pulseaudio bluetooth ffmpeg openal wayland -cups -qt4 -wayland -handbook"
wayland and -wayland?
Back to top
View user's profile Send private message
oldgaro
n00b
n00b


Joined: 18 Dec 2017
Posts: 2
Location: Brazil

PostPosted: Wed Dec 20, 2017 4:05 pm    Post subject: Reply with quote

Still a Gentoo noob! haha :cry: [Sakaki mostly]

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="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

# $ nproc to discover how much core on in your processor
MAKEOPTS="-j9 -l8"
EMERGE_DEFAULT_OPTS="--ask --jobs=9 --load-average=8"

# 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="x86_64-pc-linux-gnu"

# https://wiki.gentoo.org/wiki/USE_flag
# https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE
ACCEPT_LICENSE="*"

# Use the 'stable' branch - 'testing' no longer required for Gnome 3.
# NB, amd64 is correct for both Intel and AMD 64-bit CPUs
ACCEPT_KEYWORDS="amd64"

# To control which platforms GRUB2 will install for<Paste>
GRUB_PLATFORMS="efi-64"

# Mouse, keyboard, touchpad
INPUT_DEVICES="libinput"

# Settings for X11/Wayland
VIDEO_CARDS="intel"

CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

# Additional USE flags in addition to those specified by the current profile.
USE="X gtk systemd udev dbus alsa pulseaudio ncurces docs mmx mmxext sse sse2 ssse3 sse4_1 sse4_2"
USE="${USE} -dvd -dvdr -cairo -plasma -java -kde -gnome -bluetooth"

# PYTHON_TARGETS="python2_7 python3_5"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ http://gentoo.cs.utah.edu/"


Package.use
Code:

# https://wiki.gentoo.org/wiki//etc/portage/package.use

# -
net-misc/iputils -caps -filecaps

# multiple
app-editors/emacs fonts acl gtk3 inotify ssl xpm zlib xft imagemagick jpeg gif png xpm threads gsettings cairo
app-editors/neovim lua luajit jemalloc luajit nvimpager tui

# kmod
sys-app/kmod lzma zlib

#Xml
sys-devel/clang xml

# python
app-editors/vim python2_7 python3_5
dev-python/docutils python2_7 python3_5
dev-python/pygments python2_7 python3_5
dev-libs/libxml2 python

# text
app-text/xmlto text

# contrib
sys-apps/lm_sensors sensord contrib

# pam
app-misc/screen pam


# xkb
x11-libs/libxcb xkb

# luajit
dev-lua/lpeg luajit
dev-lua/mpack luajit

# static-libs
sys-apps/util-linux static-libs

# nls
app-portage/eix nls

# pcre16
dev-libs/libpcre pcre16
dev-libs/libpcre2 pcre16

#cups
app-text/ghostscript-gpl cups

#nss
dev-libs/xmlsec nss

# icu
media-libs/harfbuzz icu



uname -r
Code:
4.14.7-gentoo


VAI CORINTHIANS!
Back to top
View user's profile Send private message
kajzer
Apprentice
Apprentice


Joined: 27 Nov 2014
Posts: 259

PostPosted: Sat Dec 23, 2017 2:07 am    Post subject: Reply with quote

Here's mine :

Code:
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
CHOST="x86_64-pc-linux-gnu"
USE="pulseaudio ffmpeg -libav -gnome -kde -systemd mmx mmxext sse sse2 sse3 ssse3 -bluetooth -ipv6 -cups zsh-completion -qt4 -qt5"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

LINGUAS=""
L10N=""

CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"

ACCEPT_DEFAULT_OPTS="--autounmask-write"
EMERGE_DEFAULT_OPTS="--ask --verbose --quiet-build --jobs=2 --load-average=1.8 --with-bdeps=y"

ACCEPT_LICENSE="*"

INPUT_DEVICES="evdev"
VIDEO_CARDS="intel i915"

PYTHON_TARGETS="python2_7 python3_5"

ACCEPT_KEYWORDS="~amd64"
Back to top
View user's profile Send private message
gengreen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2017
Posts: 78

PostPosted: Thu Dec 28, 2017 5:27 am    Post subject: Reply with quote

make.conf

Code:

CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
CHOST="x86_64-pc-linux-gnu"
#
# General USEflag oriented security/lightweight
#
USE="bindist X hardened minimal acpi ssl caps pie smp seccomp socks5 pax_kernel offensive
-geoip -geolocation -networkmanager -bluetooth -policykit -systemd -gnome -kde -jit -hal
-ldap -udisks -upower -ruby -pam -modemmanager -gstreamer -radeon -cups -flash -consolekit
-pulseaudio -dbus -gtk3 -introspection -ipv6 -mono -accessibility -mms -webkit"
#
# CPU flag (cpuinfo2cpuflags-x86)
#
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
#
# Optimus card intel/nvidia
#
VIDEO_CARDS="intel nouveau"
PHP_TARGETS="php7-1"


uname -r

Code:
4.9.68-unofficial+grsec


Last edited by gengreen on Mon Jan 01, 2018 7:11 am; edited 1 time in total
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 540
Location: Italy

PostPosted: Thu Dec 28, 2017 1:54 pm    Post subject: Reply with quote

@gengreen: as far as I know ruby21/ruby22/ruby23/ruby24 should go in the RUBY_TARGETS variable, not in USE. But since you already have -ruby in USE I think the former options should be omitted.
Back to top
View user's profile Send private message
gengreen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2017
Posts: 78

PostPosted: Mon Jan 01, 2018 7:12 am    Post subject: Reply with quote

fturco wrote:
@gengreen: as far as I know ruby21/ruby22/ruby23/ruby24 should go in the RUBY_TARGETS variable, not in USE. But since you already have -ruby in USE I think the former options should be omitted.


You are right, thanks for noticed it. I have updated my post with my new make.conf
Back to top
View user's profile Send private message
IFThenElse
n00b
n00b


Joined: 10 Jun 2017
Posts: 9

PostPosted: Tue Jan 02, 2018 2:06 am    Post subject: Reply with quote

Here's mine, my main computer with which I set up a GPU passthrough to play video games on a Windows VM with native performances :

Code:
# global USE flags
USE="infinality alsa pulseaudio X abi_x86_32 ssl gif jpeg mp3 nls png tiff zlib"

# CFLAGS optimised for i7 4790K
CFLAGS="-march=haswell -O2 -pipe"
# ----------------------------- #
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
INPUT_DEVICES="evdev"
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
VIDEO_CARDS="intel i965"
MAKEOPTS="-j8"
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"
SANE_BACKENDS="pixma"
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19228
Location: here

PostPosted: Tue Jan 02, 2018 8:34 am    Post subject: Reply with quote

@IFThenElse: PYTHON_TARGETS and PYTHON_SINGLE_TARGET are provided by profile. If you keep this use expand in your make.conf you skip the updates when a new version of python is marked stable. Indeed recently gentoo have maked stable python3.5
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5135

PostPosted: Tue Jan 02, 2018 3:29 pm    Post subject: Reply with quote

It's changed a bit since last time...
Code:
# native for distcc
CFLAGS_native="-march=amdfam10 -mtune=amdfam10 \
    --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512"
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"
ACCEPT_KEYWORDS="amd64 ~amd64"

CFLAGS="${CFLAGS} ${CFLAGS_native}"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,--sort-common,--hash-style=gnu,-z,combreloc,-z,relro,-z,now"

MAKEOPTS="-j7 -l4"

PORTDIR="/mnt/nfs/repositories/gentoo"
PORTAGE_GPG_DIR="/var/lib/gentoo/gkeys/keyrings/gentoo/release"
PORTAGE_IONICE_COMMAND="schedtool -B -n 15 \${PID}"

http_proxy="http://192.168.3.7:20734"
PORTAGE_RO_DISTDIRS="/mnt/nfs/http-replicator"
DISTDIR="/mnt/nfs/distfiles"

EMERGE_DEFAULT_OPTS="--jobs=2 --load=2 --unordered-display --with-bdeps=y"
FEATURES="distcc distcc-pump webrsync-gpg"

CCACHE_DIR="/var/cache/ccache"
DISTCC_IO_TIMEOUT="600"
KBUILD_OUTPUT="/home/ant/kbuild"
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 540
Location: Italy

PostPosted: Tue Jan 02, 2018 10:01 pm    Post subject: Reply with quote

@Ant P.
I think you should use:
Code:
ACCEPT_KEYWORDS="~amd64"

instead of:
Code:
ACCEPT_KEYWORDS="amd64 ~amd64"


According to make.conf(5):
Code:
ACCEPT_KEYWORDS = [space delimited list of KEYWORDS]
              Enable testing of ebuilds that have not yet been deemed  'stable'.   Users  of
              the 'x86' architecture would set this to '~x86' while ppc users would set this
              to '~ppc'.  This is an incremental variable.  Only define a ~arch.
              Defaults to the value of $ARCH.
Back to top
View user's profile Send private message
gengreen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2017
Posts: 78

PostPosted: Wed Jan 03, 2018 9:07 am    Post subject: Reply with quote

fturco is right

Code:
ACCEPT_KEYWORDS="~amd64"


Is what you should have, that said, a little advise, you may want to take look here

https://wiki.gentoo.org/wiki/ACCEPT_KEYWORDS

You can set per package, the unstable version using the package.keywords rather than all.
Back to top
View user's profile Send private message
IFThenElse
n00b
n00b


Joined: 10 Jun 2017
Posts: 9

PostPosted: Wed Jan 03, 2018 7:26 pm    Post subject: Reply with quote

fedeliallalinea wrote:
@IFThenElse: PYTHON_TARGETS and PYTHON_SINGLE_TARGET are provided by profile. If you keep this use expand in your make.conf you skip the updates when a new version of python is marked stable. Indeed recently gentoo have maked stable python3.5


Thanks for the info, I was having a lot of trouble with those variables, and couldn't figure how to fix it except by doing this.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19228
Location: here

PostPosted: Wed Jan 03, 2018 7:36 pm    Post subject: Reply with quote

IFThenElse wrote:
fedeliallalinea wrote:
@IFThenElse: PYTHON_TARGETS and PYTHON_SINGLE_TARGET are provided by profile. If you keep this use expand in your make.conf you skip the updates when a new version of python is marked stable. Indeed recently gentoo have maked stable python3.5


Thanks for the info, I was having a lot of trouble with those variables, and couldn't figure how to fix it except by doing this.

This is postpone the problem, sooner or later you will have to update to new version
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
JackHunt
n00b
n00b


Joined: 21 Aug 2016
Posts: 46
Location: Oxfordshire, England

PostPosted: Sun Feb 04, 2018 7:42 pm    Post subject: Reply with quote

Mine is pretty basic. Apart from a few global USE flags, I tend to do it on a per-ebuild basis with files under /etc/portage/package.use/

Code:

CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
FONT_USE="xft truetype type1 cleartype corefonts"
USE="dbus alsa pulseaudio icu jack "$FONT_USE
CPU_FLAGS_X86="mmx sse sse2 mmxext"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j4"

GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"
GRUB_PLATFORMS="efi-64"
INPUT_DEVICES="libinput"
VIDEO_CARDS="nvidia"


If anybody has any suggestions for optimisations (I have an i56600K) it'd be welcome. So far just playing it safe with CFLAGS.
Back to top
View user's profile Send private message
Greg_P
n00b
n00b


Joined: 25 Jan 2018
Posts: 8

PostPosted: Mon Feb 05, 2018 4:04 pm    Post subject: Reply with quote

Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/17.0/systemd, gcc-6.4.0, glibc-2.25-r9
=================================================================
System uname: Linux-4.9.76-gentoo-r1-mykernel-nvidia-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.4.1

Code:

#=================================
# Host and optimization settings
#=================================
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j9 -l8"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=8 --ask --verbose --with-bdeps=y"
PORTAGE_NICENESS=15

#===================
# Advanced Masking
#===================
ACCEPT_KEYWORDS="amd64"

#===========================
# Build-time functionality
#===========================
SYSTEM="X alsa modules multilib vdpau cuda udev udisk usb cups openmp cxx dbus"

DESKTOP="xinerama cairo opengl dri dvd dvdr gdbm gmp lcms truetype infinality /
fontconfig zsh-completion branding acl bzip2 unicode bittorrent gtk"
# truetype cleartype

CODECS="a52 mp4 mpeg ogg xvid x264 dts flac acc vorbis mp3 mad pdf svg exif tiff /
jpeg png gif encode sox libsamplerate"

NOUSE="-kde"

USE="${SYSTEM} ${DESKTOP} ${CODECS} ${NOUSE}"

#=======================
# CPU_FLAGS Build-time
#=======================
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

#===================
# Language support
#===================
L10N="es es-CL"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES="C"

#========================
# System caracteristics
#========================
ALSA_CARDS="usb-audio hda-intel"
VIDEO_CARDS="nvidia nouveau"
GRUB_PLATFORMS="efi-64"

#===============
# Portage Dirs
#===============
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 208

PostPosted: Thu Mar 29, 2018 8:27 pm    Post subject: Reply with quote

Code:
 CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j16"
MICROCODE_SIGNATURES="-S"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
USE="X alsa pulseaudio gtk gtk3 -qt4 -qt5 -kde infinality lm_sensors -wayland -cups -plasma jpg jpeg png tiff mp3 -systemd"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="libinput"
XFCE_PLUGINS="clock power trash"
EMERGE_DEFAULT_OPTS="--autounmask-write --jobs=16 --load-average=2"
PORTAGE_NICENESS="15"
LC_MESSAGES=C
GENTOO_MIRRORS="ftp://mirror.mdfnet.se/gentoo http://mirror.mdfnet.se/gentoo"
GRUB_PLATFORMS="efi-64"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41087
Location: 56N 3W

PostPosted: Thu Mar 29, 2018 9:07 pm    Post subject: Reply with quote

Code:
I_KNOW_WHAT_I_AM_DOING=1
# ... maybe

ACCEPT_KEYWORDS="arm64 ~arm64"

ACCEPT_LICENSE="FraunhoferFDK"

#CFLAGS="-O2 -pipe"

CFLAGS="-mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

# With thanks to mgorny
CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"

# No distcc meanwhile
FEATURES="collision-protect buildpkg noman noinfo nodoc sandbox"

USE="${ARCH} a52 cdr cracklib dbus dvd dvdnav egl eds flac gles1 gles2
     gnome-keyring icu minizip mp3 mpeg mysql nss openssl pcre16 pie
     postproc python qt5 skia
     script sqlite ssp svc threads virt-network x264 xvmc
     -gcrypt -modemmanager -pam -qt4"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/var/cache/distfiles"
PKGDIR="/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files"

L10N="en en-GB"
LINGUAS="en en_GB"

MAKEOPTS="-j97"
PORTAGE_NICENESS="19"

GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo
                 http://mirrors.163.com/gentoo/
                 http://gentoo.mirror.web4u.cz/
                 http://64.50.236.52/
                 http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
                 http://gentoo.mneisen.org/
                 http://gentoo.mirror.pw.edu.pl/
                 http://gentoo.prz.rzeszow.pl
                 http://mirror.mdfnet.se/mirror/gentoo
                 http://ftp.gentoo.bg/
                 http://distfiles.gentoo.bg/
                 http://mirrors.ludost.net/gentoo/
                 http://mirror.hamakor.org.il/pub/mirrors/gentoo/
                 http://ftp.dei.uc.pt/pub/linux/gentoo/"

PORTAGE_ELOG_CLASSES="info wan error log qa"
PORT_LOGDIR=/var/log/portage/

INPUT_DEVICES="evdev"
VIDEO_CARDS="fbdev vc4"

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Thu Mar 29, 2018 9:17 pm    Post subject: Reply with quote

Typo in your PORTAGE_ELOG_CLASSES variable. :wink:

- 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
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41087
Location: 56N 3W

PostPosted: Thu Mar 29, 2018 9:37 pm    Post subject: Reply with quote

John R. Graham,

Thank you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... , 15, 16, 17  Next
Page 16 of 17

 
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