summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiles/arch/amd64/eapi1
-rw-r--r--profiles/arch/amd64/make.defaults65
-rw-r--r--profiles/arch/amd64/package.use24
-rw-r--r--profiles/arch/amd64/package.use.force34
-rw-r--r--profiles/arch/amd64/package.use.mask305
-rw-r--r--profiles/arch/amd64/package.use.stable.mask71
-rw-r--r--profiles/arch/amd64/parent2
-rw-r--r--profiles/arch/amd64/use.force6
-rw-r--r--profiles/arch/amd64/use.mask190
-rw-r--r--profiles/arch/amd64/use.stable.mask32
-rw-r--r--profiles/arch/base/eapi1
-rw-r--r--profiles/arch/base/make.defaults8
-rw-r--r--profiles/arch/base/package.use.mask217
-rw-r--r--profiles/arch/base/use.force6
-rw-r--r--profiles/arch/base/use.mask260
-rw-r--r--profiles/base/eapi1
-rw-r--r--profiles/base/make.defaults159
-rw-r--r--profiles/base/package.mask2
-rw-r--r--profiles/base/package.use32
-rw-r--r--profiles/base/package.use.force94
-rw-r--r--profiles/base/package.use.mask639
-rw-r--r--profiles/base/package.use.stable.force5
-rw-r--r--profiles/base/package.use.stable.mask212
-rw-r--r--profiles/base/packages68
-rw-r--r--profiles/base/use.force8
-rw-r--r--profiles/base/use.mask144
-rw-r--r--profiles/base/use.stable.force5
-rw-r--r--profiles/base/use.stable.mask29
-rw-r--r--profiles/features/multilib/eapi1
-rw-r--r--profiles/features/multilib/make.defaults16
-rw-r--r--profiles/features/multilib/package.use6
-rw-r--r--profiles/features/multilib/package.use.force7
-rw-r--r--profiles/features/multilib/use.mask8
-rw-r--r--profiles/redcore/linux/amd64/13.0/eapi1
-rw-r--r--profiles/redcore/linux/amd64/13.0/parent2
-rw-r--r--profiles/redcore/linux/amd64/eapi1
-rw-r--r--profiles/redcore/linux/amd64/package.use.mask10
-rw-r--r--profiles/redcore/linux/amd64/parent3
-rw-r--r--profiles/redcore/linux/eapi1
-rw-r--r--profiles/redcore/linux/make.defaults60
-rw-r--r--profiles/redcore/linux/package.use15
-rw-r--r--profiles/redcore/linux/package.use.mask76
-rw-r--r--profiles/redcore/linux/packages13
-rw-r--r--profiles/redcore/linux/packages.build49
-rw-r--r--profiles/redcore/linux/use.mask15
-rw-r--r--profiles/releases/13.0/eapi1
-rw-r--r--profiles/releases/13.0/make.defaults5
-rw-r--r--profiles/releases/13.0/package.mask9
-rw-r--r--profiles/releases/13.0/parent1
-rw-r--r--profiles/releases/eapi1
-rw-r--r--profiles/releases/make.defaults6
51 files changed, 2927 insertions, 0 deletions
diff --git a/profiles/arch/amd64/eapi b/profiles/arch/amd64/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/arch/amd64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64/make.defaults b/profiles/arch/amd64/make.defaults
new file mode 100644
index 00000000..a9d2cc05
--- /dev/null
+++ b/profiles/arch/amd64/make.defaults
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="amd64"
+ACCEPT_KEYWORDS="${ARCH}"
+
+CHOST="x86_64-pc-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# 2006/06/07 - Danny van Dyk <kugelfang@gentoo.org>
+# Multilib settings for all amd64 subprofiles.
+MULTILIB_ABIS="amd64 x86"
+DEFAULT_ABI="amd64"
+# Do not remove this one, or all kinds of hell breaks loose.
+ABI="amd64"
+
+LIBDIR_amd64="lib64"
+# TODO: move this to a deprecated subprofile
+LIBDIR_x86="lib32"
+LIBDIR_x32="libx32"
+SYMLINK_LIB="yes"
+
+# 64bit specific settings.
+CFLAGS_amd64="-m64"
+LDFLAGS_amd64="-m elf_x86_64"
+CHOST_amd64="x86_64-pc-linux-gnu"
+
+# 32bit specific settings.
+CFLAGS_x86="-m32"
+LDFLAGS_x86="-m elf_i386"
+CHOST_x86="i686-pc-linux-gnu"
+
+# 64-32bit specific settings.
+CFLAGS_x32="-mx32"
+LDFLAGS_x32="-m elf32_x86_64"
+CHOST_x32="x86_64-pc-linux-gnux32"
+
+# 2006/10/24 - Simon Stelling <blubb@gentoo.org>
+# They are masked, but we can enable them anyway for those who have
+# >=portage-2.1.2_pre3-r4
+CPU_FLAGS_X86="mmx mmxext sse sse2"
+
+# Michał Górny <mgorny@gentoo.org> (03 Sep 2013)
+# Enable abi_x86_64 for packages that don't have it forced.
+ABI_X86="64"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa"
+
+# 2006/12/22 - Danny van Dyk <kugelfang@gentoo.org>
+# Default for ALSA_CARDS USE_EXPAND variable.
+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"
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Unhide the x86-specific USE_EXPANDs.
+USE_EXPAND_HIDDEN="-ABI_X86 -CPU_FLAGS_X86"
+
+# Michał Górny <mgorny@gentoo.org> (25 Jun 2014)
+# Make the native ABI implicit so that MULTILIB_USEDEP can be satisfied
+# by non-multilib ebuilds when non-native ABIs are disabled.
+IUSE_IMPLICIT="abi_x86_64"
diff --git a/profiles/arch/amd64/package.use b/profiles/arch/amd64/package.use
new file mode 100644
index 00000000..8791ceed
--- /dev/null
+++ b/profiles/arch/amd64/package.use
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Gilbert <floppym@gentoo.org> (17 Nov 2016)
+# Enable both efi and pc by default.
+# https://bugs.gentoo.org/600110
+sys-boot/grub:2 grub_platforms_efi-64 grub_platforms_pc
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Enable the GPU targets matching the default VIDEO_CARDS
+sys-devel/clang llvm_targets_AMDGPU llvm_targets_NVPTX
+sys-devel/llvm llvm_targets_AMDGPU llvm_targets_NVPTX
+
+# James Le Cuirot <chewi@gentoo.org> (01 Aug 2016)
+# Most users don't need a multilib JVM.
+dev-java/icedtea-bin -multilib
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2014)
+# Packages that should be multilib by default.
+x11-drivers/nvidia-drivers abi_x86_32
+
+# Doug Goldstein <cardoe@gentoo.org> (29 Oct 2012)
+# Enable the native arch as the default qemu target
+app-emulation/qemu qemu_softmmu_targets_x86_64
diff --git a/profiles/arch/amd64/package.use.force b/profiles/arch/amd64/package.use.force
new file mode 100644
index 00000000..59d26523
--- /dev/null
+++ b/profiles/arch/amd64/package.use.force
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# NP-Hardass <NP-Hardass@gentoo.org> (23 May 2017)
+# Packages with optional 64-bit variant
+app-emulation/wine-vanilla -abi_x86_64
+app-emulation/wine-staging -abi_x86_64
+app-emulation/wine-d3d9 -abi_x86_64
+app-emulation/wine-any -abi_x86_64
+virtual/wine -abi_x86_64
+
+# Michał Górny <mgorny@gentoo.org> (08 Apr 2017)
+# Require sandbox to be multilib-capable to avoid failures when building
+# multilib packages, #611292.
+sys-apps/sandbox abi_x86_32
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_X86
+sys-devel/llvm llvm_targets_X86
+
+# Michał Górny <mgorny@gentoo.org> (02 Sep 2013)
+# Packages with optional 64-bit variant.
+app-emulation/wine -abi_x86_64
+www-plugins/adobe-flash -abi_x86_64
+
+# Diego Elio Pettenò <flameeyes@gmail.com> (21 Apr 2011)
+# The plugin is 32-bit only (and I'm not even sure if it works with
+# modern iscan); make sure it only installs the firmware for amd64!
+media-gfx/iscan-plugin-gt-f500 minimal
+
+# <blubb@gentoo.org> (23 Oct 2006)
+# upstream forces sse2 on regardless of what the use flag is
+dev-libs/openssl cpu_flags_x86_sse2
diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask
new file mode 100644
index 00000000..d9c2ea4c
--- /dev/null
+++ b/profiles/arch/amd64/package.use.mask
@@ -0,0 +1,305 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# When you add an entry to the top of this file, add your name, the date, and
+# an explanation of why something is getting masked. Please be extremely
+# careful not to commit atoms that are not valid, as it can cause large-scale
+# breakage, especially if it ends up in the daily snapshot.
+#
+## Example:
+##
+## # Dev E. Loper <developer@gentoo.org> (28 Jun 2012)
+## # Masking foo USE flag until we can get the
+## # foo stuff to work properly again (bug 12345)
+## =media-video/mplayer-0.90_pre5 foo
+## =media-video/mplayer-0.90_pre5-r1 foo
+#
+
+#--- END OF EXAMPLES ---
+
+# Amy Liffey <amynka@gentoo.org> (19 Sep 2017)
+# [cuda] is unmasked in this profiles.
+media-libs/opencv -contrib_xfeatures2d
+
+# Brian Evans <grknight@gentoo.org> (21 Jul 2017)
+# app-crypt/argon2 is keyworded on amd64
+dev-lang/php -argon2
+
+# David Seifert <soap@gentoo.org> (20 May 2017)
+# cpyrit-cuda does not support GCC 4.9 or later
+net-wireless/pyrit cuda
+
+# Rick Farina <zerochaos@gentoo.org> (11 May 2017)
+# nexpose and openvas work on amd64
+net-analyzer/metasploit nexpose openvas
+
+# Thomas Deutschmann <whissi@gentoo.org> (01 Mar 2017)
+# dev-libs/libmaxminddb is keyworded on amd64
+app-admin/rsyslog -mdblookup
+
+# Alexis Ballier <aballier@gentoo.org> (21 Feb 2017)
+# spacetime works on amd64
+# https://caml.inria.fr/pub/docs/manual-ocaml/spacetime.html
+dev-lang/ocaml -spacetime
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
+# nvidia drivers are unmasked here
+media-video/ffmpeg -nvenc
+
+# Luke Dashjr <luke-jr+gentoobugs@utopios.org> (04 Jan 2017)
+# Assembly optimisations are supported on amd64 for all versions
+dev-libs/libsecp256k1 -asm
+
+# Andreas Sturmlechner <asturm@gentoo.org> (31 Dec 2016)
+# on behalf of Andreas K. Hüttel <dilfridge@gentoo.org> (14 Dec 2016)
+# Fails to build with newly unmasked ffmpeg-3, so mask this useflag
+# Workaround; leaving a real fix to the maintainers... bug 580630
+media-libs/mlt vdpau
+
+# Ettore Di Giacinto <mudler@gentoo.org> (18 Oct 2016)
+# Enable gambit and scm only on supported architectures
+>=dev-scheme/slib-3.2.5 -gambit -scm
+
+# Thomas Deutschmann <whissi@gentoo.org> (22 Sep 2016)
+# Enable MQTT support on supported architectures
+app-admin/collectd -collectd_plugins_mqtt
+
+# Thomas Deutschmann <whissi@gentoo.org> (26 Aug 2016)
+# Enable numa support on supported architectures
+dev-db/mysql -numa
+dev-db/percona-server -numa
+
+# Brian Evans <grknight@gentoo.org> (23 Aug 2016)
+# It's only supported on amd64
+dev-db/percona-server -tokudb -tokudb-backup-plugin
+
+# Brian Evans <grknight@gentoo.org> (18 Aug 2016)
+# Allow jdbc on this arch
+dev-db/mariadb -jdbc
+
+# Andrew Savchenko <bircoph@gentoo.org> (11 Aug 2016)
+# PGO is fixed on amd64
+>=www-client/firefox-48 -pgo
+
+# James Le Cuirot <chewi@gentoo.org> (26 Jul 2016)
+# Only available on some architectures.
+dev-java/icedtea -shenandoah
+
+# Mike Gilbert <floppym@gentoo.org> (23 Jun 2016)
+# This flag only has meaning on amd64
+sys-boot/grub:2 -grub_platforms_xen-32
+
+# Nathan Phillip Brink <binki@gentoo.org> (26 Sep 2015)
+# git useflag requires dev-libs/libgit2 which few arches support
+dev-util/geany-plugins -git
+
+# Brian Evans <grknight@gentoo.org (14 Sep 2015)
+# Unmask new USE flags for mariadb on supported arches
+>=dev-db/mariadb-10.1.0 -mroonga -sst-xtrabackup -galera
+
+# Mike Gilbert <floppym@gentoo.org> (05 Sep 2015)
+# sys-boot/gnu-efi is not supported on all archs.
+sys-apps/systemd -gnuefi
+
+# James Le Cuirot <chewi@gentoo.org> (28 Jul 2015)
+# JavaFX and the browser plugin are included on x64 Linux.
+dev-java/oracle-jdk-bin -javafx -nsplugin
+dev-java/oracle-jre-bin -javafx -nsplugin
+
+# Michael Sterrett <mr_bones_@gentoo.org> (21 Apr 2015)
+# None of the fusionsound deps support multilib currently, maybe later.
+# Hiding the use flag fixes bug #545662 for now.
+media-libs/libsdl2 fusionsound
+
+# Ben de Groot <yngwin@gentoo.org> (15 Mar 2015)
+# media-libs/libbdplus is keyworded on amd64, so unmask the useflag
+media-libs/libbluray -bdplus
+
+# Michał Górny <mgorny@gentoo.org> (01 Mar 2015)
+# pidgin-opensteamworks is only available for amd64, ppc32 and x86
+net-im/telepathy-connection-managers -steam
+
+# Mike Frysinger <vapier@gentoo.org> (04 Aug 2014)
+# Unmask flashrom drivers that only work on x86 due to in/out asm insns #454024
+sys-apps/flashrom -atahpt -nic3com -nicnatsemi -nicrealtek -rayer_spi -satamv
+
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> (24 Apr 2014)
+# It's only supported on amd64
+dev-db/mariadb -tokudb
+
+# Matt Turner <mattst88@gentoo.org> (07 Mar 2014)
+# media-libs/libomxil-bellagio keyworded on amd64/x86
+media-libs/mesa -openmax
+
+# Samuli Suominen <ssuominen@gentoo.org> (16 Feb 2014)
+# Still considered experimental by upstream:
+# https://sourceforge.net/p/mikmod/bugs/16/#17ea
+media-libs/libmikmod cpu_flags_x86_sse2
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (4 Jan 2014)
+# While globally masked, the needed amd64 keywords are already present
+dev-vcs/git -mediawiki -mediawiki-experimental
+
+# Sergey Popov <pinkbyte@gentoo.org> (27 Dec 2013)
+# Boost.Context can be built on amd64
+dev-libs/boost -context
+
+# Michał Górny <mgorny@gentoo.org> (15 Dec 2013)
+# mupen64plus' 2.0 new dynamic recompiler is supported on x86 and arm
+# only.
+games-emulation/mupen64plus-core new-dynarec
+
+# Jeff Horelick <jdhore@gentoo.org> (1 Sep 2013)
+# Dependency (media-libs/libsidplayfp) only keyworded
+# on x86 and amd64. (masked in base)
+>=media-plugins/audacious-plugins-3.4 -sid
+
+# Tim Harder <radhermit@gentoo.org> (13 Aug 2013)
+# dev-lang/luajit keyworded for amd64 (masked in base)
+# dev-scheme/racket keyworded for amd64 (masked in base)
+app-editors/vim -luajit -racket
+app-editors/gvim -luajit -racket
+
+# Kacper Kowalik <xarthisius@gentoo.org> (09 Aug 2013)
+# Works on amd64
+sys-apps/hwloc -gl
+
+# Michał Górny <mgorny@gentoo.org> (22 Jul 2013)
+# Meaningless on amd64 (it controls the 32-bit x86 JIT).
+dev-python/pypy cpu_flags_x86_sse2
+dev-python/pypy-bin cpu_flags_x86_sse2
+dev-python/pypy3 cpu_flags_x86_sse2
+dev-python/pypy3-bin cpu_flags_x86_sse2
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (30 Dec 2012)
+# chromium, mono work on this arch (masked in base)
+gnome-extra/zeitgeist-datasources -chromium
+
+# Christoph Junghans <junghans@gentoo.org> (26 Dec 2012)
+# cuda works on x86/amd64 (masked in base)
+sci-chemistry/gromacs -mkl
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (3 Nov 2012)
+# Unmask here, as it's masked in base.
+net-libs/gnutls -dane
+
+# Ben de Groot <yngwin@gentoo.org> (30 Jul 2012)
+# dependency keyworded here, masked in base
+media-libs/freetype -infinality
+
+# Mike Gilbert <floppym@gentoo.org> (29 Jun 2012)
+# sys-fs/zfs is not available everywhere.
+sys-boot/grub -libzfs
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (12 Apr 2012)
+# Temporary mask-in-base, unmask-in-arch for dev-python/mako keywording for
+# gobject-introspection[doctool], bug #411761
+dev-libs/gobject-introspection -doctool
+
+# Michał Górny <mgorny@gentoo.org> (11 Apr 2012)
+# JIT compilation in zpaq generates code for x86/amd64.
+app-arch/zpaq -jit
+
+# Arun Raghavan <ford_prefect@gentoo.org> (29 Mar 2012)
+# webrtc-audio-processing is only supported on x86/amd64. Possibly arm can be
+# added.
+# Arun Raghavan <ford_prefect@gentoo.org> (24 May 2012)
+# Mask xen USE flag by default, unmask on x86/amd64 where it is supported.
+media-sound/pulseaudio -webrtc-aec -xen
+
+# Bernard Cafarelli <voyageur@gentoo.org> (27 Feb 2012)
+# Masked in base profile, supported on this arch
+gnustep-base/gnustep-make -libobjc2
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (09 Jan 2012)
+# jsc JIT compilation is supported only on amd64/arm/x86 and their prefixes, so
+# it's masked in base profile and unmasked here (bug #396313).
+net-libs/webkit-gtk -jit
+www-client/midori -jit
+
+# Davide Pesavento <pesa@gentoo.org> (30 Nov 2011)
+# The QML (V4) and JSC JITs are supported only on amd64/arm/x86,
+# so the flag is masked in the base profile and unmasked here.
+dev-qt/qtdeclarative -jit
+dev-qt/qtscript -jit
+dev-qt/qtwebkit -jit
+
+# Robin H. Johnson <robbat2@gentoo.org> (10 Jul 2011)
+# PPS should work on all arches, but only keyworded on amd64/x86
+>=net-misc/ntp-4.2.6_p3-r1 -parse-clocks
+
+# Alexey Shvetsov <alexxy@gentoo.org> (1 Jul 2011)
+# Use mask infiniband for stable corosync and glusterfs
+=sys-cluster/glusterfs-3.1.2 infiniband
+=sys-cluster/corosync-1.3.0 infiniband
+
+# Tim Harder <radhermit@gentoo.org> (13 Feb 2011)
+# Masked in base, unmask for amd64/x86
+>=media-video/mplayer-1.0_rc4_p20101219 -bluray
+
+# doomsday doesn't work on amd64 so mask off things that pull it in.
+games-fps/doom-data doomsday
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (28 Nov 2010)
+# sys-devel/llvm is keyworded on amd64
+media-libs/mesa -llvm
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (4 Apr 2010)
+# x86 platforms works
+sys-power/pm-utils -video_cards_intel -video_cards_radeon
+
+# Jean-Noël Rivasseau <elvanor@gentoo.org> (23 Sep 2009)
+# X use flag only for amd64/x86, bug 285951.
+media-gfx/iscan -X
+
+# Bernard Cafarelli <voyageur@gentoo.org> (20 Mar 2009)
+# Depends on packages not yet keyworded for amd64, cf bug #22042
+app-backup/backup-manager s3
+
+# Jeremy Olexa <darkside@gentoo.org> (07 Feb 2009)
+# USE=mmx on imlib2 causes issues with other apps. See bug 218382 (comments
+# 11-12)
+media-libs/imlib2 cpu_flags_x86_mmx
+
+# Jeremy Olexa <darkside@gentoo.org> (27 Dec 2008)
+# Mask static USE flag because it just doesn't work on amd64. See bug 236591
+>=app-arch/p7zip-4.58 static
+
+# Jeremy Olexa <darkside@gentoo.org> (24 Dec 2008)
+# unmask USE=bindist on amd64 - also unmasking the other flags that were under a
+# bad comment heading. see bug #246144
+media-video/mplayer -cpudetection
+
+# Serkan Kaba <serkan@gentoo.org> (20 Jul 2008)
+app-text/enchant -zemberek
+
+# assembler-section
+
+# Oct 23th 2006; blubb@gentoo.org
+# the asm is 64bit save, but it doesn't compile anyway
+games-emulation/visualboyadvance cpu_flags_x86_mmx
+
+# Oct 23th 2006; blubb@gentoo.org
+# upstream forces sse2 for amd64; mmx flag does nothing
+app-crypt/johntheripper cpu_flags_x86_mmx
+
+# Oct 23th 2006; blubb@gentoo.org
+# x86 asm only:
+media-libs/libfame cpu_flags_x86_mmx
+media-libs/sdl-gfx cpu_flags_x86_mmx
+media-libs/smpeg cpu_flags_x86_mmx
+x11-terms/eterm cpu_flags_x86_mmx
+
+# x86_64 opts are enabled with USE sse. so masking the rest
+media-sound/mpg123 cpu_flags_x86_mmx cpu_flags_x86_3dnow cpu_flags_x86_3dnowext
+
+# 8 May 2007: Alistair Bush <ali_bush@gentoo.org>
+# Mask doc flag for fop as nearly impossible to
+# run javadoc target. see #177585
+>=dev-java/fop-0.93 doc
+
+# 8 Aug 2008: Alexis Ballier <aballier@gentoo.org>
+# x86 asm only, it won't be built on amd64 if mmx useflag is enabled but that
+# saves people from needlessly installing nasm
+# Refs bug #93279
+media-sound/lame cpu_flags_x86_mmx
diff --git a/profiles/arch/amd64/package.use.stable.mask b/profiles/arch/amd64/package.use.stable.mask
new file mode 100644
index 00000000..00224663
--- /dev/null
+++ b/profiles/arch/amd64/package.use.stable.mask
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# When you add an entry to the top of this file, add your name, the date, and
+# an explanation of why something is getting masked. Please be extremely
+# careful not to commit atoms that are not valid, as it can cause large-scale
+# breakage, especially if it ends up in the daily snapshot.
+#
+## Example:
+##
+## # Dev E. Loper <developer@gentoo.org> (28 Jun 2012)
+## # Masking foo USE flag until we can get the
+## # foo stuff to work properly again (bug 12345)
+## =media-video/mplayer-0.90_pre5 foo
+## =media-video/mplayer-0.90_pre5-r1 foo
+#
+
+#--- END OF EXAMPLES ---
+
+# Michael Palimaka <kensington@gentoo.org> (30 Sep 2017)
+# Required dependeny is not stable
+sci-libs/gdal oracle
+
+# NP-Hardass <NP-Hardass@gentoo.org> (27 Sep 2017)
+# patchset variants are not stable
+virtual/wine d3d9 staging
+
+# Tim Harder <radhermit@gentoo.org> (11 Sep 2017)
+# Pulls in dev-ruby/asciidoctor which has too large of a ruby testing
+# dep tree to be stabilized at this time.
+>=net-irc/weechat-1.7 doc
+
+# Andreas Sturmlechner <asturm@gentoo.org> (01 Mar 2017)
+# Requires not yet stabilised dev-db/oracle-instantclient.
+sci-geosciences/qgis oracle
+
+# Christoph Junghans <junghans@gentoo.org> (26 Feb 2017)
+# Stable mask some fabrics (bug #525534)
+sys-cluster/openmpi openmpi_fabrics_psm openmpi_fabrics_knem openmpi_fabrics_open-mx openmpi_fabrics_ofed openmpi_fabrics_dapl openmpi_rm_pbs openmpi_rm_slurm openmpi_ofed_features_rdmacm openmpi_ofed_features_control-hdr-padding openmpi_ofed_features_connectx-xrc openmpi_ofed_features_udcm openmpi_ofed_features_dynamic-sl openmpi_ofed_features_failover
+
+# Brian Evans <grknight@gentoo.org> (17 Jan 2017)
+# Stable mask groonga on mariadb as I don't know how stable
+# the dependencies really are
+dev-db/mariadb mroonga
+
+# Bernard Cafarelli <voyageur@gentoo.org> (09 Jan 2017)
+# Requires more testing
+# and additional unstable dependencies
+gnustep-base/gnustep-make libobjc2
+
+# Yixun Lan <dlan@gentoo.org> (02 Apr 2015)
+# sys-fs/zfs is not stable.
+sys-cluster/ceph zfs
+
+# Pacho Ramos <pacho@gentoo.org> (08 Mar 2015)
+# mayavi is broken, bug #500104
+dev-python/apptools test
+
+# Michał Górny <mgorny@gentoo.org> (30 Mar 2014)
+# Don't apply stable masks to python-exec since we're forcing every
+# impl there anyway. Please keep this in sync with use.stable.mask.
+dev-lang/python-exec -python_targets_pypy
+dev-lang/python-exec -python_targets_pypy3
+
+# Mike Gilbert <floppym@gentoo.org> (22 Mar 2014)
+# sys-fs/zfs is not stable.
+sys-boot/grub libzfs
+
+# Tom Wijsman <TomWij@gentoo.org> (06 Feb 2014)
+# [QA] Masked jit USE flag on www-apps/cgit as dev-lang/luajit is not stable.
+www-apps/cgit jit
diff --git a/profiles/arch/amd64/parent b/profiles/arch/amd64/parent
new file mode 100644
index 00000000..c5b66f7e
--- /dev/null
+++ b/profiles/arch/amd64/parent
@@ -0,0 +1,2 @@
+../base
+../../features/multilib
diff --git a/profiles/arch/amd64/use.force b/profiles/arch/amd64/use.force
new file mode 100644
index 00000000..53a33330
--- /dev/null
+++ b/profiles/arch/amd64/use.force
@@ -0,0 +1,6 @@
+# Force the flag which corresponds to ARCH.
+amd64
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Force the flag corresponding to the default ABI.
+abi_x86_64
diff --git a/profiles/arch/amd64/use.mask b/profiles/arch/amd64/use.mask
new file mode 100644
index 00000000..d446c202
--- /dev/null
+++ b/profiles/arch/amd64/use.mask
@@ -0,0 +1,190 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag which corresponds to ARCH.
+-amd64
+
+# SECTION: Unmask
+
+# Michael Palimaka <kensington@gentoo.org> (03 Jun 2017)
+# Unmask elogind since it is keyworded here.
+-elogind
+
+# Sven Wegener <swegener@gentoo.org> (31 May 2017)
+# libvirt is supported on amd64
+-libvirt
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (26 May 2017)
+# dev-db/firebird is keyworded ~amd64
+-firebird
+
+# cilk has been ported to this arch.
+-cilk
+
+# Mike Gilbert <floppym@gentoo.org> (19 Oct 2014)
+# sys-libs/libapparmor
+-apparmor
+
+# Alexey Shvetsov <alexxy@gentoo.org> (08 Apr 2014)
+# Cuda works here
+-cuda
+
+# Michał Górny <mgorny@gentoo.org> (30 Mar 2014)
+# PyPy is keyworded on this arch.
+-python_targets_pypy
+-python_single_target_pypy
+-python_targets_pypy3
+-python_single_target_pypy3
+
+# Michał Górny <mgorny@gentoo.org> (4 May 2013)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# keyworded on amd64
+-clisp
+-clozurecl
+-ecls
+-gcl
+-sbcl
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Unmask the multilib flags for this arch.
+-abi_x86_32
+-abi_x86_64
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (09 Dec 2012)
+# Orc optimisations work fine on amd64 and x86
+-orc
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (21 Aug 2012)
+# IPMI is only implemented for x86, amd64 and ia64
+-ipmi
+
+# Ralph Sennhauser <sera@gentoo.org> (31 Jul 2012)
+# Keyworded on amd64
+-python_targets_jython2_7
+-python_single_target_jython2_7
+
+# Joerg Bornkessel <hd_brummy@gentoo.org> (05. Mar 2012)
+# Unmask, works with v4l2, #350211
+-dxr3
+
+# Justin Lecher <jlec@gentoo.org> (04. Feb 2012)
+# Unmask because deps are keyworded
+-zeitgeist
+
+# 2011/12/22 - Alexis Ballier <aballier@gentoo.org>
+# Unmask vdpau as its supported here
+-vdpau
+
+# 2011/07/01 - Alexey Shvetsov <alexxy@gentoo.org>
+# Infiniband stuff works here
+-infiniband
+
+# 2010/02/14 - Samuli Suominen <ssuominen@gentoo.org>
+# Unmask amd64/x86 only SANE_BACKENDS
+-sane_backends_canon_pp
+-sane_backends_hpsj5s
+-sane_backends_mustek_pp
+-sane_backends_qcam
+
+# 2010/05/03 - Alex Legler <a3li@gentoo.org>
+# Add support for Ruby Enterprise Edition targets where rubyee is available
+# -ruby_targets_ree18
+
+# 2011/10/21 - Hans de Graaff <graaff@gentoo.org>
+# Add support for Rubinius targets where rbx is available
+#-ruby_targets_rbx
+
+# Lilo works on amd64, so ...
+-lilo
+
+# 2007/08/19 - Christoph Mende <angelos@gentoo.org>
+# Unmask support for dev-db/oracle-instantclient-basic
+-oci8-instant-client
+-oracle
+
+# 2007/03/10 - Mike Frysinger <vapier@gentoo.org>
+# NVRAM works on x86/amd64 hosts
+-nvram
+
+# 2005/09/14 - Diego Pettenò <flameeyes@gentoo.org>
+# nVidia XvMC support works on amd64
+-nvidia
+
+# 2006/01/28 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_ast
+-video_cards_i915
+-video_cards_i965
+-video_cards_intel
+-video_cards_nvidia
+-video_cards_siliconmotion
+-video_cards_via
+-video_cards_virtualbox
+-video_cards_vmware
+-video_cards_qxl
+
+# Diego Pettenò <flameeyes@gentoo.org> (4 Jan 2007)
+# Unmask the flags for PHP that are available only on x86/amd64
+-oci8
+
+# Feb 16th 2007; Simon Stelling <blubb@gentoo.org>
+# Since this profile forces >=portage-2.1.2, we can unmask all
+# SIMD assembler flags
+-mpx
+-cpu_flags_x86_3dnow
+-cpu_flags_x86_3dnowext
+-cpu_flags_x86_aes
+-cpu_flags_x86_avx
+-cpu_flags_x86_avx2
+-cpu_flags_x86_fma3
+-cpu_flags_x86_fma4
+-cpu_flags_x86_mmx
+-cpu_flags_x86_mmxext
+-cpu_flags_x86_padlock
+-cpu_flags_x86_popcnt
+-cpu_flags_x86_sse
+-cpu_flags_x86_sse2
+-cpu_flags_x86_sse3
+-cpu_flags_x86_sse4_1
+-cpu_flags_x86_sse4_2
+-cpu_flags_x86_sse4a
+-cpu_flags_x86_ssse3
+-cpu_flags_x86_xop
+
+# George Shapovalov <george@gentoo.org> (8 Apr 2007)
+# supported on amd64
+-ada
+
+# Robert Buchholz <rbu@gentoo.org> (03 Jun 2007)
+# Unmask as it works on amd64
+-lcd_devices_luise
+
+# SECTION: Unavailable/Broken
+
+# 2006/06/07 - Danny van Dyk <kugelfang@gentoo.org>
+# FIXME. Unknown mask reason. Has effect on qpopper
+# and tpop3d.
+drac
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_i740
+
+# 2004/06/22 - Taken from 2004.0 profile
+# masked
+3dfx
+
+# 2007/02/04 - Simon Stelling <blubb@gentoo.org>
+# games-emulation/caps is 32bit only, while app-emulation/e-uae is 64bit; bug 158416
+capslib
+
+# fdk-aac is already keyworded here
+-fdk
+
+# NOT NECESSARY - SECTION
diff --git a/profiles/arch/amd64/use.stable.mask b/profiles/arch/amd64/use.stable.mask
new file mode 100644
index 00000000..2bf7d376
--- /dev/null
+++ b/profiles/arch/amd64/use.stable.mask
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires eapi 5 or later. New entries go on top.
+# Please use the same syntax as in use.mask
+
+# Michael Palimaka <kensington@gentoo.org> (03 Jun 2017)
+# Not yet stable.
+elogind
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (26 May 2017)
+# dev-db/firebird is keyworded ~amd64
+firebird
+
+# Michał Górny <mgorny@gentoo.org> (20 May 2017)
+# The modern versions of CUDA SDK are not suitable for stabilization.
+cuda
+
+# Mike Gilbert <floppym@gentoo.org> (19 Oct 2014)
+# sys-libs/libapparmor
+apparmor
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# no stable versions on amd64
+clozurecl
+
+# Michał Górny <mgorny@gentoo.org> (30 Mar 2014)
+# PyPy is unstable on this arch.
+python_targets_pypy
+python_single_target_pypy
+python_targets_pypy3
+python_single_target_pypy3
diff --git a/profiles/arch/base/eapi b/profiles/arch/base/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/arch/base/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/base/make.defaults b/profiles/arch/base/make.defaults
new file mode 100644
index 00000000..29f3d360
--- /dev/null
+++ b/profiles/arch/base/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+USE_EXPAND_UNPREFIXED="ARCH"
+USE_EXPAND_IMPLICIT="ARCH"
+USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm-linux arm64 hppa ia64 m68k m68k-mint mips nios2 ppc ppc64 ppc64-linux ppc-aix ppc-macos riscv s390 sh sparc sparc64-solaris sparc-fbsd sparc-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt"
+
+PROFILE_ONLY_VARIABLES="${PROFILE_ONLY_VARIABLES} ARCH USE_EXPAND_VALUES_ARCH"
diff --git a/profiles/arch/base/package.use.mask b/profiles/arch/base/package.use.mask
new file mode 100644
index 00000000..d7f99a91
--- /dev/null
+++ b/profiles/arch/base/package.use.mask
@@ -0,0 +1,217 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Amy Liffey <amynka@gentoo.org> (19 Sep 2017)
+# Requires [cuda] which is masked in most of the profiles.
+media-libs/opencv contrib_xfeatures2d
+
+# Rick Farina <zerochaos@gentoo.org> (11 May 2017)
+# the needed deps are amd64/x86 only
+net-analyzer/metasploit nexpose openvas
+
+# Thomas Deutschmann <whissi@gentoo.org> (01 Mar 2017)
+# dev-libs/libmaxminddb is only keyworded on amd64 and x86 at the moment
+app-admin/rsyslog mdblookup
+
+# Alexis Ballier <aballier@gentoo.org> (21 Feb 2017)
+# spacetime is only supported on amd64 at the moment.
+# https://caml.inria.fr/pub/docs/manual-ocaml/spacetime.html
+dev-lang/ocaml spacetime
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
+# nvenc requires nvidia drivers, apply same mask logic
+media-video/ffmpeg nvenc
+
+# Thomas Deutschmann <whissi@gentoo.org> (30 Jan 2017)
+# media-libs/raspberrypi-userland not keyworded
+media-video/motion mmal
+
+# Luke Dashjr <luke-jr+gentoobugs@utopios.org> (04 Jan 2017)
+# Mask assembly optimisations that are platform-specific
+dev-libs/libsecp256k1 asm
+
+# Ettore Di Giacinto <mudler@gentoo.org> (18 Oct 2016)
+# Enable gambit and scm only on supported arches
+>=dev-scheme/slib-3.2.5 gambit scm
+
+# Thomas Deutschmann <whissi@gentoo.org> (22 Sep 2016)
+# Dependency is only keyworded on amd64 and x86
+app-admin/collectd collectd_plugins_mqtt
+
+# Thomas Deutschmann <whissi@gentoo.org> (26 Aug 2016)
+# It's only supported on amd64, ia64, powerpc and x86
+dev-db/mysql numa
+dev-db/percona-server numa
+
+# Brian Evans <grknight@gentoo.org> (23 Aug 2016)
+# It's only supported on amd64
+dev-db/percona-server tokudb tokudb-backup-plugin
+
+# Brian Evans <grknight@gentoo.org> (18 Aug 2016)
+# Mask jdbc as most arches don't support java
+dev-db/mariadb jdbc
+
+# James Le Cuirot <chewi@gentoo.org> (26 Jul 2016)
+# Only available on some architectures.
+dev-java/icedtea shenandoah
+
+# Mike Gilbert <floppym@gentoo.org> (23 Jun 2016)
+# This flag only has meaning on amd64
+sys-boot/grub:2 grub_platforms_xen-32
+
+# Ian Delaney <idella4@gentoo.org> (06 Apr 2016)
+# on behalf of Ilya Tumaykin <itumaykin+gentoo@gmail.com>
+# Raspberry Pi support is only available on arm.
+# Mask raspberry-pi USE globally, unmask on arm.
+media-video/mpv raspberry-pi
+
+# Alexis Ballier <aballier@gentoo.org> (14 Nov 2015)
+# MMAL is only available on the Raspberry Pi:
+# Mask it globally, unmask it on arm.
+media-video/ffmpeg mmal
+
+# Nathan Phillip Brink <binki@gentoo.org> (26 Sep 2015)
+# git useflag requires dev-libs/libgit2 which few arches support
+dev-util/geany-plugins git
+
+# Brian Evans <grknight@gentoo.org (14 Sep 2015)
+# Mask new USE flags for mariadb which all arches do not yet have dependencies
+>=dev-db/mariadb-10.1.0 mroonga sst-xtrabackup galera
+
+# Mike Gilbert <floppym@gentoo.org> (05 Sep 2015)
+# sys-boot/gnu-efi is not supported on all archs.
+sys-apps/systemd gnuefi
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jul 2015)
+# JavaFX and the browser plugin are not included on some platforms.
+dev-java/oracle-jdk-bin javafx nsplugin
+dev-java/oracle-jre-bin javafx nsplugin
+
+# Ben de Groot <yngwin@gentoo.org> (15 Mar 2015)
+# Mask bdplus support and unmask on arches where libbdplus is keyworded.
+media-libs/libbluray bdplus
+
+# Michał Górny <mgorny@gentoo.org> (01 Mar 2015)
+# pidgin-opensteamworks is only available for amd64, ppc32 and x86
+net-im/telepathy-connection-managers steam
+
+# Ben de Groot <yngwin@gentoo.org> (07 Feb 2015)
+# Mask for all arches, can be unmasked on arm once keyworded there
+games-board/stockfish armv7
+
+# Mike Frysinger <vapier@gentoo.org> (04 Aug 2014)
+# Mask flashrom drivers that only work on x86 due to in/out asm insns #454024
+sys-apps/flashrom atahpt nic3com nicnatsemi nicrealtek rayer_spi satamv
+
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> (24 Apr 2014)
+# It's only supported on amd64
+dev-db/mariadb tokudb
+
+# Lars Wendler <polynomial-c@gentoo.org> (23 Apr 2014)
+# Not working on 64bit systems
+media-sound/lmms vst
+
+# Alexey Shvetsov <alexxy@gentoo.org> (16 Apr 2014)
+# libehca only works on ppc*
+sys-fabric/ofed ofed_drivers_ehca
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (4 Jan 2014)
+# Mask until dependencies are keyworded (bug 497068)
+dev-vcs/git mediawiki mediawiki-experimental
+
+# Sergey Popov <pinkbyte@gentoo.org> (27 Dec 2013)
+# Mask because Boost.Context library does not work on most of arches
+dev-libs/boost context
+
+# Jeff Horelick <jdhore@gentoo.org> (1 Sep 2013)
+# Dependency (media-libs/libsidplayfp) only keyworded
+# on x86 and amd64. Will unmask there.
+>=media-plugins/audacious-plugins-3.4 sid
+
+# Tim Harder <radhermit@gentoo.org> (13 Aug 2013)
+# Related deps dev-lang/luajit and dev-scheme/racket are not keyworded by most arches.
+app-editors/vim luajit racket
+app-editors/gvim luajit racket
+
+# Kacper Kowalik <xarthisius@gentoo.org> (09 Aug 2013)
+# Doesn't work on most profiles. Easier to mask here and
+# unmask in particular profiles
+sys-apps/hwloc gl opencl
+
+# Christoph Junghans <junghans@gentoo.org> (26 Dec 2012)
+# mkl only works on x86/amd64
+sci-chemistry/gromacs mkl
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (3 Nov 2012)
+# Requires net-dns/unbound which is not keyworded by most arches
+net-libs/gnutls dane
+
+# Ben de Groot <yngwin@gentoo.org> (30 Jul 2012)
+# fontconfig-infinality dependency not yet keyworded on most arches
+media-libs/freetype infinality
+
+# Mike Gilbert <floppym@gentoo.org> (29 Jun 2012)
+# sys-fs/zfs is not available everywhere.
+sys-boot/grub libzfs
+
+# Michał Górny <mgorny@gentoo.org> (11 Apr 2012)
+# JIT compilation in libzpaq generates code for x86/amd64.
+app-arch/zpaq jit
+
+# Arun Raghavan <ford_prefect@gentoo.org> (28 Mar 2012)
+# webrtc-audio-processing is only supported on x86/amd64. Possibly arm can be
+# added.
+# Arun Raghavan <ford_prefect@gentoo.org> (24 May 2012)
+# Mask xen USE flag by default, unmask on x86/amd64 where it is supported.
+media-sound/pulseaudio webrtc-aec xen
+
+# Christoph Junghans <junghans@gentoo.org> (04 Feb 2012)
+# mips only use flags
+>=sci-libs/fftw-3 zbus
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (09 Jan 2012)
+# jsc JIT compilation is supported only on amd64/arm/x86 and their prefixes, so
+# it's masked here and unmasked in individual profiles (bug #396313).
+net-libs/webkit-gtk jit
+www-client/midori jit
+
+# Samuli Suominen <ssuominen@gentoo.org> (06 Dec 2011)
+# NuppelVideo is available on x86 only
+media-video/transcode nuv pic
+
+# Davide Pesavento <pesa@gentoo.org> (30 Nov 2011)
+# The QML (V4) and JSC JITs are supported only on amd64/arm/x86, so
+# mask the flag here and unmask it in the appropriate arch profiles.
+dev-qt/qtdeclarative jit
+dev-qt/qtscript jit
+dev-qt/qtwebkit jit
+
+# Samuli Suominen <ssuominen@gentoo.org> (25 Nov 2011)
+# Expose USE="suid" for USE="svga" only for x86 users,
+# see arch/x86/package.use.mask
+www-client/links suid
+
+# Robin H. Johnson <robbat2@gentoo.org> (10 Jul 2011)
+# PPS should work on all arches, but only keyworded on amd64/x86
+>=net-misc/ntp-4.2.6_p3-r1 parse-clocks
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (4 Apr 2010)
+# Masked because tools pulled in are not supported on most archs.
+sys-power/pm-utils video_cards_intel video_cards_radeon
+
+# Jean-Noël Rivasseau <elvanor@gentoo.org> (23 Sep 2009)
+# X use flag only for amd64/x86, bug 285951.
+media-gfx/iscan X
+
+# Serkan Kaba <serkan@gentoo.org> (20 Jul 2008)
+# Java is not supported in most of the arches enchant is keyworded
+app-text/enchant zemberek
+
+# Raúl Porcel <armin76@gentoo.org> (09 Nov 2008)
+# CPU opts: This needs amd64, x86 and ppc on some of them
+# dvdnav: hard masked dependency
+media-video/mplayer cpudetection
+
+# Ian Whyman <thev00d00@gentoo.org> (22 May 2016)
+# Mask raspberry-pi except on arm.
+dev-libs/libcec raspberry-pi
diff --git a/profiles/arch/base/use.force b/profiles/arch/base/use.force
new file mode 100644
index 00000000..7f213b9d
--- /dev/null
+++ b/profiles/arch/base/use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Forced and masked by default. Unmask where necessary.
+big-endian
diff --git a/profiles/arch/base/use.mask b/profiles/arch/base/use.mask
new file mode 100644
index 00000000..9d0fd9f3
--- /dev/null
+++ b/profiles/arch/base/use.mask
@@ -0,0 +1,260 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Forced and masked by default. Unmask where necessary.
+big-endian
+
+# Sven Wegener <swegener@gentoo.org> (31 May 2017)
+# libvirt is only supported on specific architectures
+libvirt
+
+# Michael Orlitzky <mjo@gentoo.org> (7 Jan 2017)
+# The dev-db/firebird and dev-db/oracle-instantclient* packages
+# only support amd64 and x86.
+firebird
+oci8
+
+# cilk has been ported only to x86 systems
+cilk
+
+# cuda only works on amd64/x86
+cuda
+
+# masking here, and unmasking in arch/x86/use.mask
+vidix
+
+# Mask as long its not available everywhere
+zeitgeist
+
+# vdpau is currently only available with binary nvidia-drivers, thus amd64/x86*
+vdpau
+
+# Infiniband stuff should generaly work on all arches but keyworded only on amd64/x86
+infiniband
+
+# These need libieee1284 which is amd64/x86 only.
+sane_backends_canon_pp
+sane_backends_hpsj5s
+sane_backends_mustek_pp
+sane_backends_qcam
+
+# amd64/x86 arch specific USE flags
+lilo
+mpx
+svga
+nvram
+cpu_flags_x86_3dnow
+cpu_flags_x86_3dnowext
+cpu_flags_x86_aes
+cpu_flags_x86_avx
+cpu_flags_x86_avx2
+cpu_flags_x86_fma3
+cpu_flags_x86_fma4
+cpu_flags_x86_mmx
+cpu_flags_x86_mmxext
+cpu_flags_x86_padlock
+cpu_flags_x86_popcnt
+cpu_flags_x86_sse
+cpu_flags_x86_sse2
+cpu_flags_x86_sse3
+cpu_flags_x86_sse4_1
+cpu_flags_x86_sse4_2
+cpu_flags_x86_sse4a
+cpu_flags_x86_ssse3
+cpu_flags_x86_xop
+
+# ppc arch specific USE flags
+altivec
+ppcsha1
+power8
+
+# mips arch specific USE flags
+fixed-point
+loongson2f
+mipsdspr1
+mipsdspr2
+mipsfpu
+
+# ppc64 arch specific USE flags
+ibm
+ps3
+
+# sparc arch specific USE flags
+vis
+
+# arm arch specific USE flags
+cpu_flags_arm_v4
+cpu_flags_arm_v5
+cpu_flags_arm_v6
+cpu_flags_arm_v7
+cpu_flags_arm_v8
+cpu_flags_arm_aes
+cpu_flags_arm_crc32
+cpu_flags_arm_edsp
+cpu_flags_arm_iwmmxt
+cpu_flags_arm_neon
+cpu_flags_arm_sha1
+cpu_flags_arm_sha2
+cpu_flags_arm_thumb
+cpu_flags_arm_thumb2
+cpu_flags_arm_vfp
+cpu_flags_arm_vfpv3
+cpu_flags_arm_vfpv4
+cpu_flags_arm_vfp-d32
+
+# [old] arm arch specific USE flags
+armvfp
+armv5te
+armv6
+armv6t2
+iwmmxt
+neon
+
+# nVidia XvMC requires nvidia-drivers/nvidia-legacy-drivers
+nvidia
+
+# dev-db/oracle-instantclient-basic is only available on x86
+oci8-instant-client
+oracle
+
+# not keyworded on non-x86 systems
+video_cards_geode
+video_cards_voodoo
+
+# not needed on non-sparc systems
+video_cards_sunbw2
+video_cards_suncg14
+video_cards_suncg3
+video_cards_suncg6
+video_cards_sunffb
+video_cards_sunleo
+video_cards_suntcx
+
+# not needed on non-mips systems
+video_cards_newport
+
+# not needed on non-x86, non-amd64 systems
+input_devices_vmmouse
+video_cards_ast
+video_cards_i915
+video_cards_i965
+video_cards_intel
+video_cards_nvidia
+video_cards_via
+video_cards_vmware
+video_cards_virtualbox
+
+# not needed on non-x86, non-amd64, non-mips systems
+video_cards_siliconmotion
+
+# not needed on non-arm systems
+video_cards_exynos
+video_cards_freedreno
+video_cards_imx
+video_cards_omap
+video_cards_tegra
+video_cards_vc4
+
+# James Le Cuirot <chewi@gentoo.org>
+# Vivante is only available for arm and mips.
+video_cards_vivante
+
+# linux-only drivers
+video_cards_qxl
+
+# not needed on non-x86, non-amd64, non-ppc systems
+input_devices_synaptics
+input_devices_wacom
+
+# Robert Buchholz <rbu@gentoo.org> (03 Jun 2007)
+# Only works on x86 or amd64
+lcd_devices_svga
+lcd_devices_luise
+
+# Joseph Jezak <josejx@gentoo.org> (11 Mar 2007)
+# Only for x86 and amd64 (in pbbuttonsd)
+macbook
+
+# George Shapovalov <george@gentoo.org> (8 Apr 2007)
+# Ada is supported only on x86, amd64 and ppc at present
+ada
+
+# Alex Legler <a3li@gentoo.org> (7 Dec 2009)
+# Rubinius is whitelisted on supported arches
+ruby_targets_rbx
+
+# Samuli Suominen <ssuominen@gentoo.org> (03 Oct 2011)
+# RealMagic Hollywood+/Creative DXR3 support
+# Still using obsolete V4L1 wrt bug 350211
+# If fixed, should be unmasked in amd64/x86/ppc32 use.mask
+dxr3
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (21 Aug 2012)
+# IPMI is only implemented for x86, amd64 and ia64
+ipmi
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (09 Dec 2012)
+# dev-lang/orc is useful only for some specific arches (amd64/x86/arm/...)
+orc
+
+# Mike Gilbert <floppym@gentoo.org> (02 Jan 2013)
+# PyPy is unkeyworded on most arches. If you are running amd64 or x86,
+# please switch to one of the testing 13.0 profiles to get it.
+python_targets_pypy
+python_single_target_pypy
+python_targets_pypy3
+python_single_target_pypy3
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Mask the multilib flags globally. Unmasked in specific arches.
+abi_x86_32
+abi_x86_64
+abi_x86_x32
+# Matt Turner <mattst88@gentoo.org> (29 Jul 2013)
+abi_mips_o32
+abi_mips_n32
+abi_mips_n64
+abi_ppc_32
+abi_ppc_64
+abi_s390_32
+abi_s390_64
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# These lisps are available only on some arches
+clisp
+clozurecl
+cmucl
+ecls
+gcl
+sbcl
+
+# Michał Górny <mgorny@gentoo.org> (4 May 2013)
+# Mask systemd flag globally, unmasked on arches on which systemd
+# is keyworded.
+systemd
+
+# Mike Gilbert <floppym@gentoo.org> (19 Oct 2014)
+# sys-libs/libapparmor
+apparmor
+
+# Mask flags that correspond to all possible ARCH values.
+alpha
+amd64
+amd64-fbsd
+arm
+arm64
+hppa
+ia64
+m68k
+mips
+nios2
+ppc
+ppc64
+riscv
+s390
+sh
+sparc
+sparc-fbsd
+x86
+x86-fbsd
diff --git a/profiles/base/eapi b/profiles/base/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/base/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults
new file mode 100644
index 00000000..db5f5389
--- /dev/null
+++ b/profiles/base/make.defaults
@@ -0,0 +1,159 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# System-wide defaults for the Portage system
+# See portage(5) manpage
+
+# Profile IUSE injection (applies only to ebuilds which use EAPI 5 or later)
+IUSE_IMPLICIT="prefix prefix-chain prefix-guest"
+USE_EXPAND_IMPLICIT="ELIBC KERNEL USERLAND"
+USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt"
+USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt"
+USE_EXPAND_VALUES_USERLAND="BSD GNU"
+
+# Env vars to expand into USE vars. Modifying this requires prior
+# discussion on gentoo-dev@lists.gentoo.org.
+USE_EXPAND="ABI_MIPS ABI_PPC ABI_S390 ABI_X86 ALSA_CARDS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CALLIGRA_EXPERIMENTAL_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_X86 CROSSCOMPILE_OPTS CURL_SSL ELIBC ENLIGHTENMENT_MODULES FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LINGUAS LIRC_DEVICES LLVM_TARGETS MONKEYD_PLUGINS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFED_DRIVERS OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS ROS_MESSAGES RUBY_TARGETS SANE_BACKENDS USERLAND UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XFCE_PLUGINS XTABLES_ADDONS"
+
+# USE_EXPAND variables whose contents are not shown in package manager
+# output. Changes need discussion on gentoo-dev.
+USE_EXPAND_HIDDEN="USERLAND KERNEL ELIBC CROSSCOMPILE_OPTS ABI_MIPS ABI_PPC ABI_S390 ABI_X86 CPU_FLAGS_ARM CPU_FLAGS_X86"
+
+CONFIG_PROTECT="/etc"
+CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
+
+# Variables that are set exclusively by the profile
+# and not by user configuration files.
+PROFILE_ONLY_VARIABLES="${PROFILE_ONLY_VARIABLES} ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND"
+
+# 'Sane' defaults
+ELIBC="glibc"
+KERNEL="linux"
+USERLAND="GNU"
+INPUT_DEVICES="keyboard mouse"
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (23 Mar 2013)
+# By default enable libreoffice implementation only.
+OFFICE_IMPLEMENTATION="libreoffice"
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (12 Aug 2011)
+# By default do not build any grub platform and let it guess.
+GRUB_PLATFORMS=""
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (05 May 2013)
+# By default enable all extensions with no dependencies
+LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (15 May 2011)
+# Andreas K. Hüttel <dilfridge@gentoo.org> (19 Aug 2011, 25 Mar 2012)
+# By default build all koffice / calligra features.
+CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (28 Sep 2010)
+# Small default list of enabled plugins for collectd
+COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (26 Oct 2010)
+# By default enable all protocols for average GPS user
+GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx"
+
+# Benedikt Böhm <hollow@gentoo.org> (27 Nov 2007)
+# Sane defaults for built-in apache modules
+# Patrick Lauer <patrick@gentoo.org> (12 Oct 2012)
+# extend for apache 2.4
+APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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"
+
+# Peter Volkov <pva@gentoo.org> (29 Apr 2010)
+# Set some defaults or package will fail to build (Check mconfig in package sources)
+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"
+
+# Robert Buchholz <rbu@gentoo.org> (17 Jan 2006)
+# Some common lcd devices
+LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
+
+# 2006/10/17 - Daniel Drake <dsd@gentoo.org>
+# cracklib is becoming optional in shadow (and removed from system) as of
+# today. However, cracklib is very standard across the Linux world so we
+# enable it by default.
+#
+# Diego Pettenò <flameeyes@gentoo.org> (14 Jul 2007)
+# Moved to base/ profile from default-linux/ so that it also applies to
+# embedded and hardened profiles.
+USE="cracklib"
+
+# Miroslav Šulc <fordfrog@gentoo.org> (19 Nov 2008)
+# Netbeans modules/clusters
+NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
+
+# 2009/09/21 Robin H. Johnson <robbat2@gentoo.org>
+# https://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml
+# Build kernel modules from linux-mod by default:
+USE="${USE} modules"
+
+# Manuel Rüger <mrueg@gentoo.org> (09 Sep 2015)
+# Default Ruby build targets
+RUBY_TARGETS="ruby22"
+
+# Samuli Suominen <ssuominen@gentoo.org> (03 Dec 2009)
+# Enable USE cxx by default so base-system and toolchain pkgs can start using USE cxx
+# instead of USE nocxx.
+# https://archives.gentoo.org/gentoo-dev/msg_a181cd0d36600067b599f4b996c6989f.xml
+USE="${USE} cxx"
+
+# Enable extended filesystem attribute support by default.
+# https://archives.gentoo.org/gentoo-dev/message/ba0e3457e4b807e79816f0df03566af0
+USE="${USE} xattr"
+
+# Tiziano Müller <dev-zero@gentoo.org> (24 Jan 2010)
+# We usually don't want python to (re)write .py[co] files during phase runs
+# since it could cause sandbox violations
+PYTHONDONTWRITEBYTECODE="1"
+
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> (16 Nov 2011)
+# Add default USE value for bootstrap and rename it from STAGE1_USE to BOOTSTRAP_USE
+# Add in expanded PYTHON_TARGETS or stage1 builds break because of USE="-* ${BOOTSTRAP_USE}"
+# This MUST be kept in sync with the PYTHON_TARGETS below
+BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_5 python_targets_python2_7"
+
+# Mike Gilbert <floppym@gentoo.org> (15 May 2012)
+# Default target(s) for python-r1.eclass
+# Updated to python3_5 on 28 Nov 2017
+PYTHON_TARGETS="python2_7 python3_5"
+PYTHON_SINGLE_TARGET="python3_5"
+
+# Michał Górny <mgorny@gentoo.org> (10 Aug 2013)
+# Moved from portage's make.globals.
+# 1) do not uninstall kernel modules and therefore allow replacing them,
+# 2) allow replacing unowned compiled Python modules (python-r1 migration),
+# 3) allow replacing unowned dropin.cache files (twisted-r1 migration).
+# 4) protect /var/{run,lock} symlinks for bug 519620
+COLLISION_IGNORE="/lib/modules/* *.py[co] *\$py.class */dropin.cache"
+UNINSTALL_IGNORE="/lib/modules/* /var/run /var/lock"
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (23 Aug 2013)
+# Make emerge messages default to English as per Council decision
+LC_MESSAGES="C"
+
+# Brian Dolbec <dolsen@gentoo.org> (16 Jun 2017)
+# disable twisted's plugin cache update to prevent access violations
+# call /usr/bin/twisted-regen-cache in pkg_postinst()
+TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
+
+# Aaron W. Swenson <titanofold@gentoo.org> (9 Jul 2017)
+# Default target(s) for postgres{,-multi}.eclass
+POSTGRES_TARGETS="postgres9_5"
+
+# Michael Orlitzky <mjo@gentoo.org> (17 Nov 2017)
+#
+# Default PHP targets, used only for extensions at the moment.
+#
+# The value of this variable should be chosen to be "least annoying by
+# default." For example, some packages support only php-5.x and some
+# only php-7.x. By having both "php5-6" and php7-0" in PHP_TARGETS, we
+# ensure that users who don't care one way or the other don't have to
+# mess with this variable in order to install those packages.
+#
+# Moreover, it should only contain targets that have a stable version
+# of PHP, to avoid pulling in an unstable PHP on stable systems.
+#
+PHP_TARGETS="php5-6 php7-0"
diff --git a/profiles/base/package.mask b/profiles/base/package.mask
new file mode 100644
index 00000000..320a6bbb
--- /dev/null
+++ b/profiles/base/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/base/package.use b/profiles/base/package.use
new file mode 100644
index 00000000..a931d7a0
--- /dev/null
+++ b/profiles/base/package.use
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# David Seifert <soap@gentoo.org> (17 Apr 2017)
+# These py2-only packages also support pypy, enable
+# Python 2.7 as the default implementation, preparing
+# for the eventual switch to py3 in PYTHON_SINGLE_TARGET
+app-text/asciidoc python_single_target_python2_7 python_targets_python2_7
+app-text/wklej python_single_target_python2_7 python_targets_python2_7
+dev-vcs/git-bz python_single_target_python2_7 python_targets_python2_7
+gnome-base/libglade python_single_target_python2_7 python_targets_python2_7
+sci-chemistry/pdb-tools python_single_target_python2_7 python_targets_python2_7
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Enable the BPF target by default
+sys-devel/clang llvm_targets_BPF
+sys-devel/llvm llvm_targets_BPF
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (27 Jul 2012)
+# Modular X: Build the Xorg X server by default
+x11-base/xorg-server xorg
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (11 Apr 2011)
+# Disable ldap support by default in sudo, as it seem to lack
+# developers maintaining that particular support and is, thus, vastly
+# untested.
+app-admin/sudo -ldap
+
+# Zac Medico <zmedico@gentoo.org> (04 Dec 2009)
+# Bug #295615 - Disable cxx by default, in order to avoid a die
+# in pkg_setup with default USE settings (cxx requires sasl).
+net-nds/openldap -cxx
diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force
new file mode 100644
index 00000000..542fd1e2
--- /dev/null
+++ b/profiles/base/package.use.force
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
+# (on behalf of Treecleaner project)
+# www-apache/mod_python is masked for removal, force agent-only builds.
+net-analyzer/check_mk agent-only
+
+# NP-Hardass <NP-Hardass@gentoo.org> (10 Apr 2017)
+# Always force patch on appropriate variant to ensure
+# similar experience when using app-emulation/wine-any
+app-emulation/wine-staging staging
+app-emulation/wine-d3d9 d3d9
+
+# David Seifert <soap@gentoo.org> (07 Mar 2017)
+# Only ever use system ffmpeg, allow kodi bundled ffmpeg
+# only for debug pruposes.
+media-tv/kodi system-ffmpeg
+
+# Sam Jorna <wraeth@gentoo.org> (15 Dec 2016)
+# Known to build unbootable EFI binaries on some systems when built with
+# UDK. Forcing use of gnu-efi until it's more stable.
+sys-boot/refind gnuefi
+
+# Mike Gilbert <floppym@gentoo.org> (13 Oct 2016)
+# Python without threads breaks in many ways.
+dev-lang/python threads
+
+# Maciej Mrozowski <reavertm@gentoo.org> (1 Sept 2016)
+# Workaround until resolved upstream (bug #586840)
+>=dev-games/simgear-2016.2.1 dns
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (20 Aug 2016)
+# Chromium GYP build is no longer supported - always use GN.
+>=www-client/chromium-54 gn
+
+# Lars Wendler <polynomial-c@gentoo.org> (11 Sep 2015)
+# Package fails to build with dbus USE flag being disabled (bug #560208)
+=x11-wm/afterstep-2.2.12 dbus
+
+# Gilles Dartiguelongue <eva@gentoo.org> (25 May 2015)
+# webkit fails to build with USE=wayland, bug #549228
+# https://bugs.webkit.org/show_bug.cgi?id=142879
+# https://bugs.webkit.org/show_bug.cgi?id=136831
+>=net-libs/webkit-gtk-2.8 X
+
+# Alexnader Vershilov <qnikst@gentoo.org> (04 Nov 2014)
+# Due to bug #490604: version without oracle is not supported
+>=dev-db/tora-2.1.3 oracle
+
+# Justin Lecher <jlec@gentoo.org> (10 Aug 2014)
+# Doesn't work without acl support
+# No patch yet, #516626
+>=net-fs/netatalk-3.1.3 acl
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (12 Jun 2014)
+# Chromium builds in PIC mode on most arches anyway,
+# i.e. this use flag has no effect on them.
+www-client/chromium pic
+
+# Zac Medico <zmedico@gentoo.org> (4 Dec 2012)
+# Force app-shells/bash[readline] in stage1 builds, so that compgen is
+# available for sys-apps/portage (see bug #445576).
+app-shells/bash:0 readline
+
+# Michał Górny <mgorny@gentoo.org> (14 Oct 2012)
+# Force-enable all PYTHON_TARGETS for python-exec to avoid using private
+# API. Please remember to keep it in sync with python_targets.desc.
+dev-lang/python-exec python_targets_python2_7
+dev-lang/python-exec python_targets_python3_4
+dev-lang/python-exec python_targets_python3_5
+dev-lang/python-exec python_targets_python3_6
+dev-lang/python-exec python_targets_jython2_7
+dev-lang/python-exec python_targets_pypy
+dev-lang/python-exec python_targets_pypy3
+
+# Zac Medico <zmedico@gentoo.org> (20 Oct 2010)
+# Force ipc USE flag since it should remain enabled unless
+# it is found to be incompatible with a specific profile
+# or environment. When enabled, it fixes bug #278895,
+# bug #315615, and makes subshell die support more robust
+# (so that repoman's ebuild.nesteddie check is irrelevant).
+sys-apps/portage ipc
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+# Python should use wide Unicode implementation by default.
+# Switching of "wide-unicode" USE flag changes ABI of Python
+# and requires reinstallation of many Python modules.
+dev-lang/python wide-unicode
+
+# Peter Alfredsen <loki_val@gentoo.org> (11 Apr 2009)
+# Forcing w.r.t. bug 265336. When unicode use-flag is
+# turned off, ABI is broken without a .so bump.
+dev-libs/libpcre unicode
diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask
new file mode 100644
index 00000000..fcf5de55
--- /dev/null
+++ b/profiles/base/package.use.mask
@@ -0,0 +1,639 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires >=portage-2.1.1
+# New entries go on top.
+
+# This file is only for generic masks. For arch-specific masks (i.e.
+# mask everywhere, unmask on arch/*) use arch/base.
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (04 Nov 2017)
+# Requires audacious, which is masked. Bug 632513
+=media-libs/freeverb3-3.1.2_pre20151102-r1 jack
+
+# Andreas Sturmlechner <asturm@gentoo.org> (29 Oct 2017)
+# Depends on deprecated x11-libs/qscintilla[qt4]/qt4, bug #634972
+net-analyzer/linkchecker X
+
+# Andreas Sturmlechner <asturm@gentoo.org> (16 Oct 2017)
+# USE=qt4 depends on masked dev-qt/qtwebkit:4, bug #620754
+# USE=geocad depends on masked <sci-libs/opencascade-6.8.0
+sci-physics/root geocad qt4
+
+# Andreas Sturmlechner <asturm@gentoo.org> (16 Oct 2017)
+# Depends on masked dev-qt/qtwebkit:4, bug #620684
+dev-qt/assistant:4 webkit
+dev-qt/designer:4 webkit
+dev-qt/qt-meta:4 webkit
+dev-qt/qtdeclarative:4 webkit
+dev-qt/qtdemo:4 webkit
+dev-python/PyQt4 webkit
+dev-python/pyside:0 webkit
+
+# Mike Gilbert <floppym@gentoo.org> (10 Oct 2017)
+# Depends on old ffmpeg-2, which no longer exists in the repo.
+<=media-tv/tvheadend-4.0.9 ffmpeg
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (18 Sep 2017)
+# Ian Stakenvicius <axs@gentoo.org> (27 Sep 2017)
+# Depends on >=icu-59, still masked.
+>=www-client/chromium-62.0.3202.9 system-icu
+>=www-client/firefox-56.0 system-icu
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (9 Sep 2017)
+# Potentially destructive. Use it only if you know what you're doing.
+sys-libs/glibc vanilla
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (6 Sep 2017)
+# This should really go away now.
+>=sys-libs/glibc-2.26 rpc
+
+# Michael Orlitzky <mjo@gentoo.org> (24 Aug 2017)
+# This is a security risk if not used carefully, bug 628596.
+net-analyzer/nrpe command-args
+
+# Michał Górny <mgorny@gentoo.org> (05 Aug 2017)
+# media-libs/silgraphite is being treecleaned wrt #594314.
+<app-text/texlive-core-2013 xetex
+
+# Michał Górny <mgorny@gentoo.org> (04 Aug 2017)
+# sys-kernel/openvz-sources is being treecleaned wrt #580516.
+app-emulation/libvirt openvz
+
+# Michał Górny <mgorny@gentoo.org> (30 Jul 2017)
+# The Z3 backend is unstable and causes assertion failures. Mask it
+# until upstream fixes it properly.
+sys-devel/clang z3
+
+# Ulrich Müller <ulm@gentoo.org> (26 Jul 2017)
+# Disable hesiod support due to security vulnerability, bug #626242.
+app-editors/emacs hesiod
+app-editors/emacs-vcs hesiod
+
+# Brian Evans <grknight@gentoo.org> (21 Jul 2017)
+# Mask USE flag which has limited keywords for app-crypt/argon2
+dev-lang/php argon2
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (16 Jul 2017)
+# Causes build to fail with ffmpeg-3, #602786
+www-plugins/gnash vaapi
+
+# Mike Gilbert <floppym@gentoo.org> (09 Jul 2017)
+# Matthias Dahl <matthias.dahl@binary-island.eu> (05 Jul 2017)
+# Both are not your typical garden-variety Linux programs and are
+# rather sensitive when it comes to compiler flags, resulting in
+# black screens, hangs or crashes. The average joe should have no
+# need or even advantage to set custom compiler flags at all.
+# Example: https://bugs.gentoo.org/619628
+sys-boot/gnu-efi custom-cflags
+sys-boot/refind custom-cflags
+
+# Michał Górny <mgorny@gentoo.org> (8 Jul 2017)
+# The clutter backend is broken with new GTK+3 versions and upstream
+# haven't been able to fix it so far. Enforcing an old GTK+3 version
+# is not a good solution long-term, so mask the flag entirely.
+media-video/parole clutter
+
+# Michał Górny <mgorny@gentoo.org> (29 Jun 2017)
+# Upstream switched to CMake and no longer provides option to build
+# static and shared libs. The flag is preserved not to break USE
+# depenencies.
+>=app-arch/snappy-1.1.5 static-libs
+
+# Ilya Tumaykin <itumaykin+gentoo@gmail.com> (18 Jun 2017)
+# Libav is basically unsupported by mpv, see upstream issues 3923, 3925.
+# Needs patch to even build, subs are broken and not supported anymore.
+media-video/mpv libav
+
+# Maciej Mrozowski <reavertm@gmail.com> (15 Jun 2017)
+# Mask due to bug #621810
+dev-games/simgear gdal
+games-simulation/flightgear gdal
+
+# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
+# (on behalf of Treecleaner project)
+# dev-cpp/libgnomeuimm is masked for removal, mask flags that require
+# it.
+app-cdr/cdrdao gcdmaster
+
+# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
+# (on behalf of Treecleaner project)
+# dev-libs/dee is masked for removal, mask flags that requires it.
+gnome-extra/zeitgeist icu
+
+# Michał Górny <mgorny@gentoo.org> (05 Jun 2017)
+# (on behalf of Treecleaner project)
+# www-apache/mod_python is masked for removal, mask flags that
+# require it.
+net-analyzer/check_mk livestatus wato
+
+# Matthias Maier <tamiko@gentoo.org> (31 May 2017)
+# mask dependencies on old paraview versions, bug #561084
+<sci-libs/openfoam-2.4.0 paraview
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (29 May 2017)
+# Does not build
+sci-libs/linux-gpib php
+
+# Michał Górny <mgorny@gentoo.org> (20 May 2017)
+# CUDA support in nvtt does not support GCC 4.5+.
+media-gfx/nvidia-texture-tools cuda
+
+# Michał Górny <mgorny@gentoo.org> (15 May 2017)
+# Mask ruby20-only compatible packages
+=media-libs/libcaca-0.99_beta19 ruby
+
+# Michael Orlitzky <mjo@gentoo.org> (14 May 2017)
+# This version experiences random build failures with USE=jit.
+# Since USE=futures needs USE=jit, we have to mask that too.
+=dev-scheme/racket-6.9 futures jit
+
+# Matthias Maier <tamiko@gentoo.org> (11 May 2017)
+# Globally mask pie use flag. Selectively unmask on specific profiles.
+sys-devel/gcc pie
+
+# Mike Gilbert <floppym@gentoo.org> (28 Apr 2017)
+# Needs sandbox-2.11 (masked)
+>=www-client/chromium-59 tcmalloc
+
+# Michał Górny <mgorny@gentoo.org> (18 Mar 2017)
+# Requires removed old version of media-gfx/graphviz.
+media-gfx/nip2 graphviz
+
+# Matt Turner <mattst88@gentoo.org> (04 Mar 2017)
+# Requires dev-util/cmdtest stabilization, bug 611052
+x11-apps/xauth test
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (02 Mar 2017)
+# Known build issue with system libvpx:
+# https://bugs.gentoo.org/show_bug.cgi?id=611394
+>=www-client/chromium-58.0.3026.3 system-libvpx
+
+# Michał Górny <mgorny@gentoo.org> (17 Feb 2017)
+# Python 2 package relies on gedit[python] which is py3 only.
+dev-vcs/rabbitvcs gedit
+
+# Mike Gilbert <floppym@gentoo.org> (16 Feb 2017)
+# Multiple test failures.
+sys-boot/grub:2 test
+
+# Ulrich Müller <ulm@gentoo.org> (4 Feb 2017)
+# Uses old and vulnerable net-libs/webkit-gtk:3, bug #584156.
+app-editors/emacs:25 xwidgets
+app-editors/emacs-vcs:25 xwidgets
+
+# Matt Turner <mattst88@gentoo.org> (26 Jan 2017)
+# x11-drivers/ati-drivers is masked for removal.
+media-libs/opensubdiv opencl
+
+# Ian Stakenvicius (25 Jan 2017)
+# rust on mozilla packages is experimental
+www-client/firefox rust
+www-client/seamonkey rust
+mail-client/thunderbird rust
+
+# Lars Wendler <polynomial-c@gentoo.org> (19 Jan 2017)
+# Masked until system heimdal can finally be used with AD DC
+net-fs/samba system-heimdal
+
+# Magnus Granberg <zorry@gentoo.org> (18 Jan 2017)
+# Adding the mask so that end users and devlopers are notified of the removal and have some
+# time to migrate. There is no support for gcj in gcc-7
+>=sys-devel/gcc-6.3.0 gcj
+
+# Robin H. Johnson <robbat2@gentoo.org> (04 Dec 2016)
+# Additional HAProxy functionality waiting for related stuff to land in the
+# tree.
+# bug 541042 - lua 5.3
+net-proxy/haproxy lua
+# bug (none) - 51Degrees
+net-proxy/haproxy 51degrees
+# bug (none) - WURFL
+net-proxy/haproxy wurfl
+
+# Pacho Ramos <pacho@gentoo.org> (27 Nov 2016)
+# Not rely on monodevelop, bug #596656
+# dev-dotnet/zeitgeist-sharp is going to be removed, bug #582894
+net-irc/hexchat theme-manager
+gnome-extra/zeitgeist-datasources mono tomboy
+
+# Pacho Ramos <pacho@gentoo.org> (27 Nov 2016)
+# Avoid the usage of dead net-dialup/capi4k-utils
+app-emulation/crossover-bin capi
+net-libs/opal capi
+
+# Ettore Di Giacinto <mudler@gentoo.org> (10 Nov 2016)
+# Dependency has no stable keyword
+# and as for now we have only stable mate versions
+mate-base/mate bluetooth
+
+# Ulrich Müller <ulm@gentoo.org> (15 Oct 2016)
+# The --with-cairo option is considered as experimental by upstream
+# and causes problems with updating the X window, bug #592238
+app-editors/emacs cairo
+app-editors/emacs-vcs cairo
+
+# Michał Górny <mgorny@gentoo.org> (28 Aug 2016)
+# lldb fails to build in the current RC, and needs a lot of minor fixes.
+# It's no longer available in -9999 line, and it won't be in 3.9.0
+# either unless somebody steps up to fix it.
+>=sys-devel/llvm-3.9.0_rc lldb
+
+# Brian Evans <grknight@gentoo.org> (22 Aug 2016)
+# Depends on masked, end-of-life php versions
+<=dev-libs/ossp-uuid-1.6.2-r4 php
+=dev-libs/xapian-bindings-1.2.22 php
+=www-servers/uwsgi-2.0.9 php
+
+# Gilles Dartiguelongue <eva@gentoo.org> (21 Aug 2016)
+# Needs a Gstreamer plugin from gst-plugins-bad that is not packaged to date
+media-plugins/grilo-plugins chromaprint
+
+# Pacho Ramos <pacho@gentoo.org> (21 Aug 2016)
+# x11-libs/libsvg-cairo is being removed, bug #537918
+dev-ml/cairo-ocaml svg
+
+# Lars Wendler <polynomial-c@gentoo.org> (19 Aug 2016)
+# gnutls is broken for years
+>=net-libs/gsoap-2.8.0 gnutls
+
+# Brian Dolbec <dolsen@gentoo.org> (9 Aug 2016)
+# Mask doc use flag due to needed sphinx pkg update
+~dev-util/buildbot-0.9.0_p1 doc
+~dev-util/buildbot-0.9.1 doc
+~dev-util/buildbot-0.9.2 doc
+~dev-util/buildbot-0.9.3 doc
+
+# Michał Górny <mgorny@gentoo.org> (05 Jul 2016)
+# Mask system-clang support as it requires llvm-3.4 that is subject
+# to security bug cleanup, #585102.
+dev-util/intel-ocl-sdk system-clang
+
+# Matthew Brewer <tomboy64@sina.cn> (02 June 2016)
+# Acked-by: Amy Winston <amynka@gentoo.org>
+# Currently broken upstream.
+>=dev-lang/rakudo-2016.05 java
+
+# Michał Górny <mgorny@gentoo.org> (14 May 2016)
+# (on behalf of QA team)
+# sys-devel/gcc[jit]:
+# - violates strict multilib rules, #569608
+# - causes collisions between multiple gcc versions, #583010
+# Masking the flag until it is fixed.
+sys-devel/gcc jit
+
+# Mike Frysinger <vapier@gentoo.org> (08 May 2016)
+# Most targets do not support VTV #547040.
+sys-devel/gcc vtv
+
+# Matthew Brewer <tomboy64@sina.cn> (08 May 2016)
+# Acked-by: Amy Winston <amynka@gentoo.org>
+# Upstream supports using Clang's address sanitizer, but apparently
+# invokes it wrong.
+dev-lang/moarvm asan
+
+# Michael Palimaka <kensington@gentoo.org> (05 May 2016)
+# Doesn't work
+media-libs/openimageio python
+
+# Ian Stakenvicius <axs@gentoo.org> (28 Apr 2016)
+# system-cairo support causes lots of crashing in mozilla pkgs
+# (see bug #556378 and others)
+www-client/firefox system-cairo
+mail-client/thunderbird system-cairo
+>=www-client/seamonkey-2.41 system-cairo
+
+# Michael Palimaka <kensington@gentoo.org> (17 Apr 2016)
+# Fails to build with recent doxygen. Bug #569776.
+dev-cpp/eigen:2 doc
+
+# James Le Cuirot <chewi@gentoo.org> (10 Apr 2016)
+# Slower and less reliable than HotSpot and we don't support Java on
+# any non-HotSpot platforms. Don't unmask these unless you know what
+# you're doing. This has upstream's approval.
+dev-java/icedtea cacao jamvm
+
+# Lars Wendler <polynomial-c@gentoo.org> (20 Mar 2016)
+# Need vulnerable libotr version (see bug #576914).
+net-im/centerim otr
+=net-im/climm-0.7.1 otr
+
+# James Le Cuirot <chewi@gentoo.org> (14 Mar 2016)
+# jtds:1.2 needs removing because it depends on Java 6. Unfortunately
+# we can't stabilise the latest sqldeveloper yet because of Java 8.
+<dev-db/sqldeveloper-4.1.3.20.78-r1 mssql sybase
+
+# Patrice Clement <monsieurp@gentoo.org> (27 Nov 2015)
+# Unsastified dependencies are upsetting repoman. Needs investigation.
+app-arch/cfv bittorrent
+
+# Rick Farina <zerochaos@gentoo.org> (06 Oct 2015)
+# forward porting this patch is non-trivial, mask for now
+>=net-wireless/wpa_supplicant-2.5 wimax
+
+# Justin Lecher <jlec@gentoo.org> (22 Sep 2015)
+# Downloads files during installation
+# https://bugs.gentoo.org/show_bug.cgi?id=533876
+>=sci-libs/vtk-6.1.0 examples
+
+# Fabian Groffen <grobian@gentoo.org> (08 Sep 2015)
+# GnuTLS support is currently broken/causes hang, bug #559834
+# http://dev.mutt.org/trac/ticket/3772
+>=mail-client/mutt-1.5.23-r8 gnutls
+
+# Jason Zaman <perfinion@gentoo.org> (06 Sep 2015)
+# This is for cgmanager which is linux only.
+# Unmasked in default/linux/package.use.mask.
+sys-auth/consolekit cgroups
+
+# Manuel Rüger <mrueg@gentoo.org> (03 Sep 2015)
+# Mask USE=ruby for packages that solely rely on the soon to be deprecated
+# ruby 1.9
+# See bug #547828
+<app-mobilephone/obexftp-0.24 ruby
+# See bug #541648
+<dev-libs/Ice-3.6 ruby
+# See bug #547832
+sci-libs/gdal ruby
+# See bug #547834
+<sys-apps/paludis-2.4.0 ruby
+
+# James Le Cuirot <chewi@gentoo.org> (18 Aug 2015)
+# gcc[awt] is only used by gcj-jdk[awt] and that isn't needed by
+# anything in the tree. The toolchain folks aren't keen to support it
+# and it should probably only be used if you really know what you're
+# doing *and* your name is gnu_andrew. ;) See bug #531900.
+sys-devel/gcc awt
+dev-java/gcj-jdk awt
+
+# Heather Cynede <cynede@gentoo.org> (13 Aug 2015)
+# mono currently fails with doc most likely because of xattr
+# Gentoo bug: 554484
+>=dev-lang/mono-3.12.1 doc
+
+# Manuel Rüger <mrueg@gentoo.org> (05 Jul 2015)
+# app-text/migemo is masked because it fails for ruby20
+app-text/cmigemo emacs
+
+# Mike Gilbert <floppym@gentoo.org> (16 May 2015)
+# dev-lang/python[berkdb] fails with recent multilib sys-libs/db (bug 519584).
+dev-lang/python berkdb
+net-nds/nsscache nssdb
+
+# Jason Zaman <perfinion@gentoo.org> (08 May 2015)
+# java wrappers fail to build (bug #548858)
+=app-admin/setools-3.3.8-r7 java
+
+# James Le Cuirot <chewi@gentoo.org> (05 Apr 2015)
+# dev-java/sun-j2me-bin is going away.
+dev-java/proguard j2me
+
+# Lars Wendler <polynomial-c@gentoo.org> (19 Mar 2015)
+# >=games-strategy/freeciv-2.5.0 requires >=dev-lang/lua-5.2
+games-strategy/freeciv system-lua
+
+# Brian Evans <grknight@gentoo.org> (17 Mar 2015)
+# Mask the cluster flag for deprecation. Use dev-db/mysql-cluster if
+# you need NDB.
+dev-db/mariadb cluster
+dev-db/mysql cluster
+
+# Andrew Savchenko <bircoph@gentoo.org> (11 Feb 2015)
+# Cluster code is still under development, only base functionality
+# is implemented. Masking for testing and evaluation.
+app-admin/clsync cluster mhash
+
+# Michał Górny <mgorny@gentoo.org> (30 Nov 2014)
+# Not supported at the moment. DirectFB lacks multilib support,
+# and we have to decide if we want it.
+x11-libs/cairo directfb
+
+# Brian Evans <grknight@gentoo.org> (29 Nov 2014)
+# Strongly recommened by upstream to disable lzo and zlib due to memory leaks
+# https://github.com/groonga/groonga/issues/6 (Japanese)
+app-text/groonga lzo zlib
+
+# Jeroen Roovers <jer@gentoo.org> (18 Nov 2014)
+# Requires dev-lang/lua-5.2 (bug #253269)
+net-analyzer/nmap system-lua
+
+# Mike Frysinger <vapier@gentoo.org> (21 Oct 2014)
+# Most targets do not support ASAN/etc... #504200.
+sys-devel/gcc sanitize
+
+# Pacho Ramos <pacho@gentoo.org> (19 Oct 2014)
+# swfdec is masked for removal, bug #525834
+dev-libs/DirectFB swfdec
+
+# Rick Farina <zerochaos@gentoo.org> (26 Aug 2014)
+# mirisdr does not seem to like making releases
+<net-wireless/gr-osmosdr-9999 mirisdr
+
+# Maxim Koltsov <maksbotan@gentoo.org> (05 Aug 2014)
+# net-libs/tox is in mva overlay only ATM
+app-leechcraft/lc-azoth sarin
+
+# Brian Evans <grknight@gentoo.org> (30 Jul 2014)
+# Mask embedded due to upstream not supporting
+# https://bugs.launchpad.net/bugs/1236873
+dev-db/percona-server embedded
+
+# Thomas Sachau <tommy@gentoo.org> (30 Jun 2014)
+# Mask pixman USE flag of dev-libs/efl for future removal, bug 501074
+dev-libs/efl pixman
+
+# Zac Medico <zmedico@gentoo.org> (06 Jun 2014)
+# Needs hardmasked lua-5.2
+www-servers/mongoose lua
+
+# Manuel Rüger <mrueg@gentoo.org> (05 Jun 2014)
+# Fails to build with net-libs/libotr-4.0.0
+net-im/climm otr
+
+# Pacho Ramos <pacho@gentoo.org> (01 Jun 2014)
+# Needs hardmasked lua-5.2
+>=media-plugins/grilo-plugins-0.2.12 lua
+
+# Rick Farina <zerochaos@gentoo.org> (30 Dec 2015)
+# mask test use flag since tests do not pass
+# mask development use flag since most of it isn't packaged (or useful)
+net-analyzer/metasploit development test
+
+# Tom Wijsman <TomWij@gentoo.org> (14 May 2014)
+# Documentation generation needs APIviz which is not in the Portage tree yet.
+# Tracked in Gentoo bug #509602.
+dev-java/jboss-logging doc
+
+# Markos Chandras <hwoarang@gentoo.org> (20 Apr 2014)
+# Fails to build with recent polarssl (>=1.3). Bug #503604
+media-video/rtmpdump polarssl
+
+# Julian Ospald <hasufell@gentoo.org> (06 Apr 2014)
+# broken wrt #501582
+<net-vpn/openvpn-9999 polarssl
+
+# Manuel Rüger <mrueg@gentoo.org> (07 Mar 2014)
+# Mask ruby18-only compatible flags
+# Bugs: 483104, 483102
+<media-libs/libcaca-0.99_beta19 ruby
+media-sound/podcatcher bittorrent
+
+# Mike Frysinger <vapier@gentoo.org> (03 Feb 2014)
+# Upstream says to not use this for now.
+dev-libs/elfutils threads
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Dec 2013)
+# Gstreamer support fails to build due to libtool shortcomings when using
+# an intermediate library as a dependency of another libtool target dependency.
+# Since this is new and unused yet, keep it masked for now and check
+# with upstream if there is something that can be done to fix the issue.
+media-libs/cogl gstreamer
+
+# Andrey Grozin <grozin@gentoo.org> (12 Nov 2013)
+# berkdb support works only for sys-libs/db-6.0 which is masked
+sci-physics/reduze berkdb
+
+# Michał Górny <mgorny@gentoo.org> (10 Nov 2013)
+# (on behalf of python@)
+# USE=sandbox is not done properly in Gentoo and results in crippled
+# PyPy install that is not usable for non-sandbox clients (and there are
+# no real sandbox clients right now). Masked until the flag is
+# re-implemented or dropped. For more details, bug #429372.
+dev-python/pypy sandbox
+dev-python/pypy3 sandbox
+
+# Julian Ospald <hasufell@gentoo.org> (31 Aug 2013)
+# Randomly breaks consumers at runtime. Do not report
+# gentoo bugs.
+media-libs/libsdl2 custom-cflags
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# Causes build to fail, issue is being discussed with upstream
+>=www-plugins/gnash-0.8.10_p20130822 openvg
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (13 Jul 2013)
+# GL/GLES support in cairo is mutually exclusive, bug #428770.
+x11-libs/cairo gles2
+dev-libs/weston rpi
+
+# Kacper Kowalik <xarthisius@gentoo.org> (19 May 2013)
+# Fails to build, haven't had time to debug
+app-doc/doxygen sqlite
+
+# Alexis Ballier <aballier@gentoo.org> (08 May 2013)
+# On behalf of Pavel Sanda <ps@twin.jikos.cz>
+# Lyx is currently not working with subversion 1.7 and needs 1.6.
+app-office/lyx subversion
+
+# Christian Faulhammer <fauli@gentoo.org> (08 May 2013)
+# Will not build successfully yet
+mail-client/claws-mail gtk3
+
+# Bernard Cafarelli <voyageur@gentoo.org> (04 Apr 2013)
+# Broken for now (segmentation fault on play)
+gnustep-apps/cynthiune flac
+
+# Richard Freeman <rich0@gentoo.org> (24 Mar 2013)
+# Dependency is masked for buffer overflows for now
+app-text/yagf cuneiform
+dev-python/pyocr cuneiform
+
+# Tom Wijsman <TomWij@gentoo.org> (10 Mar 2013)
+# Experimental, masked until it compiles and works.
+media-libs/avidemux-core system-ffmpeg
+
+# Julian Ospald <hasufell@gentoo.org> (20 Feb 2013)
+# Unsupported and experimental.
+# NP-Hardass <NP-Hardass@gentoo.org> (18 Jun 2015)
+# Change to <10
+<net-misc/teamviewer-10 system-wine
+
+# Alexis Ballier <aballier@gentoo.org> (15 Feb 2013)
+# Needs a huge patch to build against recent releases of FFmpeg/libav.
+# Mask it until upstream fixes it. Bug #417869
+<media-sound/audacity-2.1.0 ffmpeg
+
+# Jory A. Pratt <anarchy@gentoo.org> (15 Dec 2012)
+# PGO is known to be busted with most configurations
+www-client/firefox pgo
+
+# Sergey Popov <pinkbyte@gentoo.org> (26 Nov 2012)
+# PDF docs building failed with sandbox violation
+media-libs/opencolorio pdf
+
+# Diego Elio Pettenò (27 Aug 2012)
+# The libpci access is only used for linux.
+net-analyzer/net-snmp pci
+
+# Diego Elio Pettenò (20 Aug 2012)
+# The prevent-removal USE flag is only implemented for Linux.
+sys-auth/pam_mktemp prevent-removal
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (25 Mai 2012)
+# Requires icc which does not emerge (distfile unavailable)
+media-libs/opencv ipp
+
+# Samuli Suominen <ssuominen@gentoo.org> (20 Mar 2012)
+# This is for udev-acl. Unmasked in default/linux/package.use.mask.
+sys-auth/consolekit acl
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (25 Feb 2012)
+# directfb build issues, bug #405817.
+www-plugins/gnash directfb
+
+# Bernard Cafarelli <voyageur@gentoo.org> (08 Feb 2012)
+# libobjc2/clang experimental support
+>=gnustep-base/gnustep-make-2.6.2 libobjc2
+
+# Samuli Suominen <ssuominen@gentoo.org> (10 Jan 2012)
+# This is required only for Linux, so mask it here and unmask in
+# default/linux/package.use.mask. Bug 354923.
+app-arch/libarchive e2fsprogs
+
+# Mike Frysinger <vapier@gentoo.org> (06 Dec 2011)
+# No one should be mucking with libssp unless they really know what they're
+# doing. Force extra work on the smart peeps to protect the not-so-smart.
+sys-devel/gcc libssp
+
+# Andrey Grozin <grozin@gentoo.org> (29 Mar 2011)
+# dev-lang/swig-2.0.2 with -octave generated .cpp files
+# incompatible with >=sci-mathematics/octave-3.4.0
+sci-libs/mathgl octave
+
+# Diego E. Pettenò <flameeyes@gentoo.org> (27 Mar 2011)
+#
+# Mask pdnsd's Linux-specific USE flags.
+net-dns/pdnsd isdn urandom
+
+# Raúl Porcel <armin76@gentoo.org> (13 Feb 2011)
+# Masked until devs know how to use repoman
+<media-video/mplayer-9999 bluray
+
+# Justin Lecher <jlec@gentoo.org> (17 Nov 2010)
+# Upstream didn't release patches for aria yet
+>=sci-chemistry/cns-1.3 aria
+
+# Tomas Touceda <chiiph@gentoo.org> (13 Apr 2010)
+# Masked because libsvm module is broken with this release on every arch.
+dev-lisp/clisp svm
+
+# Diego E. Pettenò <flameeyes@gmail.com> (18 Jan 2010)
+# Don't use system-wide mode unless you *really* know what you're doing.
+# Keep it masked here so that I don't need to manage two versions every time.
+media-sound/pulseaudio system-wide
+
+# Jeremy Olexa <darkside@gentoo.org> (10 Jan 2010)
+# Upsteam doesn't support ioctl backend and neither does Gentoo. ioctl USE flag
+# will eventually be removed unless the backend is re-written by upstream. bug
+# 299674
+>net-misc/wicd-1.6.2.2 ioctl
+
+# These are for BSD only
+net-proxy/squid ipf-transparent pf-transparent
+app-admin/sshguard ipfilter
+
+# Alexis Ballier <aballier@gentoo.org> <16 Feb 2011>
+# Win32 specific useflags for vlc. Can be used for cross-compiling.
+media-video/vlc directx dxva2
+# Mac OSX / iPhone OS specific useflags
+media-video/vlc audioqueue macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit
diff --git a/profiles/base/package.use.stable.force b/profiles/base/package.use.stable.force
new file mode 100644
index 00000000..70f03ad7
--- /dev/null
+++ b/profiles/base/package.use.stable.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires eapi 5 or later. New entries go on top.
+# Please use the same syntax as in package.use.force
diff --git a/profiles/base/package.use.stable.mask b/profiles/base/package.use.stable.mask
new file mode 100644
index 00000000..b6cde8be
--- /dev/null
+++ b/profiles/base/package.use.stable.mask
@@ -0,0 +1,212 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires eapi 5 or later. New entries go on top.
+# Please use the same syntax as in package.use.mask
+
+# Bernard Cafarelli <voyageur@gentoo.org> (27 Nov 2017)
+# Dependencies have no stable keyword
+app-backup/backup-manager s3
+
+# Brian Evans <grknight@gentoo.org (6 Nov 2017)
+# Requires stable phpunit
+dev-php/PEAR-Text_Password test
+
+# Andreas Sturmlechner <asturm@gentoo.org> (22 Oct 2017)
+# Requires unmaintained unstable dependency net-libs/gloox.
+# The go flag requires stable masked dev-lang/go[gccgo].
+www-servers/uwsgi go pypy uwsgi_plugins_alarm_xmpp
+
+# Andreas Sturmlechner <asturm@gentoo.org> (11 Oct 2017)
+# Requires unstable dependency dev-qt/qtspeech.
+kde-apps/kanagram speech
+kde-apps/kdepim-runtime speech
+kde-apps/konqueror speech
+kde-apps/kpimtextedit speech
+kde-apps/ktp-text-ui speech
+kde-apps/okular speech
+kde-frameworks/knotifications speech
+kde-frameworks/ktextwidgets speech
+
+# Michael Palimaka <kensington@gentoo.org> (30 Sep 2017)
+# Required dependeny is not stable
+sci-libs/gdal mdb
+
+# Tim Harder <radhermit@gentoo.org> (11 Sep 2017)
+# Requires guile-2 which is still unstable.
+>=net-irc/weechat-1.7 guile
+
+# Andreas Sturmlechner <asturm@gentoo.org> (12 Aug 2017)
+# Not operational, bug #619534
+>=kde-apps/cantor-17.04.3 R
+
+# Michael Palimaka <kensington@gentoo.org) (11 Aug 2017)
+# Unstable dependencies.
+dev-util/rpmdevtools emacs
+
+# Patrick McLean <chutzpah@gentoo.org> (11 Jul 2017)
+# Requires >=net-dns/libidn2-2.0 stabilization
+net-dns/dnsmasq libidn2
+
+# Andreas Sturmlechner <asturm@gentoo.org> (23 Mar 2017)
+# Requires dev-lang/julia stabilisation, bug #613576
+kde-apps/cantor julia
+
+# Andreas Sturmlechner <asturm@gentoo.org> (22 Feb 2017)
+# Requires not yet stabilised sci-geosciences/grass,
+# which probably needs bump to solve several issues.
+sci-geosciences/qgis grass
+
+# Brian Dolbec <dolsen@gentoo.org> (14 Feb 2017)
+# This is stable masked as g-sorcery is being not actively developed.
+app-portage/layman g-sorcery
+
+# Mart Raudsepp <leio@gentoo.org> (13 Feb 2017)
+# No stable multilib supporting sys-libs/libunwind yet,
+# temporarily masked to let stabilization #601354 proceed.
+# The feature provided by this is also only useful for a
+# leak tracer, which is mostly useful for upstream CI testing.
+media-libs/gstreamer unwind
+
+# David Seifert <soap@gentoo.org> (12 Feb 2017)
+# Unknown future, stable deps are hopelessly
+# broken, only allow for unstable keywords
+# Bug: #581058
+net-misc/asterisk osplookup
+
+# Johannes Huber <johu@gentoo.org> (28 Jan 2017)
+# Unstable dependencies.
+media-plugins/kipi-plugins mediawiki vkontakte
+
+# Michael Palimaka <kensington@gentoo.org (26 Jan 2017)
+# Requires testing version of media-libs/opencv
+media-libs/mlt opencv
+
+# Matthias Maier <tamiko@gentoo.org> (22 Jan 2017)
+# sys-fs/zfs isn't going to be marked stable anytime soon
+app-emulation/libvirt zfs
+
+# Michael Palimaka <kensington@gentoo.org (18 Jan 2017)
+# www-client/weboob is horribly outdated and not stable
+app-office/kmymoney weboob
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (15 Jan 2017)
+# Has no stable reverse deps requiring this useflag
+# Stable-masking it so Boost 1.62 stabilization can go ahead
+sci-libs/vtk mpi
+
+# Doug Goldstein <cardoe@gentoo.org> (04 Jan 2017)
+# libcxx is not stable so we can't let users use it
+dev-lang/rust libcxx
+# llvm 3.8.x is not stable so we can't let users use it
+dev-lang/rust system-llvm
+
+# Alon Bar-Lev <alonbl@gentoo.org> (01 Jan 2017)
+# Will always require unstable packages.
+net-libs/gnutls test-full
+
+# Lars Wendler <polynomial-c@gentoo.org> (15 Dev 2016)
+# Requires php:7.0 and ruby:2.2 being stable
+>=dev-libs/Ice-3.6.3 php ruby
+
+# Pacho Ramos <pacho@gentoo.org> (19 Aug 2016)
+# Not ready to be stabilized yet.
+app-admin/packagekit-base entropy
+
+# Kristian Fiskerstrand <k_f@gentoo.org> (18 Aug 2016)
+# Dropping stable for xtrabackup-bin, stable masking use
+# flag until a source based version that doesn't depend
+# on a vulnerable libgcrypt version is in tree
+dev-db/mariadb sst-xtrabackup
+dev-db/mariadb-galera sst-xtrabackup
+
+# William Hubbs <williamh@gentoo.org (13 Apr 2016)
+# Needs gcc-5 which is currently unstable
+dev-lang/go gccgo
+
+# Sergey Popov <pinkbyte@gentoo.org> (15 Feb 2016)
+# Mask monitoring capabilities of Ganeti on stable branches
+app-emulation/ganeti monitoring
+
+# Mike Gilbert <floppym@gentoo.org> (03 Oct 2015)
+# Unmask stable-masked implementations for python-exec
+dev-lang/python-exec -python_targets_python3_6
+
+# Pacho Ramos <pacho@gentoo.org> (15 May 2015)
+# Version compatible with current ffmpeg is not ready to be stabilized
+# bug #539212
+app-emulation/vice ffmpeg
+
+# Pacho Ramos <pacho@gentoo.org> (13 May 2015)
+# texinfo-5 cannot be stabilized yet
+=dev-lang/gnat-gcc-4.6* doc
+
+# Jeroen Roovers <jer@gentoo.org> (26 Apr 2015)
+# mongodb support is nice, but dev-libs/mongo-c-driver upstream is not ready
+# yet (bug #542210)
+net-analyzer/pmacct mongodb
+
+# Pacho Ramos <pacho@gentoo.org>
+# sci-visualization/paraview is not ready for stabilization yet
+# See bug #541012
+sci-libs/openfoam paraview
+
+# Pacho Ramos <pacho@gentoo.org>
+# dev-libs/libappindicator isn't going to be stabilized
+x11-misc/redshift appindicator
+
+# Ben de Groot <yngwin@gentoo.org>
+# Mask experimental feature on stable. This also needs not yet stable mupdf.
+app-text/qpdfview fitz
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (12 Feb 2015)
+# Pulls in way too many unstable sci packages
+app-office/libreoffice coinmp
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (30 Oct 2014)
+# Pulls in sci-libs/vtk with a lot of new dependencies; stabilizing
+# that will take some more time
+media-libs/opencv vtk
+
+# Mikle Kolyada <zlogene@gentoo.org> (16 Aug 2014)
+# Not yet stabilized dependency, need more testing
+>=dev-perl/PDL-2.4.11 pdl2 pgplot plplot
+
+# Samuli Suominen <ssuominen@gentoo.org> (01 Aug 2014)
+# Optional (not required by anything in gentoo-x86) and fragile (based on
+# host system, like Java JRE version). Keep masked indefinately until
+# something starts requiring these.
+# https://bugs.gentoo.org/483372 and https://bugs.gentoo.org/508564
+media-libs/libcaca java mono
+
+# Alon Bar-Lev <alonbl@gentoo.org> (21 Jul 2014)
+# dev-libs/opencryptoki will not be stabile any time soon (bug#510204)
+app-crypt/tpm-tools pkcs11
+
+# Sergey Popov <pinkbyte@gentoo.org> (28 Oct 2013)
+# sys-cluster/cman is still in ~arch.
+sys-cluster/pacemaker cman
+
+# Samuli Suominen <ssuominen@gentoo.org> (01 Aug 2013)
+# The dependencies for these flags are still in ~arch.
+sys-fs/lvm2 clvm cman
+
+# Doug Goldstein <cardoe@gentoo.org> (12 Sep 2013)
+# Waiting on glusterfs maintainers in bug #484016
+app-emulation/qemu glusterfs
+
+# Ian Delaney <idella4@gentoo.org> (09 Dec 2013)
+# subsequent to the total inaction of the maintainer of
+# ocaml to honour / respond in any way to
+# Bug #486076, ocaml masked to allow xen to once again
+# become a stabilisable package
+app-emulation/xen-tools ocaml
+
+# Samuli Suominen <ssuominen@gentoo.org> (19 Mar 2014)
+# Some open source OpenCL providers cause sandbox violation while accessing /dev/dri/card*
+# from a command like eg. `/usr/bin/mogrify -version`, see bug #472766
+media-gfx/imagemagick opencl
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (28 Mar 2013)
+# No stable sci-chemistry/avogadro yet but we want kde-4.10 to go stable
+>=kde-apps/kalzium-4.10.0 editor
diff --git a/profiles/base/packages b/profiles/base/packages
new file mode 100644
index 00000000..b782c6fb
--- /dev/null
+++ b/profiles/base/packages
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Gentoo Base Profile
+
+# NOTE: THIS IS THE BASE PROFILE FOR *ANY* GENTOO BASED OPERATING SYSTEM.
+# NO MODIFICATIONS MAY BE MADE TO THIS FILE WITHOUT PRIOR DISCUSSION. IF
+# YOU ARE CREATING A NEW PROFILE, YOU SIMPLY NEED TO INHERIT THIS BASE
+# PROFILE IN YOUR PROFILE DIRECTORY'S "parent" FILE.
+
+
+# OK, you're staring at this file and you have no idea what these stars are
+# for. Here's the scoop. An initial "*" marks a package that is part of
+# the official BASE system profile. If there is a "*" then `emerge system`
+# will use the line in its calculations of what should be installed for the
+# base profile. Lines without a "*" prefix will be ignored for profile
+# system calculations.
+
+# Please note that this file is rarely used as a package inclusion mask
+# file, because it affects EVERY SINGLE gentoo profile. As can be seen,
+# we've limited the inclusion mask to a version of portage which supports
+# cascaded profiles, but apart from that, there should be no version
+# specific information in here. This file serves as a high level description
+# of the minimum set of packages needed for any Gentoo based system.
+
+*>=sys-apps/baselayout-2
+*app-arch/bzip2
+*app-arch/gzip
+*app-arch/tar
+*app-arch/xz-utils
+*app-shells/bash:0
+*net-misc/iputils
+*net-misc/rsync
+*net-misc/wget
+*sys-apps/coreutils
+*sys-apps/diffutils
+*sys-apps/file
+# Much of the tree relies on newer features like "-exec +".
+# Force a recent stable version so people stay up-to-date.
+*>=sys-apps/findutils-4.4
+*sys-apps/gawk
+*sys-apps/grep
+*sys-apps/kbd
+# temporary bugfix for #398295
+*sys-apps/less
+# stopgap solution for functions.sh #373219 and #504116
+*sys-apps/openrc
+*sys-process/procps
+*sys-process/psmisc
+*sys-apps/sed
+*sys-apps/which
+*sys-devel/binutils
+*sys-devel/gcc
+*sys-devel/gnuconfig
+*sys-devel/make
+*>=sys-devel/patch-2.7
+*sys-fs/e2fsprogs
+*virtual/dev-manager
+*virtual/editor
+*virtual/libc
+*virtual/man
+*virtual/modutils
+*virtual/os-headers
+*virtual/package-manager
+*virtual/pager
+*virtual/service-manager
+*virtual/shadow
+*virtual/ssh
diff --git a/profiles/base/use.force b/profiles/base/use.force
new file mode 100644
index 00000000..7ea3dfba
--- /dev/null
+++ b/profiles/base/use.force
@@ -0,0 +1,8 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the GNU/Linux ELIBC, KERNEL, and USERLAND
+# flags that apply to the majority of profiles.
+elibc_glibc
+kernel_linux
+userland_GNU
diff --git a/profiles/base/use.mask b/profiles/base/use.mask
new file mode 100644
index 00000000..16f1aefe
--- /dev/null
+++ b/profiles/base/use.mask
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file is only for generic masks. For arch-specific masks (i.e.
+# mask everywhere, unmask on arch/*) use arch/base.
+
+# Matt Turner <mattst88@gentoo.org> (25 Nov 2017)
+# Unmaintained upstream. Masked for removal in 30 days.
+# Bug #606132.
+input_devices_acecad
+input_devices_aiptek
+input_devices_fpit
+input_devices_hyperpen
+input_devices_mutouch
+input_devices_pentouch
+
+# Matt Turner <mattst88@gentoo.org> (23 Nov 2017)
+# For ancient hardware. Tired of maintaining. Masked for removal in 30 days.
+# Bug #606132.
+video_cards_apm
+video_cards_ark
+video_cards_chips
+video_cards_cirrus
+video_cards_i128
+video_cards_i740
+video_cards_mach64
+video_cards_neomagic
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_sis
+video_cards_sisusb
+video_cards_suncg14
+video_cards_suncg3
+video_cards_suncg6
+video_cards_sunffb
+video_cards_sunleo
+video_cards_suntcx
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (04 Nov 2017)
+# ... since audacious is being last-rited ... bug 632513
+audacious
+
+# Patrick Lauer <patrick@gentoo.org> (22 Oct 2017)
+# postgres-9.2 is EOL and masked
+postgres_targets_postgres9_2
+
+# Michael Palimaka <kensington@gentoo.org> (03 Jun 2017)
+# Unkeyworded on most arches, unmasked in supported arch profiles.
+elogind
+
+# CURL_SSL=winssl is for prefix/windows/winnt only
+curl_ssl_winssl
+
+# masking here and unmasking in default/linux/
+kmod
+
+# not ready for primetime
+packagekit
+
+# profile specific USE flags
+# Don't put hardened in here.
+# TODO: move multilib into arch/base once inherit order is fixed
+selinux
+uclibc
+multilib
+
+# Mask ELIBC, KERNEL, and USERLAND flags that apply to specific profiles.
+userland_BSD
+
+elibc_AIX
+elibc_bionic
+elibc_Cygwin
+elibc_Darwin
+elibc_DragonFly
+elibc_FreeBSD
+elibc_HPUX
+elibc_Interix
+elibc_mintlib
+elibc_musl
+elibc_NetBSD
+elibc_OpenBSD
+elibc_SunOS
+elibc_uclibc
+elibc_Winnt
+
+kernel_AIX
+kernel_Darwin
+kernel_FreeBSD
+kernel_freemint
+kernel_HPUX
+kernel_NetBSD
+kernel_OpenBSD
+kernel_SunOS
+kernel_Winnt
+
+# Diego Pettenò <flameeyes@gentoo.org> (30 Dec 2006)
+# These are specific of Mac OS X
+aqua
+coreaudio
+
+# Jeremy Olexa <darkside@gentoo.org>
+# The prefix USE flags should never be used on non prefix profiles
+prefix
+prefix-chain
+prefix-guest
+
+# Diego E. Pettenò <flameeyes@gentoo.org> (19 Oct 2010)
+# masking flags that only apply to FreeBSD
+kqueue
+
+# Ralph Sennhauser <sera@gentoo.org> (31 Jul 2012)
+# Unmask in arch specific profiles when jython implementaton is available.
+python_targets_jython2_7
+python_single_target_jython2_7
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (18 Aug 2012)
+# Prelude is being masked for removal
+prelude
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (27 Aug 2012)
+# netlink is a Linux-specific interface
+netlink
+
+# Pacho Ramos <pacho@gentoo.org> (28 Sep 2013)
+# This USE flag is available after long dicussion in
+# http://www.gossamer-threads.com/lists/gentoo/dev/276077
+# to let some prople not able to run systemd to skip the dep (#480336).
+# Enabling this you will get a fully unsupported Gnome setup that
+# could suffer unexpected problem, don't expect support for it then.
+openrc-force
+
+# Brian Evans <grknight@gentoo.org> (2 Dec 2015)
+# php 5.4 is end of life, masked for removal
+php_targets_php5-4
+
+# Brian Evans <grknight@gentoo.org> (22 Aug 2016)
+# php 5.5 is end of life, masked for removal
+php_targets_php5-5
diff --git a/profiles/base/use.stable.force b/profiles/base/use.stable.force
new file mode 100644
index 00000000..98f4a6f0
--- /dev/null
+++ b/profiles/base/use.stable.force
@@ -0,0 +1,5 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires eapi 5 or later. New entries go on top.
+# Please use the same syntax as in use.force
diff --git a/profiles/base/use.stable.mask b/profiles/base/use.stable.mask
new file mode 100644
index 00000000..17e9d945
--- /dev/null
+++ b/profiles/base/use.stable.mask
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires eapi 5 or later. New entries go on top.
+# Please use the same syntax as in use.mask
+
+# Brian Evans <grknight@gentoo.org> (14 Aug 2017)
+# Needs dev-lang/php:7.2 stable
+php_targets_php7-2
+
+# Brian Evans <grknight@gentoo.org> (06 Dec 2016)
+# Needs dev-lang/php:7.1 stable
+php_targets_php7-1
+
+# Zac Medico <zmedico@gentoo.org> (01 Sep 2016)
+# Needs virtual/pypy* stable
+python_targets_pypy
+python_single_target_pypy
+python_targets_pypy3
+python_single_target_pypy3
+
+# Hans de Graaff <graaff@gentoo.org> (25 Dec 2016)
+# Currently in testing and not ready to go stable yet.
+ruby_targets_ruby23
+ruby_targets_ruby24
+
+# Patrick Lauer <patrick@gentoo.org> (28 Apr 2015)
+# dependencies not stable yet
+ayatana
diff --git a/profiles/features/multilib/eapi b/profiles/features/multilib/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/features/multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/features/multilib/make.defaults b/profiles/features/multilib/make.defaults
new file mode 100644
index 00000000..a844d754
--- /dev/null
+++ b/profiles/features/multilib/make.defaults
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> (16 Nov 2011)
+# Rename STAGE1_USE to BOOTSTRAP_USE and stack it to the parent value
+# This is so we build with multilib from the start
+BOOTSTRAP_USE="${BOOTSTRAP_USE} multilib"
+
+# Default USE=multilib to on. This rarely impact packages as they should be
+# using the multilib eclass anyways. #435094
+USE="multilib"
+
+# FEATURES="multilib-strict" specific settings.
+MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
+MULTILIB_STRICT_DENY="64-bit.*shared object"
+MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
diff --git a/profiles/features/multilib/package.use b/profiles/features/multilib/package.use
new file mode 100644
index 00000000..b171f871
--- /dev/null
+++ b/profiles/features/multilib/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2016 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Enable all ABIs by default so we can protect any non-native binaries that
+# might be executed.
+sys-apps/sandbox abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_o32 abi_mips_n32 abi_mips_n64 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
diff --git a/profiles/features/multilib/package.use.force b/profiles/features/multilib/package.use.force
new file mode 100644
index 00000000..90f2389e
--- /dev/null
+++ b/profiles/features/multilib/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 2004-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# These packages must have multilib turned on in order to work sanely.
+sys-apps/sandbox multilib
+sys-devel/gcc multilib
+sys-libs/glibc multilib
diff --git a/profiles/features/multilib/use.mask b/profiles/features/multilib/use.mask
new file mode 100644
index 00000000..7471c9f0
--- /dev/null
+++ b/profiles/features/multilib/use.mask
@@ -0,0 +1,8 @@
+# Copyright 2004-2008 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# SECTION: Unmask
+
+# 2008/02/13 - Chris Gianelloni <wolf31o2@gentoo.org>
+# Unmask multilib, since we need to use it.
+-multilib
diff --git a/profiles/redcore/linux/amd64/13.0/eapi b/profiles/redcore/linux/amd64/13.0/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/redcore/linux/amd64/13.0/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/redcore/linux/amd64/13.0/parent b/profiles/redcore/linux/amd64/13.0/parent
new file mode 100644
index 00000000..7c037751
--- /dev/null
+++ b/profiles/redcore/linux/amd64/13.0/parent
@@ -0,0 +1,2 @@
+..
+../../../../releases/13.0
diff --git a/profiles/redcore/linux/amd64/eapi b/profiles/redcore/linux/amd64/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/redcore/linux/amd64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/redcore/linux/amd64/package.use.mask b/profiles/redcore/linux/amd64/package.use.mask
new file mode 100644
index 00000000..903fc5e0
--- /dev/null
+++ b/profiles/redcore/linux/amd64/package.use.mask
@@ -0,0 +1,10 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (08 May 2016)
+# This target supports VTV #547040.
+>=sys-devel/gcc-4.9 -vtv
+
+# Mike Frysinger <vapier@gentoo.org> (21 Oct 2014)
+# This target supports ASAN/etc... #504200.
+sys-devel/gcc -sanitize
diff --git a/profiles/redcore/linux/amd64/parent b/profiles/redcore/linux/amd64/parent
new file mode 100644
index 00000000..158dd88c
--- /dev/null
+++ b/profiles/redcore/linux/amd64/parent
@@ -0,0 +1,3 @@
+../../../base
+..
+../../../arch/amd64
diff --git a/profiles/redcore/linux/eapi b/profiles/redcore/linux/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/redcore/linux/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/redcore/linux/make.defaults b/profiles/redcore/linux/make.defaults
new file mode 100644
index 00000000..899637eb
--- /dev/null
+++ b/profiles/redcore/linux/make.defaults
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# System-wide defaults for the Portage system
+# See portage(5) manpage
+#
+# Please avoid enabling things by default in here if possible. Understand any
+# implications with core packages. For example, if "java" is in USE and db
+# has a conditional dependency on java (which it does,) then a JDK will be
+# pulled in during *emerge system*!
+
+
+# Default starting set of USE flags for all default/linux profiles.
+USE="berkdb crypt ipv6 ncurses nls pam readline ssl tcpd zlib"
+
+# make sure toolchain has sane defaults <tooclhain@gentoo.org>
+USE="${USE} fortran openmp"
+
+# Security ftw.
+USE="${USE} seccomp"
+
+# 2010/10/21 - Ole Markus With <olemarkus@gentoo.org>
+# These USE flags were originally inserted here because of PHP
+# and were later removed by me. Reinserting the USE flags again because they are
+# global USE flags that may be expected to be set by other packages.
+USE="${USE} cli pcre session"
+
+# 2006/03/07 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: Support direct rendering by default
+# 2013/01/21 - Andreas K. Huettel <dilfridge@gentoo.org>
+# Re-added following discussion with chithead
+USE="${USE} dri"
+
+# 2006/10/28 - Luca Barbato <lu_zero@gentoo.org>
+# on glibc system you cannot turn it off
+USE="${USE} iconv"
+
+# 2017/01/17 - Matt Turner <mattst88@gentoo.org>
+# Sane defaults for input drivers
+INPUT_DEVICES="libinput"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Lowest common denominator defaults for video drivers,
+# except hppa, which lacks v4l so removes it in the hppa profile
+VIDEO_CARDS="dummy fbdev v4l"
+
+# 2008/07/09 - Doug Goldstein <cardoe@gentoo.org>
+# Adding LDFLAGS="-Wl,-O1 for all Linux profiles by default
+# after discussion on the gentoo-dev ML. As we bang out a clear
+# direction with how LDFLAGS will be set by default, this entry
+# may move.
+# 2010/07/12 - Samuli Suominen <ssuominen@gentoo.org>
+# Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
+# because of whitespace.
+LDFLAGS="-Wl,-O1 -Wl,--as-needed"
+
+# 2009/09/21 Robin H. Johnson <robbat2@gentoo.org>
+# https://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml
+# Build kernel modules from linux-mod by default:
+USE="${USE} modules"
diff --git a/profiles/redcore/linux/package.use b/profiles/redcore/linux/package.use
new file mode 100644
index 00000000..36a4bb16
--- /dev/null
+++ b/profiles/redcore/linux/package.use
@@ -0,0 +1,15 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Gilbert <floppym@gentoo.org> (29 Oct 2017)
+# Override default from make.defaults, bug 635822.
+net-libs/mbedtls -zlib
+
+# Mike Frysinger <vapier@gentoo.org> (12 Nov 2015)
+# We want busybox statically linked by default as it is the system rescue shell.
+# But we cannot statically link pam, so turn that off by default. #468580
+sys-apps/busybox -pam static
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> (13 Feb 2011)
+# Disable deprecated bsddb module of Python 2 by default.
+=dev-lang/python-2* -berkdb
diff --git a/profiles/redcore/linux/package.use.mask b/profiles/redcore/linux/package.use.mask
new file mode 100644
index 00000000..663009d6
--- /dev/null
+++ b/profiles/redcore/linux/package.use.mask
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Jason Zaman <perfinion@gentoo.org> (06 Sep 2015)
+# This is masked in base/package.use.mask as Linux only.
+sys-auth/consolekit -cgroups
+
+# Michael Palimaka <kensington@gentoo.org> (03 Sep 2015)
+# Native inotify support is preferred on linux.
+kde-frameworks/kdelibs fam
+kde-frameworks/kcoreaddons fam
+
+# Christian Ruppert <idl0r@gentoo.org> (23 Aug 2015)
+# seccomp seems completely broken currently but has been added as global default
+# apparently... #558100
+# https://archives.gentoo.org/gentoo-dev/message/38503d86a1c41bccfa607745467b1be7
+net-dns/bind seccomp
+
+# Matt Turner <mattst88@gentoo.org> (07 Mar 2014)
+# media-libs/libomxil-bellagio keyworded on amd64/x86
+media-libs/mesa openmax
+
+# Thomas Sachau <tommy@gentoo.org> (25 Dez 2013)
+# mask frost USE flag, broken with >=net-libs/polarssl-1.3.0, bug 489256
+net-p2p/fms frost
+
+# Markos Chandras <hwoarang@gentoo.org> (10 Nov 2013)
+# Does not build with polarssl in the tree.
+# see eg 9e36f0475f011912ee0897aa6487d7b9c190600e
+# in polarssl upstream.
+# The polarssl use flag may go away if the rtmpdump
+# upstream will not fix this problem soon
+media-video/rtmpdump polarssl
+
+# Diego Elio Pettenò (27 Aug 2012)
+# The libpci access is only used for linux.
+net-analyzer/net-snmp -pci
+
+# Richard Yao <ryao@gentoo.org> (22 August 2012)
+# USE=kernel-builtin is dangerous. Only those that know what they are doing
+# should use it until documentation improves.
+sys-fs/zfs kernel-builtin
+
+# Diego Elio Pettenò (20 Aug 2012)
+# The prevent-removal USE flag is only implemented for Linux.
+sys-auth/pam_mktemp -prevent-removal
+
+sys-devel/gcc hardened
+sys-libs/glibc hardened
+
+# Samuli Suominen <ssuominen@gentoo.org> (30 Apr 2012)
+# This is replaced by native CONFIG_INOTIFY_USER support wrt #413403
+=dev-libs/glib-2* fam
+
+# Samuli Suominen <ssuominen@gentoo.org (20 Mar 2012)
+# This is masked in base/package.use.mask as Linux only.
+sys-auth/consolekit -acl
+
+# Samuli Suominen <ssuominen@gentoo.org> (10 Jan 2012)
+# Masked in base/package.use.mask as Linux -only feature
+app-arch/libarchive -e2fsprogs
+
+# Diego E. Pettenò <flameeyes@gentoo.org> (20 Aug 2009)
+#
+# Mask oss USE flag for PulseAudio; it's present for compatibility
+# with FreeBSD and other operating systems that have no better
+# interfaces, but people would probably abuse it with Linux as well.
+#
+# Older versions also had an OSS compatibility wrapper on that USE so
+# they are excluded.
+>=media-sound/pulseaudio-0.9.16_rc5 oss
+
+# Diego E. Pettenò <flameeyes@gentoo.org> (27 Mar 2011)
+#
+# Unmask pdnsd's Linux-specific USE flags.
+net-dns/pdnsd -isdn -urandom
diff --git a/profiles/redcore/linux/packages b/profiles/redcore/linux/packages
new file mode 100644
index 00000000..d0b8745d
--- /dev/null
+++ b/profiles/redcore/linux/packages
@@ -0,0 +1,13 @@
+# Copyright 2004-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+# This file extends the base packages file for the default profile that all
+# architectures will enjoy. Please note that default is what most architectures
+# will have. Some will have an selinux profile (see ${PORTDIR}/profiles/selinux).
+# The idea is to only create a new family of profiles when absolutely necessary.
+
+*sys-apps/busybox
+*sys-apps/iproute2
+*sys-apps/man-pages
+*sys-apps/net-tools
+*sys-apps/util-linux
diff --git a/profiles/redcore/linux/packages.build b/profiles/redcore/linux/packages.build
new file mode 100644
index 00000000..6d655493
--- /dev/null
+++ b/profiles/redcore/linux/packages.build
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+# This file describes the packages needed to build a stage1 based on this
+# profile. Packages in this file are built in order.
+
+# While shadow could be in here, it breaks stage 1 and stage 2 building for the
+# releases. PLEASE DO NOT ENABLE THIS UNLESS YOU HAVE THOROUGHLY TESTED IT!
+
+app-arch/bzip2
+app-arch/gzip
+app-arch/xz-utils
+app-arch/tar
+app-shells/bash:0
+net-misc/rsync
+net-misc/wget
+sys-devel/autoconf
+sys-devel/automake
+sys-devel/libtool
+sys-apps/baselayout
+sys-apps/makedev
+sys-apps/coreutils
+sys-apps/diffutils
+sys-apps/file
+sys-apps/findutils
+sys-apps/gawk
+sys-apps/grep
+sys-apps/less
+sys-apps/net-tools
+sys-apps/sed
+sys-devel/binutils
+sys-devel/bison
+sys-devel/flex
+sys-devel/gcc
+sys-devel/gettext
+sys-devel/gnuconfig
+sys-devel/make
+sys-devel/patch
+virtual/editor
+virtual/libc
+virtual/os-headers
+virtual/package-manager
+virtual/pkgconfig
+virtual/shadow
+sys-apps/which
+
+# This was added too soon.
+# The new udev version needs to stabled first
+#sys-apps/kmod
diff --git a/profiles/redcore/linux/use.mask b/profiles/redcore/linux/use.mask
new file mode 100644
index 00000000..a801fced
--- /dev/null
+++ b/profiles/redcore/linux/use.mask
@@ -0,0 +1,15 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# profile for any architecture. This works, for example, if a non-default
+# profile (such as the selinux profiles) have a USE flag associated with
+# them.
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (27 Aug 2012)
+# netlink is a Linux-specific interface
+-netlink
+
+# Samuli Suominen <ssuominen@gentoo.org> (19 Apr 2013)
+# Linux specific module loading/unloading support
+-kmod
diff --git a/profiles/releases/13.0/eapi b/profiles/releases/13.0/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/releases/13.0/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/releases/13.0/make.defaults b/profiles/releases/13.0/make.defaults
new file mode 100644
index 00000000..475e60c7
--- /dev/null
+++ b/profiles/releases/13.0/make.defaults
@@ -0,0 +1,5 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Adding this one, since it makes sense.
+USE="bzip2"
diff --git a/profiles/releases/13.0/package.mask b/profiles/releases/13.0/package.mask
new file mode 100644
index 00000000..1efe36dd
--- /dev/null
+++ b/profiles/releases/13.0/package.mask
@@ -0,0 +1,9 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (27 May 2017)
+# This release and later require C++11 or C++14
+# So we mask it here, and unmask in 17.0 release profiles
+>=dev-libs/icu-59
+>=dev-libs/icu-layoutex-59
+>=net-libs/nodejs-9.0.0
diff --git a/profiles/releases/13.0/parent b/profiles/releases/13.0/parent
new file mode 100644
index 00000000..f3229c5b
--- /dev/null
+++ b/profiles/releases/13.0/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/releases/eapi b/profiles/releases/eapi
new file mode 100644
index 00000000..7ed6ff82
--- /dev/null
+++ b/profiles/releases/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/releases/make.defaults b/profiles/releases/make.defaults
new file mode 100644
index 00000000..a0a37cc3
--- /dev/null
+++ b/profiles/releases/make.defaults
@@ -0,0 +1,6 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# These USE flags are what is common between the various sub-profiles. Stages 2
+# and 3 are built against these, so be careful what you add.
+USE="acl gdbm nptl unicode"