Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[tip] Minimalistic Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Sat Mar 27, 2021 7:27 pm    Post subject: [tip] Minimalistic Gentoo Reply with quote

Quote:
# 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.

# compiler optimization
CFLAGS="-O2 -pipe -march=native -mtune=native -fomit-frame-pointer -fno-var-tracking"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

# parallel build & gcc cache
MAKEOPTS="-j2"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="1G"
FEATURES="parallel-fetch userfetch ccache candy compress-build-logs"

# 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"
ACCEPT_KEYWORDS="amd64"
LINGUAS="en"

# use the following gentoo repository servers:
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo http://ftp.df.lth.se/pub/gentoo"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
#SYNC="SYNC="rsync://rsync5.se.gentoo.org/gentoo-portage"
#SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

# by default we acknowledge the have the following devices
INPUT_DEVICES="keyboard mouse evdev synaptics"
VIDEO_CARDS="radeon vesa fbdev"
ALSA_CARDS="ens1370"
WEB_CAM="v4l v4l2"
APACHE2_MODULES="*-"
CAMERAS="*-"
CALLIGRA_FEATURES="*-"
GPSD_PROTOCOLS="*-"
LCD_DEVICES="*-"

#KVM settings
USE_KVM="qemu_softmmu_targets_x86_64 qemu_user_targets_x86_64 parted qemu virt-network device-mapper sasl spice"

# do not unmask automatically anything but accept any 3rd party license agreement
EMERGE_DEFAULT_OPTS="--autounmask=n"
ACCEPT_LICENSE="*"

# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
# See: http://www.gentoo.org/dyn/use-index.xml
USE_OPTIMIZATION="optimization strong-optimization mmx pch sharedmem smp sse sse2 lto graphite optimized-qmake"
USE_SYS_KERNEL="savedconfig"
USE_SYS_LIBS="glibc-omitfp python"

USE_LAPTOP="acpi" # bluetooth"
USE_X="truetype X new-login xorg"
USE_IMAGE="jpeg gif tiff png svg pdf"
USE_MEDIA="sound alsa mad vidix asf win32codecs dvd mp4 aac x264 xvid nsplugin mp3 real gstreamer"
USE_GENERAL="udev ncurses bash-completion libnotify ftp samba java bzip2 symlink sqlite threadsafe spell xml lm_sensors"
USE_SYSTEM="hal fam dbus aoss nptl threads"
USE_DONT="-arts -qt4 -ipv6 -opengl"
USE_KDE="-kde -qt3"
#USE_GNOME="gtk cairo gnome gnome-keyring archive sendto aisleriot"
USE_GNOME="-gnome -gnome-keyring"
USE_LXDE="-lxde cairo"
USE_XFACE="session startup-notification"

USE_APP_ADMIN="edit sudo custom-optimization"
USE_APP_EMULATION="consolekit"
USE_WWW_PLUGINS="64bit"
#USE_X11_DRIVERS="-xspice"
USE_X11_TERMS="mousewheel"
USE_X11_DUALMONITOR="-xinerama"
USE_X_COMPOSITE="xcomposite"
USE="${USE_DONT} ${USE_SYSTEM} ${USE_GENERAL} ${USE_IMAGE} ${USE_X} ${USE_KDE} ${USE_MEDIA} ${USE_OPTIMIZATION} ${USE_APP_ADMIN} ${USE_APP_EMULATION} ${USE_GNOME}"
USE="${USE} ${USE_SYS_KERNEL} ${USE_SYS_LIBS} ${USE_WWW_PLUGINS} ${USE_X11_DRIVERS} ${USE_X11_TERMS} ${USE_LXDE} ${USE_XFACE} ${USE_X11_DUALMONITOR} ${USE_X_COMPOSITE} ${USE_KVM} ${WEB_CAM} ${USE_LAPTOP}"

# Telling Portage about layman-fetched repositories
source /var/lib/layman/make.conf

# Portage file path
DISTDIR="/var/portage/distfiles"


http://mynixworld.info/2011/10/30/minimalist-gentoo/
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Sat Mar 27, 2021 9:08 pm    Post subject: Reply with quote

That article is quite old, and the shown snippet contains at least one anti-pattern. Never define custom variables in this file.

Additionally, the setting for INPUT_DEVICES is outdated and thus incorrect. Not all users will have or want VIDEO_CARDS=radeon. The syntax for disabling APACHE2_MODULES and friends looks incorrect to me. As a non-cumulative variable, it can simply be set to an empty string.

Putting ACCEPT_LICENSE=* in a general purpose document is questionable, especially since it is not called out in the header or footer text. For some users, that setting will be incorrect.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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