summaryrefslogtreecommitdiff
path: root/profiles/arch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /profiles/arch
reinit the tree, so we can have metadata
Diffstat (limited to 'profiles/arch')
-rw-r--r--profiles/arch/alpha/eapi1
-rw-r--r--profiles/arch/alpha/make.defaults29
-rw-r--r--profiles/arch/alpha/package.mask10
-rw-r--r--profiles/arch/alpha/package.use6
-rw-r--r--profiles/arch/alpha/package.use.force11
-rw-r--r--profiles/arch/alpha/package.use.mask395
-rw-r--r--profiles/arch/alpha/package.use.stable.mask40
-rw-r--r--profiles/arch/alpha/parent1
-rw-r--r--profiles/arch/alpha/use.force2
-rw-r--r--profiles/arch/alpha/use.mask213
-rw-r--r--profiles/arch/alpha/use.stable.mask26
-rw-r--r--profiles/arch/amd64-fbsd/clang/eapi1
-rw-r--r--profiles/arch/amd64-fbsd/clang/make.defaults7
-rw-r--r--profiles/arch/amd64-fbsd/clang/package.use.force16
-rw-r--r--profiles/arch/amd64-fbsd/clang/package.use.mask21
-rw-r--r--profiles/arch/amd64-fbsd/clang/packages9
-rw-r--r--profiles/arch/amd64-fbsd/clang/packages.build9
-rw-r--r--profiles/arch/amd64-fbsd/clang/parent1
-rw-r--r--profiles/arch/amd64-fbsd/clang/profile.bashrc8
-rw-r--r--profiles/arch/amd64-fbsd/eapi1
-rw-r--r--profiles/arch/amd64-fbsd/make.defaults47
-rw-r--r--profiles/arch/amd64-fbsd/package.use.force17
-rw-r--r--profiles/arch/amd64-fbsd/package.use.mask54
-rw-r--r--profiles/arch/amd64-fbsd/parent3
-rw-r--r--profiles/arch/amd64-fbsd/todo/eapi1
-rw-r--r--profiles/arch/amd64-fbsd/todo/package.use.force7
-rw-r--r--profiles/arch/amd64-fbsd/todo/package.use.mask199
-rw-r--r--profiles/arch/amd64-fbsd/use.force5
-rw-r--r--profiles/arch/amd64-fbsd/use.mask60
-rw-r--r--profiles/arch/amd64/eapi1
-rw-r--r--profiles/arch/amd64/make.defaults65
-rw-r--r--profiles/arch/amd64/no-multilib/eapi1
-rw-r--r--profiles/arch/amd64/no-multilib/make.defaults8
-rw-r--r--profiles/arch/amd64/no-multilib/package.mask170
-rw-r--r--profiles/arch/amd64/no-multilib/package.use.force6
-rw-r--r--profiles/arch/amd64/no-multilib/package.use.mask38
-rw-r--r--profiles/arch/amd64/no-multilib/use.mask24
-rw-r--r--profiles/arch/amd64/package.use25
-rw-r--r--profiles/arch/amd64/package.use.force34
-rw-r--r--profiles/arch/amd64/package.use.mask308
-rw-r--r--profiles/arch/amd64/package.use.stable.mask75
-rw-r--r--profiles/arch/amd64/parent2
-rw-r--r--profiles/arch/amd64/use.force6
-rw-r--r--profiles/arch/amd64/use.mask187
-rw-r--r--profiles/arch/amd64/use.stable.mask32
-rw-r--r--profiles/arch/amd64/x32/eapi1
-rw-r--r--profiles/arch/amd64/x32/make.defaults18
-rw-r--r--profiles/arch/amd64/x32/package.mask8
-rw-r--r--profiles/arch/amd64/x32/package.use.force7
-rw-r--r--profiles/arch/amd64/x32/package.use.mask14
-rw-r--r--profiles/arch/amd64/x32/parent1
-rw-r--r--profiles/arch/amd64/x32/use.force5
-rw-r--r--profiles/arch/amd64/x32/use.mask6
-rw-r--r--profiles/arch/arm/armv4/eapi1
-rw-r--r--profiles/arch/arm/armv4/make.defaults5
-rw-r--r--profiles/arch/arm/armv4/package.mask3
-rw-r--r--profiles/arch/arm/armv4/parent1
-rw-r--r--profiles/arch/arm/armv4t/eapi1
-rw-r--r--profiles/arch/arm/armv4t/make.defaults5
-rw-r--r--profiles/arch/arm/armv4t/package.mask4
-rw-r--r--profiles/arch/arm/armv4t/parent1
-rw-r--r--profiles/arch/arm/armv5te/eapi1
-rw-r--r--profiles/arch/arm/armv5te/make.defaults5
-rw-r--r--profiles/arch/arm/armv5te/package.mask4
-rw-r--r--profiles/arch/arm/armv5te/parent1
-rw-r--r--profiles/arch/arm/armv5te/use.force6
-rw-r--r--profiles/arch/arm/armv5te/use.mask9
-rw-r--r--profiles/arch/arm/armv6j/eapi1
-rw-r--r--profiles/arch/arm/armv6j/make.defaults5
-rw-r--r--profiles/arch/arm/armv6j/package.mask7
-rw-r--r--profiles/arch/arm/armv6j/parent1
-rw-r--r--profiles/arch/arm/armv6j/use.force7
-rw-r--r--profiles/arch/arm/armv6j/use.mask12
-rw-r--r--profiles/arch/arm/armv7a/eapi1
-rw-r--r--profiles/arch/arm/armv7a/make.defaults5
-rw-r--r--profiles/arch/arm/armv7a/package.mask19
-rw-r--r--profiles/arch/arm/armv7a/package.use.mask10
-rw-r--r--profiles/arch/arm/armv7a/parent1
-rw-r--r--profiles/arch/arm/armv7a/use.force14
-rw-r--r--profiles/arch/arm/armv7a/use.mask20
-rw-r--r--profiles/arch/arm/eapi1
-rw-r--r--profiles/arch/arm/make.defaults25
-rw-r--r--profiles/arch/arm/package.mask16
-rw-r--r--profiles/arch/arm/package.use2
-rw-r--r--profiles/arch/arm/package.use.force12
-rw-r--r--profiles/arch/arm/package.use.mask516
-rw-r--r--profiles/arch/arm/package.use.stable.mask127
-rw-r--r--profiles/arch/arm/parent1
-rw-r--r--profiles/arch/arm/use.force2
-rw-r--r--profiles/arch/arm/use.mask188
-rw-r--r--profiles/arch/arm/use.stable.mask22
-rw-r--r--profiles/arch/arm64/big-endian/eapi1
-rw-r--r--profiles/arch/arm64/big-endian/make.defaults4
-rw-r--r--profiles/arch/arm64/big-endian/parent1
-rw-r--r--profiles/arch/arm64/big-endian/use.mask6
-rw-r--r--profiles/arch/arm64/eapi1
-rw-r--r--profiles/arch/arm64/little-endian/eapi1
-rw-r--r--profiles/arch/arm64/little-endian/make.defaults4
-rw-r--r--profiles/arch/arm64/little-endian/parent1
-rw-r--r--profiles/arch/arm64/make.defaults26
-rw-r--r--profiles/arch/arm64/package.use6
-rw-r--r--profiles/arch/arm64/package.use.force21
-rw-r--r--profiles/arch/arm64/package.use.mask408
-rw-r--r--profiles/arch/arm64/package.use.stable.mask13
-rw-r--r--profiles/arch/arm64/parent2
-rw-r--r--profiles/arch/arm64/use.force18
-rw-r--r--profiles/arch/arm64/use.mask247
-rw-r--r--profiles/arch/arm64/use.stable.mask25
-rw-r--r--profiles/arch/base/eapi1
-rw-r--r--profiles/arch/base/make.defaults8
-rw-r--r--profiles/arch/base/package.use.mask220
-rw-r--r--profiles/arch/base/use.force6
-rw-r--r--profiles/arch/base/use.mask250
-rw-r--r--profiles/arch/hppa/eapi1
-rw-r--r--profiles/arch/hppa/make.defaults26
-rw-r--r--profiles/arch/hppa/package.mask2
-rw-r--r--profiles/arch/hppa/package.use.force6
-rw-r--r--profiles/arch/hppa/package.use.mask240
-rw-r--r--profiles/arch/hppa/package.use.stable.mask53
-rw-r--r--profiles/arch/hppa/packages4
-rw-r--r--profiles/arch/hppa/parent1
-rw-r--r--profiles/arch/hppa/use.force2
-rw-r--r--profiles/arch/hppa/use.mask315
-rw-r--r--profiles/arch/ia64/eapi1
-rw-r--r--profiles/arch/ia64/make.defaults28
-rw-r--r--profiles/arch/ia64/package.mask7
-rw-r--r--profiles/arch/ia64/package.use6
-rw-r--r--profiles/arch/ia64/package.use.force11
-rw-r--r--profiles/arch/ia64/package.use.mask343
-rw-r--r--profiles/arch/ia64/package.use.stable.mask38
-rw-r--r--profiles/arch/ia64/parent1
-rw-r--r--profiles/arch/ia64/use.force2
-rw-r--r--profiles/arch/ia64/use.mask225
-rw-r--r--profiles/arch/ia64/use.stable.mask24
-rw-r--r--profiles/arch/m68k/eapi1
-rw-r--r--profiles/arch/m68k/make.defaults23
-rw-r--r--profiles/arch/m68k/package.use.force10
-rw-r--r--profiles/arch/m68k/package.use.mask39
-rw-r--r--profiles/arch/m68k/packages4
-rw-r--r--profiles/arch/m68k/parent1
-rw-r--r--profiles/arch/m68k/use.force2
-rw-r--r--profiles/arch/m68k/use.mask99
-rw-r--r--profiles/arch/mips/eapi1
-rw-r--r--profiles/arch/mips/make.defaults21
-rw-r--r--profiles/arch/mips/mips64/eapi1
-rw-r--r--profiles/arch/mips/mips64/make.defaults6
-rw-r--r--profiles/arch/mips/mips64/multilib/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/make.defaults23
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n32/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/n64/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/make.defaults12
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mips64/multilib/o32/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/parent2
-rw-r--r--profiles/arch/mips/mips64/multilib/use.force4
-rw-r--r--profiles/arch/mips/mips64/multilib/use.mask8
-rw-r--r--profiles/arch/mips/mips64/n32/eapi1
-rw-r--r--profiles/arch/mips/mips64/n32/make.defaults14
-rw-r--r--profiles/arch/mips/mips64/n32/parent1
-rw-r--r--profiles/arch/mips/mips64/n32/use.force4
-rw-r--r--profiles/arch/mips/mips64/n32/use.mask4
-rw-r--r--profiles/arch/mips/mips64/n64/eapi1
-rw-r--r--profiles/arch/mips/mips64/n64/make.defaults14
-rw-r--r--profiles/arch/mips/mips64/n64/parent1
-rw-r--r--profiles/arch/mips/mips64/n64/use.force4
-rw-r--r--profiles/arch/mips/mips64/n64/use.mask4
-rw-r--r--profiles/arch/mips/mips64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/make.defaults8
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/make.defaults23
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults12
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/parent2
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/multilib/use.mask8
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/make.defaults14
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n32/use.mask4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/eapi1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/make.defaults14
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/parent1
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.force4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/n64/use.mask4
-rw-r--r--profiles/arch/mips/mipsel/mips64el/parent1
-rw-r--r--profiles/arch/mips/mipsel/o32/eapi1
-rw-r--r--profiles/arch/mips/mipsel/o32/make.defaults14
-rw-r--r--profiles/arch/mips/mipsel/o32/parent1
-rw-r--r--profiles/arch/mips/mipsel/o32/use.force4
-rw-r--r--profiles/arch/mips/mipsel/o32/use.mask4
-rw-r--r--profiles/arch/mips/mipsel/parent1
-rw-r--r--profiles/arch/mips/mipsel/use.mask6
-rw-r--r--profiles/arch/mips/o32/eapi1
-rw-r--r--profiles/arch/mips/o32/make.defaults14
-rw-r--r--profiles/arch/mips/o32/parent1
-rw-r--r--profiles/arch/mips/o32/use.force4
-rw-r--r--profiles/arch/mips/o32/use.mask4
-rw-r--r--profiles/arch/mips/package.mask6
-rw-r--r--profiles/arch/mips/package.use.force11
-rw-r--r--profiles/arch/mips/package.use.mask177
-rw-r--r--profiles/arch/mips/parent1
-rw-r--r--profiles/arch/mips/use.force5
-rw-r--r--profiles/arch/mips/use.mask347
-rw-r--r--profiles/arch/nios2/eapi1
-rw-r--r--profiles/arch/nios2/make.defaults22
-rw-r--r--profiles/arch/nios2/package.use.mask222
-rw-r--r--profiles/arch/nios2/parent2
-rw-r--r--profiles/arch/nios2/use.force2
-rw-r--r--profiles/arch/nios2/use.mask206
-rw-r--r--profiles/arch/powerpc/eapi1
-rw-r--r--profiles/arch/powerpc/package.mask19
-rw-r--r--profiles/arch/powerpc/package.use6
-rw-r--r--profiles/arch/powerpc/package.use.force18
-rw-r--r--profiles/arch/powerpc/package.use.mask350
-rw-r--r--profiles/arch/powerpc/package.use.stable.mask73
-rw-r--r--profiles/arch/powerpc/packages10
-rw-r--r--profiles/arch/powerpc/parent1
-rw-r--r--profiles/arch/powerpc/ppc32/eapi1
-rw-r--r--profiles/arch/powerpc/ppc32/make.defaults37
-rw-r--r--profiles/arch/powerpc/ppc32/package.use2
-rw-r--r--profiles/arch/powerpc/ppc32/package.use.mask124
-rw-r--r--profiles/arch/powerpc/ppc32/package.use.stable.mask44
-rw-r--r--profiles/arch/powerpc/ppc32/parent1
-rw-r--r--profiles/arch/powerpc/ppc32/use.force5
-rw-r--r--profiles/arch/powerpc/ppc32/use.mask20
-rw-r--r--profiles/arch/powerpc/ppc32/use.stable.mask9
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/eapi1
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/make.defaults16
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/package.mask2
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/package.use.mask6
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/packages5
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/parent3
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/use.force10
-rw-r--r--profiles/arch/powerpc/ppc64/32ul/use.mask13
-rw-r--r--profiles/arch/powerpc/ppc64/64le/eapi1
-rw-r--r--profiles/arch/powerpc/ppc64/64le/make.defaults8
-rw-r--r--profiles/arch/powerpc/ppc64/64le/parent1
-rw-r--r--profiles/arch/powerpc/ppc64/64le/use.mask10
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/eapi1
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/make.defaults11
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/package.mask6
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/package.use.mask30
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/parent1
-rw-r--r--profiles/arch/powerpc/ppc64/64ul/use.mask85
-rw-r--r--profiles/arch/powerpc/ppc64/eapi1
-rw-r--r--profiles/arch/powerpc/ppc64/make.defaults41
-rw-r--r--profiles/arch/powerpc/ppc64/package.use6
-rw-r--r--profiles/arch/powerpc/ppc64/package.use.force9
-rw-r--r--profiles/arch/powerpc/ppc64/package.use.mask131
-rw-r--r--profiles/arch/powerpc/ppc64/package.use.stable.mask32
-rw-r--r--profiles/arch/powerpc/ppc64/parent1
-rw-r--r--profiles/arch/powerpc/ppc64/use.force5
-rw-r--r--profiles/arch/powerpc/ppc64/use.mask31
-rw-r--r--profiles/arch/powerpc/ppc64/use.stable.mask5
-rw-r--r--profiles/arch/powerpc/use.mask180
-rw-r--r--profiles/arch/powerpc/use.stable.mask22
-rw-r--r--profiles/arch/riscv/make.defaults7
-rw-r--r--profiles/arch/riscv/package.use.mask5
-rw-r--r--profiles/arch/riscv/parent1
-rw-r--r--profiles/arch/riscv/use.force2
-rw-r--r--profiles/arch/s390/eapi1
-rw-r--r--profiles/arch/s390/make.defaults33
-rw-r--r--profiles/arch/s390/package.use.force11
-rw-r--r--profiles/arch/s390/package.use.mask60
-rw-r--r--profiles/arch/s390/packages3
-rw-r--r--profiles/arch/s390/parent2
-rw-r--r--profiles/arch/s390/s390x/eapi1
-rw-r--r--profiles/arch/s390/s390x/make.defaults16
-rw-r--r--profiles/arch/s390/s390x/package.use.force7
-rw-r--r--profiles/arch/s390/s390x/use.force6
-rw-r--r--profiles/arch/s390/s390x/use.mask3
-rw-r--r--profiles/arch/s390/use.force11
-rw-r--r--profiles/arch/s390/use.mask149
-rw-r--r--profiles/arch/sh/eapi1
-rw-r--r--profiles/arch/sh/make.defaults29
-rw-r--r--profiles/arch/sh/package.mask7
-rw-r--r--profiles/arch/sh/package.use.force6
-rw-r--r--profiles/arch/sh/package.use.mask74
-rw-r--r--profiles/arch/sh/parent1
-rw-r--r--profiles/arch/sh/use.force2
-rw-r--r--profiles/arch/sh/use.mask161
-rw-r--r--profiles/arch/sparc-fbsd/eapi1
-rw-r--r--profiles/arch/sparc-fbsd/make.defaults11
-rw-r--r--profiles/arch/sparc-fbsd/package.use.force7
-rw-r--r--profiles/arch/sparc-fbsd/parent1
-rw-r--r--profiles/arch/sparc-fbsd/use.force2
-rw-r--r--profiles/arch/sparc-fbsd/use.mask33
-rw-r--r--profiles/arch/sparc/eapi1
-rw-r--r--profiles/arch/sparc/make.defaults45
-rw-r--r--profiles/arch/sparc/package.mask11
-rw-r--r--profiles/arch/sparc/package.use11
-rw-r--r--profiles/arch/sparc/package.use.force11
-rw-r--r--profiles/arch/sparc/package.use.mask386
-rw-r--r--profiles/arch/sparc/package.use.stable.mask67
-rw-r--r--profiles/arch/sparc/packages7
-rw-r--r--profiles/arch/sparc/parent1
-rw-r--r--profiles/arch/sparc/use.force2
-rw-r--r--profiles/arch/sparc/use.mask289
-rw-r--r--profiles/arch/sparc/use.stable.mask32
-rw-r--r--profiles/arch/x86-fbsd/eapi1
-rw-r--r--profiles/arch/x86-fbsd/make.defaults35
-rw-r--r--profiles/arch/x86-fbsd/package.use.force7
-rw-r--r--profiles/arch/x86-fbsd/package.use.mask64
-rw-r--r--profiles/arch/x86-fbsd/parent1
-rw-r--r--profiles/arch/x86-fbsd/use.force3
-rw-r--r--profiles/arch/x86-fbsd/use.mask62
-rw-r--r--profiles/arch/x86/eapi1
-rw-r--r--profiles/arch/x86/make.defaults44
-rw-r--r--profiles/arch/x86/package.mask7
-rw-r--r--profiles/arch/x86/package.use11
-rw-r--r--profiles/arch/x86/package.use.force12
-rw-r--r--profiles/arch/x86/package.use.mask241
-rw-r--r--profiles/arch/x86/package.use.stable.mask70
-rw-r--r--profiles/arch/x86/parent1
-rw-r--r--profiles/arch/x86/profile.bashrc12
-rw-r--r--profiles/arch/x86/use.force7
-rw-r--r--profiles/arch/x86/use.mask165
-rw-r--r--profiles/arch/x86/use.stable.mask28
-rw-r--r--profiles/arch/x86/xbox/eapi1
-rw-r--r--profiles/arch/x86/xbox/make.defaults10
-rw-r--r--profiles/arch/x86/xbox/package.mask2
-rw-r--r--profiles/arch/x86/xbox/parent1
341 files changed, 11164 insertions, 0 deletions
diff --git a/profiles/arch/alpha/eapi b/profiles/arch/alpha/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/alpha/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/alpha/make.defaults b/profiles/arch/alpha/make.defaults
new file mode 100644
index 000000000000..25c2ed44634f
--- /dev/null
+++ b/profiles/arch/alpha/make.defaults
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="alpha"
+ACCEPT_KEYWORDS="alpha"
+
+CHOST="alpha-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Set ABI & DEFAULT_ABI consistently with ${ARCH}, to make ebuild
+# checks simpler.
+ABI="alpha"
+DEFAULT_ABI="alpha"
+MULTILIB_ABIS="alpha"
+CHOST_alpha="${CHOST}"
+LIBDIR_alpha="lib"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx voodoo"
+
+# 2007/02/05 - Chris Gianelloni <wolf31o2@gentoo.org>
+# Defaults for audio drivers. These are copied from x86 (minus modems), since
+# Alpha supports the same busses.
+ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci"
diff --git a/profiles/arch/alpha/package.mask b/profiles/arch/alpha/package.mask
new file mode 100644
index 000000000000..965c9f54b449
--- /dev/null
+++ b/profiles/arch/alpha/package.mask
@@ -0,0 +1,10 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Tobias Klausmann <klausman@gentoo.org> (09 Mar 2017)
+# warning "__NR_copy_file_range not defined for your architecture"
+=sys-fs/udev-233
+
+# Alexey Shvetsov <alexxy@gentoo.org> (21 May 2012)
+# Need deps pecl-apc and pecl-uploadprogress bug #416897
+>=www-apps/drupal-7.14
diff --git a/profiles/arch/alpha/package.use b/profiles/arch/alpha/package.use
new file mode 100644
index 000000000000..d23d889b2e25
--- /dev/null
+++ b/profiles/arch/alpha/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Pacho Ramos <pacho@gentoo.org> (15 Feb 2014)
+# libev isn't supported on this arch, use another default (#499498)
+dev-libs/libverto libevent
diff --git a/profiles/arch/alpha/package.use.force b/profiles/arch/alpha/package.use.force
new file mode 100644
index 000000000000..f386f109f7fb
--- /dev/null
+++ b/profiles/arch/alpha/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Tobias Klausmann <klausman@gentoo.org> 2014-12-04
+# The Firefox/Mozilla build system is broken in regards to linking the shipped
+# ICU library. Bug 529944
+www-client/firefox system-icu
diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask
new file mode 100644
index 000000000000..06595ee1feb7
--- /dev/null
+++ b/profiles/arch/alpha/package.use.mask
@@ -0,0 +1,395 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michael Palimaka <kensington@gentoo.org> (30 Sep 2017)
+# Required dependencies are not keyworded.
+x11-themes/qtcurve plasma
+
+# Brian Evans <grknight@gentoo.org> (21 Aug 2017)
+# No keywords for sys-process/numactl
+dev-db/mariadb numa
+
+# Gilles Dartiguelongue <eva@gentoo.org> (16 Aug 2017)
+# missing keyword on dev-python/dbusmock, bug #620024
+>=gnome-base/gnome-settings-daemon-3.24 test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=bluetooth that is masked in this profile.
+media-sound/pulseaudio native-headset
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=networkmanager that is masked in this profile.
+app-misc/geoclue skyhook
+
+# Robin H. Johnson <robbat2@gentoo.org> (05 Aug 2017)
+# Upstream Git is switching to PCRE2 w/ JIT.
+# This is not available on some arches, where a fallback to PCRE1 without JIT is used.
+dev-vcs/git pcre-jit
+
+# Tobias Klausmann <klausman@gentoo.org> (18 May 2017)
+# Stack protector code is not ported to alpha (and may not ever be)
+>=sys-devel/gcc-6 ssp
+
+# Tobias Klausmann <klausman@gentoo.org> (08 May 2017)
+# USE=test requires valgrind, which will never be ported to alpha
+app-misc/jq test
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Mar 2017)
+# libilbc has not been ported to alpha and likely never will be.
+media-video/ffmpeg libilbc
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Mar 2017)
+# BSON requires pymongo and assorted other packages that are not available on
+# alpha.
+app-portage/g-sorcery bson
+
+# Tobias Klausmann <klausman@gentoo.org> (27 Jan 2016)
+# USE=test transitively pulls in greenlet, which is not available on alpha.
+dev-python/pyquery test
+
+# Tobias Klausmann <klausman@gentoo.org> (25 Jan 2016)
+# The tests use hypothesis which complains about too-slow tests on
+# hardware that is "too slow".
+dev-python/attrs test
+
+# Tobias Klausmann <klausman@gentoo.org> (22 Jan 2016)
+# Requires guile2 which is keyworded nowhere
+media-sound/lilypond guile2
+
+# Tobias Klausmann <klausman@gentoo.org> (15 Nov 2016)
+# JITing for libpcre{,2} is not supported on Alpha
+dev-libs/libpcre jit
+dev-libs/libpcre2 jit
+
+# Tobias Klausmann <klausman@gentoo.org> (22 Oct 2016)
+# Pulls in dev-db/redis which is not keyworded on alpha.
+dev-python/pyzor test
+
+# Tobias Klausmann <klausman@gentoo.org> (03 Oct 2016)
+# Pulls in dev-db/redis which is not keyworded on alpha.
+>=dev-libs/hiredis-0.13.1 test
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Oct 2016)
+# For the one single version noted hereunder, the ebuild does not pull in
+# sys-apps/fakeroot as a test dependency (bug #593768).
+=dev-util/debhelper-9.20160814 test
+
+# Gilles Dartiguelongue <eva@gentoo.org> (11 Sep 2016)
+# networkmanager USE masked due to missing keywords
+gnome-extra/nm-applet teamd
+
+# Gilles Dartiguelongue <eva@gentoo.org> (11 Sep 2016)
+# Opt-out of ofono support until there is a user request,
+# see also pulseaudio/connman
+net-misc/networkmanager ofono
+
+# Tobias Klausmann <klausman@gentoo.org> (04 Jul 2016)
+# Mask USE=test since it implies USE=valgrind
+net-mail/notmuch test
+
+# Tobias Klausmann <klausman@gentoo.org> (14 Jun 2016)
+# asciidoctor pulls in a lot of Ruby deps
+>=net-misc/chrony-2.4_pre1 html
+
+# Tobias Klausmann <klausman@gentoo.org> (07 Jun 2016)
+# cmus is one amongst many. When-if a user wants it, we'll reconsider it.
+# Same goes for libircclient
+app-admin/conky cmus irc
+
+# Tobias Klausmann <klausman@gentoo.org> (07 Jun 2016)
+# the nvidia SDK needs nvidia-drivers and thus can never work on alpha
+# Likewise, nasm is x86/x86-64 only
+media-video/ffmpeg nvenc openh264
+
+# Justin Lecher <jlec@gentoo.org> (22 Feb 2016)
+# Missing test deps keyword #575366
+dev-cpp/eigen test
+
+# Mike Frysinger <vapier@gentoo.org> (21 Feb 2016)
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Tobias Klausmann <klausman@gentoo.org> 04 Feb 2016
+# sys-cluster/ceph is not broken per se, but a maintenance burden.
+net-analyzer/rrdtool rados
+
+# James Le Cuirot <chewi@gentoo.org> (30 Jan 2016)
+# scrollview requires Java, which is unsupported on Alpha.
+app-text/tesseract scrollview
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no alpha support in media-libs/glfw
+app-text/mupdf opengl
+
+# Justin Lecher <jlec@gentoo.org> (18 Nov 2015)
+# requires dev-python/restkit which requires
+# dev-python/socketpool which requires dev-python/gevent which requires
+# dev-python/greenlet which has not been ported to ALPHA
+dev-python/wsgiproxy2 test
+dev-python/pyquery test
+
+# Matt Turner <mattst88@gentoo.org> (15 Nov 2015)
+# Missing keywords
+dev-util/perf numa
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+media-sound/rhythmbox upnp-av
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+>=media-plugins/grilo-plugins-0.2.14 upnp-av
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Justin Lecher <jlec@gentoo.org> (14 Oct 2015)
+# Requires dev-python/ipython which triggers a long dep chain
+dev-python/restkit cli
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (10 Sep 2015)
+# Requires wifi USE flag, which is masked for this arch
+net-misc/networkmanager wext
+
+# Tobias Klausmann <klausman@gentoo.org> (10 Aug 2015)
+# Opting out of the net-misc/ofono dep tree until we have a user request
+>=media-sound/pulseaudio-6.0 ofono-headset
+
+# Tobias Klausmann <klausman@gentoo.org> (08 Aug 2015)
+# It's unlikely that greenlet will ever be ported to Alpha. Mask USE=gevent for
+# pyzor to avoid that dependency. See bug 538510
+>=dev-python/pyzor-1.0.0 gevent
+
+# Tobias Klausmann <klausman@gentoo.org> (11 Jul 2015)
+# The test suite has ridiculous (transitive) requirements like
+# sci-mathematics/octave.
+>=dev-python/pyquery-1.2.9 test
+# revdeps of pyquery, ditto.
+dev-python/webtest test
+dev-python/wsgiproxy2 test
+dev-python/urllib3 test
+
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# dev-lang/luajit and dev-lua/lgi and lack alpha keyword, bug #551540
+dev-libs/libpeas lua jit
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Michał Górny <mgorny@gentoo.org> (22 Feb 2015)
+# Dependency not keyworded for some reason.
+media-libs/gegl umfpack
+
+# Patrick Lauer <patrick@gentoo.org> (10 Feb 2015)
+# Missing keywords for media-libs/x265
+media-video/libav x265
+
+# Johannes Huber <johu@gentoo.org> (28 Jan 2015)
+# Missing keyword on dev-libs/botan
+app-crypt/qca botan
+
+# Pacho Ramos <pacho@gentoo.org> (10 Jan 2014)
+# Missing keywords
+net-misc/networkmanager teamd
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Dec 2014)
+# New dependencies for wayland support in Gnome 3.14
+# See bug #533420.
+media-libs/clutter egl wayland
+media-libs/clutter-gtk wayland
+x11-wm/mutter kms
+
+# Mark Wright <gienah@gentoo.org> (14-23 Dec 2014)
+# test dependencies need keywording
+dev-haskell/binary test
+dev-haskell/text test
+dev-haskell/vector test
+
+# Tobias Klausmann <klausman@gentoo.org> (20 Nov 2014)
+# OpenCV likely will never work on Alpha
+media-video/vlc opencv
+
+# Pacho Ramos <pacho@gentoo.org> (11 Nov 2014)
+# Missing keywords, bug #523686
+>=dev-libs/libgdata-0.16.1 test
+
+# Tobias Klausmann <klausman@gentoo.org> (11 Oct 2014)
+# app-emulation/qemu is not keyworded on alpha, masking flag that triggers
+# dependency
+net-misc/spice-gtk smartcard
+
+# Gilles Dartiguelongue <eva@gentoo.org> (05 Oct 2014)
+# Missing keyword on app-accessibility/brltty
+app-accessibility/orca braille
+
+# Tobias Klausmann <klausman@gentoo.org>
+# media-libs/x265 doesn't work on alpha (bug 519046)
+media-video/ffmpeg x265
+
+# Tobias Klausmann <klausman@gentoo.org (16 Jul 2014)
+# neither dietlibc nor klibc will likely ever build/work on alpha, bug #487672
+>=sys-fs/dmraid-1.0.0_rc16-r3 dietlibc klibc
+
+# Pacho Ramos <pacho@gentoo.org> (22 Feb 2014)
+# Missing keywords, bug #495250
+>=gnome-base/gnome-extra-apps-3.10 tracker
+
+# Pacho Ramos <pacho@gentoo.org> (02 Dec 2013)
+# Missing keywords, bug #493156
+media-libs/libgphoto2 serial
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Pacho Ramos <pacho@gentoo.org> (13 Nov 2013)
+# Missing keywords, bug #478254
+>=gnome-base/gnome-3.8 classic
+
+# Mark Wright <gienah@gentoo.org> (26 Oct 2013)
+# template-haskell not yet available
+dev-haskell/dataenc test
+
+# Pacho Ramos <pacho@gentoo.org> (20 Jul 2013)
+# Keywords pending, bug #476710
+>=gnome-base/gnome-extra-apps-3.8 games
+
+# William Hubbs <williamh@gentoo.org> (22 Jun 2013)
+# dev-python/cython is not keyworded for alpha
+>=app-accessibility/brltty-4.5 python
+
+# Gilles Dartiguelongue <eva@gentoo.org> (1 Apr 2013)
+# missing keyword on media-libs/tremor, bug #453200
+media-libs/gst-plugins-base ivorbis
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Jan 2013)
+# remove mask when net-libs/libqmi is keyworded here
+net-misc/modemmanager qmi qmi-newest
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord argyllcms extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Raúl Porcel <armin76@gentoo.org> (30 Dec 2012)
+# Needs testing
+media-libs/phonon gstreamer vlc
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when dev-java/fop is keyworded here
+gnome-extra/libgda reports
+
+# Luca Barbato <lu_zero@gentoo.org> (11 Nov 2012)
+# Libav 9 can use fdk-aac
+>=media-video/libav-9_beta2 fdk
+
+# Robin H Johnson <robbat2@gentoo.org> (01 Nov 2012)
+# MySQL 5.5 wants systemtap, tcmalloc & jemalloc
+>=dev-db/mysql-5.5 tcmalloc
+>=dev-db/mariadb-5.5 tcmalloc
+>=dev-db/percona-server-5.5 tcmalloc
+
+# Raúl Porcel <armin76@gentoo.org> (25 Jun 2012)
+# dev-qt/qtwebkit doesn't seem to work
+dev-python/PyQt4 webkit
+dev-qt/assistant webkit
+dev-qt/designer webkit
+dev-qt/qtdeclarative webkit
+net-irc/kvirc webkit
+
+# Raúl Porcel <armin76@gentoo.org> (28 May 2012)
+# Needs x11-misc/lightdm(which also requires some other deps)
+x11-misc/xscreensaver new-login
+
+# Alexey Shvetsov <alexxy@gentoo.org> (17 Dec 2011)
+# mask use numa for openmpi
+sys-cluster/openmpi openmpi_fabrics_psm openmpi_fabrics_knem openmpi_fabrics_open-mx openmpi_fabrics_ofed openmpi_fabrics_dapl 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
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Nov 2011)
+# libpcre jit is not supported on alpha
+dev-libs/libpcre jit
+
+# Raúl Porcel <armin76@gentoo.org> (08 Oct 2011)
+# Needs media-sound/lilypond
+app-text/asciidoc test
+
+# Patrick McLean <chutzpah@gentoo.org> (07 Sep 2011)
+# missing keywords on dependencies
+media-video/x264-encoder ffmpegsource
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools (bug #381737)
+dev-libs/libmemcached tcmalloc
+
+# Alexey Shvetsov <alexxy@gentoo.org> (31 Aug 2011)
+# Mask numa use flag per bug #381313
+sys-apps/hwloc numa
+# This mask also implies masking the numa flag on openmpi
+sys-cluster/openmpi numa
+
+# Pacho Ramos <pacho@gentoo.org> (30 Jun 2011)
+# Needed plugins are not keyworded on this arch
+media-plugins/gst-plugins-meta dts libvisual
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (17 Dec 2010)
+# needs sys-libs/libcap-ng that is masked right now
+sys-apps/smartmontools caps
+
+# Raúl Porcel <armin76@gentoo.org> (5 Dec 2010)
+# Mask doc-pdf because of Java dependencies (bug #347259)
+net-analyzer/wireshark doc-pdf
+# legacy mask
+www-client/elinks javascript
+
+# Justin Lecher <jlec@gentoo.org> (13 Aug 2010)
+# MKL not available on this arch,
+media-gfx/povray mkl
+
+# Raúl Porcel <armin76@gentoo.org> (26 Jun 2010)
+# custom-optimization doesn't work on alpha
+mail-client/thunderbird custom-optimization
+www-client/firefox custom-optimization
+www-client/seamonkey custom-optimization
+
+# Kacper Kowalik <xarthisius@gentoo.org> (30 May 2010)
+# quesoglc is not keyworded
+x11-misc/rss-glx quesoglc
+
+# Ben de Groot <yngwin@gentoo.org> (16 Jan 2010)
+# qtmultimedia is not keyworded, bug 293671
+dev-python/PyQt4 multimedia
+
+# Raúl Porcel <armin76@gentoo.org> (07 Jul 2008)
+# Make clisp deps minimal
+dev-lisp/clisp hyperspec pari svm
+
+# Tobias Klausmann <klausman@gentoo.org> (15 Jun 2008)
+# No hardware to test net-dialup/linux-atm on alpha, so mask atm use flag
+# on those.
+sys-apps/iproute2 atm
+net-dialup/ppp atm
+
+# Needs nut and qstat respectively, neither is keyworded on alpha.
+net-analyzer/nagios-plugins nagios-game
+
+# Matt Turner <mattst88@gentoo.org> (26 Dec 2010)
+# No idea why. Bug 347827
+www-client/elinks javascript
diff --git a/profiles/arch/alpha/package.use.stable.mask b/profiles/arch/alpha/package.use.stable.mask
new file mode 100644
index 000000000000..c261c8874218
--- /dev/null
+++ b/profiles/arch/alpha/package.use.stable.mask
@@ -0,0 +1,40 @@
+# 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 ---
+
+# Tobias Klausmann <klausman@gentoo.org> (17 Sep 2015)
+# Move this mask here (from package.use.mask) until net-fs/libnfs goes stable.
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# net-fs/libnfs lacks alpha keyword, bug #551576
+gnome-base/gvfs nfs
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+dev-util/geany-plugins gtkspell
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+media-plugins/gst-plugins-meta modplug
+>=x11-libs/gtk+-3.12.2 cloudprint
+>=net-libs/webkit-gtk-2.4 geoloc
+x11-libs/gksu gnome
+
+# sufficiently recent wayland is not stable yet, bug #559062
+~dev-libs/efl-1.15.2 wayland
+~dev-libs/efl-1.17.0 wayland
+~media-libs/elementary-1.15.2 wayland
+~media-libs/elementary-1.17.0 wayland
diff --git a/profiles/arch/alpha/parent b/profiles/arch/alpha/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/alpha/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/alpha/use.force b/profiles/arch/alpha/use.force
new file mode 100644
index 000000000000..c99355e95b9e
--- /dev/null
+++ b/profiles/arch/alpha/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+alpha
diff --git a/profiles/arch/alpha/use.mask b/profiles/arch/alpha/use.mask
new file mode 100644
index 000000000000..d488fe8a09f4
--- /dev/null
+++ b/profiles/arch/alpha/use.mask
@@ -0,0 +1,213 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Tobias Klausmann <klausman@gentoo.org> (03 March 2017)
+# There is no luajit support on alpha. Bugs #554376, #608322.
+luajit
+luajittex
+
+# Andreas Sturmlechner <asturm@gentoo.org> (25 Feb 2017)
+# kwallet integration split from kde to distinct flag
+kwallet
+
+# Tobias Klausmann <klausman@gentoo.org> (07 Jun 2016)
+# We currently do not have the resources to AT qt5 packages.
+# This may change when/if qt4 goes away.
+qt5
+
+# Tobias Klausmann <klausman@gentoo.org> (05 Feb 2016)
+# Newer versions of libgadu depend on protobuf-c, which doesn't
+# compile on alpha as of slot:0.
+gadu
+
+# Julian Ospald <hasufell@gentoo.org> (20 Sep 2015)
+# no LibreSSL support yet
+curl_ssl_libressl
+libressl
+
+# Unmask the flag which corresponds to ARCH.
+-alpha
+
+# 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.
+
+# No hardware to test by the team
+3dfx
+apcupsd
+bluetooth
+bluray
+chipcard
+dvb
+gps
+hbci
+ios
+ipod
+mtp
+lirc
+openct
+pcmcia
+pda
+sms
+upnp
+wifi
+
+# Hardware not available on alpha
+apm
+battery
+dmi
+pm-utils
+
+# Stuff that doesn't work on alpha, or not tested
+clang
+djbfft
+emboss
+hardened
+mecab
+netbeans
+timidity
+valgrind
+vaapi
+librtmp
+rtmp
+vpx
+kde
+quvi
+metalink
+tremor
+fdk
+
+# Stuff that doesn't compile on alpha
+emf
+mono
+ocamlopt
+openexr
+
+# Stuff we don't want
+afs
+schroedinger
+ots
+frei0r
+libev
+prelude
+libtar
+aacplus
+devil
+gts
+
+# Other
+
+# Raúl Porcel <armin76@gentoo.org> (23 Apr 2011)
+# Needs to be tested
+video_cards_nouveau
+
+# Ben de Groot <yngwin@gentoo.org> (11 Feb 2009)
+# Both dev-qt/qtphonon and media-sound/phonon are unkeyworded
+phonon
+
+# 14 May 2007 Raúl Porcel <armin76@gentoo.org>
+# Alpha doesn't have wpa_supplicant keyworded, bug 175714
+networkmanager
+
+
+# alpha doesn't have java support
+java
+pdfannotextractor
+
+# Mask vpopmail until net-mail/vpopmail goes out of package.mask
+vpopmail
+
+# We don't have any virtual/mpi (bug 111807)
+mpi
+
+# masks required for asterisk
+zaptel
+
+# Modular X: mask non-alpha cards
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_chips
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_neomagic
+video_cards_newport
+video_cards_nsc
+video_cards_siliconmotion
+video_cards_sis
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+# llvm is not keyworded
+video_cards_amdgpu
+video_cards_radeonsi
+
+# disable until tested
+# # bug 148402
+pcsc-lite
+
+# conky dependencies missing keywords related (dragonheart -20061112)
+# media-sound/mpd
+mpd
+
+# USE=d seems to break gcc-4.1.2 (#178896)
+d
+
+# uses gnat/ada which is too big to support currently
+topal
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# We don't have sys-devel/llvm
+llvm
+
+# Matt Turner <mattst88@gentoo.org (27 May 2012)
+# net-misc/connman is not keyworded
+connman
+
+# Matt Turner <mattst88@gentoo.org (27 May 2012)
+# sys-apps/entropy is not keyworded
+entropy
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# media-libs/xine-lib is not keyworded
+xine
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+-zeitgeist
+template_haskell
+
+# nvidia cg toolkit for binary drivers
+cg
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets ported & keyworded.
+unwind
+
+# Pacho Ramos <pacho@gentoo.org> (08 Jan 2014)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# Tobias Klausmann <klausman@gentoo.org> (20 Jul 2014)
+# Mask redis USE flag everywhere since redis depends on google-perftools,
+# which are not supported on Alpha at all (assembly).
+redis
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
diff --git a/profiles/arch/alpha/use.stable.mask b/profiles/arch/alpha/use.stable.mask
new file mode 100644
index 000000000000..9a7a23bf7abb
--- /dev/null
+++ b/profiles/arch/alpha/use.stable.mask
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 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
+
+# Tobias Klausmann <klausman@gentoo.org> (17 Mar 2016)
+# Webkit itself is enormous (~13h compile+test on our fastest dev machine), so
+# it will remain not-stable forever. Mask the USE flag accordingly.
+webkit
+
+# Pacho Ramos <pacho@gentoo.org> (17 Apr 2014)
+# Dropped stable keywords after the discussion caused by
+# Gnome 3.8/3.10 stabilization on this arch
+colord
+devhelp
+dia
+eds
+gnumeric
+gusb
+upnp
+upnp-av
+
+# Pacho Ramos <pacho@gentoo.org> (13 Apr 2014)
+# Not going to be stabilized on this arch
+gnome-online-accounts
diff --git a/profiles/arch/amd64-fbsd/clang/eapi b/profiles/arch/amd64-fbsd/clang/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64-fbsd/clang/make.defaults b/profiles/arch/amd64-fbsd/clang/make.defaults
new file mode 100644
index 000000000000..746ac289456c
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/amd64-fbsd/clang/package.use.force b/profiles/arch/amd64-fbsd/clang/package.use.force
new file mode 100644
index 000000000000..73d655ca3cd2
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/package.use.force
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force building libc++ over libcxxrt.
+sys-libs/libcxx libcxxrt
+
+# Force static libs and multilib on the C++ stack.
+sys-libs/libcxxrt static-libs abi_x86_32
+sys-libs/libcxx static-libs abi_x86_32
+
+# Force openssl on curl since cmakes needs it and is in @system because of
+# libcxx on this profile. Mask the other ssl providers.
+net-misc/curl ssl curl_ssl_openssl
+
+# We obviously need clang
+sys-devel/llvm clang static-analyzer default-compiler-rt default-libcxx
diff --git a/profiles/arch/amd64-fbsd/clang/package.use.mask b/profiles/arch/amd64-fbsd/clang/package.use.mask
new file mode 100644
index 000000000000..4a85bb76735d
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/package.use.mask
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Disable libcxxabi since it collides with forced libcxxrt
+# Build libcxxrt over libgcc_s since that is what clang defaults to.
+sys-libs/libcxx libcxxabi libunwind
+sys-libs/libcxxrt libunwind
+
+# Needs to be fixed: cxx useflag enables plugins and gold.
+# gold fails to build with clang:
+# https://bugs.gentoo.org/show_bug.cgi?id=427344
+# http://llvm.org/bugs/show_bug.cgi?id=12299
+sys-devel/binutils cxx
+
+# Force openssl on curl since cmakes needs it and is in @system because of
+# libcxx on this profile. Mask the other ssl providers.
+net-misc/curl curl_ssl_axtls curl_ssl_gnutls curl_ssl_nss
+
+# Needs to be fixed: build fails with clang++
+# https://bugs.gentoo.org/show_bug.cgi?id=578506
+sys-libs/db cxx
diff --git a/profiles/arch/amd64-fbsd/clang/packages b/profiles/arch/amd64-fbsd/clang/packages
new file mode 100644
index 000000000000..f60852f668d1
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/packages
@@ -0,0 +1,9 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Don't remove gcc from here: clang uses it for crt{begin,end}*.o and its c++
+# stack.
+
+*sys-devel/llvm
+*sys-devel/clang
+*sys-libs/libcxx
diff --git a/profiles/arch/amd64-fbsd/clang/packages.build b/profiles/arch/amd64-fbsd/clang/packages.build
new file mode 100644
index 000000000000..0cf609150f0c
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/packages.build
@@ -0,0 +1,9 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+# This file describes the packages needed to build a stage 1 based on this
+# profile. Packages in this file are built in order.
+
+sys-devel/llvm
+sys-devel/clang
+sys-libs/libcxx
diff --git a/profiles/arch/amd64-fbsd/clang/parent b/profiles/arch/amd64-fbsd/clang/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/amd64-fbsd/clang/profile.bashrc b/profiles/arch/amd64-fbsd/clang/profile.bashrc
new file mode 100644
index 000000000000..496d41b3853d
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/clang/profile.bashrc
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+
+# Check if clang/clang++ exist before setting them so that we can more easily
+# switch to this profile and build stages.
+# Some packages will require BUILD_{CC,CXX} variables, bug 595878.
+type -P clang > /dev/null && export CC=clang && export BUILD_CC=clang
+type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ && export BUILD_CXX=clang++
diff --git a/profiles/arch/amd64-fbsd/eapi b/profiles/arch/amd64-fbsd/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64-fbsd/make.defaults b/profiles/arch/amd64-fbsd/make.defaults
new file mode 100644
index 000000000000..6d49239ef0e1
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/make.defaults
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# System-wide defaults for the G/FBSD Portage system
+
+ARCH="amd64-fbsd"
+ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
+
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+MULTILIB_ABIS="amd64_fbsd x86_fbsd"
+DEFAULT_ABI="amd64_fbsd"
+# Do not remove this one, or all kinds of hell breaks loose.
+ABI="amd64_fbsd"
+
+# 32bit specific settings.
+CFLAGS_x86_fbsd="-m32"
+LDFLAGS_x86_fbsd="-m elf_i386_fbsd -L/usr/lib32"
+
+CPU_FLAGS_X86="mmx mmxext sse sse2"
+
+VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 intel mach64 mga \
+ nv r128 radeon rendition s3 s3virge savage siliconmotion sis \
+ sisusb tga trident tseng via vmware"
+
+# Vanilla FreeBSD has: lib for native 64 bits libs, lib32 for 32-bits emulation.
+# Let's do this too as this also happens to be more standard among other linux
+# distros.
+# Adjust multilib dirs for multilib-strict.
+LIBDIR_amd64_fbsd="lib"
+LIBDIR_x86_fbsd="lib32"
+MULTILIB_STRICT_DIRS="/lib32 /usr/lib32 /usr/kde/*/lib32 /usr/qt/*/lib32 /usr/X11R6/lib32"
+SYMLINK_LIB="no"
+
+# Unhide the x86-specific USE_EXPANDs.
+USE_EXPAND_HIDDEN="-ABI_X86 -CPU_FLAGS_X86"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Default to abi_x86_64 for packages that don't have it forced.
+ABI_X86="64"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 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-fbsd/package.use.force b/profiles/arch/amd64-fbsd/package.use.force
new file mode 100644
index 000000000000..b3a9e1d3fe1b
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/package.use.force
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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
+
+# Multilib flag for the system is forced
+sys-freebsd/freebsd-lib abi_x86_32
+sys-freebsd/freebsd-ubin abi_x86_32
+sys-freebsd/freebsd-libexec abi_x86_32
diff --git a/profiles/arch/amd64-fbsd/package.use.mask b/profiles/arch/amd64-fbsd/package.use.mask
new file mode 100644
index 000000000000..d9129a05a3b9
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/package.use.mask
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
+# nvidia drivers are unmasked here
+media-video/ffmpeg -nvenc
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Johannes Huber <johu@gentoo.org> (28 Jan 2015)
+# Missing keyword on dev-libs/botan and dev-libs/pkcs11-helper
+app-crypt/qca botan pkcs11
+
+# Michael Palimaka <kensington@gentoo.org> (26 Dec 2014)
+# Unkeyworded media-libs/opencv
+media-plugins/frei0r-plugins facedetect
+media-video/vlc opencv
+
+# Patrick Lauer <patrick@gentoo.org> (17 Nov 2014)
+# Lars Wendler <polynomial-c@gentoo.org> (23 Jan 2015)
+# Missing keywords
+dev-libs/openssl sctp
+net-misc/openssh sctp
+
+# Pacho Ramos <pacho@gentoo.org> (01 Jun 2014)
+# Missing keywords
+>=app-misc/geoclue-2.1 modemmanager
+>=x11-libs/gtk+-3.12 cloudprint
+>=app-crypt/libsecret-0.16 test
+media-plugins/gst-plugins-meta modplug vaapi
+
+# Lars Wendler <polynomial-c@gentoo.org> (09 May 2014)
+# Masked kde USE flag until bug #509892 is fixed
+dev-vcs/subversion kde
+
+# Pacho Ramos <pacho@gentoo.org> (02 Dec 2013)
+# Missing keywords, bug #493156
+media-libs/libgphoto2 serial
+
+# nvidia-driver uses acpid
+x11-drivers/nvidia-drivers acpi
+
+# Needs emul libs and the package isnt multilib at all for FreeBSD x86_64
+x11-drivers/nvidia-drivers multilib
+
+# requires nvidia-cg-toolkit which is not available on bsd
+# see http://developer.nvidia.com/cg-toolkit-download
+media-libs/libprojectm video_cards_nvidia
+
+# x11-drivers/xf86-video-vmware works fine without KMS- and 3D support.
+# Other packages will not work. keep video_cards_vmware in use.mask.
+x11-base/xorg-drivers -video_cards_vmware
diff --git a/profiles/arch/amd64-fbsd/parent b/profiles/arch/amd64-fbsd/parent
new file mode 100644
index 000000000000..014611b2535c
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/parent
@@ -0,0 +1,3 @@
+../base
+../../features/multilib
+todo
diff --git a/profiles/arch/amd64-fbsd/todo/eapi b/profiles/arch/amd64-fbsd/todo/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/todo/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64-fbsd/todo/package.use.force b/profiles/arch/amd64-fbsd/todo/package.use.force
new file mode 100644
index 000000000000..b7e1ec208cae
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/todo/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+sys-libs/libcxx libcxxrt
+
+# bug 562412
+www-client/firefox pulseaudio
diff --git a/profiles/arch/amd64-fbsd/todo/package.use.mask b/profiles/arch/amd64-fbsd/todo/package.use.mask
new file mode 100644
index 000000000000..f6e131ae0646
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/todo/package.use.mask
@@ -0,0 +1,199 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mask useflags that require deps with missing keywords.
+# Anyone is allowed and _very welcome_ to add masks there.
+# We will pick them up and keyword as time permits and prefer having a sane
+# deptree with missing features than a broken one.
+# Do *NOT* add a ChangeLog entry when modifying this file: it is intended as
+# temporary and cvs log is more than enough for getting its history.
+#
+# Syntax is: # mising dep(s)
+# mask
+# Keep it simple, we do not really care about the date or who masked it, we want
+# to be easily able to determine what we need to keyword.
+
+# net-libs/gnome-online-accounts
+gnome-base/gvfs gnome-online-accounts
+
+# media-libs/gavl (missing clock_nanosleep on fbsd)
+media-plugins/frei0r-plugins scale0tilt
+
+# net-fs/openafs
+app-crypt/heimdal afs
+
+# app-accessibility/flite (fails at install)
+media-video/ffmpeg flite
+
+# dev-vcs/darcs
+app-portage/layman darcs
+
+# dev-python/mysql-python
+dev-vcs/mercurial bugzilla
+
+# net-libs/axtls
+net-misc/curl curl_ssl_axtls
+
+# media-libs/libmetalink -> undefined references on TEMP_FAILURE_RETRY (macro
+# provided by glibc)
+net-misc/curl metalink
+
+# sys-process/numactl
+sys-apps/hwloc numa
+
+# dev-lang/mono
+net-dns/libidn mono
+media-libs/libcaca mono
+
+# dev-lang/mono
+# >=dev-dotnet/gtk-sharp-2
+net-dns/avahi mono
+
+# net-misc/netkit-rsh
+x11-apps/xsm rsh
+
+# net-libs/libtirpc
+sys-apps/xinetd rpc
+
+# sci-libs/cfitsio
+media-gfx/ufraw fits
+
+# >=media-gfx/gimp-2
+media-gfx/ufraw gimp
+
+# net-libs/libproxy
+net-libs/neon libproxy
+net-libs/glib-networking libproxy
+
+# dev-libs/pakchois
+net-libs/neon pkcs11
+
+# app-text/texlive[extra]
+app-doc/doxygen latex
+
+# x11-misc/colord
+x11-libs/gtk+ colord
+
+# sys-auth/polkit
+sys-auth/consolekit policykit
+gnome-base/gconf policykit
+
+# media-sound/pulseaudio
+media-libs/libsdl pulseaudio
+media-libs/openal pulseaudio
+media-video/ffmpeg pulseaudio
+media-libs/libcanberra pulseaudio
+media-libs/phonon pulseaudio
+media-video/vlc pulseaudio
+media-sound/mpg123 pulseaudio
+media-video/mplayer pulseaudio
+media-libs/xine-lib pulseaudio
+
+# >=media-plugins/gst-plugins-pulse-0.10
+media-plugins/gst-plugins-meta pulseaudio
+
+# >=app-pda/libimobiledevice-1.1.0
+gnome-base/gvfs ios
+
+# >=sys-fs/fuse-2.8.0
+gnome-base/gvfs fuse
+
+# >=x11-libs/libva-0.32
+media-video/ffmpeg vaapi
+virtual/ffmpeg vaapi
+media-video/vlc vaapi
+media-libs/xine-lib vaapi
+
+# media-libs/nas
+media-libs/libsdl nas
+dev-qt/qtgui nas
+app-editors/xemacs nas
+media-sound/mpg123 nas
+media-video/mplayer nas
+
+# net-misc/openntpd
+net-misc/ntp openntpd
+
+# fails to build, need to investigate why
+net-libs/webkit-gtk introspection
+
+# virtual/mysql
+sci-mathematics/glpk mysql
+dev-libs/apr-util mysql
+dev-qt/qtsql mysql
+dev-libs/redland mysql
+dev-libs/cyrus-sasl mysql
+dev-lang/php mysql mysqli
+net-libs/courier-authlib mysql
+
+# does not build
+media-libs/mesa video_cards_vmware
+
+# media-libs/libepoxy
+x11-base/xorg-server glamor wayland
+x11-drivers/xf86-video-ati glamor
+
+# x11-drivers/xf86-video-sis
+x11-base/xorg-drivers video_cards_sis
+
+# x11-drivers/xf86-video-tdfx
+x11-base/xorg-drivers video_cards_tdfx
+
+# >=sys-auth/polkit-qt-0.103.0
+# >=kde-misc/polkit-kde-kcmodules-0.98_pre20101127
+# >=sys-auth/polkit-kde-agent-0.99
+kde-frameworks/kdelibs policykit
+
+# <=sci-geosciences/gpsd-2.95-r1
+app-misc/geoclue gps
+
+# >=sys-devel/binutils-2.22
+sys-devel/llvm gold
+
+# media-libs/liboggz
+media-libs/libkate wxwidgets
+
+# media-sound/fluidsynth
+media-video/vlc fluidsynth
+
+# sys-cluster/knem
+sys-cluster/openmpi openmpi_fabrics_knem
+
+# sys-fabric/dapl
+sys-cluster/openmpi openmpi_fabrics_dapl
+
+# sys-fabric/ofed
+sys-cluster/openmpi openmpi_fabrics_ofed openmpi_ofed_features_control-hdr-padding openmpi_ofed_features_connectx-xrc openmpi_ofed_features_udcm openmpi_ofed_features_dynamic-sl openmpi_ofed_features_failover
+
+# sys-fabric/infinipath-psm
+sys-cluster/openmpi openmpi_fabrics_psm
+
+# sys-fabric/librdmacm
+sys-cluster/openmpi openmpi_ofed_features_rdmacm
+
+# sys-cluster/open-mx
+sys-cluster/openmpi openmpi_fabrics_open-mx
+
+# sys-cluster/slurm
+sys-cluster/openmpi openmpi_rm_slurm
+
+# x11-libs/dnd
+app-editors/xemacs dnd
+
+# app-i18n/canna
+app-editors/xemacs canna
+
+# app-i18n/freewnn
+app-editors/xemacs freewnn
+
+# media-libs/devil[png,jpeg]
+media-gfx/graphviz devil
+
+# sys-apps/util-linux (libuuid)
+net-misc/wget uuid
+
+# net-misc/freerdp (doesnt build)
+media-video/vlc rdp
+
+# net-wireless/bluez
+media-sound/pulseaudio bluetooth native-headset ofono-headset
diff --git a/profiles/arch/amd64-fbsd/use.force b/profiles/arch/amd64-fbsd/use.force
new file mode 100644
index 000000000000..9dc35a08b0f3
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/use.force
@@ -0,0 +1,5 @@
+# Force the flag which corresponds to ARCH.
+amd64-fbsd
+
+# Multilib flag for default ABI
+abi_x86_64
diff --git a/profiles/arch/amd64-fbsd/use.mask b/profiles/arch/amd64-fbsd/use.mask
new file mode 100644
index 000000000000..28ca0b6472a4
--- /dev/null
+++ b/profiles/arch/amd64-fbsd/use.mask
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Unmask the flag which corresponds to ARCH.
+-amd64-fbsd
+
+-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
+
+# nvidia drivers works on x86
+-xvmc
+-nvidia
+-video_cards_nvidia
+
+# Unmask vmware drivers
+#-video_cards_vmware
+-input_devices_vmmouse
+
+# James Le Cuirot <chewi@gentoo.org> (19 May 2015)
+# icedtea needs testing and gcj isn't supported
+java
+
+# Other
+
+# 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
+
+# Multilib ABIs
+-abi_x86_32
+-abi_x86_64
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Hans de Graaff <graaff@gentoo.org> (27 Dec 2014)
+# dev-libs/jemalloc is not keyworded
+jemalloc
diff --git a/profiles/arch/amd64/eapi b/profiles/arch/amd64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /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 000000000000..a9d2cc0549dc
--- /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/no-multilib/eapi b/profiles/arch/amd64/no-multilib/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64/no-multilib/make.defaults b/profiles/arch/amd64/no-multilib/make.defaults
new file mode 100644
index 000000000000..4dd6d3efdd52
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="amd64"
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Hide the ABI_X86 USE_EXPAND back for non-multilib profile.
+USE_EXPAND_HIDDEN="ABI_X86"
diff --git a/profiles/arch/amd64/no-multilib/package.mask b/profiles/arch/amd64/no-multilib/package.mask
new file mode 100644
index 000000000000..2eedb72cc020
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/package.mask
@@ -0,0 +1,170 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (13 Aug 2016)
+# Steam requires amd64 multilib. These are steam-overlay packages.
+dev-util/adobe-air-runtime
+games-util/steam-client-meta
+games-util/steam-games-meta
+games-util/steam-launcher
+games-util/steam-meta
+
+# Andreas K. Huettel <dilfridge@gentoo.org>
+# Novell Groupwise Client sadly needs a 32bit java vm (bundled)
+mail-client/novell-groupwise-client
+
+# AMD64 Team <amd64@gentoo.org>
+# Mask packages that rely on amd64 multilib
+=app-editors/emacs-18*
+>=app-i18n/atokx3-3.0.0
+<games-roguelike/dwarf-fortress-0.43.0
+app-accessibility/mbrola
+app-accessibility/perlbox-voice
+app-arch/stuffit
+app-benchmarks/cpuburn
+app-emulation/crossover-bin
+app-emulation/playonlinux
+app-emulation/q4wine
+app-emulation/winetricks
+app-office/ooextras
+app-text/acroread
+dev-embedded/libftd2xx
+dev-embedded/openocd
+dev-lang/icc
+dev-lang/idb
+dev-lang/ifc
+dev-perl/Archive-Rar
+dev-python/skype4py
+dev-util/android-ndk
+dev-util/android-sdk-update-manager
+dev-util/android-studio
+dev-util/biew
+games-action/beathazardultra
+games-action/brutal-legend
+games-action/cs2d
+games-action/descent3
+games-action/descent3-demo
+games-action/heretic2
+games-action/heretic2-demo
+games-action/hotline-miami
+games-action/intrusion2
+games-action/lugaru
+games-action/mutantstorm-demo
+games-action/phobiaii
+games-action/rune
+games-action/shadowgrounds-bin
+games-action/shadowgrounds-survivor-bin
+games-action/solar2
+games-action/spacetripper-demo
+games-action/swordandsworcery
+games-action/trine2
+games-arcade/aquaria
+games-arcade/barbarian-bin
+games-arcade/dynamitejack
+games-arcade/gish-demo
+games-arcade/jardinains
+games-arcade/thinktanks-demo
+games-emulation/caps
+games-emulation/nestra
+games-emulation/pcsx2
+games-emulation/zinc
+games-emulation/zsnes
+games-fps/avp
+games-fps/doom3
+games-fps/doom3-cdoom
+games-fps/doom3-chextrek
+games-fps/doom3-data
+games-fps/doom3-demo
+games-fps/doom3-ducttape
+games-fps/doom3-eventhorizon
+games-fps/doom3-hellcampaign
+games-fps/doom3-inhell
+games-fps/doom3-lms
+games-fps/doom3-mitm
+games-fps/doom3-roe
+games-fps/enemy-territory
+games-fps/enemy-territory-etpro
+games-fps/enemy-territory-omnibot
+games-fps/enemy-territory-truecombat
+games-fps/etqw-bin
+games-fps/etqw-data
+games-fps/etqw-demo
+games-fps/glxquake-bin
+games-fps/legends
+games-fps/postal2
+games-fps/postal2mp-demo
+games-fps/quake3-bin
+games-fps/quake3-demo
+games-fps/quake3-ra3
+games-fps/quake4-bin
+games-fps/quake4-data
+games-fps/quake4-demo
+games-fps/rtcw
+games-fps/rtcwmp-demo
+games-fps/rtcwsp-demo
+games-fps/sauerbraten
+games-fps/serious-sam-tfe
+games-fps/serious-sam-tse
+games-fps/soldieroffortune
+games-fps/soldieroffortune-demo
+games-fps/unreal-tournament
+games-fps/ut2003
+games-fps/ut2003-demo
+games-fps/ut2004-demo
+games-kids/crayon-physics
+games-misc/little-inferno
+games-misc/papers-please
+games-puzzle/hoh-bin
+games-roguelike/adom
+games-rpg/baldurs-gate-ee
+games-rpg/dear-esther
+games-rpg/dungeon-defenders
+games-rpg/eschalon-book-1-demo
+games-rpg/nwmouse
+games-rpg/nwmovies
+games-rpg/nwn
+games-rpg/nwn-cep
+games-rpg/nwn-data
+games-rpg/nwn-penultima
+games-rpg/nwn-penultimarerolled
+games-rpg/nwn-shadowlordsdreamcatcherdemon
+games-rpg/penumbra-collection
+games-rpg/wasteland2
+games-server/etqw-ded
+games-server/nwn-ded
+games-server/ut2003-ded
+games-simulation/bcs-demo
+games-strategy/darwinia
+games-strategy/darwinia-demo
+games-strategy/defcon-demo
+games-strategy/dominions2
+games-strategy/heroes3
+games-strategy/heroes3-demo
+games-strategy/majesty-demo
+games-strategy/smac
+games-strategy/spaz
+media-fonts/acroread-asianfonts
+media-sound/aucdtect
+media-sound/skype-call-recorder
+media-sound/ventrilo-server-bin
+media-video/binkplayer
+media-video/tsmuxer
+net-im/skype
+net-im/skypetab-ng
+net-misc/icaclient
+net-misc/ps3mediaserver
+net-print/cndrvcups-common-lb
+net-print/cndrvcups-lb
+sci-biology/foldingathome
+sci-chemistry/cara-bin
+sci-chemistry/cyana
+sci-chemistry/mars
+sci-electronics/eagle
+sci-libs/ipp
+sys-libs/lib-compat-loki
+www-plugins/nspluginwrapper
+
+
+# AMD64 Team; <amd64@gentoo.org>
+# grub-1 is not available on no-multilib-profiles
+<sys-boot/grub-1.99
diff --git a/profiles/arch/amd64/no-multilib/package.use.force b/profiles/arch/amd64/no-multilib/package.use.force
new file mode 100644
index 000000000000..0f2c76d1c72f
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Apr 2017)
+# Undo multilib forcing.
+sys-apps/sandbox -abi_x86_32
diff --git a/profiles/arch/amd64/no-multilib/package.use.mask b/profiles/arch/amd64/no-multilib/package.use.mask
new file mode 100644
index 000000000000..cbe2dc890477
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/package.use.mask
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Yixun Lan <dlan@gentoo.org> (12 Jul 2017)
+# GLEP 73 Immutability, USE=ovmf requires hvm
+app-emulation/xen-tools ovmf
+
+# NP-Hardass <NP-Hardass@gentoo.org> (11 Jul 2017)
+# GLEP 73 Immutability, USE=test requires
+# abi_x86_32 at this time.
+app-emulation/wine test
+app-emulation/wine-vanilla test
+app-emulation/wine-staging test
+app-emulation/wine-d3d9 test
+app-emulation/wine-any test
+
+# Mike Frysinger <vapier@gentoo.org> (12 Aug 2016)
+# Requires sys-boot/grub:0 which is masked here.
+sys-apps/memtest86+ floppy
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (24 Jun 2012)
+# Disable 32-bit parts of wine, bug #351436
+app-emulation/wine mono
+
+# Intel Integrated Primitive (sci-libs/ipp) support
+media-libs/opencv ipp
+
+# Tomas Chvatal <scarabeus@gentoo.org> (13 Nov 2014)
+# The apulse is 32b used there only
+net-im/skype apulse
+
+# Tim Harder <radhermit@gentoo.org> (17 Jan 2016)
+# Skype requires multilib support
+net-im/bitlbee skype
+
+# Alexis Ballier <aballier@gentoo.org> (13 Aug 2009)
+# Requires wine
+media-sound/lmms vst
diff --git a/profiles/arch/amd64/no-multilib/use.mask b/profiles/arch/amd64/no-multilib/use.mask
new file mode 100644
index 000000000000..9a86a0600bfd
--- /dev/null
+++ b/profiles/arch/amd64/no-multilib/use.mask
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# USE flags masked because providing packages have ABI=x86
+
+# 2007/08/29 Christoph Mende <angelos@gentoo.org>
+# app-accessibility/mbrola is x86 only
+mbrola
+
+# 2007/08/24 Michael Marineau <marineam@gentoo.org>
+# Xen HVM support requires building 32-bit binaries.
+hvm
+
+# 2008/02/13 - Chris Gianelloni <wolf31o2@gentoo.org>
+# Mask multilib, since we cannot use it.
+multilib
+
+# 2009/05/11 Doug Goldstein <cardoe@gentoo.org>
+# Mask 32bit since this will always require emulation packages
+32bit
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Mask the multilib flags back for non-multilib profile.
+abi_x86_32
diff --git a/profiles/arch/amd64/package.use b/profiles/arch/amd64/package.use
new file mode 100644
index 000000000000..b7ee1f9b504f
--- /dev/null
+++ b/profiles/arch/amd64/package.use
@@ -0,0 +1,25 @@
+# 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/ati-drivers abi_x86_32
+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 000000000000..59d26523476e
--- /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 000000000000..121b4078df62
--- /dev/null
+++ b/profiles/arch/amd64/package.use.mask
@@ -0,0 +1,308 @@
+# 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/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
+
+# Tim Harder <radhermit@gentoo.org> (11 Oct 2014)
+# Unmask skype support for unstable keywords
+net-im/bitlbee -skype
+
+# 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 000000000000..53e4ede00085
--- /dev/null
+++ b/profiles/arch/amd64/package.use.stable.mask
@@ -0,0 +1,75 @@
+# 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
+
+# Tim Harder <radhermit@gentoo.org> (11 Oct 2014)
+# Masked since skype isn't stable
+net-im/bitlbee skype
+
+# 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 000000000000..c5b66f7e9c9c
--- /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 000000000000..53a33330f09a
--- /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 000000000000..098e7778e1cd
--- /dev/null
+++ b/profiles/arch/amd64/use.mask
@@ -0,0 +1,187 @@
+# 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_nvidia
+-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
+video_cards_newport
+video_cards_nsc
+
+# 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 000000000000..2bf7d3769e73
--- /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/amd64/x32/eapi b/profiles/arch/amd64/x32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/amd64/x32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/amd64/x32/make.defaults b/profiles/arch/amd64/x32/make.defaults
new file mode 100644
index 000000000000..16e4a413a4cc
--- /dev/null
+++ b/profiles/arch/amd64/x32/make.defaults
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DEFAULT_ABI="x32"
+ABI="x32"
+MULTILIB_ABIS="amd64 x86 x32"
+
+LIBDIR_x86="lib"
+SYMLINK_LIB="no"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Default to abi_x86_x32 for packages that don't have it forced.
+ABI_X86="x32"
+
+# 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 abi_x86_x32"
diff --git a/profiles/arch/amd64/x32/package.mask b/profiles/arch/amd64/x32/package.mask
new file mode 100644
index 000000000000..21ac3139080e
--- /dev/null
+++ b/profiles/arch/amd64/x32/package.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (07 Oct 2012)
+# V8 upstream said they won't support x32, bug #423815
+# Masked packages containing V8.
+net-libs/nodejs
+www-client/chromium
diff --git a/profiles/arch/amd64/x32/package.use.force b/profiles/arch/amd64/x32/package.use.force
new file mode 100644
index 000000000000..104f780e302b
--- /dev/null
+++ b/profiles/arch/amd64/x32/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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_64
diff --git a/profiles/arch/amd64/x32/package.use.mask b/profiles/arch/amd64/x32/package.use.mask
new file mode 100644
index 000000000000..e34318af7887
--- /dev/null
+++ b/profiles/arch/amd64/x32/package.use.mask
@@ -0,0 +1,14 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires >=portage-2.1.1
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (03 Mar 2013)
+# Wine is x86- and x64-only
+app-emulation/wine abi_x86_x32
+
+# Davide Pesavento <pesa@gentoo.org> (30 Nov 2011)
+# The QML (V4) and JSC JITs do not work on x32.
+dev-qt/qtdeclarative jit
+dev-qt/qtscript jit
+dev-qt/qtwebkit jit
diff --git a/profiles/arch/amd64/x32/parent b/profiles/arch/amd64/x32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/amd64/x32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/amd64/x32/use.force b/profiles/arch/amd64/x32/use.force
new file mode 100644
index 000000000000..88868c58e334
--- /dev/null
+++ b/profiles/arch/amd64/x32/use.force
@@ -0,0 +1,5 @@
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Force the flag corresponding to the default ABI, and unforce generic
+# one.
+abi_x86_x32
+-abi_x86_64
diff --git a/profiles/arch/amd64/x32/use.mask b/profiles/arch/amd64/x32/use.mask
new file mode 100644
index 000000000000..2ed01d2ac7ae
--- /dev/null
+++ b/profiles/arch/amd64/x32/use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Unmask the x32 ABI.
+-abi_x86_x32
diff --git a/profiles/arch/arm/armv4/eapi b/profiles/arch/arm/armv4/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/armv4/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/armv4/make.defaults b/profiles/arch/arm/armv4/make.defaults
new file mode 100644
index 000000000000..7dede6e9e7d3
--- /dev/null
+++ b/profiles/arch/arm/armv4/make.defaults
@@ -0,0 +1,5 @@
+CHOST="armv4l-unknown-linux-gnu"
+CFLAGS="-O2 -pipe -march=armv4"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/arm/armv4/package.mask b/profiles/arch/arm/armv4/package.mask
new file mode 100644
index 000000000000..356f2989cecd
--- /dev/null
+++ b/profiles/arch/arm/armv4/package.mask
@@ -0,0 +1,3 @@
+# Anthony Ryan <anthonyryan1@gmail.com> (21 Jan 2017)
+# This package states supports for arm >= v6
+dev-lang/nim
diff --git a/profiles/arch/arm/armv4/parent b/profiles/arch/arm/armv4/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm/armv4/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm/armv4t/eapi b/profiles/arch/arm/armv4t/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/armv4t/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/armv4t/make.defaults b/profiles/arch/arm/armv4t/make.defaults
new file mode 100644
index 000000000000..c99eb3fbd66f
--- /dev/null
+++ b/profiles/arch/arm/armv4t/make.defaults
@@ -0,0 +1,5 @@
+CHOST="armv4tl-softfloat-linux-gnueabi"
+CFLAGS="-O2 -pipe -march=armv4t"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/arm/armv4t/package.mask b/profiles/arch/arm/armv4t/package.mask
new file mode 100644
index 000000000000..8d61e72a31a7
--- /dev/null
+++ b/profiles/arch/arm/armv4t/package.mask
@@ -0,0 +1,4 @@
+# Anthony Ryan <anthonyryan1@gmail.com> (21 Jan 2017)
+# This package states supports for arm >= v6
+dev-lang/nim
+
diff --git a/profiles/arch/arm/armv4t/parent b/profiles/arch/arm/armv4t/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm/armv4t/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm/armv5te/eapi b/profiles/arch/arm/armv5te/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/armv5te/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/armv5te/make.defaults b/profiles/arch/arm/armv5te/make.defaults
new file mode 100644
index 000000000000..4c5a401c2205
--- /dev/null
+++ b/profiles/arch/arm/armv5te/make.defaults
@@ -0,0 +1,5 @@
+CHOST="armv5tel-softfloat-linux-gnueabi"
+CFLAGS="-O2 -pipe -march=armv5te"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/arm/armv5te/package.mask b/profiles/arch/arm/armv5te/package.mask
new file mode 100644
index 000000000000..8d61e72a31a7
--- /dev/null
+++ b/profiles/arch/arm/armv5te/package.mask
@@ -0,0 +1,4 @@
+# Anthony Ryan <anthonyryan1@gmail.com> (21 Jan 2017)
+# This package states supports for arm >= v6
+dev-lang/nim
+
diff --git a/profiles/arch/arm/armv5te/parent b/profiles/arch/arm/armv5te/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm/armv5te/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm/armv5te/use.force b/profiles/arch/arm/armv5te/use.force
new file mode 100644
index 000000000000..a26ab04a0787
--- /dev/null
+++ b/profiles/arch/arm/armv5te/use.force
@@ -0,0 +1,6 @@
+# Force armv5 specific USE flags
+cpu_flags_arm_v4
+cpu_flags_arm_v5
+
+cpu_flags_arm_edsp
+cpu_flags_arm_thumb
diff --git a/profiles/arch/arm/armv5te/use.mask b/profiles/arch/arm/armv5te/use.mask
new file mode 100644
index 000000000000..ac64860e2fac
--- /dev/null
+++ b/profiles/arch/arm/armv5te/use.mask
@@ -0,0 +1,9 @@
+# Unmask armv5 specific USE flags
+-armv5te
+
+-cpu_flags_arm_v4
+-cpu_flags_arm_v5
+
+-cpu_flags_arm_edsp
+-cpu_flags_arm_thumb
+-cpu_flags_arm_vfp
diff --git a/profiles/arch/arm/armv6j/eapi b/profiles/arch/arm/armv6j/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/armv6j/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/armv6j/make.defaults b/profiles/arch/arm/armv6j/make.defaults
new file mode 100644
index 000000000000..b85e76c8b446
--- /dev/null
+++ b/profiles/arch/arm/armv6j/make.defaults
@@ -0,0 +1,5 @@
+CHOST="armv6j-hardfloat-linux-gnueabi"
+CFLAGS="-O2 -pipe -march=armv6j"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/arm/armv6j/package.mask b/profiles/arch/arm/armv6j/package.mask
new file mode 100644
index 000000000000..c951833b9756
--- /dev/null
+++ b/profiles/arch/arm/armv6j/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (09 Jan 2016)
+# This is built for armv6 so unmask against the wider arm mask.
+-dev-java/oracle-jdk-bin
+-dev-java/oracle-jre-bin
diff --git a/profiles/arch/arm/armv6j/parent b/profiles/arch/arm/armv6j/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm/armv6j/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm/armv6j/use.force b/profiles/arch/arm/armv6j/use.force
new file mode 100644
index 000000000000..e5abb15cbb95
--- /dev/null
+++ b/profiles/arch/arm/armv6j/use.force
@@ -0,0 +1,7 @@
+# Force armv6 specific USE flags
+cpu_flags_arm_v4
+cpu_flags_arm_v5
+cpu_flags_arm_v6
+
+cpu_flags_arm_edsp
+cpu_flags_arm_thumb
diff --git a/profiles/arch/arm/armv6j/use.mask b/profiles/arch/arm/armv6j/use.mask
new file mode 100644
index 000000000000..14b9b73775a9
--- /dev/null
+++ b/profiles/arch/arm/armv6j/use.mask
@@ -0,0 +1,12 @@
+# Unmask armv6 specific USE flags
+-armvfp
+-armv6
+-armv6t2
+
+-cpu_flags_arm_v4
+-cpu_flags_arm_v5
+-cpu_flags_arm_v6
+
+-cpu_flags_arm_edsp
+-cpu_flags_arm_thumb
+-cpu_flags_arm_vfp
diff --git a/profiles/arch/arm/armv7a/eapi b/profiles/arch/arm/armv7a/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/armv7a/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/armv7a/make.defaults b/profiles/arch/arm/armv7a/make.defaults
new file mode 100644
index 000000000000..2ca07ab4130f
--- /dev/null
+++ b/profiles/arch/arm/armv7a/make.defaults
@@ -0,0 +1,5 @@
+CHOST="armv7a-hardfloat-linux-gnueabi"
+CFLAGS="-O2 -pipe -march=armv7-a"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/arm/armv7a/package.mask b/profiles/arch/arm/armv7a/package.mask
new file mode 100644
index 000000000000..f997bb167982
--- /dev/null
+++ b/profiles/arch/arm/armv7a/package.mask
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (05 Aug 2016)
+# The ARM32 JIT code is broken as of 7.2.6.6. Without this, Java 7 is
+# no faster than Java 8. It seems more likely that Java 8 will see a
+# new HotSpot port before this breakage is fixed. Earlier versions
+# have vulnerabilities so please switch to icedtea(-bin):8.
+dev-java/icedtea:7
+dev-java/icedtea-bin:7
+
+# James Le Cuirot <chewi@gentoo.org> (09 Jan 2016)
+# This is built for armv6 so unmask against the wider arm mask.
+-dev-java/oracle-jdk-bin
+-dev-java/oracle-jre-bin
+
+# James Le Cuirot <chewi@gentoo.org> (24 May 2015)
+# This is built for armv7a so unmask against the wider arm mask.
+-dev-java/icedtea-bin
diff --git a/profiles/arch/arm/armv7a/package.use.mask b/profiles/arch/arm/armv7a/package.use.mask
new file mode 100644
index 000000000000..873eb5b5f4ce
--- /dev/null
+++ b/profiles/arch/arm/armv7a/package.use.mask
@@ -0,0 +1,10 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Pacho Ramos <pacho@gentoo.org> (25 Jan 2015)
+# 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). Only in arm7 profile
+# because webkit-gtk only reliable tests webkit-gtk on this and JIT support is likely
+# to break in several ways on every version bump on non-arm7 (#523400)
+net-libs/webkit-gtk -jit
+www-client/midori -jit
diff --git a/profiles/arch/arm/armv7a/parent b/profiles/arch/arm/armv7a/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm/armv7a/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm/armv7a/use.force b/profiles/arch/arm/armv7a/use.force
new file mode 100644
index 000000000000..a2d86cc89d0a
--- /dev/null
+++ b/profiles/arch/arm/armv7a/use.force
@@ -0,0 +1,14 @@
+# armv7 has these instruction sets
+armv5te
+armv6
+armv6t2
+
+cpu_flags_arm_v4
+cpu_flags_arm_v5
+cpu_flags_arm_v6
+cpu_flags_arm_v7
+
+cpu_flags_arm_edsp
+cpu_flags_arm_thumb
+cpu_flags_arm_thumb2
+cpu_flags_arm_vfp
diff --git a/profiles/arch/arm/armv7a/use.mask b/profiles/arch/arm/armv7a/use.mask
new file mode 100644
index 000000000000..943381017df6
--- /dev/null
+++ b/profiles/arch/arm/armv7a/use.mask
@@ -0,0 +1,20 @@
+# Unmask armv7 specific USE flags
+-neon
+-armvfp
+-armv5te
+-armv6
+-armv6t2
+
+-cpu_flags_arm_v4
+-cpu_flags_arm_v5
+-cpu_flags_arm_v6
+-cpu_flags_arm_v7
+
+-cpu_flags_arm_edsp
+-cpu_flags_arm_neon
+-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
diff --git a/profiles/arch/arm/eapi b/profiles/arch/arm/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm/make.defaults b/profiles/arch/arm/make.defaults
new file mode 100644
index 000000000000..c0a917b65d74
--- /dev/null
+++ b/profiles/arch/arm/make.defaults
@@ -0,0 +1,25 @@
+# Main ARM profile
+
+ARCH="arm"
+ACCEPT_KEYWORDS="arm"
+
+CHOST="arm-unknown-linux-gnu"
+CFLAGS="-O2"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+MULTILIB_ABIS="arm"
+DEFAULT_ABI="arm"
+ABI="${DEFAULT_ABI}"
+LIBDIR_arm="lib"
+CHOST_arm="${CHOST}"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="exynos fbdev omap"
+
+# Michał Górny <mgorny@gentoo.org> (14 Mar 2017)
+# Unhide the ARM-specific USE_EXPANDs.
+USE_EXPAND_HIDDEN="-CPU_FLAGS_ARM"
+
diff --git a/profiles/arch/arm/package.mask b/profiles/arch/arm/package.mask
new file mode 100644
index 000000000000..6e6c283bb229
--- /dev/null
+++ b/profiles/arch/arm/package.mask
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# James Le Cuirot <chewi@gentoo.org> (09 Jan 2016)
+# This is built for armv6 and will not work on earlier generations.
+dev-java/oracle-jdk-bin
+dev-java/oracle-jre-bin
+
+# James Le Cuirot <chewi@gentoo.org> (24 May 2015)
+# This is built for armv7a and will not work on earlier generations.
+dev-java/icedtea-bin
+
+# Zac Medico <zmedico@gentoo.org> (09 Aug 2011)
+# Bug #377907 - Use package.mask for compatibility with PMS section 5.2.7, and
+# future versions of sys-apps/portage.
+<sys-devel/gcc-3.2
diff --git a/profiles/arch/arm/package.use b/profiles/arch/arm/package.use
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/arch/arm/package.use
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/arch/arm/package.use.force b/profiles/arch/arm/package.use.force
new file mode 100644
index 000000000000..7c4dda3e2596
--- /dev/null
+++ b/profiles/arch/arm/package.use.force
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_ARM
+sys-devel/llvm llvm_targets_ARM
+
+# Anthony G. Basile <blueness@gentoo.org> (11 Nov 2012)
+# Only gnome-base/gdm has stable keywording. If x11-misc/lightdm or kde-plasma/kdm
+# gets stable keyword, this line can be removed.
+x11-misc/xscreensaver gdm
diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask
new file mode 100644
index 000000000000..8fbf5852ce1e
--- /dev/null
+++ b/profiles/arch/arm/package.use.mask
@@ -0,0 +1,516 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Patrice Clement <monsieurp@gentoo.org> (24 Sep 2017)
+# Unmask Raspberry Pi support on arm.
+# Recent mpv versions has broken Raspberry Pi, see Gentoo bug 630556.
+<media-video/mpv-0.27.0 -raspberry-pi
+
+# James Le Cuirot <chewi@gentoo.org> (20 Sep 2017)
+# media-sound/mac's executable segfaults when compressing all but the
+# smallest wav files.
+media-sound/xmms2 mac
+
+# Gilles Dartiguelongue <eva@gentoo.org> (19 Aug 2017)
+# sys-fs/udftools is not keyworded, bug #628310
+sys-block/gparted udf
+
+# Michał Górny <mgorny@gentoo.org> (10 Aug 2017)
+# Requires USE=ipmi which is masked in this profile.
+sys-power/nut ups_drivers_nut-ipmipsu
+
+# Michał Górny <mgorny@gentoo.org> (10 Aug 2017)
+# Requires USE=octave which is masked in this profile.
+dev-python/ipython test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=opencl that is masked in this profile.
+net-misc/bfgminer adl lm_sensors
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# dev-tcltk/tcllib is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Johannes Huber <johu@gentoo.org> (14 May 2017)
+# Depends on dev-qt/qtwebengine, not keyworded yet.
+kde-apps/kio-extras htmlthumbs
+
+# James Le Cuirot <chewi@gentoo.org> (25 Apr 2017)
+# Oracle doesn't include VisualVM on this platform.
+dev-java/oracle-jdk-bin visualvm
+
+# Patrice Clement <monsieurp@gentoo.org> (09 Apr 2017)
+# Enable MQTT support on supported architectures
+app-admin/collectd -collectd_plugins_mqtt
+
+# Michael Weber <xmw@gentoo.org> (15 Mar 2017)
+# Cannot test non-free dependency dev-libs/device-atlas-api-c
+net-proxy/haproxy device-atlas
+
+# Alon Bar-Lev <alonbl@gentoo.org> (10 Mar 2017)
+# net-firewall/ipset is not available on arm
+net-firewall/firehol ipset
+
+# Christoph Junghans <junghans@gentoo.org> (05 Feb 2017)
+# Mask some fabrics
+sys-cluster/openmpi java 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
+
+# Luke Dashjr <luke-jr+gentoobugs@utopios.org> (04 Jan 2017)
+# Assembly optimisations are supported on arm since 0.0.0_pre20161213
+dev-libs/libsecp256k1 -asm
+<dev-libs/libsecp256k1-0.0.0_pre20161213 asm
+
+# Davide Pesavento <pesa@gentoo.org> (19 Dec 2016)
+# Various unkeyworded deps: >=sys-devel/clang-3.9 (#591822),
+# dev-qt/qtquickcontrols2 (#603054), dev-qt/qtwebengine (#581478)
+dev-qt/qt-creator clangcodemodel clangstaticanalyzer test webengine
+
+# James Le Cuirot <chewi@gentoo.org> (14 Dec 2016)
+# DOSBox + OpenGLide is untested on this arch.
+games-emulation/dosbox glide
+
+# Thomas Deutschmann <whissi@gentoo.org> (2016-12-04)
+# sci-libs/gdal[mdb] requires dev-java/jackcess which is not keyworded
+>=sci-libs/gdal-2.0.3 mdb
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Aug 2016)
+# Missing keywords on media-libs/grilo - bug #521972
+media-sound/rhythmbox upnp-av
+
+# Brian Evans <grknight@gentoo.org> (18 Aug 2016)
+# Allow jdbc on this arch
+dev-db/mariadb -jdbc
+
+# David Seifert <soap@gentoo.org> (31 Jul 2016)
+# media-gfx/graphicsmagick is not keyworded on arm, users will need
+# to enable imagemagick flag and disable graphicsmagick use flag
+# to enable conversion facilities
+sci-mathematics/octave graphicsmagick
+
+# Davide Pesavento <pesa@gentoo.org> (28 Jul 2016)
+# The corresponding Qt5 modules are not keyworded on arm, and we don't want to
+# keyword them solely because of PyQt5 while there are no other in-tree users.
+dev-python/PyQt5 webengine
+
+# Göktürk Yüksek <gokturk@gentoo.org> (14 June 2016) on behalf of
+# Nicholas Vinson <nvinso234@gmail.com> (proxy-maint)
+# net-firewall/nftables[doc] requires dblatex which is not keyworded
+net-firewall/nftables doc
+
+# Amy Winston <amynka@gentoo.org> (12 June 2016)
+# does not build on arm at all (upstream bug)
+dev-scheme/racket futures jit
+
+# Patrick McLean <chutzpah@gentoo.org> (12 May 2016)
+# Tests require dev-python/tox which isn't keyworded on arm
+sys-cluster/ceph test
+
+# Thomas Deutschmann <whissi@whissi.de> (25 Apr 2016), on behalf of
+# Ian Delaney <idella4@gentoo.org> (25 Apr 2016)
+# for the proxy-maintainers project
+# Unkeyworded deps, bug #581180
+app-admin/rsyslog grok
+
+# Thomas Deutschmann <whissi@whissi.de> (19 Mar 2016), on behalf of
+# Ian Delaney <idella4@gentoo.org> (19 Mar 2016)
+# for the proxy-maintainers project
+# Unkeyworded deps, bug #564274
+app-admin/collectd collectd_plugins_gmond
+app-admin/collectd collectd_plugins_ipmi
+app-admin/collectd collectd_plugins_modbus
+app-admin/collectd collectd_plugins_oracle
+app-admin/collectd collectd_plugins_routeros
+app-admin/collectd collectd_plugins_sigrok
+app-admin/collectd collectd_plugins_tokyotyrant
+app-admin/collectd collectd_plugins_varnish
+app-admin/collectd collectd_plugins_virt
+
+# Markus Meier <maekke@gentoo.org> (02 Mar 2016)
+# unkeyworded deps for bug #573324
+sci-mathematics/flint ntl
+
+# Markus Meier <maekke@gentoo.org> (26 Feb 2016)
+# unmask scanner for net-print/hplip, bug #518456
+media-sound/moc timidity
+
+# Justin Lecher <jlec@gentoo.org> (22 Feb 2016)
+# Missing test deps keyword #575366
+dev-cpp/eigen test
+
+# James Le Cuirot <chewi@gentoo.org> (30 Jan 2016)
+# scrollview requires SWT, which is currently unsupported on ARM.
+app-text/tesseract scrollview
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no arm support in media-libs/glfw
+app-text/mupdf opengl
+
+# Brian Evans <grknight@gentoo.org> (23 Nov 2015)
+# unmask galera for dev-db/mariadb
+>=dev-db/mariadb-10.1.0 -galera
+
+# Markus Meier <maekke@gentoo.org> (22 Nov 2015)
+# unmask scanner for net-print/hplip, bug #518456
+net-print/hplip -scanner kde
+media-gfx/xsane ocr
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+>=media-plugins/grilo-plugins-0.2.16 upnp-av
+
+# Alexis Ballier <aballier@gentoo.org> (14 Nov 2015)
+# MMAL is available on the Raspberry Pi (armv6 & armv7 so far)
+media-video/ffmpeg -mmal
+
+# Markus Meier <maekke@gentoo.org> (10 Nov 2015)
+# unkeyworded deps, bug #555896
+sci-libs/armadillo mkl
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (15 Oct 2015)
+# Repoman reports dependency issues on arm.
+www-client/chromium system-ffmpeg
+
+# Markus Meier <maekke@gentoo.org> (10 Oct 2015)
+# unkeyworded deps, bug #552330
+app-portage/g-sorcery bson
+
+# Markos Chandras <hwoarang@gentoo.org> (18 Apr 2015)
+# samba-4 not keyworded on arm
+sys-auth/sssd samba
+
+# Markus Meier <maekke@gentoo.org> (03 Apr 2015)
+# Deps not yet stable or keyworded
+media-libs/libsdl2 fusionsound
+
+# Alexis Ballier <aballier@gentoo.org> (02 Apr 2015)
+# Needs ilmbase (openexr), which does not build and is masked on arm.
+media-libs/freeimage tiff
+
+# Markus Meier <maekke@gentoo.org> (03 Mar 2015)
+# Unkeyworded deps, bug #540540
+sys-auth/sssd augeas
+
+# Jason A. Donenfeld <zx2c4@gentoo.org> (09 Feb 2015)
+# Google does not distribute the widevine plugin for ARM. It must be extracted from a Chromebook,
+# and this kind of reverse engineering work likely violates many agreements, so we mask the flag.
+www-client/chromium widevine
+
+# Markus Meier <maekke@gentoo.org> (17 Jan 2015)
+# Unkeyworded deps, bug #536226
+net-vpn/strongswan strongswan_plugins_unbound
+
+# Markus Meier <maekke@gentoo.org> (17 Jan 2015)
+# Unkeyworded deps, bug #533404
+net-im/gajim jingle gnome kde
+
+# Alexis Ballier <aballier@gentoo.org> (06 Jan 2015)
+# sci-libs/xkaapi does not build here on armv7
+sci-libs/vtk kaapi
+
+# Benda Xu <heroxbd@gentoo.org> (03 Jan 2015)
+# not tested
+app-i18n/anthy canna-2ch
+app-i18n/scim-anthy kasumi
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Dec 2014)
+# New dependencies for wayland support in Gnome 3.14
+# See bug #533420.
+media-libs/clutter egl wayland
+media-libs/clutter-gtk wayland
+x11-wm/mutter kms
+
+# Markus Meier <maekke@gentoo.org> (29 Nov 2014)
+# Unkeyworded deps, bug #518742
+dev-python/ipython doc
+dev-python/oct2py doc
+
+# Patrick Lauer <patrick@gentoo.org> (19 Nov 2014)
+# Missing keywords #529820
+app-office/libreoffice collada
+
+# Michael Weber <xmw@gentoo.org> (15 Nov 2014)
+# missing keywords on media-libs/libharu
+www-client/netsurf pdf-writer
+
+# Markus Meier <maekke@gentoo.org> (14 Nov 2014)
+# Unkeyworded deps, bug #511532
+net-im/prosody libevent mysql postgres sqlite
+
+# Alexis Ballier <aballier@gentoo.org> (24 Oct 2014)
+# sci-libs/hdf is not supported on arm
+sci-libs/netcdf hdf
+
+# Markus Meier <maekke@gentoo.org> (24 Sep 2014)
+# Unkeyworded deps, bug #519618
+sys-block/fio glusterfs rbd
+
+# Rick Farina <zerochaos@gentoo.org> (27 Jul 2014)
+# net-misc/dahdi doesn't build
+net-voip/yate dahdi
+
+# Rick Farina <zerochaos@gentoo.org> (22 Jul 2014)
+# sci-libs/mpir doesn't build
+dev-python/gmpy mpir
+
+# Markus Meier <maekke@gentoo.org> (24 Jun 2014)
+# Unkeyworded deps, bug #513108
+>=net-misc/spice-gtk-0.25 smartcard
+
+# Jauhien Piatlicki <jauhien@gentoo.org> (29 May 2014)
+# Unkeyworded deps
+lxqt-base/lxqt-meta lximage
+
+# Markus Meier <maekke@gentoo.org> (04 May 2014)
+# Unkeyworded deps, bug #509082
+mail-filter/opendkim opendbx
+
+# Markus Meier <maekke@gentoo.org> (04 May 2014)
+# Unkeyworded deps, bug #507896
+dev-qt/qt-mobility messaging
+
+# S. Suominen <ssuominen@g.o> (17 Apr 2014)
+# First GTK+-3.x version of EasyTAG!
+# Keyword as reqiuired, ~arch is enough for now:
+# media-libs/opusfile for USE opus
+# media-libs/opus for USE opus
+# app-text/apadata-tools for FEAATURES and USE test
+# Do it! No reason to ask permission before!
+>=media-sound/easytag-2.2.0 opus test
+
+# Yixun Lan <dlan@gentoo.org> (12 Apr 2014)
+# app-emulation/qemu is not keyworded on arm arch.
+app-emulation/xen-tools system-qemu
+
+# Markus Meier <maekke@gentoo.org> (23 Feb 2014)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Jason A. Donenfeld <zx2c4@gentoo.org> (27 Jan 2014)
+# luajit isn't keyworded for arm yet, which is a bummer
+net-im/prosody jit
+
+# Rick Farina <zerochaos@gentoo.org> (09 Jan 2014)
+# rjb doesn't work on arm, so no java hacks for metasploit
+net-analyzer/metasploit java
+
+# Julian Ospald <hasufell@gentoo.org> (04 Jan 2014)
+# no keyword for media-libs/swfdec and media-libs/libtimidity
+>=dev-libs/DirectFB-1.7.1 timidity swfdec
+
+# Markus Meier <maekke@gentoo.org> (26 Dec 2013)
+# Unkeyworded deps, bug #488724
+app-office/gnumeric libgda
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Pacho Ramos <pacho@gentoo.org> (31 Oct 2013)
+# Missing keywords, bug #478254
+gnome-base/gnome classic extras
+
+# Benda Xu <heroxbd@gentoo.org> (31 Oct 2013)
+# Missing keywords from dev-ml/lablgtk, bug #487722
+net-p2p/mldonkey gtk guionly
+
+# Pacho Ramos <pacho@gentoo.org> (22 Sep 2013)
+# Missing keywords, bug #484734
+media-sound/rhythmbox visualizer
+
+# Markus Meier <maekke@gentoo.org> (15 Sep 2013)
+# Unkeyworded deps, bug #481462
+dev-python/ipython nbconvert
+
+# Sergey Popov <pinkbyte@gentoo.org> (06 Sep 2013)
+# sci-libs/hdf does not build properly on arm
+# sci-libs/plplot not keyworded
+dev-perl/PDL hdf plplot
+
+# Michael Weber <xmw@gentoo.org> (23 Aug 2013)
+# Unkeyworded deps
+media-gfx/fim graphicsmagick svg
+
+# Markus Meier <maekke@gentoo.org> (04 Aug 2013)
+# Unkeyworded deps, bug #474026
+app-admin/conky audacious cmus irc lua-cairo lua-imlib lua-rsvg moc xmms2
+
+# Sergey Popov <pinkbyte@gentoo.org> (30 Jul 2013)
+# Not tested
+media-libs/devil allegro nvtt
+
+# Agostino Sarubbo <ago@gentoo.org> (23 Jul 2013)
+# java is not stable on arm
+dev-libs/protobuf java
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (13 Jul 2013)
+# requires net-misc/freerdp which is not keyworded on arm
+# screen-sharing requires rdp flag
+dev-libs/weston rdp screen-sharing
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (27 May 2013)
+# Firmware loader not keyworded yet
+sci-libs/linux-gpib firmware
+
+# Markus Meier <maekke@gentoo.org> (10 May 2013)
+# unkeyworded deps for dev-python/ipython
+dev-python/ipython mongodb
+
+# Markus Meier <maekke@gentoo.org> (09 May 2013)
+# unkeyworded deps for x11-misc/lightdm
+x11-misc/lightdm kde
+
+# Agostino Sarubbo <ago@gentoo.org> (05 May 2013)
+# dev-util/google-perftools is not keyworded for arm
+>=dev-libs/libmemcached-0.50 tcmalloc
+
+# Christoph Junghans <junghans@gentoo.org> (29 Apr 2013)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Benda Xu <heroxbd@gentoo.org> (1 Apr 2013)
+# dev-ml/lablgtk not keyworded
+net-misc/unison gtk
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Agostino Sarubbo <ago@gentoo.org> (18 Mar 2013)
+# Mask java because of bug #461108 comment #7
+dev-libs/xapian-bindings java
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (20 Feb 2013)
+# Mask flags of calligra and dependencies due to lack of keywords
+app-office/calligra color-management openexr postgres spacenav vc
+media-gfx/pstoedit emf
+
+# Rick Farina <zerochaos@gentoo.org> (05 Feb 2013)
+# masking all stable packages with java use flag
+net-vpn/openconnect java
+dev-util/oprofile java
+=dev-db/qdbm-1.8.78-r1 java
+dev-libs/beecrypt java
+dev-libs/cyrus-sasl java
+dev-tex/tex4ht java
+dev-vcs/subversion java
+=media-gfx/graphviz-2.26.3-r4 java
+=media-libs/libcaca-0.99_beta18-r2 java
+media-libs/libjpeg-turbo java
+net-dns/libidn java
+net-misc/tigervnc java
+net-print/cups java
+sys-devel/gettext java
+sys-libs/db java
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord argyllcms extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (30 Dec 2012)
+# requires dev-util/bustle, which is written in haskell
+# remove mask if/when dev-lang/ghc is keywoded for arm
+dev-util/dbus-test-runner test
+
+# Markus Meier <maekke@gentoo.org> (25 Dez 2012)
+# unkeyworded deps for app-accessibility/speech-dispatcher
+app-accessibility/speech-dispatcher flite
+
+# Markus Meier <maekke@gentoo.org> (23 Dec 2012)
+# mask kde-apps/* flags due to unkeyworded dependencies
+kde-apps/kalzium editor solver
+kde-apps/kopete jingle
+kde-apps/kstars indi
+kde-apps/kdeutils-meta floppy
+kde-apps/kdenetwork-meta ppp
+
+# Markus Meier <maekke@gentoo.org> (08 Dec 2012)
+# mask app-office/libreoffice java extensions
+app-office/libreoffice libreoffice_extensions_scripting-beanshell libreoffice_extensions_scripting-javascript libreoffice_extensions_wiki-publisher coinmp gltf
+
+# Steev Klimaszewski <steev@gentoo.org> (03 Aug 2012)
+# No java on ARM
+net-analyzer/wireshark doc-pdf
+
+# Markus Meier <maekke@gentoo.org> (25 Jul 2012)
+# no stable media-video/vlc yet, bug #401313
+media-libs/phonon vlc
+
+# Michael Sterrett <mr_bones_@gentoo.org> (04 Mar 2012)
+# arm is missing keywords for >=dev-libs/json-glib-0.12
+app-admin/syslog-ng json
+
+# Anthony G. Basile <blueness@gentoo.org> (Dec 21, 2011)
+# Mask the vde flag on tinc because net-misc/vde is not
+# keyworded for arm
+net-vpn/tinc vde
+
+# 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
+
+# Markus Meier <maekke@gentoo.org> (05 Sep 2011)
+# unkeyworded deps for bug 379657 and bug 379651
+app-admin/packagekit-base entropy
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools and virtual/gsasl (bug #381737)
+dev-libs/libmemcached sasl
+
+# Markus Meier <maekke@gentoo.org> (13 Mar 2011)
+# needs stable kde stuff
+sys-auth/polkit kde
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Michael Weber <xmw@gentoo.org> (10 Feb 2011)
+# kde-frameworks/kdelibs is not stable for arm
+net-libs/libproxy kde
+
+# Jeremy Olexa <darkside@gentoo.org> (04 Apr 2010)
+# mask net-misc/mediatomb[lastfm] as lastfmlib isn't keyworded
+net-misc/mediatomb lastfm
+
+# Raúl Porcel <armin76@gentoo.org> (28 Mar 2010)
+# Needs kde-4 stable
+dev-vcs/subversion kwallet
+
+# Markus Meier <maekke@gentoo.org> (27 Sep 2009)
+# mask media-gfx/imagemagick[autotrace] as autotrace is not keyworded
+media-gfx/imagemagick autotrace
+
+# Jim Ramsay <lack@gentoo.org> (5 Nov 2008)
+# app-admin/gkrellm may pull in net-libs/libntlm, which is not keyworded
+app-admin/gkrellm ntlm
+
+# missing keywords
+media-plugins/gst-plugins-meta aac dts dv lame libvisual modplug taglib vcd wavpack dvd
+
+# projectm not keyworded, bug #314969
+media-video/vlc projectm chromaprint opencv
+
+# Ultrabug <ultrabug@gentoo.org> (05 Sept 2011)
+# missing keyword for net-libs/zeromq
+app-admin/rsyslog zeromq
+
+# Ian Whyman <thev00d00@gentoo.org> (22 May 2016)
+# RPI support on arm
+dev-libs/libcec -raspberry-pi
+
+# Ian Whyman <thev00d00@gentoo.org> (05 Sept 2017)
+# missing keywords dev-lang/duktape media-libs/lastfmlib
+net-misc/gerbera javascript lastfm
diff --git a/profiles/arch/arm/package.use.stable.mask b/profiles/arch/arm/package.use.stable.mask
new file mode 100644
index 000000000000..abe50ba77c1a
--- /dev/null
+++ b/profiles/arch/arm/package.use.stable.mask
@@ -0,0 +1,127 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Brian Evans <grknight@gentoo.org> (9 Jun 2017)
+# sys-cluster/galera needs additional deps stable
+dev-db/mariadb galera
+
+# Alexis Ballier <aballier@gentoo.org> (30 May 2017)
+# No stable libtar yet
+<media-video/vlc-2.3 libtar
+
+# Alexis Ballier <aballier@gentoo.org> (30 May 2017)
+# No stable fluidsynth yet
+media-libs/sdl-mixer fluidsynth
+<media-sound/mpd-0.20 fluidsynth
+<media-video/vlc-2.3 fluidsynth
+
+# Alexis Ballier <aballier@gentoo.org> (29 May 2017)
+# frei0r-plugins is not stable yet, mask it on stable versions
+<media-video/libav-12 frei0r
+<=media-video/ffmpeg-3.3.3 frei0r sofalizer
+
+# Alexis Ballier <aballier@gentoo.org> (26 May 2017)
+# toolame not stable yet
+~media-video/mplayer-1.2.1 toolame
+
+# Alexis Ballier <aballier@gentoo.org> (26 May 2017)
+# No musepack-tools stable yet
+media-video/vlc musepack
+media-plugins/gst-plugins-meta:0.10 musepack
+media-sound/mpd musepack
+
+# Alexis Ballier <aballier@gentoo.org> (18 Apr 2017)
+# No gst-plugins-vp8:0.10 stable
+media-plugins/gst-plugins-meta:0.10 vpx
+
+# Michael Weber <xmw@gentoo.org> (1 Apr 2017)
+# no stable jdk
+media-libs/libbluray java
+
+# Thomas Deutschmann <whissi@gentoo.org> (20 Mar 2017)
+# Requires dev-java/java-config and deps which is not stable on arm
+# Requires app-emulation/xen-tools which is not stable on arm
+app-admin/collectd collectd_plugins_java collectd_plugins_xencpu
+
+# Michael Palimaka <kensington@gentoo.org> (19 Mar 2017)
+# Required media-plugins/gst-plugins-x264 is not stable
+media-plugins/gst-plugins-meta x264
+
+# Michael Weber <xmw@gentoo.org> (01 Mar 2017)
+# Mask until >sys-cluster/ceph-0.94 goes stable
+net-analyzer/rrdtool rados
+
+# Michael Weber <xmw@gentoo.org> (27 Feb 2017)
+# Stable mask dev-ruby/haml test till rails is stabilized.
+dev-ruby/haml test
+
+# Brian Evans <grknight@gentoo.org> (17 Jan 2017)
+# Stable mask galera since dev-libs/asio is not stable on arm
+dev-db/mariadb galera
+
+# Pacho Ramos <pacho@gentoo.org> (31 Dec 2016)
+# Not going to be stable for now
+dev-util/geany-plugins gtkspell
+
+# Pacho Ramos <pacho@gentoo.org> (31 Dec 2016)
+# No stable for arm
+sys-fs/dmraid dietlibc klibc
+
+# Christoph Junghans <junghans@gentoo.org> (27 Nov 2016)
+# no stable mpi on arm yet, but maybe in the future
+<=app-crypt/johntheripper-1.7.9-r6 mpi
+<=dev-libs/boost-1.56.0-r1 mpi
+<=dev-util/valgrind-3.10.1 mpi
+<=sci-chemistry/gromacs-5.0.4 mpi
+<=sci-libs/fftw-3.3.4 mpi
+
+# Markus Meier <maekke@gentoo.org> (27 Sep 2016)
+# Missing stable
+dev-db/mariadb jdbc
+
+# Ilya Tumaykin <itumaykin+gentoo@gmail.com> (13 Apr 2016)
+# Requires special hardware to test and stabilize properly.
+media-video/mpv raspberry-pi
+
+# Brian Evans <grknight@gentoo.org> (08 Jan 2016)
+# net-misc/libteam is not yet stable on arm
+net-misc/networkmanager teamd
+
+# Michael Palimaka <kensington@gentoo.org> (28 Oct 2015)
+# KDE is not stable on arm
+media-video/vlc kde
+virtual/notification-daemon kde
+
+# Pacho Ramos <pacho@gentoo.org> (03 Oct 2015)
+# Missing stable, bug #529462
+media-gfx/graphviz java
+
+# Markus Meier <maekke@gentoo.org> (30 Jul 2015)
+# Missing stable
+x11-libs/wxGTK webkit
+
+# Markus Meier <maekke@gentoo.org> (19 Jul 2015)
+# Missing stable
+media-libs/gegl umfpack
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jun 2015)
+# Missing stable
+net-misc/connman l2tp pptp
+
+# Michael Palimaka <kensington@gentoo.org> (11 May 2015)
+# KDE is not stable on arm
+www-client/qupzilla kde
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+media-gfx/gimp webkit
+net-libs/libproxy webkit
+>=net-libs/webkit-gtk-2.4 geoloc
+>=x11-libs/gtk+-3.12.2 cloudprint
+x11-libs/gksu gnome
+
+# Ian Whyman <thev00d00@gentoo.org> (22 May 2016)
+# RPI support on arm
+dev-libs/libcec -raspberry-pi
diff --git a/profiles/arch/arm/parent b/profiles/arch/arm/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/arm/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/arm/use.force b/profiles/arch/arm/use.force
new file mode 100644
index 000000000000..7116ac8c8915
--- /dev/null
+++ b/profiles/arch/arm/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+arm
diff --git a/profiles/arch/arm/use.mask b/profiles/arch/arm/use.mask
new file mode 100644
index 000000000000..30e2f3e76a4e
--- /dev/null
+++ b/profiles/arch/arm/use.mask
@@ -0,0 +1,188 @@
+# Unmask the flag which corresponds to ARCH.
+-arm
+
+# Unmask arm arch specific flags
+-cpu_flags_arm_iwmmxt
+-iwmmxt
+
+# Michael Palimaka <kensington@gentoo.org> (03 Jun 2017)
+# Unmask elogind since it is keyworded here.
+-elogind
+
+# Patrick Lauer <patrick@gentoo.org> (28 Apr 2015)
+# Dependencies not keyworded
+ayatana
+
+# Mike Frysinger <vapier@gentoo.org> (25 Feb 2013)
+# doomsday ebuild is not available on this architecture
+doomsday
+
+# Andrey Grozin <grozin@gentoo.org> (16 May 2014)
+# gcl keyworded ~arm, bug #509842
+-gcl
+
+# Markus Meier <maekke@gentoo.org> (22 Aug 2010)
+# unmask synaptics input driver
+-input_devices_synaptics
+
+# Markus Meier <maekke@gentoo.org> (22 Aug 2010)
+# net-wireless/wimax not tested
+wimax
+
+# Markus Meier <maekke@gentoo.org> (21 Aug 2010)
+# app-antivirus/clamav not tested
+clamav
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+# Raúl Porcel <armin76@gentoo.org>
+# I've been told xfs is broken on ARM
+xfs
+
+# Raúl Porcel <armin76@gentoo.org>
+# Fails to build/work
+openexr
+
+# Samuli Suominen <drac@gentoo.org>
+# media-gfx/gimp not tested.
+gimp
+
+# No hardware to test by the team
+dvb
+ios
+ipod
+
+# Stuff that doesn't make sense on this arch
+3dfx
+dmi
+
+# Stuff we don't want
+R
+octave
+tracker
+xindy
+lyx
+lasi
+hardened
+pdfannotextractor
+prelude
+mssql
+
+# havent tested yet
+gphoto2
+afs
+mono
+lirc
+lm_sensors
+xemacs
+scanner
+sid
+mms
+mtp
+ieee1394
+pm-utils
+darcs
+ggi
+nut
+fits
+tokyocabinet
+vaapi
+lpsol
+upnp
+devil
+gts
+anthy
+ace
+
+# Unmask ARM-only video-cards
+-video_cards_exynos
+-video_cards_freedreno
+-video_cards_omap
+-video_cards_tegra
+-video_cards_vc4
+-video_cards_vivante
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_cirrus
+video_cards_chips
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_neomagic
+video_cards_newport
+video_cards_nouveau
+video_cards_nsc
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+video_cards_via
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_amdgpu
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# media-libs/xine-lib is not keyworded
+xine
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+-zeitgeist
+
+# Michał Górny <mgorny@gentoo.org> (4 May 2013)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (10 Nov 2013)
+# sys-devel/llvm is keyworded
+-llvm
+
+# Missing sys-process/numactl keywords.
+numa
+
+# toolkit for nvidia binary drivers
+cg
+
diff --git a/profiles/arch/arm/use.stable.mask b/profiles/arch/arm/use.stable.mask
new file mode 100644
index 000000000000..8f732238b2cd
--- /dev/null
+++ b/profiles/arch/arm/use.stable.mask
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 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
+
+# Andrey Grozin <grozin@gentoo.org> (16 May 2014)
+# No stable gcl
+gcl
+
+# Pacho Ramos <pacho@gentoo.org> (13 Apr 2014)
+# Not going to be stabilized on this arch
+colord
+devhelp
+eds
+gdm
+gnome-online-accounts
+gusb
diff --git a/profiles/arch/arm64/big-endian/eapi b/profiles/arch/arm64/big-endian/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm64/big-endian/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm64/big-endian/make.defaults b/profiles/arch/arm64/big-endian/make.defaults
new file mode 100644
index 000000000000..df7edf1b2628
--- /dev/null
+++ b/profiles/arch/arm64/big-endian/make.defaults
@@ -0,0 +1,4 @@
+# Big endian ARM64 settings.
+
+CHOST="aarch64_be-unknown-linux-gnu"
+CHOST_arm64="${CHOST}"
diff --git a/profiles/arch/arm64/big-endian/parent b/profiles/arch/arm64/big-endian/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm64/big-endian/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm64/big-endian/use.mask b/profiles/arch/arm64/big-endian/use.mask
new file mode 100644
index 000000000000..0a4af0711f5c
--- /dev/null
+++ b/profiles/arch/arm64/big-endian/use.mask
@@ -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)
+# Unmask as this profile is big endian.
+-big-endian
diff --git a/profiles/arch/arm64/eapi b/profiles/arch/arm64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm64/little-endian/eapi b/profiles/arch/arm64/little-endian/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/arm64/little-endian/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/arm64/little-endian/make.defaults b/profiles/arch/arm64/little-endian/make.defaults
new file mode 100644
index 000000000000..155711398f42
--- /dev/null
+++ b/profiles/arch/arm64/little-endian/make.defaults
@@ -0,0 +1,4 @@
+# Little endian ARM64 settings.
+
+CHOST="aarch64-unknown-linux-gnu"
+CHOST_arm64="${CHOST}"
diff --git a/profiles/arch/arm64/little-endian/parent b/profiles/arch/arm64/little-endian/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/arm64/little-endian/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/arm64/make.defaults b/profiles/arch/arm64/make.defaults
new file mode 100644
index 000000000000..f985ef0637e5
--- /dev/null
+++ b/profiles/arch/arm64/make.defaults
@@ -0,0 +1,26 @@
+# Main ARM64 (Aarch64/ARMv8) profile; endian independent.
+
+ARCH="arm64"
+ACCEPT_KEYWORDS="arm64"
+
+MULTILIB_ABIS="arm64"
+DEFAULT_ABI="arm64"
+ABI="${DEFAULT_ABI}"
+
+CFLAGS="-O2"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+LIBDIR_arm64="lib64"
+
+# Defaults for video drivers
+VIDEO_CARDS="fbdev"
+
+# Michał Górny <mgorny@gentoo.org> (14 Mar 2017)
+# Unhide the ARM-specific USE_EXPANDs.
+USE_EXPAND_HIDDEN="-CPU_FLAGS_ARM"
+
+# Hans de Graaff <graaff@gentoo.org> (17 Apr 2017)
+# Temporary entry to support stable bug 615818
+RUBY_TARGETS="ruby21"
diff --git a/profiles/arch/arm64/package.use b/profiles/arch/arm64/package.use
new file mode 100644
index 000000000000..fdbc734d17c8
--- /dev/null
+++ b/profiles/arch/arm64/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# Enable the native arch as the default qemu target
+app-emulation/qemu qemu_softmmu_targets_aarch64
diff --git a/profiles/arch/arm64/package.use.force b/profiles/arch/arm64/package.use.force
new file mode 100644
index 000000000000..c20ec5920cd8
--- /dev/null
+++ b/profiles/arch/arm64/package.use.force
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Alexis Ballier <aballier@gentoo.org> (27 Jun 2017)
+# qtphonon requires gstreamer:0.10 which we would want to avoid
+# Forcing kde useflag on designer just switched the dep to media-libs/phonon
+dev-qt/designer:4 kde
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_AArch64
+sys-devel/llvm llvm_targets_AArch64
+
+# James Le Cuirot <chewi@gentoo.org> (16 May 2016)
+# For reasons best known to themselves, Oracle do not ship the
+# libawt_xawt.so library on arm64 even though they do on arm32.
+dev-java/oracle-jdk-bin headless-awt
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/arm64/package.use.mask b/profiles/arch/arm64/package.use.mask
new file mode 100644
index 000000000000..c5118665a547
--- /dev/null
+++ b/profiles/arch/arm64/package.use.mask
@@ -0,0 +1,408 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# NeddySeagoon <neddysegoon@gentoo.org> 24 Aug 2017
+# Support for g15daemon still needs -9999 packages on all arches
+media-sound/mumble g15
+
+# NeddySeagoon <neddysegoon@gentoo.org> (21 Aug 2107)
+# Pulls in sci-libs/coinor-mp which wants immintrin.h not on arm64
+app-office/libreoffice coinmp
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jul 2017)
+# Passes -mfpu=neon with neon enabled
+mail-client/thunderbird neon
+
+# Alexis Ballier <aballier@gentoo.org> (20 Jul 2017)
+# media-libs/libemf fails with #error unknown CPU.
+media-gfx/pstoedit emf
+
+# Alexis Ballier <aballier@gentoo.org> (14 Jul 2017)
+# Appends -mfpu=neon and asm seems arm32
+net-misc/freerdp neon
+
+# Alexis Ballier <aballier@gentoo.org> (14 Jul 2017)
+# zfs does not build on arm64 (yet?)
+app-emulation/libvirt zfs
+sys-cluster/ceph zfs
+
+# Alexis Ballier <aballier@gentoo.org> (11 Jul 2017)
+# Needs indirectly clisp:
+# https://bugs.gentoo.org/show_bug.cgi?id=624532
+app-text/texlive xindy
+
+# Alexis Ballier <aballier@gentoo.org> (11 Jul 2017)
+# dev-libs/botan:0 fails with 'ERROR: Unknown or unidentifiable processor
+# "aarch64"'
+app-crypt/qca botan
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# openvz-sources are likely too old for any proper arm64 usage
+app-emulation/libvirt openvz
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# sys-firmware/ipxe does not build, mask x86 targets needing it
+app-emulation/qemu qemu_softmmu_targets_i386 qemu_softmmu_targets_x86_64
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# pull webkit-gtk:2 which we would like to avoid
+x11-libs/wxGTK:2.8 webkit
+x11-libs/wxGTK:3.0 webkit
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# media-gfx/nvidia-texture-tools does not support arm64
+media-libs/devil nvtt
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# luajit added arm64 support in luajit 2.1, still in rc/beta, revisit this when
+# such a version hits the tree
+dev-db/redis luajit
+www-servers/nginx luajit
+
+# Alexis Ballier <aballier@gentoo.org> (10 Jul 2017)
+# Virtualbox is x86 only
+app-emulation/libvirt virtualbox
+
+# Alexis Ballier <aballier@gentoo.org> (7 Jul 2017)
+# nautilus pulls in gnome-extra/sushi -> dev-libs/gjs -> dev-lang/spidermonkey:24
+# Older spidermonkey does not work on arm64.
+# This should be revised when gjs is updated.
+gnome-base/nautilus previewer
+app-crypt/libsecret test
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach & dev-tcltk/tcllib are not keyworded, and tests are
+# restricted anyway, so no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Alexis Ballier <aballier@gentoo.org> (27 Jun 2017)
+# qtwebkit:4 is old and doesnt build with gcc7, skip it
+dev-python/PyQt4 webkit
+dev-qt/designer:4 webkit
+dev-qt/qtdeclarative:4 webkit
+dev-python/pyside webkit
+kde-frameworks/kdelibs:4 webkit
+
+# Alexis Ballier <aballier@gentoo.org> (23 Jun 2017)
+# No need for old drivers
+<x11-base/xorg-drivers-1.19 video_cards_freedreno video_cards_tegra
+
+# Alexis Ballier <aballier@gentoo.org> (21 Jun 2017)
+# Appends -mfpu=neon that doesnt work on arm64
+media-libs/speexdsp cpu_flags_arm_neon
+
+# Alexis Ballier <aballier@gentoo.org> (21 Jun 2017)
+# net-fs/openafs-kernel does not recognize arm64 properly
+# Need to check if this has a chance to work with in-kernel drivers
+app-crypt/heimdal afs
+
+# Alexis Ballier <aballier@gentoo.org> (20 Jun 2017)
+# Appends -mfpu=neon which is only valid for arm32 and suggests this is arm32
+# only
+media-sound/pulseaudio neon
+
+# Alexis Ballier <aballier@gentoo.org> (19 Jun 2017)
+# This is for arm32 only neon asm
+media-libs/vo-aacenc cpu_flags_arm_neon
+
+# Alexis Ballier <aballier@gentoo.org> (16 Jun 2017)
+# neon on pixman seems armv7 only, at least according to configure checks: it
+# aborts when neon is enabled.
+x11-libs/pixman neon
+
+# James Le Cuirot <chewi@gentoo.org> (22 May 2017)
+# Only available on some architectures.
+dev-java/icedtea -shenandoah
+
+# Michael Weber <xmw@gentoo.org> (18 May 2017)
+# mask due missing keywords on dev-python/epydoc[latex]
+sys-apps/portage epydoc
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on arm64
+xfce-base/xfwm4 xpresent
+
+# James Le Cuirot <chewi@gentoo.org> (25 Apr 2017)
+# Oracle doesn't include VisualVM on this platform.
+dev-java/oracle-jdk-bin visualvm
+
+# Markus Meier <maekke@gentoo.org> (24 Mar 2017)
+# unkeyworded deps, bug #552330
+app-portage/g-sorcery bson
+
+# Thomas Deutschmann <whissi@gentoo.org> (01 Mar 2017)
+# Unkeyworded depedencies
+app-admin/rsyslog grok kafka mongodb normalize rabbitmq
+
+# Michael Weber <xmw@gentoo.org> (01 Mar 2017)
+# untested dependencies
+net-libs/libpcap bluetooth
+
+# Mart Raudsepp <leio@gentoo.org> (16 Feb 2017)
+# Not yet tested features/dependencies
+app-text/evince dvi nautilus postscript t1lib xps
+xfce-extra/xfce4-taskmanager gksu gtk3
+net-wireless/blueman appindicator
+x11-libs/gtk+ cloudprint
+
+# Robin Johnson <robbat2@gentoo.org> (14 Feb 2017)
+# Not tk for this arch yet
+dev-libs/libisoburn launch-frontend launch-frontend-setuid frontend-optional
+
+# Thomas Deutschmann <whissi@gentoo.org> (14 Feb 2017)
+# No lua keyworded for this arch yet
+# libpcre jit is not (yet?) support on this arch
+www-servers/nginx nginx_modules_http_lua pcre-jit
+
+# Mart Raudsepp <leio@gentoo.org> (04 Feb 2017)
+# dev-libs/snowball-stemmer not keyworded
+dev-libs/appstream-glib stemmer
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# app-admin/hddtemp not keyworded
+app-admin/gkrellm hddtemp
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# media-libs/libcddb not keyworded yet
+dev-libs/libcdio cddb
+
+# Steev Klimaszewski <steev@gentoo.org> (04 March 2016)
+# Chromium uses an internal tcmalloc that doesn't support this arch yet.
+www-client/chromium tcmalloc
+
+# Mike Frysinger <vapier@gentoo.org> (17 Dec 2015)
+# The tlsdate seccomp logic is open-coded and doesn't support this arch yet.
+net-misc/tlsdate seccomp
+
+# Mike Frysinger <vapier@gentoo.org> (20 Jul 2015)
+# Mart Raudsepp <leio@gentoo.org> (04 Feb 2017)
+# Needs deps tested.
+net-misc/curl curl_ssl_axtls curl_ssl_libressl metalink
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Needs testing.
+sys-devel/gcc graphite regression-test
+
+# Roy Bamford <neddyseagoon@gentoo.org> (26 Jan 2017)
+# gcj-6.3 won't bootstrap icedtea 7
+>=sys-devel/gcc-6 gcj
+
+# Julian Ospald <hasufell@gentoo.org> (04 Jan 2014)
+# no keyword for media-libs/swfdec and media-libs/libtimidity
+>=dev-libs/DirectFB-1.7.1 timidity swfdec
+
+# Markus Meier <maekke@gentoo.org> (26 Dec 2013)
+# Unkeyworded deps, bug #488724
+app-office/gnumeric libgda
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Pacho Ramos <pacho@gentoo.org> (31 Oct 2013)
+# Missing keywords, bug #478254
+gnome-base/gnome classic
+
+# Benda Xu <heroxbd@gentoo.org> (31 Oct 2013)
+# Missing keywords from dev-ml/lablgtk, bug #487722
+net-p2p/mldonkey gtk guionly
+
+# Pacho Ramos <pacho@gentoo.org> (22 Sep 2013)
+# Missing keywords, bug #484734
+media-sound/rhythmbox visualizer
+
+# Markus Meier <maekke@gentoo.org> (15 Sep 2013)
+# Unkeyworded deps, bug #481462
+dev-python/ipython nbconvert
+
+# Sergey Popov <pinkbyte@gentoo.org> (06 Sep 2013)
+# sci-libs/hdf does not build properly on arm
+dev-perl/PDL hdf
+
+# Michael Weber <xmw@gentoo.org> (23 Aug 2013)
+# Unkeyworded deps
+media-gfx/fim graphicsmagick svg
+
+# Markus Meier <maekke@gentoo.org> (04 Aug 2013)
+# Unkeyworded deps, bug #474026
+app-admin/conky lua-cairo lua-imlib xmms2 audacious moc
+
+# Sergey Popov <pinkbyte@gentoo.org> (30 Jul 2013)
+# Not tested
+media-libs/devil allegro nvtt
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (13 Jul 2013)
+# requires net-misc/freerdp which is not keyworded on arm
+dev-libs/weston rdp
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (27 May 2013)
+# Firmware loader not keyworded yet
+sci-libs/linux-gpib firmware
+
+# Markus Meier <maekke@gentoo.org> (10 May 2013)
+# unkeyworded deps for dev-python/ipython
+dev-python/ipython mongodb
+
+# Markus Meier <maekke@gentoo.org> (09 May 2013)
+# unkeyworded deps for x11-misc/lightdm
+x11-misc/lightdm kde
+
+# Agostino Sarubbo <ago@gentoo.org> (05 May 2013)
+# dev-util/google-perftools is not keyworded for arm
+>=dev-libs/libmemcached-0.50 tcmalloc
+
+# Christoph Junghans <junghans@gentoo.org> (29 Apr 2013)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Benda Xu <heroxbd@gentoo.org> (1 Apr 2013)
+# dev-ml/lablgtk not keyworded
+net-misc/unison gtk
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (20 Feb 2013)
+# Mask flags of calligra and dependencies due to lack of keywords
+app-office/calligra color-management openexr postgres spacenav vc
+media-gfx/pstoedit emf
+
+# Michał Górny <mgorny@gentoo.org> (01 Feb 2013)
+# virtual/cblas not keyworded on arm, bug #455050.
+dev-python/numpy lapack
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (30 Dec 2012)
+# requires dev-util/bustle, which is written in haskell
+# remove mask if/when dev-lang/ghc is keywoded for arm
+dev-util/dbus-test-runner test
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when app-text/yelp-tools is keyworded here
+>=gnome-extra/zenity-3.6 test
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when >=app-editors/gedit-3.6 is keyworded here
+dev-util/devhelp gedit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when app-crypt/libsecret is keyworded here
+>=gnome-base/gvfs-1.14 gnome-keyring
+
+# Markus Meier <maekke@gentoo.org> (25 Dez 2012)
+# unkeyworded deps for app-accessibility/speech-dispatcher
+app-accessibility/speech-dispatcher flite
+
+# Markus Meier <maekke@gentoo.org> (23 Dec 2012)
+# mask kde-apps/* flags due to unkeyworded dependencies
+kde-apps/kalzium editor solver
+kde-apps/kopete jingle
+kde-apps/okular chm
+kde-apps/kstars indi
+kde-apps/kdeutils-meta floppy
+kde-apps/kdenetwork-meta ppp
+
+# Markus Meier <maekke@gentoo.org> (08 Dec 2012)
+# mask app-office/libreoffice java extensions
+app-office/libreoffice libreoffice_extensions_scripting-beanshell libreoffice_extensions_scripting-javascript libreoffice_extensions_wiki-publisher
+
+# Steev Klimaszewski <steev@gentoo.org> (03 Aug 2012)
+# No java on ARM
+net-analyzer/wireshark doc-pdf
+
+# Markus Meier <maekke@gentoo.org> (25 Jul 2012)
+# no stable media-video/vlc yet, bug #401313
+media-libs/phonon vlc
+
+# 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
+
+# Michael Sterrett <mr_bones_@gentoo.org> (04 Mar 2012)
+# arm is missing keywords for >=dev-libs/json-glib-0.12
+app-admin/syslog-ng json
+
+# 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
+
+# Anthony G. Basile <blueness@gentoo.org> (Dec 21, 2011)
+# Mask the vde flag on tinc because net-misc/vde is not
+# keyworded for arm
+net-vpn/tinc vde
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Nov 2011)
+# libpcre jit is not supported on alpha
+dev-libs/libpcre jit
+
+# Markus Meier <maekke@gentoo.org> (05 Sep 2011)
+# unkeyworded deps for bug 379657 and bug 379651
+app-admin/packagekit-base entropy
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools and virtual/gsasl (bug #381737)
+dev-libs/libmemcached sasl
+
+# Markus Meier <maekke@gentoo.org> (13 Mar 2011)
+# needs stable kde stuff
+sys-auth/polkit kde
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Michael Weber <xmw@gentoo.org> (10 Feb 2011)
+# kde-frameworks/kdelibs is not stable for arm
+net-libs/libproxy kde
+
+# Jeremy Olexa <darkside@gentoo.org> (04 Apr 2010)
+# mask net-misc/mediatomb[lastfm] as lastfmlib isn't keyworded
+net-misc/mediatomb lastfm
+
+# Raúl Porcel <armin76@gentoo.org> (28 Mar 2010)
+# Needs kde-4 stable
+dev-vcs/subversion kde
+
+# Markus Meier <maekke@gentoo.org> (27 Sep 2009)
+# mask media-gfx/imagemagick[autotrace] as autotrace is not keyworded
+media-gfx/imagemagick autotrace
+
+# Jim Ramsay <lack@gentoo.org> (5 Nov 2008)
+# app-admin/gkrellm may pull in net-libs/libntlm, which is not keyworded
+app-admin/gkrellm ntlm
+
+# missing keyword for sys-cluster/openmpi sys-cluster/mpich2
+dev-libs/boost mpi
+
+# missing keywords
+media-sound/sox ladspa
+media-plugins/gst-plugins-meta aac dts dv lame libvisual taglib vcd wavpack
+
+# projectm not keyworded, bug #314969
+media-video/vlc projectm chromaprint opencv
+
+# Ultrabug <ultrabug@gentoo.org> (05 Sept 2011)
+# missing keyword for net-libs/zeromq
+app-admin/rsyslog zeromq
+
+# Ian Whyman <thev00d00@gentoo.org> (05 Sept 2017)
+# missing keywords dev-lang/duktape media-libs/lastfmlib
+net-misc/gerbera javascript lastfm
diff --git a/profiles/arch/arm64/package.use.stable.mask b/profiles/arch/arm64/package.use.stable.mask
new file mode 100644
index 000000000000..cd50464f8026
--- /dev/null
+++ b/profiles/arch/arm64/package.use.stable.mask
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michael Weber <xmw@gentoo.org> (29 Mar 2017)
+# unstable deps mesa llvm et al.
+x11-libs/cairo gles2 opengl
+
+# Michael Weber <xmw@gentoo.org> (29 Mar 2017)
+# unstable deps
+media-libs/freetype X harfbuzz
+app-text/poppler introspection
+x11-libs/pango introspection
+media-libs/harfbuzz introspection
diff --git a/profiles/arch/arm64/parent b/profiles/arch/arm64/parent
new file mode 100644
index 000000000000..7663f5297bb4
--- /dev/null
+++ b/profiles/arch/arm64/parent
@@ -0,0 +1,2 @@
+../../features/multilib
+../base
diff --git a/profiles/arch/arm64/use.force b/profiles/arch/arm64/use.force
new file mode 100644
index 000000000000..ad4cb1b4c759
--- /dev/null
+++ b/profiles/arch/arm64/use.force
@@ -0,0 +1,18 @@
+# Force the flag which corresponds to ARCH.
+arm64
+
+# Instruction sets that are always available
+cpu_flags_arm_v4
+cpu_flags_arm_v5
+cpu_flags_arm_v6
+cpu_flags_arm_v7
+cpu_flags_arm_v8
+
+cpu_flags_arm_edsp
+cpu_flags_arm_neon
+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
diff --git a/profiles/arch/arm64/use.mask b/profiles/arch/arm64/use.mask
new file mode 100644
index 000000000000..e1edbff916d0
--- /dev/null
+++ b/profiles/arch/arm64/use.mask
@@ -0,0 +1,247 @@
+# Unmask the flag which corresponds to ARCH.
+-arm64
+
+# Unmask arm specific USE flags
+-cpu_flags_arm_v4
+-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_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
+
+# Unmask [old] arm specific USE flags
+-neon
+-armvfp
+
+# doomsday ebuild is not available on this architecture
+doomsday
+
+# Mart Raudsepp <leio@gentoo.org> (17 Feb 2017)
+# x11-misc/colord not tested on arm64 yet
+colord
+
+# Mart Raudsepp <leio@gentoo.org> (05 Feb 2017)
+# dev-libs/DirectFB not tested on arm64 (and we probably don't want it)
+directfb
+
+# Mart Raudsepp <leio@gentoo.org> (04 Feb 2017)
+# net-fs/samba not tested on arm64 yet
+samba
+
+# Mart Raudsepp <leio@gentoo.org> (01 Feb 2017)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# dev-util/valgrind not tested on arm64 yet
+# Upstream seems to have architecture support, however
+valgrind
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# media-libs/portaudio not tested on arm64 yet
+portaudio
+
+# Markus Meier <maekke@gentoo.org> (22 Aug 2010)
+# net-wireless/wimax not tested
+wimax
+
+# Markus Meier <maekke@gentoo.org> (21 Aug 2010)
+# app-antivirus/clamav not tested
+clamav
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+# Samuli Suominen <ssuominen@gentoo.org> (17 Oct 2009)
+# Required package: media-sound/musepack-tools
+musepack
+
+# Raúl Porcel <armin76@gentoo.org>
+# I've been told xfs is broken on ARM
+xfs
+
+# Raúl Porcel <armin76@gentoo.org>
+# Fails to build/work
+openexr
+
+# Samuli Suominen <drac@gentoo.org>
+# media-libs/amrnb and media-libs/amrwb not tested.
+amr
+
+# Samuli Suominen <drac@gentoo.org>
+# media-gfx/gimp not tested.
+gimp
+
+# No hardware to test by the team
+dvb
+ios
+ipod
+
+# Stuff that doesn't make sense on this arch
+3dfx
+dmi
+
+# Stuff we don't want
+fuse
+R
+octave
+tracker
+xindy
+lyx
+mpi
+lasi
+schroedinger
+hardened
+frei0r
+pdfannotextractor
+prelude
+mssql
+
+# havent tested yet
+ruby
+ctypes-python
+sasl
+libproxy
+pkcs11
+bazaar
+darcs
+mercurial
+kerberos
+gpg
+gnome
+doc
+emacs
+gphoto2
+afs
+mono
+lirc
+lm_sensors
+xemacs
+rpm
+scanner
+zvbi
+ldap
+mysql
+dvd
+fluidsynth
+sid
+mms
+mtp
+ieee1394
+sctp
+pm-utils
+darcs
+bs2b
+toolame
+ladspa
+ldns
+ggi
+nut
+dvd
+fits
+tokyocabinet
+rtmp
+vpx
+plotutils
+lpsol
+upnp
+quvi
+bluray
+libtar
+zvbi
+aacplus
+devil
+gts
+anthy
+ace
+R
+sdl
+vim-syntax
+
+# Unmask ARM-only video-cards
+# e.g. exynos5433
+-video_cards_exynos
+# e.g. Snapdragon 410E (dragonboard)
+-video_cards_freedreno
+# e.g. Nvidia's Tegra K1 T132 Denver
+-video_cards_nouveau
+-video_cards_tegra
+# e.g. Raspeberry Pi 3
+-video_cards_vc4
+# e.g. Freescale/NXP i.MX 8
+-video_cards_vivante
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_cirrus
+video_cards_chips
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_neomagic
+video_cards_newport
+video_cards_nsc
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+video_cards_via
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_amdgpu
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# media-libs/xine-lib is not keyworded
+xine
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
diff --git a/profiles/arch/arm64/use.stable.mask b/profiles/arch/arm64/use.stable.mask
new file mode 100644
index 000000000000..6b0c085c24df
--- /dev/null
+++ b/profiles/arch/arm64/use.stable.mask
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 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
+
+# Hans de Graaff <graaff@gentoo.org> (17 Apr 2017)
+# Temporary mask to support stable bug 615818
+ruby_targets_ruby22
+
+# Mart Raudsepp <leio@gentoo.org> (04 Feb 2017)
+# dev-vcs/subversion not marked stable yet
+subversion
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# sys-apps/dbus not marked stable yet
+dbus
+
+# Mart Raudsepp <leio@gentoo.org> (28 Jan 2017)
+# sys-auth/skey not marked stable yet
+skey
+
+# Ben de Groot <yngwin@gentoo.org> (24 Aug 2015)
+# Not yet stable, bug #543326
+qt5
diff --git a/profiles/arch/base/eapi b/profiles/arch/base/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /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 000000000000..29f3d360f06d
--- /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 000000000000..c1f2b0728ebe
--- /dev/null
+++ b/profiles/arch/base/package.use.mask
@@ -0,0 +1,220 @@
+# 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/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
+
+# Tim Harder <radhermit@gentoo.org> (10 Oct 2014)
+# Masked since skype isn't stable
+net-im/bitlbee skype
+
+# 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 000000000000..7f213b9dd017
--- /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 000000000000..2ea1fb3d89fa
--- /dev/null
+++ b/profiles/arch/base/use.mask
@@ -0,0 +1,250 @@
+# 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_nvidia
+video_cards_fglrx
+video_cards_via
+video_cards_vmware
+video_cards_virtualbox
+
+# not needed on non-arm systems
+video_cards_exynos
+video_cards_freedreno
+video_cards_omap
+video_cards_tegra
+video_cards_vc4
+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/arch/hppa/eapi b/profiles/arch/hppa/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/hppa/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/hppa/make.defaults b/profiles/arch/hppa/make.defaults
new file mode 100644
index 000000000000..0a3820884b6c
--- /dev/null
+++ b/profiles/arch/hppa/make.defaults
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="hppa"
+ACCEPT_KEYWORDS="hppa"
+
+CHOST="hppa-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+
+FEATURES="sandbox sfperms strict"
+
+USE="cups foomaticdb fortran gdbm gpm imlib libwww spell firefox"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Set ABI & DEFAULT_ABI consistently with ${ARCH}, to make ebuild
+# checks simpler.
+ABI="hppa"
+DEFAULT_ABI="hppa"
+MULTILIB_ABIS="hppa"
+LIBDIR_hppa="lib"
+CHOST_hppa="${CHOST}"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev"
diff --git a/profiles/arch/hppa/package.mask b/profiles/arch/hppa/package.mask
new file mode 100644
index 000000000000..5b64a27123b6
--- /dev/null
+++ b/profiles/arch/hppa/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/arch/hppa/package.use.force b/profiles/arch/hppa/package.use.force
new file mode 100644
index 000000000000..35f334005f39
--- /dev/null
+++ b/profiles/arch/hppa/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/hppa/package.use.mask b/profiles/arch/hppa/package.use.mask
new file mode 100644
index 000000000000..529847a438ba
--- /dev/null
+++ b/profiles/arch/hppa/package.use.mask
@@ -0,0 +1,240 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTE: When masking a USE flag due to missing keywords, please file a keyword
+# request bug for the hppa arch.
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (4 Oct 2017)
+# -fstack-protector is not supported for hppa, bug 630702
+>=sys-devel/gcc-6.0 ssp
+
+# Michael Palimaka <kensington@gentoo.org> (30 Sep 2017)
+# Required dependencies are not keyworded.
+x11-themes/qtcurve plasma
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (11 Sep 2017)
+# Systemtap has no hppa keywords
+sys-libs/glibc systemtap
+
+# Göktürk Yüksek <gokturk@gentoo.org> (15 Aug 2017)
+# Requires java
+app-forensics/sleuthkit java
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=redis that is masked in this profile.
+dev-python/pyzor test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=systemd that is masked in this profile.
+net-wireless/bluez user-session
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Robin H. Johnson <robbat2@gentoo.org> (05 Aug 2017)
+# Upstream Git is switching to PCRE2 w/ JIT.
+# This is not available on some arches, where a fallback to PCRE1 without JIT is used.
+dev-vcs/git pcre-jit
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Jeroen Roovers <jer@gentoo.org> (26 Feb 2017)
+# app-crypt/libsecret is not keyworded for HPPA
+dev-vcs/git libsecret
+
+# Jeroen Roovers <jer@gentoo.org> (4 Feb 2017)
+# media-libs/libilbc has not been ported to HPPA
+# media-libs/zimg triggers a toolchain issue (bug #597152)
+# sofalizer needs sci-libs/netcdf and sci-libs/hdf5 (bug #615510)
+media-video/ffmpeg libilbc sofalizer zimg
+
+# Jeroen Roovers <jer@gentoo.org> (3 Feb 2017)
+# net-mail/notmuch is not keyworded
+mail-client/mutt notmuch
+
+# Justin Lecher <jlec@gentoo.org> (15 Jan 2017)
+# unkeyworded rev deps
+dev-games/openscenegraph gdal las
+
+# Jeroen Roovers <jer@gentoo.org> (28 Dec 2016)
+# "#error Unsupported architecture"
+dev-libs/libpcre2 jit
+
+# Jeroen Roovers <jer@gentoo.org> (31 May 2016)
+# Mask kde-frameworks/kapidox (bug #568972)
+kde-frameworks/extra-cmake-modules doc
+
+# Jeroen Roovers <jer@gentoo.org> (19 May 2016)
+# pulls in many dev-ruby/asciidoctor dependencies (bug #583390)
+net-misc/chrony html
+
+# Mike Frysinger <vapier@gentoo.org> (21 Feb 2016)
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Jeroen Roovers <jer@gentoo.org> (16 Aug 2015)
+# Bundles luajit which has not been ported to HPPA (bug #554376)
+app-text/texlive-core luajittex
+dev-texlive/texlive-basic luajittex
+
+# Jeroen Roovers <jer@gentoo.org> (3 Jul 2015)
+# net-libs/nghttp2 fails to compile (bug #552898)
+net-libs/nghttp2 cxx
+
+# Jeroen Roovers <jer@gentoo.org> (17 May 2015)
+# Mask USE=rados for net-analyzer/rrdtool since sys-cluster/ceph is not
+# keyworded (bug #549516)
+net-analyzer/rrdtool rados
+
+# Jeroen Roovers <jer@gentoo.org> (26 Apr 2015)
+# Contact us if you want or have an HPPA cluster with dev-db/mariadb
+# (bug #544378)
+dev-db/mariadb galera
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Jeroen Roovers <jer@gentoo.org> (2 Feb 2015)
+# dev-python/gevent requires dev-python/greenlet which has not been ported to
+# HPPA (bug #538510)
+dev-python/pyzor gevent
+
+# Jeroen Roovers <jer@gentoo.org> (19 Oct 2014)
+# requires dev-python/restkit which requires
+# dev-python/socketpool which requires dev-python/gevent which requires
+# dev-python/greenlet which has not been ported to HPPA (bug #525246)
+dev-python/wsgiproxy2 test
+
+# Jeroen Roovers <jer@gentoo.org> (29 Jul 2014)
+# Test phase requires dev-db/mongodb which requires dev-util/google-perftools
+# which has not been ported to HPPA (bug #517880, bug #525246)
+dev-libs/mongo-c-driver test
+dev-python/pymongo test
+
+# Jeroen Roovers <jer@gentoo.org> (6 Mar 2014)
+# USE=gui requires x11-libs/qscintilla,
+sci-mathematics/octave gui
+
+# Jeroen Roovers <jer@gentoo.org> (31 Jan 2014)
+# Mask x11-libs/libgksu dependency (bug #499900)
+xfce-extra/xfce4-taskmanager gksu
+
+# Julian Ospald <hasufell@gentoo.org> (23 Nov 2013)
+# needs app-arch/innoextract (bug #492326)
+games-fps/duke3d-data gog
+
+# Jeroen Roovers <jer@gentoo.org> (25 Oct 2013)
+# Building against libatomic_ops fails (bug #453704)
+sys-libs/libunwind libatomic
+
+# Jeroen Roovers <jer@gentoo.org> (23 Jul 2013)
+# graphite is not implemented on HPPA
+sys-devel/gcc graphite
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Jeroen Roovers <jer@gentoo.org> (22 Jan 2013)
+# dev-python/greenlet has not been ported to HPPA but is needed for
+# dev-python/restkit which is needed for dev-python/pyquery's test phase
+# (bug #452764)
+dev-python/pyquery test
+
+# Jeroen Roovers <jer@gentoo.org> (2 Jan 2013)
+# Mask non-keyworded sci-libs/hdf5 for sci-mathematics/octave
+sci-mathematics/octave hdf5 qhull
+
+# Jeroen Roovers <jer@gentoo.org> (8 Jul 2012)
+# media-libs/devil has not been fully tested on HPPA
+media-gfx/graphviz devil
+
+# Jeroen Roovers <jer@gentoo.org> (3 Jul 2012)
+# Mask USE=connman for net-libs/gupnp (bug #424225)
+net-libs/gupnp connman
+
+# Jeroen Roovers <jer@gentoo.org> (21 May 2012)
+# HPPA is an unsupported architecture
+dev-libs/libpcre jit
+
+# Arun Raghavan <ford_prefect@gentoo.org> (24 May 2012)
+# media-sound/pulseaudio needs PyQt4[dbus] for making the equalizer module
+# usable. Mask until this is available.
+# Jeroen Roovers <jer@gentoo.org> (18 Feb 2014)
+# OSS is the only kernel audio interface that works on HPPA
+media-sound/pulseaudio equalizer -oss
+
+# Jeroen Roovers <jer@gentoo.org> (21 May 2012)
+# media-sound/lilypond has problems running mpost (bug #416961)
+app-text/asciidoc test
+
+# Jeroen Roovers <jer@gentoo.org> (26 Apr 2012)
+# Untested dependency on net-misc/connman
+dev-qt/qtbearer connman
+
+# Jeroen Roovers <jer@gentoo.org> (19 Apr 2012)
+# Requires sys-power/upower or sys-power/upower-pm-utils which are
+# not much use on HPPA
+xfce-extra/xfce4-systemload-plugin upower
+xfce-base/xfce4-session upower
+xfce-base/xfce4-settings upower
+
+# Jeroen Roovers <jer@gentoo.org> (25 Oct 2011)
+# Depends upon an as yet unsupported version of dev-libs/dietlibc
+dev-libs/libowfat diet
+
+# Jeroen Roovers <jer@gentoo.org> (5 Jun 2011)
+# app-office/gnumeric is not keyworded (bug #367513)
+app-office/lyx gnumeric
+
+# Jeroen Roovers <jer@gentoo.org> (24 Feb 2011)
+# Needs Java (bug #355353)
+app-text/texlive pdfannotextractor
+
+# Jeroen Roovers <jer@gentoo.org> (30 Nov 2010)
+# Mask doc-pdf because of Java dependencies (bug #347259)
+net-analyzer/wireshark doc-pdf
+
+# Jeroen Roovers <jer@gentoo.org> (25 Nov 2010)
+# No support for sci-libs/ipp on HPPA (bug #340269)
+media-libs/opencv ipp
+
+# Justin Lecher <jlec@gentoo.org> (13 Aug 2010)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Pacho Ramos <pacho@gentoo.org> (11 Jul 2010)
+# Mask due bug #324511, this will be general once needed by more packages.
+net-im/pidgin gstreamer
+x11-misc/xscreensaver gdm new-login
+x11-libs/wxGTK gstreamer
+net-p2p/mldonkey guionly gtk
+dev-vcs/git gtk
+net-im/pidgin eds
+
+# Jeroen Roovers <jer@gentoo.org> (15 Apr 2008)
+# media-sound/fluidsynth fails to build with stable libtool, so it can't be
+# tested for ~hppa keywording right now
+media-sound/mpd fluidsynth
+
+# Jeroen Roovers <jer@gentoo.org> (16 Sep 2008)
+# cpudetection and custom-cpuopts does not apply
+# to HPPA (bug #234629)
+media-video/mplayer cpudetection
+
+# Jeroen Roovers <jer@gentoo.org> (16 Sep 2008)
+# app-text/xindy needs dev-lisp/clisp and clisp does not build (bug #229217)
+app-text/texlive xindy
+
+# Mart Raudsepp <leio@gentoo.org> (02 Apr 2008)
+# media-plugins/gst-plugins-{dvb,fluendo-mpegdemux,bad} not keyworded
+media-plugins/gst-plugins-meta dvb
diff --git a/profiles/arch/hppa/package.use.stable.mask b/profiles/arch/hppa/package.use.stable.mask
new file mode 100644
index 000000000000..9697f8c717cf
--- /dev/null
+++ b/profiles/arch/hppa/package.use.stable.mask
@@ -0,0 +1,53 @@
+# 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 ---
+
+# Andreas Sturmlechner <asturm@gentoo.org> (07 Oct 2017)
+# media-gfx/graphite2 security stabilisation timeout.
+# bug #621724
+app-doc/doxygen doc latex
+app-text/texlive-core xetex
+dev-python/sphinx latex
+dev-util/cmocka doc
+media-libs/harfbuzz graphite
+
+# Andreas Sturmlechner <asturm@gentoo.org> (30 Sep 2017)
+# Mask pdf support so net-print/cups-filters stabilisation
+# can go ahead (bug 627392)
+net-print/cups-filters pdf
+
+# David Seifert <soap@gentoo.org> (23 Sep 2017)
+# MPI does not have stable keywords on hppa
+sci-libs/fftw mpi
+
+# Andreas Sturmlechner <asturm@gentoo.org> (03 Sep 2017)
+# Mask mpi support so Boost stabilization can go ahead
+# Boost 1.63 (bug 624662), Boost 1.62 (bug 590244)
+dev-libs/boost mpi
+
+# Andreas Sturmlechner <asturm@gentoo.org> (19 Aug 2017)
+# Mask net-libs/libssh rdeps for stabilisation timeout
+# (bug 618916)
+media-gfx/exiv2 webready
+media-video/ffmpeg ssh
+net-analyzer/wireshark ciscodump libssh sshdump
+
+# Andreas Sturmlechner <asturm@gentoo.org> (03 Aug 2017)
+# Mask pptx support for dev-libs/libzip stabilisation timeout
+# (bug 622044)
+media-gfx/pstoedit pptx
diff --git a/profiles/arch/hppa/packages b/profiles/arch/hppa/packages
new file mode 100644
index 000000000000..c076e9fc959d
--- /dev/null
+++ b/profiles/arch/hppa/packages
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+*sys-boot/palo
diff --git a/profiles/arch/hppa/parent b/profiles/arch/hppa/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/hppa/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/hppa/use.force b/profiles/arch/hppa/use.force
new file mode 100644
index 000000000000..9b60317bfc20
--- /dev/null
+++ b/profiles/arch/hppa/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+hppa
diff --git a/profiles/arch/hppa/use.mask b/profiles/arch/hppa/use.mask
new file mode 100644
index 000000000000..bd158162a449
--- /dev/null
+++ b/profiles/arch/hppa/use.mask
@@ -0,0 +1,315 @@
+# Copyright 1999-2017 Gentoo Foundation; Distributed under the GPL v2
+
+# NOTE: When masking a USE flag due to missing keywords, please file a keyword
+# request bug for the hppa arch.
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Andreas Sturmlechner <asturm@gentoo.org> (25 Feb 2017)
+# kwallet integration split from kde to distinct flag
+kwallet
+
+# Jeroen Roovers <jer@gentoo.org> (31 Jan 2016)
+# USE=xwidgets requires net-libs/webkit-gtk
+xwidgets
+
+# Jeroen Roovers <jer@gentoo.org> (16 Oct 2015)
+# HPPA has no NUMA support in the kernel
+numa
+
+# Jeroen Roovers <jer@gentoo.org> (3 Feb 2015)
+# app-misc/geoclue has not been tested on HPPA
+geoclue
+
+# Jeroen Roovers <jer@gentoo.org> (3 Feb 2015)
+# net-misc/connman has not been tested on HPPA
+connman
+
+# Jeroen Roovers <jer@gentoo.org> (18 Jan 2015)
+# No video acceleration is available so video decoding acceleration will not
+# work either (bug #536956)
+vaapi
+
+# Jeroen Roovers <jer@gentoo.org> (24 Dec 2014)
+# sys-devel/clang has not been ported to HPPA
+clang
+
+# Jeroen Roovers <jer@gentoo.org> (7 Nov 2014)
+# dev-lang/luajit has not been ported to HPPA
+luajit
+
+# Jeroen Roovers <jer@gentoo.org> (30 Sep 2014)
+# sys-libs/libseccomp has not been ported to HPPA (bug #524148)
+seccomp
+
+# Jeroen Roovers <jer@gentoo.org> (19 Sep 2014)
+# >=net-libs/libgadu-1.12.0 (bug #519854) requires dev-libs/protobuf-c (bug #519772)
+gadu
+
+# Jeroen Roovers <jer@gentoo.org> (20 May 2014)
+# Mask USE=systemtap generally until proper kernel support is in place
+systemtap
+
+# Jeroen Roovers <jer@gentoo.org> (20 May 2014)
+# USE=tcmalloc needs dev-util/google-perftools
+tcmalloc
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (10 Nov 2013)
+# sys-devel/llvm is not keyworded, bug #320221
+llvm
+
+# Jeroen Roovers <jer@gentoo.org> (22 Aug 2013)
+# No known OpenCL providers (bug #482096)
+opencl
+
+# Samuli Suominen <ssuominen@gentoo.org> (12 Mar 2013)
+# NVIDIA Cg toolkit for binary drivers
+cg
+
+# Jeroen Roovers <jer@gentoo.org> (13 Nov 2012)
+# media-libs/fdk-aac is not supported on HPPA (bug #442806)
+fdk
+
+# Jeroen Roovers <jer@gentoo.org> (23 May 2012)
+# sys-apps/gptfdisk creates partition tables incompatible with the HPPA
+# bootloader (bug #412801).
+gptfdisk
+
+# Jeroen Roovers <jer@gentoo.org> (25 Apr 2012)
+# sys-apps/systemd is not tested
+systemd
+
+# Jeroen Roovers <jer@gentoo.org> (4 Apr 2012)
+# media-video/vlc is not tested
+vlc
+
+# Jeroen Roovers <jer@gentoo.org> (27 Mar 2012)
+# app-i18n/ibus is not tested
+ibus
+
+# Jeroen Roovers <jer@gentoo.org> (8 Mar 2012)
+# The crash reporting facility in www-client/firefox does not compile
+crashreporter
+
+# Jeroen Roovers <jer@gentoo.org> (4 Jan 2012)
+# dvb is untested on HPPA
+dvb
+
+# Jeroen Roovers <jer@gentoo.org> (4 Jan 2012)
+# No support for Blu-ray (bug #397531).
+bluray
+
+# Jeroen Roovers <jer@gentoo.org> (15 Sep 2011)
+# Prelude has not been tested on HPPA.
+prelude
+
+# Jeroen Roovers <jer@gentoo.org> (9 Jun 2011)
+# Lots of untested dependencies (bug #365451)
+facedetect
+
+# Jeroen Roovers <jer@gentoo.org> (2 May 2011)
+# No support for CUDA on HPPA
+cuda
+
+# Samuli Suominen <ssuominen@gentoo.org> (25 Dec 2010)
+# This will need stable gnome-base/gvfs.
+thunar
+
+# Jeroen Roovers <jer@gentoo.org> (29 Oct 2010)
+# Webkit does not work on HPPA right now.
+webkit
+
+# Jeroen Roovers <jer@gentoo.org> (25 Oct 2010)
+# FFI does not work: "Unknown cpu type" (bug #337956)
+ffi
+
+# Jeroen Roovers <jer@gentoo.org> (20 Jul 2010)
+# Mask USE=gnome entirely (bug #324511)
+glade
+libnotify
+gconf
+gnome
+gnome-keyring
+gnome-online-accounts
+
+# Jeroen Roovers <jer@gentoo.org> (19 Jul 2010)
+# Masked because of missing gnome-base/gnome-panel
+# dependency (bug #324511)
+applet
+
+# Jeroen Roovers <jer@gentoo.org> (10 Jul 2010)
+# No known hardware support for video decoding
+vaapi
+vdpau
+
+# Jeroen Roovers <jer@gentoo.org> (1 Jul 2010)
+# Drop support for ghc and darcs
+darcs
+
+# Jeroen Roovers <jer@gentoo.org> (5 Apr 2010)
+# Mask USE=kde (bug #304363).
+kde
+
+# Jeroen Roovers <jer@gentoo.org> (28 Feb 2010)
+# app-accessibility/flite does not work (bug #307241)
+flite
+
+# Jeroen Roovers <jer@gentoo.org> (4 Aug 2009)
+# net-misc/wicd and sys-power/pm-utils are currently not supported (bug #280312)
+pm-utils
+
+# Unmask the flag which corresponds to ARCH.
+-hppa
+
+# Jeroen Roovers <jer@gentoo.org> (7 Jun 2008)
+# dev-util/valgrind has not been ported to HPPA.
+valgrind
+
+# Jeroen Roovers <jer@gentoo.org> (4 Jan 2008)
+# Bug 179895: HPPA's gcc cannot build native code / lacking upstream support
+ocamlopt
+
+# 2007/05/17 Jeroen Roovers <jer@gentoo.org>
+# sys-devel/gcc fails to build with USE=d (bug #178896).
+d
+
+# 2007/05/02 Jeroen Roovers <jer@gentoo.org>
+# Lack of user/dev support for WiFi (bug #176517)
+networkmanager
+
+# 2007/04/07 Jeroen Roovers <jer@gentoo.org>
+# libffi has not been ported to hppa, therefore gcc fails to build with USE=gcj
+gcj
+
+# 2007/03/02 Samuli Suominen <drac@gentoo.org>
+# See https://bugs.gentoo.org/show_bug.cgi?id=157881#c3
+battery
+
+# 2006/08/18 Saleem Abdulrasool <compnerd@gentoo.org>
+# dvdr hardware not available - masking with permission from GMsoft
+dvdr
+
+# 2006/05/25 Jeroen Roovers <jer@gentoo.org>
+# libemf is not ported to hppa
+emf
+
+# 2006/05/25 Guy Martin <gmsoft@gentoo.org>
+# libaio is not ported on hppa
+aio
+
+# 2006/04/26 Saleem Abdulrasool <compnerd@gentoo.org>
+# sys-apps/dmidecode: masking with vapier's blessings
+dmi
+
+# 2006/03/07 Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures lacking direct rendering
+dri
+
+# 2006/02/05 Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_amdgpu
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_chips
+video_cards_cirrus
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_neomagic
+video_cards_newport
+video_cards_nouveau
+video_cards_nsc
+video_cards_nv
+video_cards_r100
+video_cards_r128
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeon
+video_cards_radeonsi
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_sisusb
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_v4l
+video_cards_vesa
+video_cards_vmware
+video_cards_voodoo
+
+# 25 Jul 2005 Guy Martin <gmsoft@gentoo.org>
+# lm_sensors not supported on hppa and ieee1394 not tested
+lm_sensors
+iec61883
+ieee1394
+
+# 25 Jun 2005 Guy Martin <gmsoft@gentoo.org>
+# mono is not yet supported on hppa
+mono
+
+# 18 Feb 2005 Guy Martin <gmsoft@gentoo.org>
+# No emboss support on hppa for now
+emboss
+
+# 08 Aug 2004 Guy Martin <gmsoft@gentoo.org>
+# Wifi stuff not test yet because of lack of hardware
+wifi
+
+# 26 Feb 2003 Guy Martin <gmsoft@gentoo.org>
+# No lirc support on hppa
+lirc
+
+# 22 Jul 2003 Guy Martin <gmsoft@gentoo.org>
+# Scanner and gphoto2 not yet tested
+gphoto2
+scanner
+
+# 13 Apr 2003 Guy Martin <gmsoft@gentoo.org>
+# Selinux patches not tested on hppa and no kernel sources are emergeables with this patch.
+selinux
+
+# 20 Mar 2003 Guy Martin <gmsoft@gentoo.org>
+# Many java apps need java => 1.3 and hppa has only 1.1 right now
+java
+
+# 5 Jan 2005 Ciaran McCreesh <ciaranm@gentoo.org>
+# No reliable java, no netbeans. bug 66762
+netbeans
+
+# 14 Mar 2003 Guy Martin <gmsoft@gentoo.org>
+# USE flags not related to hppa
+acpi
+apm
+afs
+pcmcia
+pda
+
+# see email to gentoo-dev with subject "use.mask and PHP5's crazy IUSE"
+# Dated Sat, 31 Jul 2004 14:49:28 -0700, from robbat2@gentoo.org
+# all of these are binary-only, and not presently available on this
+# architecture.
+ibm
+djbfft
+
+# Added because of xmms-plugin.eclass. Please test out
+# media-sound/beep-media-player and remove if
+bmp
+3dfx
+
+# Adding h323 to mask. For more information see bug #115798
+h323
diff --git a/profiles/arch/ia64/eapi b/profiles/arch/ia64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/ia64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/ia64/make.defaults b/profiles/arch/ia64/make.defaults
new file mode 100644
index 000000000000..476c229a5a63
--- /dev/null
+++ b/profiles/arch/ia64/make.defaults
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="ia64"
+ACCEPT_KEYWORDS="ia64"
+
+CHOST="ia64-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Set ABI & DEFAULT_ABI consistently with ${ARCH}, to make ebuild
+# checks simpler.
+ABI="ia64"
+DEFAULT_ABI="ia64"
+MULTILIB_ABIS="ia64"
+LIBDIR_ia64="lib"
+CHOST_ia64="${CHOST}"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx vesa voodoo"
+
+# 2006/12/23 - Diego Pettenò <flameeyes@gentoo.org>
+# Defaults for audio drivers - Took from x86 profile
+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"
diff --git a/profiles/arch/ia64/package.mask b/profiles/arch/ia64/package.mask
new file mode 100644
index 000000000000..d6cde39bbece
--- /dev/null
+++ b/profiles/arch/ia64/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Zac Medico <zmedico@gentoo.org> (09 Aug 2011)
+# Bug #377907 - Use package.mask for compatibility with PMS section 5.2.7, and
+# future versions of sys-apps/portage.
+<sys-devel/gcc-3.2
diff --git a/profiles/arch/ia64/package.use b/profiles/arch/ia64/package.use
new file mode 100644
index 000000000000..c0775ee3d415
--- /dev/null
+++ b/profiles/arch/ia64/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Pacho Ramos <pacho@gentoo.org> (15 Feb 2014)
+# libev isn't supported on this arch, use another default (#499498)
+dev-libs/libverto libevent
diff --git a/profiles/arch/ia64/package.use.force b/profiles/arch/ia64/package.use.force
new file mode 100644
index 000000000000..d21f658825d4
--- /dev/null
+++ b/profiles/arch/ia64/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Raúl Porcel <armin76@gentoo.org> (21 Oct 2007)
+# It segfaults without debug use-flags
+# Remove when http://bugs.php.net/bug.php?id=42893 is fixed
+dev-lang/php debug
diff --git a/profiles/arch/ia64/package.use.mask b/profiles/arch/ia64/package.use.mask
new file mode 100644
index 000000000000..3db4f176fc4e
--- /dev/null
+++ b/profiles/arch/ia64/package.use.mask
@@ -0,0 +1,343 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (10 Aug 2017)
+# Both USE=fluidsynth and USE=timidity are masked in this profile.
+media-libs/sdl-mixer midi
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=dvd that is masked in this profile.
+media-video/mplayer dvdnav
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=v4l that is masked in this profile.
+media-video/ffmpeg libv4l
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=bluetooth that is masked in this profile.
+media-sound/pulseaudio native-headset
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=networkmanager that is masked in this profile.
+app-misc/geoclue skyhook
+
+# Robin H. Johnson <robbat2@gentoo.org> (05 Aug 2017)
+# Upstream Git is switching to PCRE2 w/ JIT.
+# This is not available on some arches, where a fallback to PCRE1 without JIT is used.
+dev-vcs/git pcre-jit
+
+# Sergei Trofimovich <slyfox@gentoo.org> (20 Jul 2017)
+# pulls in unkeyworded java
+sci-libs/gdal mdb
+
+# Sergei Trofimovich <slyfox@gentoo.org> (20 Jul 2017)
+# pulls in unkeyworded lapack
+sci-libs/gdal armadillo
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Sergei Trofimovich <slyfox@gentoo.org> (17 Jun 2017)
+# Pulls in dev-db/redis which is not keyworded on ia64.
+dev-python/pyzor test
+
+# Sergei Trofimovich <slyfox@gentoo.org> (17 Jun 2017)
+# dev-python/gevent requires dev-python/greenlet which has not been ported to
+# ia64 (bug #538510)
+dev-python/pyzor gevent
+
+# Sergei Trofimovich <slyfox@gentoo.org> (10 Jun 2017)
+# media-libs/libilbc has not been ported to ia64, bug #610546
+media-video/ffmpeg libilbc
+
+# Sergei Trofimovich <slyfox@gentoo.org> (06 Jun 2017)
+# Mask USE=rados for net-analyzer/rrdtool since sys-cluster/ceph is not
+# keyworded (bug #549516)
+net-analyzer/rrdtool rados
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on ia64
+xfce-base/xfwm4 xpresent
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jan 2017)
+# Don't keyword redis
+dev-libs/hiredis test
+
+# Lars Wendler <polynomial-c@gentoo.org> (17 Nov 2016)
+# jit not supported on ia64 (bug #600052).
+dev-libs/libpcre2 jit
+
+# Christian Ruppert <idl0r@gentoo.org> (14 Oct 2016)
+# dnstap USE masked due to missing keywords
+net-dns/bind dnstap
+
+# Gilles Dartiguelongue <eva@gentoo.org> (11 Sep 2016)
+# networkmanager USE masked due to missing keywords
+gnome-extra/nm-applet teamd
+
+# Gilles Dartiguelongue <eva@gentoo.org> (11 Sep 2016)
+# Opt-out of ofono support until there is a user request,
+# see also pulseaudio/connman
+net-misc/networkmanager ofono
+
+# Thomas Deutschmann <whissi@gentoo.org> (26 Aug 2016)
+# Enable numa support on supported architectures
+dev-db/percona-server -numa
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Aug 2016)
+# Missing keywords on media-libs/grilo - bug #521972
+media-sound/rhythmbox upnp-av
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (28 Jun 2016)
+# Missing keywords on app-text/gspell - bug #587368
+>=app-editors/gedit-3.20 spell
+
+# Justin Lecher <jlec@gentoo.org> (22 Feb 2016)
+# Missing test deps keyword #575366
+dev-cpp/eigen test
+
+# Mike Frysinger <vapier@gentoo.org> (21 Feb 2016)
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Pacho Ramos <pacho@gentoo.org> (31 Jan 2016)
+# Missing keywords, bug #560382
+media-video/ffmpeg snappy
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no ia64 support in media-libs/glfw
+app-text/mupdf opengl
+
+# Justin Lecher <jlec@gentoo.org> (18 Nov 2015)
+# requires dev-python/restkit which requires
+# dev-python/socketpool which requires dev-python/gevent which requires
+# dev-python/greenlet which has not been ported
+dev-python/wsgiproxy2 test
+dev-python/pyquery test
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+>=media-plugins/grilo-plugins-0.2.16 upnp-av
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Justin Lecher <jlec@gentoo.org> (14 Oct 2015)
+# Requires dev-python/ipython which triggers a long dep chain
+dev-python/restkit cli
+
+# 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 innodb-snappy
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (10 Sep 2015)
+# Requires wifi USE flag, which is masked for this arch
+net-misc/networkmanager wext
+
+# Pacho Ramos <pacho@gentoo.org> (06 Sep 2015)
+# Missing keywords
+media-sound/pulseaudio ofono-headset
+
+# 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> (11 Jul 2015)
+# Requires dev-java/fop but we don't support java on ia64.
+gnome-extra/libgda reports
+net-analyzer/wireshark doc-pdf
+
+# Pacho Ramos <pacho@gentoo.org> (13 Jun 2015)
+# Missing keywords, bug #513108
+net-misc/spice-gtk smartcard webdav
+
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# dev-lang/luajit and dev-lua/lgi and lack ia64 keyword, bug #551540
+dev-libs/libpeas lua jit
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet & media-libs/libsdl2 tested #499974
+dev-libs/efl physics sdl
+media-libs/elementary sdl
+
+# Alexis Ballier <aballier@gentoo.org> (11 Feb 2015)
+# Missing ffmpeg deps, bug #510340
+media-video/ffmpeg gme ssh
+
+# Pacho Ramos <pacho@gentoo.org> (10 Jan 2014)
+# Missing keywords
+net-misc/networkmanager teamd
+
+# Mark Wright <gienah@gentoo.org> (14-23 Dec 2014)
+# test dependencies need keywording
+dev-haskell/binary test
+dev-haskell/text test
+dev-haskell/vector test
+
+# Christoph Junghans <junghans@gentoo.org> (21 Jul 2014)
+# Missing keywords on sci-libs/libcerf (bug 517726)
+sci-visualization/gnuplot libcerf
+
+# Pacho Ramos <pacho@gentoo.org> (12 Apr 2014)
+# Missing keywords, bug #507490
+net-misc/modemmanager mbim
+
+# Mike Frysinger <vapier@gentoo.org> (15 Mar 2014)
+# Various deps not ported to ia64.
+dev-python/ipython nbconvert notebook
+
+# Mike Frysinger <vapier@gentoo.org> (15 Mar 2014)
+# dev-python/greenlet is not ported to ia64.
+dev-python/pyzmq green test
+
+# Pacho Ramos <pacho@gentoo.org> (15 Mar 2014)
+# Missing keywords, bug #504672
+>=net-misc/vinagre-3.10 rdp
+
+# Pacho Ramos <pacho@gentoo.org> (23 Feb 2014)
+# Needed dependencies cannot be installed on ia64, bug #498638
+dev-util/dbus-test-runner test
+
+# Pacho Ramos <pacho@gentoo.org> (22 Feb 2014)
+# Missing keywords, bug #495250
+>=gnome-base/gnome-extra-apps-3.10 tracker
+
+# Pacho Ramos <pacho@gentoo.org> (10 Feb 2014)
+# Missing keywords, bug #495254
+>=dev-libs/totem-pl-parser-3.10 quvi
+
+# Pacho Ramos <pacho@gentoo.org> (19 Jan 2014)
+# Missing keywords, bug #478254
+gnome-base/gnome classic extras
+
+# Julian Ospald <hasufell@gentoo.org> (04 Jan 2014)
+# no keyword for media-libs/tremor
+>=dev-libs/DirectFB-1.7.1 tremor
+
+# Pacho Ramos <pacho@gentoo.org> (02 Dec 2013)
+# Missing keywords, bug #493156
+media-libs/libgphoto2 serial
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Mark Wright <gienah@gentoo.org> (26 Oct 2013)
+# template-haskell not yet available
+dev-haskell/dataenc test
+
+# Pacho Ramos <pacho@gentoo.org> (20 Jul 2013)
+# Keywords pending, bug #476710
+>=gnome-base/gnome-extra-apps-3.8 games
+
+# Dirkjan Ochtman <djc@gentoo.org> (3 May 2013)
+# depends on net-libs/polarssl
+>=net-vpn/openvpn-2.3.1 polarssl
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono/monodevelop
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Agostino Sarubbo <ago@gentoo.org> (09 Feb 2013)
+# Mask media-video/libav[hardcoded-tables] bug #453328
+# I don't use use.mask because it works on ffmpeg
+media-video/libav hardcoded-tables
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Jan 2013)
+# remove mask when net-libs/libqmi is keyworded here
+net-misc/modemmanager qmi qmi-newest
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord argyllcms extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# remove mask if/when mail-client/thunderbird is keyworded here
+app-misc/tracker thunderbird
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Agostino Sarubbo <ago@gentoo.org> (18 Dec 2012)
+# kde is not stable, then no needs phonon backends
+media-libs/phonon gstreamer vlc
+
+# Robin H Johnson <robbat2@gentoo.org> (01 Nov 2012)
+# MySQL 5.5 wants systemtap, tcmalloc & jemalloc
+>=dev-db/mysql-5.5 tcmalloc
+>=dev-db/mariadb-5.5 tcmalloc
+>=dev-db/percona-server-5.5 tcmalloc
+
+# Raúl Porcel <armin76@gentoo.org> (28 May 2012)
+# Needs x11-misc/lightdm(which also requires some other deps)
+x11-misc/xscreensaver new-login
+
+# Alexey Shvetsov <alexxy@gentoo.org> (17 Dec 2011)
+# Mask use numa for openmpi
+sys-cluster/openmpi openmpi_fabrics_psm openmpi_fabrics_knem openmpi_fabrics_open-mx openmpi_fabrics_ofed openmpi_fabrics_dapl openmpi_rm_slurm openmpi_fabrics_sctp 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
+
+# Raúl Porcel <armin76@gentoo.org> (05 Nov 2011)
+# jit not supported on ia64
+dev-libs/libpcre jit
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools (bug #381737
+dev-libs/libmemcached tcmalloc
+
+# Tomáš Chvátal <scarabeus@gentoo.org> (4 Apr 2011)
+# Needs sci-libs/umfpack keyworded. Bug #361947.
+media-libs/gegl umfpack
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (17 Dec 2010)
+# needs sys-libs/libcap-ng that is masked right now
+sys-apps/smartmontools caps
+
+# Raúl Porcel <armin76@gentoo.org> (5 Dec 2010)
+# Needs testing
+www-client/elinks javascript
+
+# Raúl Porcel <armin76@gentoo.org> (26 Jun 2010)
+# custom-optimization doesn't work on ia64
+mail-client/thunderbird custom-optimization
+www-client/firefox custom-optimization
+www-client/seamonkey custom-optimization
+
+# Ben de Groot <yngwin@gentoo.org> (16 Jan 2010)
+# qtmultimedia is not keyworded, bug 293671
+dev-python/PyQt4 multimedia
+
+# Raúl Porcel <armin76@gentoo.org>
+# Keep deps minimal
+x11-wm/fvwm lock
+
+# Raúl Porcel <armin76@gentoo.org> (11 Apr 2009)
+# net-libs/webkit-gtk segfaults but dev-qt/qtwebkit doesn't
+dev-python/PyQt4 -webkit
+
+# Raúl Porcel <armin76@gentoo.org> (07 Jul 2008)
+# Make clisp deps minimal
+dev-lisp/clisp hyperspec pari svm
+
+# missing keywords
+media-plugins/gst-plugins-meta dts dv lame libvisual modplug mms taglib vcd wavpack
+
+# Marius Brehler <marfbre@linux.sungazer.de> (13 Aug 2015)
+# missing keyword
+>=sci-misc/boinc-7.4.42-r1 X
diff --git a/profiles/arch/ia64/package.use.stable.mask b/profiles/arch/ia64/package.use.stable.mask
new file mode 100644
index 000000000000..be3a4b92f9d2
--- /dev/null
+++ b/profiles/arch/ia64/package.use.stable.mask
@@ -0,0 +1,38 @@
+# 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 ---
+
+# Hans de Graaff <graaff@gentoo.org> (16 Apr 2016)
+# Mask tests on thin-provisioning-tools since the required
+# packages are no longer stable, bug 610088
+sys-block/thin-provisioning-tools test
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+dev-util/geany-plugins gtkspell
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+>=net-libs/webkit-gtk-2.4 geoloc
+>=x11-libs/gtk+-3.12.2 cloudprint
+x11-libs/gksu gnome
+
+# sufficiently recent wayland is not stable yet, bug #559062
+~dev-libs/efl-1.15.2 wayland
+~dev-libs/efl-1.17.0 wayland
+~media-libs/elementary-1.15.2 wayland
+~media-libs/elementary-1.17.0 wayland
diff --git a/profiles/arch/ia64/parent b/profiles/arch/ia64/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/ia64/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/ia64/use.force b/profiles/arch/ia64/use.force
new file mode 100644
index 000000000000..1dfcca5c0949
--- /dev/null
+++ b/profiles/arch/ia64/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+ia64
diff --git a/profiles/arch/ia64/use.mask b/profiles/arch/ia64/use.mask
new file mode 100644
index 000000000000..10e007d236e3
--- /dev/null
+++ b/profiles/arch/ia64/use.mask
@@ -0,0 +1,225 @@
+# Unmask the flag which corresponds to ARCH.
+-ia64
+
+# This is a list of USE flags that should not be used on ia64.
+
+# Sergei Trofimovich <slyfox@gentoo.org> (17 Jun 2017)
+# There is no luajit support on ia64. Bug #554376
+luajit
+luajittex
+
+# Andreas Sturmlechner <asturm@gentoo.org> (25 Feb 2017)
+# kwallet integration split from kde to distinct flag
+kwallet
+
+# Julian Ospald <hasufell@gentoo.org> (20 Sep 2015)
+# no LibreSSL support yet
+curl_ssl_libressl
+libressl
+
+# No hardware to test by the team
+3dfx
+bluetooth
+bluray
+dvb
+dvd
+gphoto2
+gps
+ios
+ipod
+lirc
+pcmcia
+pda
+scanner
+sms
+v4l
+wifi
+
+# Hardware not available on ia64
+apm
+battery
+lm_sensors
+pm-utils
+
+# Stuff that doesn't work on ia64, or not tested
+afs
+blas
+djbfft
+emboss
+jack
+lapack
+lqr
+celt
+capi
+lensfun
+kde
+metalink
+upnp
+fdk
+valgrind
+matplotlib
+mongodb
+pgm
+scim
+
+# Stuff we don't want
+antlr
+lasi
+mpi
+networkmanager
+octave
+timidity
+semantic-desktop
+fits
+libburn
+topal
+indi
+flite
+nut
+sctp
+bs2b
+tokyocabinet
+schroedinger
+ots
+eclipse
+vaapi
+librtmp
+rtmp
+vpx
+frei0r
+lpsol
+libev
+prelude
+ladspa
+aacplus
+devil
+gts
+clang
+redis
+
+# Stuff that doesn't compile on ia64
+diet
+emf
+mono
+xemacs
+
+# Other
+
+# Raúl Porcel <armin76@gentoo.org> (20 Aug 2014)
+# Upstream drops support on ia64 from 4.0 onwards, bug #430352
+ocamlopt
+
+
+# Raúl Porcel <armin76@gentoo.org> (23 Apr 2011)
+# Needs to be tested
+video_cards_nouveau
+
+# Matt Turner <mattst88@gmail.com> (06 May 2011)
+# media-sound/mumble not keyworded on ppc
+mumble
+
+# Samuli Suominen <ssuominen@gentoo.org> (02 Dec 2009)
+# This will need media-sound/musepack-tools
+musepack
+
+# Raúl Porcel <armin76@gentoo.org> (20 Mar 2009)
+# Current webkit segfaults
+webkit
+
+# Ben de Groot <yngwin@gentoo.org> (11 Feb 2009)
+# Both dev-qt/qtphonon and media-sound/phonon are unkeyworded
+phonon
+
+# see email to gentoo-dev with subject "use.mask and PHP5's crazy IUSE"
+# Dated Sat, 31 Jul 2004 14:49:28 -0700, from robbat2@gentoo.org
+# all of these are binary-only, and not presently available on this
+# architecture.
+qdbm
+
+# James Le Cuirot <chewi@gentoo.org> (11 Jul 2015)
+# We don't support java on ia64.
+java
+pdfannotextractor
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_ast
+video_cards_nsc
+video_cards_newport
+video_cards_siliconmotion
+video_cards_sis
+
+# Matt Turner <mattst88@gentoo.org> (02 Jan 2013)
+# Not available on ia64. See bugs 449816, 448606.
+video_cards_intel
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+# llvm is not keyworded
+video_cards_amdgpu
+video_cards_radeonsi
+
+# Diego Pettenò <flameeyes@gentoo.org> (6 Dec 2006)
+# Mask ALSA drivers for ISA cards
+alsa_cards_msnd-pinnacle
+alsa_cards_sb16
+alsa_cards_sbawe
+alsa_cards_sscape
+alsa_cards_wavefront
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (21 Aug 2012)
+# IPMI is only implemented for x86, amd64 and ia64
+-ipmi
+
+# Michael Sterrett <mr_bones_@gentoo.org> (24 Aug 2012)
+# media-sound/fluidsynth isn't keyworded
+fluidsynth
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# net-misc/connman is not keyworded, bug 348308
+connman
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# media-libs/xine-lib is not keyworded
+xine
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+-zeitgeist
+template_haskell
+
+# toolkit for nvidia binary drivers
+cg
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (10 Nov 2013)
+# sys-devel/llvm s not keyworded, bug #320221
+llvm
+
+# Pacho Ramos <pacho@gentoo.org> (08 Jan 2014)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
+
+# need to test sys-cluster/glusterfs #519618
+glusterfs
+
+# need to test ceph and friends #519618
+rbd
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# please remove when keyworded
+qt5
diff --git a/profiles/arch/ia64/use.stable.mask b/profiles/arch/ia64/use.stable.mask
new file mode 100644
index 000000000000..88f33d5ae7be
--- /dev/null
+++ b/profiles/arch/ia64/use.stable.mask
@@ -0,0 +1,24 @@
+# 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
+
+# Not stable
+mkl
+
+# Pacho Ramos <pacho@gentoo.org> (17 Apr 2014)
+# Dropped stable keywords after the discussion caused by
+# Gnome 3.8/3.10 stabilization on this arch
+colord
+devhelp
+dia
+eds
+gnumeric
+gusb
+upnp
+upnp-av
+
+# Pacho Ramos <pacho@gentoo.org> (13 Apr 2014)
+# Not going to be stabilized on this arch
+gnome-online-accounts
diff --git a/profiles/arch/m68k/eapi b/profiles/arch/m68k/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/m68k/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/m68k/make.defaults b/profiles/arch/m68k/make.defaults
new file mode 100644
index 000000000000..5c08bf09c6ac
--- /dev/null
+++ b/profiles/arch/m68k/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="m68k"
+ACCEPT_KEYWORDS="m68k ~m68k"
+
+CHOST="m68k-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Set ABI & DEFAULT_ABI consistently with ${ARCH}, to make ebuild
+# checks simpler.
+ABI="m68k"
+DEFAULT_ABI="m68k"
+MULTILIB_ABIS="m68k"
+LIBDIR_m68k="lib"
+CHOST_m68k="${CHOST}"
+
+# Disable sandbox on this architecture
+FEATURES="-sandbox"
diff --git a/profiles/arch/m68k/package.use.force b/profiles/arch/m68k/package.use.force
new file mode 100644
index 000000000000..db154e8efd5c
--- /dev/null
+++ b/profiles/arch/m68k/package.use.force
@@ -0,0 +1,10 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Ulrich Müller <ulm@gentoo.org> (10 Aug 2013)
+# Building from source requires TeX Live as dependency
+app-doc/pms binary
diff --git a/profiles/arch/m68k/package.use.mask b/profiles/arch/m68k/package.use.mask
new file mode 100644
index 000000000000..deae9d880fa6
--- /dev/null
+++ b/profiles/arch/m68k/package.use.mask
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Matt Turner <mattst88@gentoo.org> (25 Feb 2017)
+# Needs libepoxy keywording, bug #510940
+x11-base/xorg-server glamor wayland
+x11-drivers/xf86-video-ati glamor
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Mikle Kolyada <zlogene@gentoo.org> (11 Jul 2013)
+# Tests for dev-perl/Error require >=dev-perl/Test-Pod-Coverage-1.40.0 (bug #351636)
+dev-perl/Error test
+
+# Raúl Porcel <armin76@gentoo.org> (23 Jan 2013)
+# Architecture is unsupported
+dev-libs/libpcre jit
+
+# Ryan Hill <dirtyepic@gentoo.org> (20 Jul 2011)
+# graphite requires dev-libs/ppl & dev-libs/cloog-ppl
+# (bugs #269087 and #269088)
+sys-devel/gcc graphite awt
+
+# Mike Frysinger <vapier@gentoo.org> (10 Feb 2011)
+# Waiting for keywording #354309
+net-firewall/iptables netlink
+
+# Diego Pettenò <flameeyes@gentoo.org> (10 Nov 2007)
+# Tests for Linux-PAM 0.99 require >=sys-libs/glibc-2.4
+>=sys-libs/pam-0.99.8 test
+
+# Masking these to keep repoman happy
+media-gfx/graphviz perl
diff --git a/profiles/arch/m68k/packages b/profiles/arch/m68k/packages
new file mode 100644
index 000000000000..b7972de83ae6
--- /dev/null
+++ b/profiles/arch/m68k/packages
@@ -0,0 +1,4 @@
+# Copyright 1999-2011 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+*sys-fs/atari-fdisk
diff --git a/profiles/arch/m68k/parent b/profiles/arch/m68k/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/m68k/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/m68k/use.force b/profiles/arch/m68k/use.force
new file mode 100644
index 000000000000..f69a0469b48e
--- /dev/null
+++ b/profiles/arch/m68k/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+m68k
diff --git a/profiles/arch/m68k/use.mask b/profiles/arch/m68k/use.mask
new file mode 100644
index 000000000000..646567111d56
--- /dev/null
+++ b/profiles/arch/m68k/use.mask
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Unmask the flag which corresponds to ARCH.
+-m68k
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+hardened
+
+# Paul de Vrieze <pauldv@gentoo.org>
+# There is no java in this profile (if there is it must be available). Without
+# this repoman will fail on apps like sys-libs/db
+java
+
+# see email to gentoo-dev with subject "use.mask and PHP5's crazy IUSE"
+# Dated Sat, 31 Jul 2004 14:49:28 -0700, from robbat2@gentoo.org
+# all of these are binary-only, and not presently available on this
+# architecture.
+php
+djbfft
+qdbm
+
+emacs
+xemacs
+
+gnome-keyring
+afs
+tcl
+tk
+ldap
+slang
+diet
+gtk
+qt4
+mono
+python
+cairo
+svg
+X
+crypt
+mysql
+samba
+dbus
+xpm
+ruby
+ocaml
+guile
+lua
+djvu
+nss
+diet
+emf
+R
+octave
+bluetooth
+autotrace
+lqr
+policykit
+bash-completion
+latex
+nettle
+systemd
+tk
+clang
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# Masking since dev-db/sqlite is masked
+sqlite
+
+# Masking these globally, since we don't have X
+gnome
+gnome-keyring
+pango
+
+# Masking since net-dns/avahi and net-misc/mDNSResponder are masked
+avahi
+zeroconf
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets ported & keyworded.
+unwind
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
diff --git a/profiles/arch/mips/eapi b/profiles/arch/mips/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/make.defaults b/profiles/arch/mips/make.defaults
new file mode 100644
index 000000000000..7241d23bfa2b
--- /dev/null
+++ b/profiles/arch/mips/make.defaults
@@ -0,0 +1,21 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev impact newport"
+
+ARCH="mips"
+ACCEPT_KEYWORDS="${ARCH} ~mips"
+
+PROFILE_ARCH="mips"
+
+USE="-fortran -openmp"
+
+LIBDIR_o32="lib"
+LIBDIR_n32="lib32"
+LIBDIR_n64="lib64"
+
+# 2010/12/06 - Matt Turner <mattst88@gentoo.org>
+# Probably missing a bunch for various SGI systems.
+ALSA_CARDS="au1x00"
diff --git a/profiles/arch/mips/mips64/eapi b/profiles/arch/mips/mips64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/make.defaults b/profiles/arch/mips/mips64/make.defaults
new file mode 100644
index 000000000000..aa6444d92e53
--- /dev/null
+++ b/profiles/arch/mips/mips64/make.defaults
@@ -0,0 +1,6 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
diff --git a/profiles/arch/mips/mips64/multilib/eapi b/profiles/arch/mips/mips64/multilib/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/make.defaults b/profiles/arch/mips/mips64/multilib/make.defaults
new file mode 100644
index 000000000000..83b190993308
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+CFLAGS_o32="-mabi=32"
+CHOST_o32="${CHOST}"
+
+CFLAGS_n32="-mabi=n32"
+CHOST_n32="${CHOST}"
+
+CFLAGS_n64="-mabi=64"
+CHOST_n64="${CHOST}"
+
+SYMLINK_LIB="no"
+
+USE_EXPAND_HIDDEN="-ABI_MIPS"
diff --git a/profiles/arch/mips/mips64/multilib/n32/eapi b/profiles/arch/mips/mips64/multilib/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/n32/make.defaults b/profiles/arch/mips/mips64/multilib/n32/make.defaults
new file mode 100644
index 000000000000..2b7c2e01f741
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n64 o32 n32"
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n64="mips64-unknown-linux-gnuabi64"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mips64/multilib/n32/parent b/profiles/arch/mips/mips64/multilib/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/n32/use.force b/profiles/arch/mips/mips64/multilib/n32/use.force
new file mode 100644
index 000000000000..556bba21926f
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mips64/multilib/n64/eapi b/profiles/arch/mips/mips64/multilib/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/n64/make.defaults b/profiles/arch/mips/mips64/multilib/n64/make.defaults
new file mode 100644
index 000000000000..6c19a1b016cd
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n32 o32 n64"
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64-unknown-linux-gnuabin32"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mips64/multilib/n64/parent b/profiles/arch/mips/mips64/multilib/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/n64/use.force b/profiles/arch/mips/mips64/multilib/n64/use.force
new file mode 100644
index 000000000000..bb51328d7c99
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mips64/multilib/o32/eapi b/profiles/arch/mips/mips64/multilib/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/multilib/o32/make.defaults b/profiles/arch/mips/mips64/multilib/o32/make.defaults
new file mode 100644
index 000000000000..535f84f6e25e
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n64 n32 o32"
+DEFAULT_ABI="o32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64-unknown-linux-gnuabin32"
+CHOST_n64="mips64-unknown-linux-gnuabi64"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mips64/multilib/o32/parent b/profiles/arch/mips/mips64/multilib/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/multilib/o32/use.force b/profiles/arch/mips/mips64/multilib/o32/use.force
new file mode 100644
index 000000000000..aac1b84a82dc
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mips64/multilib/parent b/profiles/arch/mips/mips64/multilib/parent
new file mode 100644
index 000000000000..a5b4126260cf
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/parent
@@ -0,0 +1,2 @@
+..
+../../../../features/multilib
diff --git a/profiles/arch/mips/mips64/multilib/use.force b/profiles/arch/mips/mips64/multilib/use.force
new file mode 100644
index 000000000000..559b27408235
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.force
@@ -0,0 +1,4 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+multilib
diff --git a/profiles/arch/mips/mips64/multilib/use.mask b/profiles/arch/mips/mips64/multilib/use.mask
new file mode 100644
index 000000000000..bcbae99c5464
--- /dev/null
+++ b/profiles/arch/mips/mips64/multilib/use.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Matt Turner <mattst88@gentoo.org> (29 Jul 2013)
+# Unmask the multilib flags for this arch.
+-abi_mips_o32
+-abi_mips_n32
+-abi_mips_n64
diff --git a/profiles/arch/mips/mips64/n32/eapi b/profiles/arch/mips/mips64/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/n32/make.defaults b/profiles/arch/mips/mips64/n32/make.defaults
new file mode 100644
index 000000000000..692c9dac6e55
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n32"
+CHOST_n32="${CHOST}"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mips64/n32/parent b/profiles/arch/mips/mips64/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/n32/use.force b/profiles/arch/mips/mips64/n32/use.force
new file mode 100644
index 000000000000..c2533b67088d
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mips64/n32/use.mask b/profiles/arch/mips/mips64/n32/use.mask
new file mode 100644
index 000000000000..a3007f8ee8c9
--- /dev/null
+++ b/profiles/arch/mips/mips64/n32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_n32
diff --git a/profiles/arch/mips/mips64/n64/eapi b/profiles/arch/mips/mips64/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mips64/n64/make.defaults b/profiles/arch/mips/mips64/n64/make.defaults
new file mode 100644
index 000000000000..d21ecb953cfc
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64"
+
+CHOST="mips64-unknown-linux-gnu"
+
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n64"
+CHOST_n64="${CHOST}"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mips64/n64/parent b/profiles/arch/mips/mips64/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mips64/n64/use.force b/profiles/arch/mips/mips64/n64/use.force
new file mode 100644
index 000000000000..ca1bea5c4016
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mips64/n64/use.mask b/profiles/arch/mips/mips64/n64/use.mask
new file mode 100644
index 000000000000..3d54e8b2760a
--- /dev/null
+++ b/profiles/arch/mips/mips64/n64/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_n64
diff --git a/profiles/arch/mips/mips64/parent b/profiles/arch/mips/mips64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mips64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/eapi b/profiles/arch/mips/mipsel/mips64el/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/make.defaults b/profiles/arch/mips/mipsel/mips64el/make.defaults
new file mode 100644
index 000000000000..79c657845c29
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+IUSE_IMPLICIT="-abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults
new file mode 100644
index 000000000000..0a2ecd62de06
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/make.defaults
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+CFLAGS_o32="-mabi=32"
+CHOST_o32="${CHOST}"
+
+CFLAGS_n32="-mabi=n32"
+CHOST_n32="${CHOST}"
+
+CFLAGS_n64="-mabi=64"
+CHOST_n64="${CHOST}"
+
+SYMLINK_LIB="no"
+
+USE_EXPAND_HIDDEN="-ABI_MIPS"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults
new file mode 100644
index 000000000000..04e1ecd38846
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n64 o32 n32"
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n64="mips64el-unknown-linux-gnuabi64"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent b/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force
new file mode 100644
index 000000000000..556bba21926f
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults
new file mode 100644
index 000000000000..0b8a5c45cf20
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n32 o32 n64"
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64el-unknown-linux-gnuabin32"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent b/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force
new file mode 100644
index 000000000000..bb51328d7c99
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi b/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults b/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults
new file mode 100644
index 000000000000..f338725f0d48
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/make.defaults
@@ -0,0 +1,12 @@
+# Copyright 2011-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="n64 n32 o32"
+DEFAULT_ABI="o32"
+ABI="${DEFAULT_ABI}"
+
+CHOST_n32="mips64el-unknown-linux-gnuabin32"
+CHOST_n64="mips64el-unknown-linux-gnuabi64"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent b/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force
new file mode 100644
index 000000000000..aac1b84a82dc
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/parent b/profiles/arch/mips/mipsel/mips64el/multilib/parent
new file mode 100644
index 000000000000..97dffb64c4d1
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/parent
@@ -0,0 +1,2 @@
+..
+../../../../../features/multilib
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/use.force b/profiles/arch/mips/mipsel/mips64el/multilib/use.force
new file mode 100644
index 000000000000..559b27408235
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.force
@@ -0,0 +1,4 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+multilib
diff --git a/profiles/arch/mips/mipsel/mips64el/multilib/use.mask b/profiles/arch/mips/mipsel/mips64el/multilib/use.mask
new file mode 100644
index 000000000000..bcbae99c5464
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/multilib/use.mask
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Matt Turner <mattst88@gentoo.org> (29 Jul 2013)
+# Unmask the multilib flags for this arch.
+-abi_mips_o32
+-abi_mips_n32
+-abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/eapi b/profiles/arch/mips/mipsel/mips64el/n32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/make.defaults b/profiles/arch/mips/mipsel/mips64el/n32/make.defaults
new file mode 100644
index 000000000000..0c623e27edeb
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+DEFAULT_ABI="n32"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n32"
+CHOST_n32="${CHOST}"
+
+ABI_MIPS="n32"
+IUSE_IMPLICIT="abi_mips_n32"
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/parent b/profiles/arch/mips/mipsel/mips64el/n32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/use.force b/profiles/arch/mips/mipsel/mips64el/n32/use.force
new file mode 100644
index 000000000000..c2533b67088d
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/n32/use.mask b/profiles/arch/mips/mipsel/mips64el/n32/use.mask
new file mode 100644
index 000000000000..a3007f8ee8c9
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_n32
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/eapi b/profiles/arch/mips/mipsel/mips64el/n64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/make.defaults b/profiles/arch/mips/mipsel/mips64el/n64/make.defaults
new file mode 100644
index 000000000000..50a4bfaaef8d
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mips64el"
+
+CHOST="mips64el-unknown-linux-gnu"
+
+DEFAULT_ABI="n64"
+ABI="${DEFAULT_ABI}"
+MULTILIB_ABIS="n64"
+CHOST_n64="${CHOST}"
+
+ABI_MIPS="n64"
+IUSE_IMPLICIT="abi_mips_n64"
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/parent b/profiles/arch/mips/mipsel/mips64el/n64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/use.force b/profiles/arch/mips/mipsel/mips64el/n64/use.force
new file mode 100644
index 000000000000..ca1bea5c4016
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/n64/use.mask b/profiles/arch/mips/mipsel/mips64el/n64/use.mask
new file mode 100644
index 000000000000..3d54e8b2760a
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/n64/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_n64
diff --git a/profiles/arch/mips/mipsel/mips64el/parent b/profiles/arch/mips/mipsel/mips64el/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/mips64el/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/o32/eapi b/profiles/arch/mips/mipsel/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/mipsel/o32/make.defaults b/profiles/arch/mips/mipsel/o32/make.defaults
new file mode 100644
index 000000000000..1e82f441cae4
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mipsel"
+
+CHOST="mipsel-unknown-linux-gnu"
+CHOST_o32="mipsel-unknown-linux-gnu"
+
+ABI="o32"
+DEFAULT_ABI="o32"
+MULTILIB_ABIS="o32"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/mipsel/o32/parent b/profiles/arch/mips/mipsel/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/o32/use.force b/profiles/arch/mips/mipsel/o32/use.force
new file mode 100644
index 000000000000..3ad34479a840
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/o32/use.mask b/profiles/arch/mips/mipsel/o32/use.mask
new file mode 100644
index 000000000000..19a83980be88
--- /dev/null
+++ b/profiles/arch/mips/mipsel/o32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_o32
diff --git a/profiles/arch/mips/mipsel/parent b/profiles/arch/mips/mipsel/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/mipsel/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/mipsel/use.mask b/profiles/arch/mips/mipsel/use.mask
new file mode 100644
index 000000000000..2a8cc7b0c76a
--- /dev/null
+++ b/profiles/arch/mips/mipsel/use.mask
@@ -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)
+# Remask as this profile is little endian.
+big-endian
diff --git a/profiles/arch/mips/o32/eapi b/profiles/arch/mips/o32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/mips/o32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/mips/o32/make.defaults b/profiles/arch/mips/o32/make.defaults
new file mode 100644
index 000000000000..74a8db7216ff
--- /dev/null
+++ b/profiles/arch/mips/o32/make.defaults
@@ -0,0 +1,14 @@
+# Copyright 2010-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="mipsel"
+
+CHOST="mips-unknown-linux-gnu"
+CHOST_o32="mips-unknown-linux-gnu"
+
+ABI="o32"
+DEFAULT_ABI="o32"
+MULTILIB_ABIS="o32"
+
+ABI_MIPS="o32"
+IUSE_IMPLICIT="abi_mips_o32"
diff --git a/profiles/arch/mips/o32/parent b/profiles/arch/mips/o32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/mips/o32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/mips/o32/use.force b/profiles/arch/mips/o32/use.force
new file mode 100644
index 000000000000..3ad34479a840
--- /dev/null
+++ b/profiles/arch/mips/o32/use.force
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+abi_mips_o32
diff --git a/profiles/arch/mips/o32/use.mask b/profiles/arch/mips/o32/use.mask
new file mode 100644
index 000000000000..19a83980be88
--- /dev/null
+++ b/profiles/arch/mips/o32/use.mask
@@ -0,0 +1,4 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+-abi_mips_o32
diff --git a/profiles/arch/mips/package.mask b/profiles/arch/mips/package.mask
new file mode 100644
index 000000000000..6b2c964b76b5
--- /dev/null
+++ b/profiles/arch/mips/package.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mask pam_ldap and nss_ldap - openldap dep missing.
+sys-auth/pam_ldap
+sys-auth/nss_ldap
diff --git a/profiles/arch/mips/package.use.force b/profiles/arch/mips/package.use.force
new file mode 100644
index 000000000000..713307fcb402
--- /dev/null
+++ b/profiles/arch/mips/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_Mips
+sys-devel/llvm llvm_targets_Mips
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/mips/package.use.mask b/profiles/arch/mips/package.use.mask
new file mode 100644
index 000000000000..f4c0b3d09e4d
--- /dev/null
+++ b/profiles/arch/mips/package.use.mask
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=opencl that is masked in this profile.
+net-misc/bfgminer adl lm_sensors
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# app-pda/libimobiledevice, app-pda/libplist and co not tested
+sys-power/upower ios
+sys-power/upower-pm-utils ios
+gnome-base/gvfs ios
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# dev-libs/libgdata and net-libs/gnome-online-accounts not tested
+gnome-base/gvfs google
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on mips
+xfce-base/xfwm4 xpresent
+
+# Brian Dolbec <dolsen@gentoo.org> (21 Mar 2017)
+# This is masked as mongo-db needed for bson use flag
+# which is not keyworded on many arches.
+app-portage/g-sorcery bson
+
+# Mart Raudsepp <leio@gentoo.org> (07 Feb 2017)
+# dev-python/gmpy fails tests about sizeof (conch), bug 608496
+# dev-python/attrs fails tests on slow mips, couldn't test service_identity test path (crypt), bug 608570
+# dev-python/gmpy also a test depend, so minimize the features until can test properly (http2 soap test)
+dev-python/twisted conch crypt http2 soap test
+
+# Felix Janda <felix.janda@posteo.de> (24 Sep 2016)
+# net-libs/libnetfilter_conntrack is not keyworded on mips
+net-dns/dnsmasq conntrack
+
+# Thomas Deutschmann <whissi@gentoo.org> (23 Aug 2016)
+# net-libs/openpgm is not keyworded on mips
+net-libs/zeromq pgm
+
+# Mike Frysinger <vapier@gentoo.org> 21 Feb 2016
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Mike Frysinger <vapier@gentoo.org> (17 Dec 2015)
+# The tlsdate seccomp logic is open-coded and doesn't support this arch yet.
+net-misc/tlsdate seccomp
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Mike Frysinger <vapier@gentoo.org> (10 Sep 2015)
+# Requires matplotlib which requires a bit more.
+dev-python/numpydoc test
+
+# Mikle Kolyada <zlogene@gentoo.org> (12 Apr 2015)
+# GNOME Shell does not work on mips
+net-misc/wicd gnome-shell
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Matthias Maier <tamiko@gentoo.org> (24 Dec 2014)
+# sys-devel/clang is not keyworded
+app-doc/doxygen clang
+
+# Davide Pesavento <pesa@gentoo.org> (02 Jun 2014)
+# dev-qt/qtdeclarative:4 is not keyworded on mips
+dev-qt/designer:4 declarative
+
+# Davide Pesavento <pesa@gentoo.org> (02 Jun 2014)
+# connman and networkmanager are not keyworded on mips
+dev-qt/qtbearer:4 connman networkmanager
+
+# Sergey Popov <pinkbyte@gentoo.org> (02 Feb 2014)
+# media-gfx/nvidia-texture-tools is not keyworded on mips
+media-libs/devil nvtt
+
+# Ryan Hill <dirtyepic@gentoo.org> (07 Jan 2014)
+# req net-libs/webkit-gtk:2
+x11-libs/wxGTK webkit
+
+# Markos Chandras <hwoarang@gentoo.org> (05 Jan 2014)
+# Perl is heavily unkeyworded on MIPS. See 497068
+dev-vcs/git mediawiki mediawiki-experimental
+
+# Sergey Popov <pinkbyte@gentoo.org> (02 Sep 2013)
+# Not tested
+media-libs/leptonica webp
+app-text/tesseract webp
+
+# Pacho Ramos <pacho@gentoo.org> (01 Sep 2013)
+# CONFIG_AUDITSYSCALL=y is not implemented, bug #438368
+sys-auth/consolekit pam
+sys-auth/pambase consolekit
+
+# Kacper Kowalik <xarthisius@gentoo.org> (20 May 2011)
+# depends on dev-libs/dmalloc which is not keyworded
+net-nds/ypbind debug
+
+# Richard Brown <rbrown@gentoo.org> (21 Jan 2008)
+# Needs dev-ruby/builder, which isn't keyworded
+dev-ruby/rubygems server
+
+# Wolfram Schlich <wschlich@gentoo.org> (20 Nov 2007)
+# dependency can't be fulfilled at the moment
+net-im/mcabber otr
+
+# Jim Ramsay <lack@gentoo.org> (7 Sep 2007)
+# app-admin/gkrellm may pull in hddtemp, which is not yet available here
+app-admin/gkrellm hddtemp
+
+# Christian Heim <phreak@gentoo.org> (07 Jul 2007)
+# virtual/mysql-5 not keyworded yet, still apr-util has the mips keyword.
+dev-libs/apr-util mysql
+
+# Stuart Longland <redhatter@gentoo.org> (07 Sep 2007)
+# mplayer not tested with these flags yet. I may remove these slowly as I test
+# more functions of mplayer.
+media-video/mplayer bidi bl cddb cdio cdparanoia cpudetection dga dv dvb enca joystick live mad openal pnm pvr radio rar rtc tga xinerama zoran
+
+# Steve Dibb <beandog@gentoo.org> (01 Nov 2007)
+# needs media-libs/ladspa-sdk keyworded
+media-video/mplayer ladspa
+
+# Richard Brown <rbrown@gentoo.org> (23 Dec 2007)
+# app-xemacs/ruby-modes is not keyworded on this arch
+dev-lang/ruby xemacs
+
+# Sebastian Pipping <sping@gentoo.org> (27 Jan 2010)
+# dev-vcs/bzr is not keyworded on this arch
+# dev-vcs/darcs is not keyworded on this arch
+app-portage/layman bazaar
+app-portage/layman darcs
+
+# deps missing keywords
+games-strategy/freeciv auth
+
+# Mart Raudsepp <leio@gentoo.org> (27 Sept 2010)
+# Extra functionality that has external unkeyworded dependencies
+# and is not tested yet
+net-fs/samba ads cluster
+
+# Matt Turner <mattst88@gentoo.org> (06 Dec 2010)
+# dev-db/tokyocabinet not keyworded
+mail-client/mutt tokyocabinet
+
+# Matt Turner <mattst88@gentoo.org> (26 Dec 2010)
+# dev-lang/spidermonkey not keyworded
+www-client/elinks javascript
+
+# Matt Turner <mattst88@gentoo.org> (26 Dec 2010)
+# media-gfx/ufraw not keyworded
+media-gfx/imagemagick raw
+
+# Matt Turner <mattst88@gentoo.org> (12 Jun 2011)
+# dev-python/mysql-python not keyworded
+dev-vcs/mercurial bugzilla
+
+# Matt Turner <mattst88@gentoo.org> (09 Feb 2012)
+# dev-vcs/git[cgi] requires app-text/highlight which requires boost
+dev-vcs/git cgi
+
+# Matt Turner <mattst88@gentoo.org> (09 Feb 2012)
+# mips only use flags
+>=sci-libs/fftw-3 -zbus
diff --git a/profiles/arch/mips/parent b/profiles/arch/mips/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/mips/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/mips/use.force b/profiles/arch/mips/use.force
new file mode 100644
index 000000000000..82c0a4788533
--- /dev/null
+++ b/profiles/arch/mips/use.force
@@ -0,0 +1,5 @@
+# Copyright 2008-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Force the flag which corresponds to ARCH.
+mips
diff --git a/profiles/arch/mips/use.mask b/profiles/arch/mips/use.mask
new file mode 100644
index 000000000000..6caff81617cb
--- /dev/null
+++ b/profiles/arch/mips/use.mask
@@ -0,0 +1,347 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag which corresponds to ARCH.
+-mips
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# media-libs/libmtp not tested
+mtp
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# net-libs/gnome-online-accounts not tested
+gnome-online-accounts
+
+# Mart Raudsepp <leio@gentoo.org> (27 May 2017)
+# Keywords lost on net-fs/samba over time, use.mask until re-keyworded
+samba
+
+# Mart Raudsepp <leio@gentoo.org> (07 Feb 2017)
+# dev-libs/libappindicator not tested
+ayatana
+
+# Anthony G. Basile <blueness@gentoo.org> (01 Aug 2015)
+# There is no luajit support on mips. Bug #554376.
+luajittex
+
+# Markos Chandras <hwoarang@gentoo.org>
+# app-arch/lz4 does not seem to build on MIPS
+# Original bug report: #501600
+lz4
+
+# Markos Chandras <hwoarang@gentoo.org>
+# Profiles are ISA agnostic so these
+# should be masked on per user basis
+# See #498082
+-mipsdspr1
+-mipsdspr2
+-mipsfpu
+
+# Markos Chandras <hwoarang@gentoo.org>
+# Needs packages that lack ~mips keywords
+# See #485366
+m17n-lib
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# Needs sci-mathematics/glpk.
+lpsol
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+# Samuli Suominen <ssuominen@gentoo.org>
+# Media cannot be tested for MIPS at the moment.
+# media-libs/libmpeg3
+# media-libs/portaudio
+# dev-libs/libcdio
+# media-libs/musicbrainz
+# media-libs/openexr
+mpeg
+portaudio
+cdio
+cdda
+musicbrainz
+openexr
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# Various Gnome flags
+gtkhtml
+gnome
+
+# Peter Volkov <pva@gentoo.org> MPI was never tested on mips, but
+# some programs with this useflag are useful, e.g #227631
+mpi
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# virtual/blas virtual/cblas and virtual/lapack not keyworded
+lapack
+blas
+
+# Alexander Færøy <eroyf@gentoo.org>
+# ldap -- untested, masking for now.
+ldap
+
+# Alexander Færøy <eroyf@gentoo.org>
+# Clamav -- untested, masking for now.
+clamav
+
+# Untested on mips, masking for now.
+cdb
+
+# Until someone actually needs fuse, we'll mask it as
+# it holds up stablizing ntfsprogs
+fuse
+
+# 2006/03/07 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures lacking direct rendering
+dri
+
+# Stephen P. Becker <geoman@gentoo.org>
+-video_cards_newport
+
+# Stephen P. Becker <geoman@gentoo.org>
+# more modular X stuff
+video_cards_epson
+video_cards_tdfx
+video_cards_sunffb
+video_cards_mach64
+video_cards_mga
+video_cards_nouveau
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_sis
+input_devices_acecad
+input_devices_aiptek
+input_devices_dynapro
+input_devices_elo2300
+input_devices_elographics
+input_devices_fpit
+input_devices_hyperpen
+input_devices_mutouch
+input_devices_penmount
+input_devices_synaptics
+input_devices_vmmouse
+input_devices_void
+input_devices_wacom
+input_devices_joystick
+video_cards_chips
+video_cards_cirrus
+video_cards_glint
+video_cards_nvidia
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_sisusb
+video_cards_sunbw2
+video_cards_suncg14
+video_cards_suncg3
+video_cards_suncg6
+video_cards_sunleo
+video_cards_suntcx
+video_cards_trident
+video_cards_vmware
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_amdgpu
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_neomagic
+video_cards_nsc
+video_cards_rendition
+video_cards_tga
+video_cards_tseng
+video_cards_vesa
+video_cards_ast
+
+# Diego Pettenò <flameeyes@gentoo.org>
+# Until xine-lib's keywording can be maintained, please leave it masked.
+xine
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masking mono because it doesn't work on mips
+mono
+
+# Hardave Riar <hardave@gentoo.org>
+# Temporarily masking ieee1394 until it can be tested
+# Quick fix to my tree b0rkage
+ieee1394
+
+# Henrik Brix Andersen <brix@gentoo.org>
+# According to the mips herd, we currently have no way of testing
+# pcmcia on mips, bug #90359
+pcmcia
+
+# John N. Laliberte <allanonjl@gentoo.org>
+# mask scanner support
+scanner
+
+# Hardave Riar <hardave@gentoo.org>
+# This should work, someone with a usb card and digital camera should test it
+gphoto2
+
+# Ciaran McCreesh <ciaranm@gentoo.org>
+# unresolved dep, bug #82428
+emboss
+
+# Joshua Kinard <kumba@gentoo.org>
+# dietlibc isn't known to work on mips
+diet
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because it hoses xchat on 64-bit machines
+xosd
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked for now until this can be properly tested with alsa
+jack
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because of silly java deps with gnome (we have no jre on mips)
+accessibility
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because mozilla doesn't work on mips
+mozilla
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because I say so, gnome--
+pda
+
+# Stephen P. Becker <geoman@gentoo.org>
+# masked because gaim sucks
+evo
+
+# Paul de Vrieze <pauldv@gentoo.org>
+# There is no java in this profile (if there is it must be available). Without
+# this repoman will fail on apps like sys-libs/db
+java
+
+# Ciaran McCreesh <ciaranm@gentoo.org>
+# No java, no netbeans
+netbeans
+
+# masked until gnome-extra/evolution-data-server is keyworded for mips
+eds
+
+# Flags which aren't applicable to mips (Mostly copied from sparc)
+3dfx
+acpi
+afs
+apm
+directfb
+dvdr
+ibm
+ggi
+lirc
+smartcard
+
+#
+# Anthony G. Basile <blueness@gentoo.org> (18 Jul 2012)
+# php is an old mask which works now
+# pike is no longer a use flag
+#
+## see email to gentoo-dev with subject "use.mask and PHP5's crazy IUSE"
+## Dated Sat, 31 Jul 2004 14:49:28 -0700, from robbat2@gentoo.org
+## all of these are binary-only, and not presently available on this
+## architecture.
+#php
+#pike
+djbfft
+timidity
+
+# We don't use smartcards, afaik
+pcsc-lite
+
+# Fernando J. Pereda <ferdy@gentoo.org> (20 Mar 2007)
+# New optional dependency of >=mail-client/mutt-1.5.14
+qdbm
+
+# Doug Goldstein <cardoe@gentoo.org> (08 May 2007)
+# no one in mips land has smartcard hardware to test with
+# see bug #162205 comment 10.
+smartcard
+openct
+
+# kumba (02 Jun 2007)
+# pulseaudio hasn't been tested on mips; maybe someday
+pulseaudio
+
+# kumba (01 Nov 2007)
+# mask ladspa USE
+# [22:30] <beandog> mips: plz to mask ladspa use flag
+ladspa
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# Dropping app-arch/rpm keywords, mask rpm USE accordingly
+rpm
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# We don't have net-libs/libsmi keyworded
+smi
+
+# Matt Turner <mattst88@gentoo.org> (13 Dec 2010)
+# We don't have sys-devel/llvm
+llvm
+
+# Matt Turner <mattst88@gentoo.org (14 Jun 2011)
+# pdfannotextractor needs java
+pdfannotextractor
+
+# Matt Turner <mattst88@gentoo.org> (11 Jul 2011)
+# xemacs dependencies not keyworded
+xemacs
+
+# Matt Turner <mattst88@gentoo.org> (11 Jul 2011)
+# no native mips/linux code generation, see bug 319649
+ocamlopt
+
+# Michael Sterrett <mr_bones_@gentoo.org> (24 Aug 2012)
+# media-sound/fluidsynth isn't keyworded
+fluidsynth
+
+# Mips USE flags
+-ip27
+-ip28
+-ip30
+-fixed-point
+-loongson2f
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets keyworded.
+unwind
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# please remove when keyworded
+qt5
diff --git a/profiles/arch/nios2/eapi b/profiles/arch/nios2/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/nios2/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/nios2/make.defaults b/profiles/arch/nios2/make.defaults
new file mode 100644
index 000000000000..e2d03c6a8e5e
--- /dev/null
+++ b/profiles/arch/nios2/make.defaults
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Main Nios II profile.
+
+ARCH="nios2"
+ACCEPT_KEYWORDS="nios2 ~nios2"
+CHOST="nios2-unknown-linux-gnu"
+
+MULTILIB_ABIS="nios2"
+DEFAULT_ABI="nios2"
+LIBDIR_nios2="lib"
+CHOST_nios2="${CHOST}"
+ABI="${DEFAULT_ABI}"
+
+CFLAGS="-O2"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Defaults for video drivers
+VIDEO_CARDS="fbdev"
diff --git a/profiles/arch/nios2/package.use.mask b/profiles/arch/nios2/package.use.mask
new file mode 100644
index 000000000000..b60013f073b0
--- /dev/null
+++ b/profiles/arch/nios2/package.use.mask
@@ -0,0 +1,222 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Needs testing.
+sys-devel/gcc gcj graphite regression-test
+
+# Julian Ospald <hasufell@gentoo.org> (04 Jan 2014)
+# no keyword for media-libs/swfdec and media-libs/libtimidity
+>=dev-libs/DirectFB-1.7.1 timidity swfdec
+
+# Markus Meier <maekke@gentoo.org> (26 Dec 2013)
+# Unkeyworded deps, bug #488724
+app-office/gnumeric libgda
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Pacho Ramos <pacho@gentoo.org> (31 Oct 2013)
+# Missing keywords, bug #478254
+gnome-base/gnome classic
+
+# Benda Xu <heroxbd@gentoo.org> (31 Oct 2013)
+# Missing keywords from dev-ml/lablgtk, bug #487722
+net-p2p/mldonkey gtk guionly
+
+# Pacho Ramos <pacho@gentoo.org> (22 Sep 2013)
+# Missing keywords, bug #484734
+media-sound/rhythmbox visualizer
+
+# Markus Meier <maekke@gentoo.org> (15 Sep 2013)
+# Unkeyworded deps, bug #481462
+dev-python/ipython nbconvert
+
+# Sergey Popov <pinkbyte@gentoo.org> (06 Sep 2013)
+# sci-libs/hdf does not build properly on arm
+dev-perl/PDL hdf
+
+# Michael Weber <xmw@gentoo.org> (23 Aug 2013)
+# Unkeyworded deps
+media-gfx/fim graphicsmagick svg
+
+# Markus Meier <maekke@gentoo.org> (04 Aug 2013)
+# Unkeyworded deps, bug #474026
+app-admin/conky lua-cairo lua-imlib xmms2 audacious moc
+
+# Sergey Popov <pinkbyte@gentoo.org> (30 Jul 2013)
+# Not tested
+media-libs/devil allegro nvtt
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (13 Jul 2013)
+# requires net-misc/freerdp which is not keyworded on arm
+dev-libs/weston rdp
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (27 May 2013)
+# Firmware loader not keyworded yet
+sci-libs/linux-gpib firmware
+
+# Markus Meier <maekke@gentoo.org> (10 May 2013)
+# unkeyworded deps for dev-python/ipython
+dev-python/ipython mongodb
+
+# Markus Meier <maekke@gentoo.org> (09 May 2013)
+# unkeyworded deps for x11-misc/lightdm
+x11-misc/lightdm kde
+
+# Agostino Sarubbo <ago@gentoo.org> (05 May 2013)
+# dev-util/google-perftools is not keyworded for arm
+>=dev-libs/libmemcached-0.50 tcmalloc
+
+# Christoph Junghans <junghans@gentoo.org> (29 Apr 2013)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Benda Xu <heroxbd@gentoo.org> (1 Apr 2013)
+# dev-ml/lablgtk not keyworded
+net-misc/unison gtk
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (20 Feb 2013)
+# Mask flags of calligra and dependencies due to lack of keywords
+app-office/calligra color-management openexr postgres spacenav vc
+media-gfx/pstoedit emf
+
+# Michał Górny <mgorny@gentoo.org> (01 Feb 2013)
+# virtual/cblas not keyworded on arm, bug #455050.
+dev-python/numpy lapack
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (30 Dec 2012)
+# requires dev-util/bustle, which is written in haskell
+# remove mask if/when dev-lang/ghc is keywoded for arm
+dev-util/dbus-test-runner test
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when app-text/yelp-tools is keyworded here
+>=gnome-extra/zenity-3.6 test
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when >=app-editors/gedit-3.6 is keyworded here
+dev-util/devhelp gedit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when app-crypt/libsecret is keyworded here
+>=gnome-base/gvfs-1.14 gnome-keyring
+
+# Markus Meier <maekke@gentoo.org> (25 Dez 2012)
+# unkeyworded deps for app-accessibility/speech-dispatcher
+app-accessibility/speech-dispatcher flite
+
+# Markus Meier <maekke@gentoo.org> (23 Dec 2012)
+# mask kde-apps/* flags due to unkeyworded dependencies
+kde-apps/kalzium editor solver
+kde-apps/kopete jingle
+kde-apps/okular chm
+kde-apps/kstars indi
+kde-apps/kdeutils-meta floppy
+kde-apps/kdenetwork-meta ppp
+
+# Markus Meier <maekke@gentoo.org> (08 Dec 2012)
+# mask app-office/libreoffice java extensions
+app-office/libreoffice libreoffice_extensions_scripting-beanshell libreoffice_extensions_scripting-javascript libreoffice_extensions_wiki-publisher
+
+# Steev Klimaszewski <steev@gentoo.org> (03 Aug 2012)
+# No java on ARM
+net-analyzer/wireshark doc-pdf
+
+# Markus Meier <maekke@gentoo.org> (25 Jul 2012)
+# no stable media-video/vlc yet, bug #401313
+media-libs/phonon vlc
+
+# 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
+
+# Michael Sterrett <mr_bones_@gentoo.org> (04 Mar 2012)
+# arm is missing keywords for >=dev-libs/json-glib-0.12
+app-admin/syslog-ng json
+
+# 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
+
+# Anthony G. Basile <blueness@gentoo.org> (Dec 21, 2011)
+# Mask the vde flag on tinc because net-misc/vde is not
+# keyworded for arm
+net-vpn/tinc vde
+
+# Tobias Klausmann <klausman@gentoo.org> (02 Nov 2011)
+# libpcre jit is not supported on alpha
+dev-libs/libpcre jit
+
+# Markus Meier <maekke@gentoo.org> (05 Sep 2011)
+# unkeyworded deps for bug 379657 and bug 379651
+app-admin/packagekit-base entropy
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools and virtual/gsasl (bug #381737)
+dev-libs/libmemcached sasl
+
+# Markus Meier <maekke@gentoo.org> (13 Mar 2011)
+# needs stable kde stuff
+sys-auth/polkit kde
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Michael Weber <xmw@gentoo.org> (10 Feb 2011)
+# kde-frameworks/kdelibs is not stable for arm
+net-libs/libproxy kde
+
+# Jeremy Olexa <darkside@gentoo.org> (04 Apr 2010)
+# mask net-misc/mediatomb[lastfm] as lastfmlib isn't keyworded
+net-misc/mediatomb lastfm
+
+# Raúl Porcel <armin76@gentoo.org> (28 Mar 2010)
+# Needs kde-4 stable
+dev-vcs/subversion kde
+
+# Markus Meier <maekke@gentoo.org> (27 Sep 2009)
+# mask media-gfx/imagemagick[autotrace] as autotrace is not keyworded
+media-gfx/imagemagick autotrace
+
+# Jim Ramsay <lack@gentoo.org> (5 Nov 2008)
+# app-admin/gkrellm may pull in net-libs/libntlm, which is not keyworded
+app-admin/gkrellm ntlm
+
+# missing keyword for sys-cluster/openmpi sys-cluster/mpich2
+dev-libs/boost mpi
+
+# missing keywords
+media-sound/sox ladspa
+media-plugins/gst-plugins-meta aac dts dv lame libvisual taglib vcd wavpack
+
+# projectm not keyworded, bug #314969
+media-video/vlc projectm chromaprint opencv
+
+# Ultrabug <ultrabug@gentoo.org> (05 Sept 2011)
+# missing keyword for net-libs/zeromq
+app-admin/rsyslog zeromq
diff --git a/profiles/arch/nios2/parent b/profiles/arch/nios2/parent
new file mode 100644
index 000000000000..7663f5297bb4
--- /dev/null
+++ b/profiles/arch/nios2/parent
@@ -0,0 +1,2 @@
+../../features/multilib
+../base
diff --git a/profiles/arch/nios2/use.force b/profiles/arch/nios2/use.force
new file mode 100644
index 000000000000..fbd63671fd62
--- /dev/null
+++ b/profiles/arch/nios2/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+nios2
diff --git a/profiles/arch/nios2/use.mask b/profiles/arch/nios2/use.mask
new file mode 100644
index 000000000000..0cb552970b95
--- /dev/null
+++ b/profiles/arch/nios2/use.mask
@@ -0,0 +1,206 @@
+# Unmask the flag which corresponds to ARCH.
+-nios2
+
+# doomsday ebuild is not available on this architecture
+doomsday
+
+# Markus Meier <maekke@gentoo.org> (22 Aug 2010)
+# net-wireless/wimax not tested
+wimax
+
+# Markus Meier <maekke@gentoo.org> (21 Aug 2010)
+# app-antivirus/clamav not tested
+clamav
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+# Samuli Suominen <ssuominen@gentoo.org> (17 Oct 2009)
+# Required package: media-sound/musepack-tools
+musepack
+
+# Raúl Porcel <armin76@gentoo.org>
+# I've been told xfs is broken on ARM
+xfs
+
+# Raúl Porcel <armin76@gentoo.org>
+# Fails to build/work
+openexr
+
+# Samuli Suominen <drac@gentoo.org>
+# media-libs/amrnb and media-libs/amrwb not tested.
+amr
+
+# Samuli Suominen <drac@gentoo.org>
+# media-gfx/gimp not tested.
+gimp
+
+# No hardware to test by the team
+dvb
+ios
+ipod
+
+# Stuff that doesn't make sense on this arch
+3dfx
+dmi
+
+# Stuff we don't want
+fuse
+R
+octave
+tracker
+xindy
+lyx
+mpi
+lasi
+schroedinger
+hardened
+frei0r
+pdfannotextractor
+prelude
+mssql
+
+# havent tested yet
+ruby
+ctypes-python
+sasl
+libproxy
+pkcs11
+gnutls
+bazaar
+darcs
+mercurial
+kerberos
+gpg
+gnome
+gnome-keyring
+doc
+emacs
+gphoto2
+afs
+mono
+lirc
+lm_sensors
+xemacs
+rpm
+scanner
+zvbi
+ldap
+mysql
+postgres
+dvd
+fluidsynth
+sid
+mms
+mtp
+ieee1394
+sctp
+pm-utils
+darcs
+bs2b
+toolame
+ladspa
+ldns
+ggi
+nut
+dvd
+fits
+tokyocabinet
+vaapi
+rtmp
+vpx
+plotutils
+lpsol
+upnp
+quvi
+bluray
+libtar
+zvbi
+aacplus
+devil
+gts
+anthy
+ace
+icu
+gtk
+qt4
+qt5
+R
+sdl
+slang
+tk
+vim-syntax
+X
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_cirrus
+video_cards_chips
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_neomagic
+video_cards_newport
+video_cards_nouveau
+video_cards_nsc
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+video_cards_via
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_amdgpu
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# media-libs/xine-lib is not keyworded
+xine
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
+
+# No nios2 java support yet.
+java
diff --git a/profiles/arch/powerpc/eapi b/profiles/arch/powerpc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/package.mask b/profiles/arch/powerpc/package.mask
new file mode 100644
index 000000000000..e0703e4a8321
--- /dev/null
+++ b/profiles/arch/powerpc/package.mask
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Brent Baude <ranger@gentoo.org> (20 Nov 2012)
+# Masking kgcc64 now that toolchain is biarch
+sys-devel/kgcc64
+
+# Ben de Groot <yngwin@gentoo.org> (2 Jun 2012)
+# Since there is no longer a working keyworded version of
+# media-video/smplayer (see bug 383945)
+x11-themes/smplayer-themes
+
+# Alexey Shvetsov <alexxy@gentoo.org> (21 May 2012)
+# Need deps pecl-apc and pecl-uploadprogress bug #416897
+>=www-apps/drupal-7.14
+
+# Doug Goldstein <cardoe@gentoo.org> (11 Jan 2013)
+# Masked due to depends on bug #438780
+>=app-emulation/qemu-1.2.0
diff --git a/profiles/arch/powerpc/package.use b/profiles/arch/powerpc/package.use
new file mode 100644
index 000000000000..6195ca57993e
--- /dev/null
+++ b/profiles/arch/powerpc/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Doug Goldstein <cardoe@gentoo.org> (29 Oct 2012)
+# Enable the native arch as the default qemu target
+app-emulation/qemu qemu_softmmu_targets_ppc
diff --git a/profiles/arch/powerpc/package.use.force b/profiles/arch/powerpc/package.use.force
new file mode 100644
index 000000000000..447d4135aff6
--- /dev/null
+++ b/profiles/arch/powerpc/package.use.force
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_PowerPC
+sys-devel/llvm llvm_targets_PowerPC
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Kacper Kowalik <xarthisius@gentoo.org> (16 Jan 2011)
+# bug 303931
+# sci-chemistry/arp-warp-bin is not available for ppc
+# sci-chemistry/solve-resolve-bin is not available for ppc
+# sci-chemistry/cns is not available for ppc
+sci-libs/cctbx minimal
diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask
new file mode 100644
index 000000000000..01541f3f709b
--- /dev/null
+++ b/profiles/arch/powerpc/package.use.mask
@@ -0,0 +1,350 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michael Palimaka <kensington@gentoo.org> (30 Sep 2017)
+# Required dependencies are not keyworded.
+x11-themes/qtcurve plasma
+
+# Jonathan Scruggs <j.scruggs@gmail.com> (23 Sep 2017)
+# dependencies not keyworded yet
+media-libs/openimageio field3d ptex
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> (22 Aug 2017)
+# Dictionary Manager requires unkeyworded dev-qt/qtwebengine.
+app-i18n/fcitx-libpinyin dictionary-manager
+
+# Göktürk Yüksek <gokturk@gentoo.org> (15 Aug 2017)
+# Requires java
+app-forensics/sleuthkit java
+
+# Michał Górny <mgorny@gentoo.org> (10 Aug 2017)
+# Requires USE=ipmi which is masked in this profile.
+sys-power/nut ups_drivers_nut-ipmipsu
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=opencl that is masked in this profile.
+net-misc/bfgminer adl lm_sensors
+
+# Andreas Sturmlechner <asturm@gentoo.org> (31 Jul 2017)
+# Mask for removal of ancient versions of media-libs/libvisio,
+# media-libs/libcdr, app-text/libwpd and app-text/libwpg
+media-gfx/inkscape cdr visio wpg
+
+# Michael Weber <xmw@gentoo.org> (14 Mar 2017)
+# mask unkeyworded dependency media-libs/glfw
+app-text/mupdf opengl
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on ppc
+xfce-base/xfwm4 xpresent
+
+# Michael Weber <xmw@gentoo.org> (06 Apr 2017)
+# mask unkeyworded dep pymongo -> mongodb
+app-portage/g-sorcery bson
+
+# Michał Górny <mgorny@gentoo.org> (24 Mar 2017)
+# libcxx fails to compile on ppc*, #595744.
+sys-devel/clang default-libcxx
+sys-devel/clang-runtime libcxx
+
+# Andreas Sturmlechner <asturm@gentoo.org> (27 Feb 2017)
+# Requires dev-qt/qtwebengine, not keyworded on ppc
+sci-geosciences/gpsbabel gui
+
+# James Le Cuirot <chewi@gentoo.org> (14 Dec 2016)
+# DOSBox + OpenGLide is untested on this arch.
+games-emulation/dosbox glide
+
+# Thomas Deutschmann <whissi@gentoo.org> (26 Aug 2016)
+# Enable numa support on supported architectures
+dev-db/percona-server -numa
+
+# Pacho Ramos <pacho@gentoo.org> (21 Aug 2016)
+# gnat-gpl is being removed, bug #514074
+mail-client/alpine topal
+
+# Davide Pesavento <pesa@gentoo.org> (28 Jul 2016)
+# The corresponding Qt5 modules are not keyworded on ppc, and we don't want to
+# keyword them solely because of PyQt5 while there are no other in-tree users.
+dev-python/PyQt5 bluetooth location webengine
+
+# Michael Palimaka <kensington@gentoo.org> (07 Jul 2016)
+# Requires unkeyworded dependencies
+app-misc/hachoir-metadata kde
+dev-vcs/subversion kwallet
+games-arcade/jumpnbump kde
+kde-apps/katepart handbook
+kde-frameworks/kdelibs handbook policykit
+net-libs/libproxy kde
+net-voip/ekiga kde
+sys-auth/polkit kde
+sys-block/gparted kde
+virtual/notification-daemon kde
+x11-misc/lightdm kde
+
+# Davide Pesavento <pesa@gentoo.org> (06 Jun 2016)
+# Requires unkeyworded dev-python/PyQt5
+net-print/hplip qt5
+
+# Johannes Huber <johu@gentoo.org> (26 Mar 2016)
+# Unkeyworded dependency x11-libs/snorenotify
+net-irc/quassel snorenotify
+
+# Rick Farina <zerochaos@gentoo.org> (23 Mar 2016)
+# rspec:3 is not keyworded for x86 at this time
+=dev-ruby/bundler-audit-0.5.0 test
+
+# Justin Lecher <jlec@gentoo.org> (22 Feb 2016)
+# Missing test deps keyword #575366
+dev-cpp/eigen test
+
+# Mike Frysinger <vapier@gentoo.org> (21 Feb 2016)
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+media-sound/rhythmbox upnp-av
+
+# Pacho Ramos <pacho@gentoo.org> (27 Oct 2015)
+# Missing keywords
+net-wireless/blueman appindicator
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (26 Oct 2015)
+# x11-drivers/xf86-video-amdgpu is not keyworded
+x11-base/xorg-drivers video_cards_amdgpu
+
+# Bernard Cafarelli <voyageur@gentoo.org> (06 Aug 2015)
+# Dependencies missing keywords, bug #543604
+sys-devel/llvm ocaml
+
+# Gilles Dartiguelongue <eva@gentoo.org> (10 Jun 2015)
+# net-libs/dleyna-connector-dbus lack ppc/ppc64 keyword, bug #551634
+>=media-plugins/grilo-plugins-0.2.14 upnp-av
+
+# Justin Lecher <jlec@gentoo> (18 May 2015)
+# missing keywords
+dev-python/matplotlib qt5 test
+
+# Pacho Ramos <pacho@gentoo.org> (15 May 2015)
+# Missing keywords
+net-dns/unbound dnstap
+
+# Markos Chandras <hwoarang@gentoo.org> (18 Apr 2015)
+# samba-4 not keyworded on ppc/ppc64
+sys-auth/sssd samba
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet & media-libs/libsdl2 tested #499974
+dev-libs/efl physics sdl
+media-libs/elementary sdl
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (15 Feb 2015)
+# There's no keyworded office implementation anymore.
+gnome-extra/sushi office
+
+# Alexis Ballier <aballier@gentoo.org> (11 Feb 2015)
+# Missing ffmpeg deps, bug #510340
+media-video/ffmpeg x265
+
+# Patrick Lauer <patrick@gentoo.org> (10 Feb 2015)
+# Missing keywords for media-libs/x265
+media-video/libav x265
+
+# Markos Chandras <hwoarang@gentoo.org> (07 Feb 2015)
+# app-admin/cgmanager misses PPC/PPC64 keywords. Bug #539208
+app-emulation/lxc cgmanager
+
+# Mark Wright <gienah@gentoo.org> (14-24 Dec 2014, 1 Apr 2015)
+# test dependencies need keywording
+dev-haskell/binary test
+dev-haskell/dlist test
+dev-haskell/haskell-src-exts test
+dev-haskell/text test
+dev-haskell/vector test
+dev-util/bnfc test
+
+# Anthony G. Basile <blueness@gentoo.org> (17 Aug 2014)
+# This pulls in qemu[smartcard] which is masked
+net-misc/spice-gtk smartcard
+
+# Anthony G. Basile <blueness@gentoo.org> (16 Aug 2014)
+# Ultimately pulls in nodejs which is broken.
+dev-ruby/sprockets test
+
+# Anthony G. Basile <blueness@gentoo.org> (15 Aug 2014)
+# Ultimately pulls in nodejs which is broken.
+dev-ruby/haml test
+
+# Anthony G. Basile <blueness@gentoo.org> (14 Aug 2014)
+# Mask these flags since mongodb is broken on ppc/ppc64
+dev-python/ipython doc matplotlib mongodb nbconvert notebook qt4 test
+
+# Anthony G. Basile <blueness@gentoo.org> (12 Aug 2014)
+# Ultimately pulls in nodejs which is broken.
+dev-ruby/actionpack test
+
+# Anthony G. Basile <blueness@gentoo.org> (12 Aug 2014)
+# Ultimately pulls in nodejs which is broken.
+dev-ruby/tilt test
+
+# Anthony G. Basile <blueness@gentoo.org> (12 Aug 2014)
+# Pulls in ceph which is broken. Masked per dev-zero.
+sys-block/fio rbd
+
+# Andreas K. Huettel <dilfridge@gentoo.org> (14 Jun 2014)
+# dependency sci-libs/vtk not keyworded on ppc yet
+media-libs/opencv vtk
+
+# Johannes Huber <johu@gentoo.org> (16 Apr 2014)
+# unkeyworded deps
+kde-apps/gwenview semantic-desktop
+
+# Pacho Ramos <pacho@gentoo.org> (22 Feb 2013)
+# Missing keywords, bug #495250
+>=gnome-base/gnome-extra-apps-3.10 tracker
+
+# Pacho Ramos <pacho@gentoo.org> (10 Feb 2014)
+# Missing keywords, bug #495254
+>=dev-libs/totem-pl-parser-3.10 quvi
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Pacho Ramos <pacho@gentoo.org> (31 Oct 2013)
+# Missing keywords, bug #478254
+gnome-base/gnome classic extras
+
+# Mark Wright <gienah@gentoo.org> (26 Oct 2013)
+# template-haskell not yet available
+dev-haskell/dataenc test
+
+# Agostino Sarubbo <ago@gentoo.org> (24 Aug 2013)
+# Klibc does not work anymore on ppc
+app-shells/mksh static
+
+# Pacho Ramos <pacho@gentoo.org> (20 Jul 2013)
+# Keywords pending, bug #476710
+>=gnome-base/gnome-extra-apps-3.8 games
+
+# Agostino Sarubbo <ago@gentoo.org> (23 Apr 2013)
+# dev-db/spatialite fails to compile on ppc*
+sci-libs/gdal spatialite
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono/monodevelop
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Jan 2013)
+# remove mask when net-libs/libqmi is keyworded here
+net-misc/modemmanager qmi qmi-newest
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord argyllcms extra-print-profiles
+
+# Anthony G. Basile <blueness@gentoo.org> (15 Nove 2012)
+# Mask telepathy, no stable net-libs/telepathy-qt, bug #441456
+net-im/choqok telepathy
+
+# Robin H Johnson <robbat2@gentoo.org> (01 Nov 2012)
+# MySQL 5.5 wants systemtap, tcmalloc & jemalloc
+>=dev-db/mysql-5.5 tcmalloc
+>=dev-db/mariadb-5.5 tcmalloc
+>=dev-db/percona-server-5.5 tcmalloc
+
+# Anthony G. Basile <blueness@gentoo.org> (29 Sep 2012)
+# dev-cpp/tbb does not build on ppc ppc64 so mask any
+# dependencies on it
+media-libs/openimageio tbb
+
+# Samuli Suominen <ssuominen@gentoo.org> (27 Sep 2012)
+# I don't want to open this can of worms yet. Feel free
+# to do so.
+dev-ruby/rack-test test
+
+# Anthony G. Basile <blueness@gentoo.org> (21 Aug 2012)
+# Does not work on ppc/ppc64
+net-vpn/tor tor-hardening
+
+# Brent Baude <ranger@gentoo.org> (06 Mar 2012)
+# masking kde on gajim
+net-im/gajim kde
+
+# Pacho Ramos <pacho@gentoo.org> (07 May 2012)
+# libhid is not keyworded
+app-misc/lcdproc hid lcd_devices_mdm166a
+
+# Brent Baude <ranger@gentoo.org> (06 Mar 2012)
+# masking wimax use flag
+net-misc/connman ofono
+
+# Alexey Shvetsov <alexxy@gentoo.org> (20 Jan 2012)
+# Mask some use flags for openmpi due to unkeyworded deps
+sys-cluster/openmpi openmpi_fabrics_psm openmpi_fabrics_knem openmpi_fabrics_open-mx openmpi_fabrics_ofed openmpi_fabrics_dapl 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
+
+# Kacper Kowalik <xarthisius@gentoo.org> (20 Nov 2011)
+# Dropped dietlibc wrt #364103
+sys-fs/dmraid dietlibc
+
+# Patrick McLean <chutzpah@gentoo.org> (07 Sep 2011)
+# missing keywords on dependencies
+media-video/x264-encoder ffmpegsource
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools (bug #381737
+dev-libs/libmemcached tcmalloc
+
+# Kacper Kowalik <xarthisius@gentoo.org> (10 Aug 2011)
+# mask cuda dep for opencv bug 365451
+media-libs/opencv cuda
+
+# Doug Goldstein <cardoe@gentoo.org> (27 May 2011)
+# app-emulation/spice, app-emulation/xen, and sys-cluster/ceph
+# are not keyworded. bug #368959
+# sys-apps/usbredir
+app-emulation/qemu spice xen rbd usbredir
+
+# Kacper Kowalik <xarthisius@gentoo.org> (16 Jan 2011)
+# bug 350513, app-pda/jpilot is not keyworded
+mail-client/claws-mail pda
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Justin Lecher <jlec@gentoo.org> (01 Nov 2010)
+# Deps not Keyworded
+sci-chemistry/apbs fetk iapbs python
+
+# Alexey Shvetsov <alexxy@gentoo.org> (22 Aug 2010)
+# sci-chemistry/msms not available for this arch
+sci-chemistry/vmd msms
+
+# Alexey Shvetsov <alexxy@gentoo.org> (23 Feb 2010)
+# media-gfx/tachyon needed to be keyworded per bug #306549
+sci-chemistry/vmd tachyon
+
+# Pacho Ramos <pacho@gentoo.org>
+# Not keyworded
+media-plugins/gst-plugins-meta dts vcd vpx
+
+# QA: This entry is moved from INVALID location from default/linux/powerpc.
+# VDPAU is currently not keyworded on PPC since its a nvidia-drivers feature
+# only presently. If other drivers support it in the future, then this can
+# get unmasked
+media-tv/mythtv vdpau
+
+# Brent Baude <ranger@gentoo.org>
+# masking zephyr USE on pidgin
+net-im/pidgin zephyr
+
+# Joseph Jezak <josejx@gentoo.org> (28 Jun 2007)
+# Masked Parallel LCD devices for bug #180683
+# app-misc/lcd4linux
+app-misc/lcd4linux lcd_devices_hd44780
diff --git a/profiles/arch/powerpc/package.use.stable.mask b/profiles/arch/powerpc/package.use.stable.mask
new file mode 100644
index 000000000000..fa424400d140
--- /dev/null
+++ b/profiles/arch/powerpc/package.use.stable.mask
@@ -0,0 +1,73 @@
+# 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 ---
+
+# David Seifert <soap@gentoo.org> (23 Sep 2017)
+# MPI does not have stable keywords on ppc/ppc64
+sci-libs/fftw mpi
+
+# Andreas Sturmlechner <asturm@gentoo.org> (03 Sep 2017)
+# Stable-masking mpi support so Boost stabilization can go ahead
+# Boost 1.63 (bug 624662), Boost 1.62 (bug 590244)
+=dev-libs/boost-1.62* mpi
+=dev-libs/boost-1.63* mpi
+
+# Mikle Kolyada <zlogene@gentoo.org> (25 Aug 2017)
+# ceph has never been stabilized under either ~ppc or ~ppc64
+sys-fs/multipath-tools rbd
+
+# Pacho Ramos <grknight@gentoo.org> (01 Nov 2016)
+# Dependencies not going to stable for now
+dev-util/geany-plugins gtkspell
+
+# Pacho Ramos <grknight@gentoo.org> (01 Nov 2016)
+# net-misc/libteam is now ~ppc ~ppc64
+net-misc/networkmanager teamd
+
+# Michael Palimaka <kensington@gentoo.org> (21 Oct 2016)
+# Requires media-libs/opencv which is not stable
+media-plugins/frei0r-plugins facedetect
+media-video/vlc opencv
+
+# Michael Palimaka <kensington@gentoo.org> (25 May 2016)
+# Dependencies not stable
+app-arch/p7zip kde
+app-i18n/uim kde
+dev-vcs/subversion kwallet
+games-arcade/jumpnbump kde
+media-video/vlc kde
+net-irc/quassel kde
+net-libs/libproxy kde
+net-voip/ekiga kde
+sys-auth/polkit kde
+x11-misc/xscreensaver new-login
+
+# Pacho Ramos <pacho@gentoo.org> (15 May 2015)
+# Missing stable
+dev-libs/protobuf python
+
+# Pacho Ramos <pacho@gentoo.org> (06 Sep 2015)
+# webkit-gtk is going to stay in ~all but amd64/x86
+# that are the only arches upstream is taking care
+>=x11-libs/wxGTK-3.0.2.0-r1 webkit
+
+# Justin Lecher <jlec@gentoo.org> (21 Feb 2015)
+# Needs stable GNOME-3
+net-fs/netatalk tracker
+app-office/homebank ofx
+net-libs/aqbanking ofx
diff --git a/profiles/arch/powerpc/packages b/profiles/arch/powerpc/packages
new file mode 100644
index 000000000000..60557a8532f4
--- /dev/null
+++ b/profiles/arch/powerpc/packages
@@ -0,0 +1,10 @@
+# Copyright 2005-2008 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+*sys-fs/hfsutils
+*sys-fs/hfsplusutils
+
+# Brent Baude <ranger@gentoo.org> (29 Nov 2012)
+# Removing kgcc64 from system packages now that toolchain is biarch
+-*sys-devel/kgcc64
+
diff --git a/profiles/arch/powerpc/parent b/profiles/arch/powerpc/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/powerpc/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/powerpc/ppc32/eapi b/profiles/arch/powerpc/ppc32/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/ppc32/make.defaults b/profiles/arch/powerpc/ppc32/make.defaults
new file mode 100644
index 000000000000..57c5d7770ef5
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/make.defaults
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All extra USE/etc should be specified in sub-profiles.
+# DO NOT POLLUTE USE ON THIS PROFILE.
+
+ARCH="ppc"
+ACCEPT_KEYWORDS="ppc"
+
+CHOST="powerpc-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo"
+
+# 2006/12/06 - Diego Pettenò <flameeyes@gentoo.org>
+# Defaults for PowerPC sound driver
+ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx"
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Multilib-related setup for compatibility with future multilib.
+ABI="ppc"
+DEFAULT_ABI="ppc"
+MULTILIB_ABIS="ppc"
+CHOST_ppc="${CHOST}"
+LIBDIR_ppc="lib"
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Make the ABI flag implicit for compatibility with native ebuilds.
+IUSE_IMPLICIT="abi_ppc_32"
+
+# Enable abi_ppc_32 for packages that don't have it forced.
+ABI_PPC="32"
diff --git a/profiles/arch/powerpc/ppc32/package.use b/profiles/arch/powerpc/ppc32/package.use
new file mode 100644
index 000000000000..320a6bbb1a0c
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/package.use
@@ -0,0 +1,2 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/arch/powerpc/ppc32/package.use.mask b/profiles/arch/powerpc/ppc32/package.use.mask
new file mode 100644
index 000000000000..f9284d17fab6
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/package.use.mask
@@ -0,0 +1,124 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Sergei Trofimovich <slyfox@gentoo.org> (3 Oct 2017)
+# Incomplete support, bug #605878.
+net-vpn/tor seccomp
+
+# Michał Górny <mgorny@gentoo.org> (23 Mar 2017)
+# Most of clang runtimes are not supported here
+sys-devel/clang-runtime openmp sanitize
+sys-libs/libcxx libcxxrt
+
+# Michael Weber <xmw@gentoo.org> (15 Mar 2017)
+# Cannot test non-free dependency dev-libs/device-atlas-api-c
+net-proxy/haproxy device-atlas
+
+# Bernard Cafarelli <voyageur@gentoo.org> <25 Jan 2017)
+# Requires a Java dependency
+app-text/tesseract scrollview
+
+# Davide Pesavento <pesa@gentoo.org> (21 Jan 2017)
+# Requires unkeyworded dev-python/PyQt5
+dev-python/qscintilla-python qt5
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (13 Dec 2016)
+# Dropping ppc from sci-libs/armadillo, bug 555896
+sci-libs/gdal armadillo
+
+## Thomas Deutschmann <whissi@gentoo.org> (2016-12-04)
+# sci-libs/gdal[mdb] requires dev-java/jackcess which is not keyworded
+sci-libs/gdal mdb
+
+# Michał Górny <mgorny@gentoo.org> (18 Nov 2016)
+# libomp does not support 32-bit PPC, #600148.
+sys-devel/clang-runtime openmp
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> (01 Aug 2016)
+# dev-qt/qtwebkit:5 and kde-frameworks/*:5 not keyworded.
+net-irc/kvirc kde webkit
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (28 Jun 2016)
+# Missing keywords on app-text/gspell - bug #587368
+>=app-editors/gedit-3.20 spell
+
+# Davide Pesavento <pesa@gentoo.org> (06 Jun 2016)
+# Requires unkeyworded dev-qt/qtmultimedia:5
+media-plugins/audacious-plugins qt5
+net-analyzer/wireshark qt5
+sci-astronomy/stellarium sound
+
+# Davide Pesavento <pesa@gentoo.org> (06 Jun 2016)
+# Requires unkeyworded dev-qt/qtwebkit:5, which is a PITA to maintain on
+# minor arches and has been declared deprecated by upstream. So we'd like
+# to avoid keywording it, unless requested by users.
+app-office/texmaker qt5
+dev-qt/designer webkit
+net-irc/quassel webkit
+kde-plasma/libksysguard detailedmemory
+
+# James Le Cuirot <chewi@gentoo.org> (30 Jan 2016)
+# scrollview requires Java, which is unsupported on ppc.
+app-text/tesseract scrollview
+
+# James Le Cuirot <chewi@gentoo.org> (12 Jan 2015)
+# Java is no longer supported on ppc.
+app-text/texlive pdfannotextractor
+dev-lang/logtalk fop
+gnome-extra/libgda reports
+net-analyzer/wireshark doc-pdf
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no ppc support in media-libs/glfw
+app-text/mupdf opengl
+
+# Ian Delaney <idella4@gentoo.org> (04 Jan 2016)
+# on behalf of Ilya Tumaykin <itumaykin+gentoo@gmail.com>
+# media-libs/libsdl2 lacked ppc32 keyword at the time. See bug #508226.
+# Ready for the next stable mpv version after the one below.
+=media-video/mpv-0.18.0-r1 sdl
+
+# Anthony G. Basile <blueness@gentoo.org> (26 Oct 2015)
+# Mask x265 on vlc for bug #564138
+media-video/vlc x265
+
+# Ben de Groot <yngwin@gentoo.org> (20 Jul 2015)
+# missing keyword
+media-sound/audacity midi soundtouch
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jun 2015)
+# Missing keywords (02 Jun 2015)
+net-misc/connman openconnect
+
+# Pacho Ramos <pacho@gentoo.org> (15 May 2015)
+# Missing stable
+dev-libs/protobuf python
+
+# 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
+
+# Pacho Ramos <pacho@gentoo.org> (14 Jan 2015)
+# Missing keywords
+app-misc/workrave mate
+
+# Patrick Lauer <patrick@gentoo.org> (13 Jan 2015)
+# Dependencies lack keywords
+games-fps/lsdldoom shareware
+
+# Julian Ospald <hasufell@gentoo.org> (23 Nov 2013)
+# FIXME: app-arch/innoextract not available under ppc yet
+games-fps/duke3d-data gog
+
+# Maciej Mrozowski <reavertm@gentoo.org> (26 Jun 2010)
+# Needs media-libs/simage keyworded, bug 325623
+media-libs/coin simage
+
+#nixnut <nixnut@gentoo.org> (24 jan 2009)
+#don't want zemberek for enchant for ppc32
+app-text/enchant zemberek
+
+# Chí-Thanh Christopher Nguyễn (11 Jul 2016)
+# Requires unkeyworded kde-frameworks packages
+net-irc/quassel qt5
+
diff --git a/profiles/arch/powerpc/ppc32/package.use.stable.mask b/profiles/arch/powerpc/ppc32/package.use.stable.mask
new file mode 100644
index 000000000000..1130758c84d5
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/package.use.stable.mask
@@ -0,0 +1,44 @@
+# 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 Weber <xmw@gentoo.org> (01 Mar 2017)
+# Mask until >sys-cluster/ceph-0.94 goes stable
+net-analyzer/rrdtool rados
+
+# Pacho Ramos <pacho@gentoo.org> (15 May 2015)
+# Missing keywords
+net-misc/connman l2tp openconnect
+sci-libs/plplot ocaml
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+app-misc/gramps webkit
+dev-java/swt webkit
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+mail-client/balsa webkit
+media-gfx/gimp webkit
+>=net-libs/webkit-gtk-2.4 geoloc
+net-libs/libproxy webkit
+>=x11-libs/gtk+-3.12.2 cloudprint
+x11-libs/gksu gnome
+
+# Chí-Thanh Christopher Nguyễn (11 Jul 2016)
+# Requires unstable dev-qt/qtx11extras:5 (bug 585228)
+=x11-themes/qtcurve-1.8.18-r1 qt5
diff --git a/profiles/arch/powerpc/ppc32/parent b/profiles/arch/powerpc/ppc32/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/powerpc/ppc32/use.force b/profiles/arch/powerpc/ppc32/use.force
new file mode 100644
index 000000000000..5da3746141ae
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/use.force
@@ -0,0 +1,5 @@
+# Force the flag which corresponds to ARCH.
+ppc
+
+# Force the flag corresponding to the only ABI.
+abi_ppc_32
diff --git a/profiles/arch/powerpc/ppc32/use.mask b/profiles/arch/powerpc/ppc32/use.mask
new file mode 100644
index 000000000000..411b8f3b6130
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/use.mask
@@ -0,0 +1,20 @@
+# Unmask the flag which corresponds to ARCH.
+-ppc
+
+# James Le Cuirot <chewi@gentoo.org> (12 Jan 2015)
+# Java is no longer supported on ppc.
+java
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Unmask multilib flag for the ABI.
+-abi_ppc_32
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# keyworded on ppc
+-clisp
+-ecls
+-sbcl
+
+# Pacho Ramos <pacho@gentoo.org> (11 Sep 2013)
+# Unmask systemd since it is keyworded here.
+-systemd
diff --git a/profiles/arch/powerpc/ppc32/use.stable.mask b/profiles/arch/powerpc/ppc32/use.stable.mask
new file mode 100644
index 000000000000..ab73cb222f1a
--- /dev/null
+++ b/profiles/arch/powerpc/ppc32/use.stable.mask
@@ -0,0 +1,9 @@
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# no stable versions on ppc
+clisp
+ecls
+sbcl
+
+# Chí-Thanh Christopher Nguyễn (25 Mar 2014)
+# appears to not work correctly since mesa-10
+opencl
diff --git a/profiles/arch/powerpc/ppc64/32ul/eapi b/profiles/arch/powerpc/ppc64/32ul/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/ppc64/32ul/make.defaults b/profiles/arch/powerpc/ppc64/32ul/make.defaults
new file mode 100644
index 000000000000..9865b69f3450
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/make.defaults
@@ -0,0 +1,16 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All extra USE/etc should be specified in sub-profiles.
+# DO NOT POLLUTE USE ON THIS PROFILE.
+
+ARCH="ppc"
+CHOST="powerpc-unknown-linux-gnu"
+ABI="ppc"
+MULTILIB_ABIS="ppc"
+DEFAULT_ABI="ppc"
+ACCEPT_KEYWORDS="${ARCH} -ppc64"
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Make the ABI flag implicit for compatibility with native ebuilds.
+IUSE_IMPLICIT="abi_ppc_32 -abi_ppc_64"
diff --git a/profiles/arch/powerpc/ppc64/32ul/package.mask b/profiles/arch/powerpc/ppc64/32ul/package.mask
new file mode 100644
index 000000000000..87c0b7d6d57e
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/package.mask
@@ -0,0 +1,2 @@
+# Copyright 2012-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/arch/powerpc/ppc64/32ul/package.use.mask b/profiles/arch/powerpc/ppc64/32ul/package.use.mask
new file mode 100644
index 000000000000..d8b82b6600b1
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/package.use.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Thomas Deutschmann <whissi@gentoo.org> (2016-12-04)
+# sci-libs/gdal[mdb] requires dev-java/jackcess which is not keyworded
+sci-libs/gdal mdb
diff --git a/profiles/arch/powerpc/ppc64/32ul/packages b/profiles/arch/powerpc/ppc64/32ul/packages
new file mode 100644
index 000000000000..66d529b24633
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/packages
@@ -0,0 +1,5 @@
+# Copyright 2012-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License v2
+
+# This is no longer needed for ppc64-32ul builds
+-*sys-devel/kgcc64
diff --git a/profiles/arch/powerpc/ppc64/32ul/parent b/profiles/arch/powerpc/ppc64/32ul/parent
new file mode 100644
index 000000000000..0cd1f96e3181
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/parent
@@ -0,0 +1,3 @@
+../../../../features/multilib
+..
+../../ppc32
diff --git a/profiles/arch/powerpc/ppc64/32ul/use.force b/profiles/arch/powerpc/ppc64/32ul/use.force
new file mode 100644
index 000000000000..2516d63d66d4
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/use.force
@@ -0,0 +1,10 @@
+# Force the flag which corresponds to ARCH.
+ppc
+
+# Unforce the flag which corresponds to the 64-bit ARCH.
+-ppc64
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Switch multilib flags for the ABI.
+-abi_ppc_64
+abi_ppc_32
diff --git a/profiles/arch/powerpc/ppc64/32ul/use.mask b/profiles/arch/powerpc/ppc64/32ul/use.mask
new file mode 100644
index 000000000000..e39345da96c5
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/32ul/use.mask
@@ -0,0 +1,13 @@
+# Unmask the flag which corresponds to ARCH.
+-ppc
+
+# Mask the flag which corresponds to the 64-bit ARCH.
+ppc64
+
+# We mask this since we're not really a multilib profile
+multilib
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Switch multilib flags for the ABI.
+abi_ppc_64
+-abi_ppc_32
diff --git a/profiles/arch/powerpc/ppc64/64le/eapi b/profiles/arch/powerpc/ppc64/64le/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64le/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/ppc64/64le/make.defaults b/profiles/arch/powerpc/ppc64/64le/make.defaults
new file mode 100644
index 000000000000..f02939cf2c63
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64le/make.defaults
@@ -0,0 +1,8 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CHOST="powerpc64le-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/powerpc/ppc64/64le/parent b/profiles/arch/powerpc/ppc64/64le/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64le/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/powerpc/ppc64/64le/use.mask b/profiles/arch/powerpc/ppc64/64le/use.mask
new file mode 100644
index 000000000000..b8ad07b24a5a
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64le/use.mask
@@ -0,0 +1,10 @@
+# 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)
+# Remask as this profile is little endian.
+big-endian
+
+# 2008/02/13 - Chris Gianelloni <wolf31o2@gentoo.org>
+# Mask multilib, since we cannot use it.
+multilib
diff --git a/profiles/arch/powerpc/ppc64/64ul/eapi b/profiles/arch/powerpc/ppc64/64ul/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/ppc64/64ul/make.defaults b/profiles/arch/powerpc/ppc64/64ul/make.defaults
new file mode 100644
index 000000000000..a9f325bb82c1
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/make.defaults
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All extra USE/etc should be specified in sub-profiles.
+# DO NOT POLLUTE USE ON THIS PROFILE.
+
+MULTILIB_ABIS="ppc64"
+
+CFLAGS_ppc64="-m64"
+
+LIBDIR_ppc64="lib64"
diff --git a/profiles/arch/powerpc/ppc64/64ul/package.mask b/profiles/arch/powerpc/ppc64/64ul/package.mask
new file mode 100644
index 000000000000..bbf97dd6ceef
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/package.mask
@@ -0,0 +1,6 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# <gcc-4 does not compile with >=gcc-4 on ppc64
+sys-libs/libstdc++-v3
+<sys-devel/gcc-4.1
diff --git a/profiles/arch/powerpc/ppc64/64ul/package.use.mask b/profiles/arch/powerpc/ppc64/64ul/package.use.mask
new file mode 100644
index 000000000000..aef8e03adea8
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/package.use.mask
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=networkmanager that is masked in this profile.
+app-misc/geoclue skyhook
+
+# Brian Evans <grknight@gentoo.org> (23 Nov 2015)
+# unmask galera for dev-db/mariadb
+>=dev-db/mariadb-10.1.0 -galera
+
+# Agostino Sarubbo <ago@gentoo.org> (31 Jan 2012)
+# Mask because requires a lot of unstable depends not ready for the stabilization
+gnome-extra/nm-applet bluetooth
+
+# Brent Baude <ranger@gentoo.org> (06 Jan 2010)
+# masking toolame for mplayer bug 280281
+media-video/mplayer toolame
+
+# Brent Baude <ranger@gentoo.org> (31 Dec 2009)
+# Masking for bug 274847
+app-admin/conky apcupsd
+
+# Brent Baude <ranger@gentoo.org> (6 Feb 2009)
+# Masking solver/ocaml USE from kalzium to fix tree borkage
+kde-apps/kalzium solver
+
+# Brent Baude <ranger@gentoo.org> (28 January 2009)
+# Masking zemberek for enchant
+app-text/enchant zemberek
diff --git a/profiles/arch/powerpc/ppc64/64ul/parent b/profiles/arch/powerpc/ppc64/64ul/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/powerpc/ppc64/64ul/use.mask b/profiles/arch/powerpc/ppc64/64ul/use.mask
new file mode 100644
index 000000000000..95f5b5ec1673
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/64ul/use.mask
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation; Distributed under the GPL v2
+
+# Ilya Tumaykin <itumaykin+gentoo@gmail.com> (07 May 2017)
+# There is no luajit support on ppc64 userland. Bug #608326.
+luajit
+
+# Anthony G. Basile <blueness@gentoo.org> (01 Aug 2015)
+# There is no luajit support on ppc64 userland. Bug #554376.
+luajittex
+
+# Jeroen Roovers <jer@gentoo.org> (10 May 2015)
+# virtual/opencl requires media-libs/mesa[opencl] (bug #549096)
+opencl
+
+# this is a list of USE flags that should not be used on PPC64
+# Tom Gall <tgall@gentoo.org> manages this list
+directfb
+
+# Agostino Sarubbo <ago@gentoo.org> (22 Dec 2012)
+# mask kde since is not anymore keyworded for ppc64
+kde
+
+# Kacper Kowalik <xarthisius@gentoo.org> (10 Aug 2011)
+# Masking frei0r wrt bug #365451
+frei0r
+
+pda
+prelude
+mono
+networkmanager
+ocamlopt
+
+# not tested on ppc64
+celt
+capi
+xmms2
+
+# dietlibc
+diet
+
+# we don't have hardware to test. also see bug #113398
+dvb
+
+# 2006/03/20 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_chips
+video_cards_cirrus
+video_cards_glint
+video_cards_newport
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_tdfx
+video_cards_trident
+video_cards_voodoo
+# llvm is not keyworded
+video_cards_radeonsi
+
+#until netbeans is keyworded
+netbeans
+
+# mask pcmcia (bug #131306)
+pcmcia
+
+# conky dependencies missing keywords related (dragonheart -20061112)
+# media-sound/mpd
+mpd
+# app-admin/hddtemp
+hddtemp
+
+# Unmask this here, since only ppc64 can use it
+-ibm
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# unregisterised ghc arch for now.
+# no ghci - no TH
+template_haskell
+
+# 2008/02/13 - Chris Gianelloni <wolf31o2@gentoo.org>
+# Mask multilib, since we cannot use it.
+multilib
diff --git a/profiles/arch/powerpc/ppc64/eapi b/profiles/arch/powerpc/ppc64/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/powerpc/ppc64/make.defaults b/profiles/arch/powerpc/ppc64/make.defaults
new file mode 100644
index 000000000000..fe54e02e4ef5
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/make.defaults
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All extra USE/etc should be specified in sub-profiles.
+# DO NOT POLLUTE USE ON THIS PROFILE.
+
+ARCH="ppc64"
+ACCEPT_KEYWORDS="${ARCH}"
+
+CHOST="powerpc64-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+USE="ibm"
+
+MULTILIB_ABIS="ppc64"
+DEFAULT_ABI="ppc64"
+KERNEL_ABI="ppc64"
+PROFILE_ARCH="ppc64"
+ABI="ppc64"
+
+#CFLAGS_ppc64="-m64"
+LDFLAGS_ppc64="-m elf64ppc"
+CHOST_ppc64="powerpc64-unknown-linux-gnu"
+
+CFLAGS_ppc="-m32"
+LDFLAGS_ppc="-m elf32ppc"
+CHOST_ppc="powerpc-unknown-linux-gnu"
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Make the ABI flag implicit for compatibility with native ebuilds.
+IUSE_IMPLICIT="abi_ppc_64"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev mach64 mga nv r128 radeon vesa"
+
+# Enable abi_ppc_64 for packages that don't have it forced.
+ABI_PPC="64"
diff --git a/profiles/arch/powerpc/ppc64/package.use b/profiles/arch/powerpc/ppc64/package.use
new file mode 100644
index 000000000000..fff5ac35def6
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/package.use
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Doug Goldstein <cardoe@gentoo.org> (29 Oct 2012)
+# Enable the native arch as the default qemu target
+app-emulation/qemu qemu_softmmu_targets_ppc64
diff --git a/profiles/arch/powerpc/ppc64/package.use.force b/profiles/arch/powerpc/ppc64/package.use.force
new file mode 100644
index 000000000000..0e40400abb23
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/package.use.force
@@ -0,0 +1,9 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Samuli Suominen <ssuominen@gentoo.org> (30 Oct 2012)
+# Only gnome-base/gdm has stable keywording. If x11-misc/lightdm or kde-plasma/kdm gets
+# stable keyword, this line can be removed.
+x11-misc/xscreensaver gdm
+
+sys-firmware/seabios binary
diff --git a/profiles/arch/powerpc/ppc64/package.use.mask b/profiles/arch/powerpc/ppc64/package.use.mask
new file mode 100644
index 000000000000..4de688019de1
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/package.use.mask
@@ -0,0 +1,131 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Gilles Dartiguelongue <eva@gentoo.org> (16 Aug 2017)
+# missing keyword on dev-python/dbusmock, bug #620024
+>=gnome-base/gnome-settings-daemon-3.24 test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# package.use.force forces USE=binary, and USE=debug requires !binary,
+# so it can never be enabled.
+sys-firmware/seabios debug
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Jeroen Roovers <jer@gentoo.org> <16 Jan 2017>
+# Incomplete support, bug #605878.
+net-vpn/tor seccomp
+
+# Jeroen Roovers <jer@gentoo.org> <5 Feb 2017>
+# media-libs/libilbc has not been ported to PPC64
+media-video/ffmpeg libilbc
+
+# Robin H. Johnson <robbat2@gentoo.org> (18 Nov 2016)
+# dev-lang/luajit lacks ppc64 keyword. luajit upstream does not support ppc64
+dev-db/redis luajit
+
+# Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> (01 Aug 2016)
+# kde-frameworks/*:5 not keyworded.
+net-irc/kvirc kde
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (28 Jun 2016)
+# Missing keywords on app-text/gspell - bug #587368
+>=app-editors/gedit-3.20 spell
+
+# Patrice Clement <monsieurp@gentoo.org> (08 Feb 2016)
+# I would need to keyword an awful lot of packages on ppc64
+# that would need Java 7 otherwise.
+dev-java/batik python
+dev-java/bsf python
+dev-java/ant-apache-bsf python
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no ppc64 support in media-libs/glfw
+app-text/mupdf opengl
+
+# Jeroen Roovers <jer@gentoo.org> (26 Dec 2015)
+# Mask until >sys-cluster/ceph-0.94 goes stable
+net-analyzer/rrdtool rados
+
+# Justin Lecher <jlec@gentoo.org> (3 Dec 2015)
+# Missing keywords on deps #567458
+kde-apps/kalzium editor
+
+# Michael Palimaka <kensington@gentoo.org> (17 Oct 2015)
+# Unkeyworded dependencies
+dev-qt/qtwebkit webchannel
+
+# Ben de Groot <yngwin@gentoo.org> (20 Jul 2015)
+# missing keywords
+media-sound/audacity midi soundtouch
+
+# Justin Lecher <jlec@gentoo.org> (16 June 2015)
+# Pending bug upstream, #550818
+=app-office/scribus-1.5.0-r1 osg
+
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# dev-lang/luajit lack ppc64 keyword, bug #551540
+dev-libs/libpeas jit
+
+# Matthias Maier <tamiko@gentoo.org> (24 Dec 2014)
+# sys-devel/clang is not keyworded
+app-doc/doxygen clang
+
+# Michael Sterrett <mr_bones_@gentoo.org (12 Nov 2013)
+# Mask openmedia use flag because the content generation tools
+# are missing keywords.
+games-simulation/openttd openmedia
+
+# Sergey Popov <pinkbyte@gentoo.org> (18 Feb 2013)
+# sys-cluster/ploop can not be build on ppc64, bug #447644
+# Masking USE-dep on it
+sys-cluster/vzctl ploop
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Kacper Kowalik <xarthisius@gentoo.org> (02 Sep 2011)
+# Mask www-client/seamonkey[ipc] on ppc64 wrt #381191
+www-client/seamonkey ipc
+
+# Kacper Kowalik <xarthisius@gentoo.org> (22 Mar 2011)
+# Mask polkit[kde] wrt #354509
+sys-auth/polkit kde
+
+# Alexey Shvetsov <alexxy@gentoo.org> (26 Jan 2011)
+# Mask gps for marble
+kde-apps/marble gps
+
+# Samuli Suominen <ssuominen@gentoo.org> (21 Jun 2010)
+# These need stable kdelibs-4.
+app-i18n/uim kde
+app-arch/p7zip kde
+dev-vcs/subversion kwallet
+media-video/vlc kde
+net-libs/libproxy kde
+
+# Kacper Kowalik <xarthisius@gentoo.org> (30 May 2010)
+# quesoglc is not keyworded
+x11-misc/rss-glx quesoglc
+
+# Brent Baude <ranger@gentoo.org> (05 May 2009)
+# Masking webkit from libproxy due to TOC failure on webkit
+# and stupid 64bit toolchain.
+net-libs/libproxy webkit
+
+# Brent Baude <ranger@gentoo.org> (11 June 2008)
+# Masking webkit from gimp do to lame ppc64 toolchain and TOC
+>=media-gfx/gimp-2.6.4 webkit
+
+# Brent Baude <ranger@gentoo.org> (11 June 2008)
+# Masking out passwdqc from pambase since passwdqc
+sys-auth/pambase passwdqc
+
+# Joseph Jezak <josejx@gentoo.org> (12 February 2010)
+# Mask unstable pidgin deps until we can mark them stable (farsight2)
+net-im/pidgin gstreamer
diff --git a/profiles/arch/powerpc/ppc64/package.use.stable.mask b/profiles/arch/powerpc/ppc64/package.use.stable.mask
new file mode 100644
index 000000000000..20f877c59f3f
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/package.use.stable.mask
@@ -0,0 +1,32 @@
+# 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 ---
+
+# Davide Pesavento <pesa@gentoo.org> (06 Jun 2016)
+# dev-qt/qtx11extras:5 not stable yet (bug 585228)
+media-video/vlc qt5
+x11-themes/qtcurve qt5
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+dev-java/swt webkit
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+>=net-libs/webkit-gtk-2.4 geoloc
+>=x11-libs/gtk+-3.12.2 cloudprint
+x11-libs/gksu gnome
diff --git a/profiles/arch/powerpc/ppc64/parent b/profiles/arch/powerpc/ppc64/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/parent
@@ -0,0 +1 @@
+..
diff --git a/profiles/arch/powerpc/ppc64/use.force b/profiles/arch/powerpc/ppc64/use.force
new file mode 100644
index 000000000000..85c8ee8c145f
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/use.force
@@ -0,0 +1,5 @@
+# Force the flag which corresponds to ARCH.
+ppc64
+
+# Force the flag corresponding to the only ABI.
+abi_ppc_64
diff --git a/profiles/arch/powerpc/ppc64/use.mask b/profiles/arch/powerpc/ppc64/use.mask
new file mode 100644
index 000000000000..b047e41efe76
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/use.mask
@@ -0,0 +1,31 @@
+### THIS FILE IS ONLY FOR PACKAGES MASKED ON BOTH 64-BIT AND 32-BIT USERLAND!!!
+
+# Michał Górny <mgorny@gentoo.org> (27 Jun 2014)
+# Unmask multilib flag for the ABI.
+-abi_ppc_64
+
+# Samuli Suominen <ssuominen@gentoo.org> (24 Nov 2012)
+# TODO: Keyword and stabilize media-gfx/opencolorio and media-libs/opencv
+colorio
+opencv
+
+# Brent Baude <ranger@gentoo.org> (3 Oct 2008)
+# Masking xindy use flag for ppc64
+xindy
+
+# 01 Oct 2008 Brent Baude <ranger@gentoo.org>
+# # Masking battery USE for bug 238770
+battery
+
+# Unmask the flag which corresponds to ARCH.
+-ppc64
+
+# Unmask the flag for Playstation 3
+-ps3
+
+# mask custom-cpuopts and cpudetection on ppc64 for mplayer - bug #234629
+cpudetection
+
+# Michał Górny <mgorny@gentoo.org> (4 May 2013)
+# Unmask systemd since it is keyworded here.
+-systemd
diff --git a/profiles/arch/powerpc/ppc64/use.stable.mask b/profiles/arch/powerpc/ppc64/use.stable.mask
new file mode 100644
index 000000000000..e797af411b72
--- /dev/null
+++ b/profiles/arch/powerpc/ppc64/use.stable.mask
@@ -0,0 +1,5 @@
+# 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
diff --git a/profiles/arch/powerpc/use.mask b/profiles/arch/powerpc/use.mask
new file mode 100644
index 000000000000..279fbf572ea8
--- /dev/null
+++ b/profiles/arch/powerpc/use.mask
@@ -0,0 +1,180 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# PPC Specific use flags
+#
+
+# David Seifert <soap@gentoo.org> (08 Jul 2017)
+# Games are not keyworded anymore on ppc
+capslib
+fortune
+nagios-game
+physfs
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Matt Turner <mattst88@gentoo.org> (24 Mar 2017)
+# virtual/opencl is not keyworded
+opencl
+
+# Matt Turner <mattst88@gentoo.org> (24 Mar 2017)
+# We don't have sys-devel/llvm
+llvm
+video_cards_amdgpu
+video_cards_radeonsi
+clang
+
+# Jeroen Roovers <jer@gentoo.org> (22 Sep 2015)
+# sci-libs/mkl is not supported on PPC
+mkl
+
+# Jeroen Roovers <jer@gentoo.org> (25 May 2015)
+# PowerPC has no support for this bootloader (bug #550322)
+gnuefi
+
+# Patrick Lauer <patrick@gentoo.org> (28 Apr 2015)
+# dependencies not keyworded yet
+ayatana
+
+#Klibc does not work
+klibc
+
+# These flags should only be used for ppc
+-ppcsha1
+-power8
+# Unmask the Altivec instruction set
+-altivec
+
+# Incompatible Use Flags
+#
+# These use-flags are x86/amd64 only, please feel free to make a bug report if
+# this is in error!
+#
+3dfx
+acpi
+lm_sensors
+rar
+hdf
+fmod
+xvmc
+# cg is only provided by nvidia's binary only cg toolkit
+cg
+# dmi depends on PC BIOSes, we don't have those
+dmi
+#2006/10/11 - corsair - bug #150925
+lcd_devices_graphlcd
+# Masked vaapi for PowerPC until it works on hardware available to PowerPC users (cell, etc.)
+vaapi
+# User Mode Linux isn't supported on ppc yet
+uml
+
+
+### Other flags -- Please put additional maskings below here
+
+# No keyworded versions of openafs
+afs
+
+# Masking mbrola for bug #84322, if a new version is released, remove this
+mbrola
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_wacom
+
+# Diego Pettenò <flameeyes@gentoo.org> (6 Dec 2006)
+# Mask ALSA drivers for ISA cards
+alsa_cards_msnd-pinnacle
+alsa_cards_sb16
+alsa_cards_sbawe
+alsa_cards_sscape
+alsa_cards_wavefront
+
+# George Shapovalov <george@gentoo.org> (8 Apr 2007)
+# supported on ppc
+-ada
+
+# Joseph Jezak <josejx@gentoo.org> (28 Jun 2007)
+# Masked Parallel LCD devices for bug #180683
+# app-misc/lcd4linux
+lcd_devices_lph7508
+lcd_devices_m50530
+lcd_devices_noritake
+lcd_devices_routerboard
+# app-misc/lcdproc
+lcd_devices_sed1330
+lcd_devices_sed1520
+lcd_devices_stv5730
+# Both
+lcd_devices_t6963
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_neomagic
+video_cards_nsc
+video_cards_rendition
+video_cards_siliconmotion
+video_cards_sis
+video_cards_tga
+video_cards_tseng
+video_cards_vesa
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# Intel Integrated Primitive (sci-libs/ipp) support
+ipp
+
+# dev-lang/orc doesn't play nice
+schroedinger
+
+# This will need >=media-libs/libgpod-0.8.0 keyworded and stabilized on both ppc/ppc64, bugs 313691 and 325839
+ipod
+ios
+
+# Christian Faulhammer <fauli@gentoo.org> (01 Nov 2010)
+# app-misc/lirc fails to compile on PPC64, see bug 275872 for example
+# Samuli Suominen <ssuominen@gentoo.org> (03 Nov 2010)
+# and it's also masked in arch/powerpc/ppc64/32ul/package.mask
+lirc
+
+# Matt Turner <mattst88@gmail.com> (06 May 2011)
+# media-sound/mumble not keyworded on ppc
+mumble
+
+# Kacper Kowalik <xarthisius@gentoo.org> (26 Jul 2011)
+# ppc keywords were dropped for dev-libs/prelude
+prelude
+
+# Julian Ospald <hasufell@gentoo.org> (25 Apr 2012)
+# Masked because nvidia-texture-tools is not (tested) for PowerPC
+nvtt
+
+# fdk-aac is already keyworded here
+-fdk
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# for gnome 3.6 keywording
+-zeitgeist
+
+# Pacho Ramos <pacho@gentoo.org> (08 Jan 2014)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+
diff --git a/profiles/arch/powerpc/use.stable.mask b/profiles/arch/powerpc/use.stable.mask
new file mode 100644
index 000000000000..a82a542b8c22
--- /dev/null
+++ b/profiles/arch/powerpc/use.stable.mask
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 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
+
+# Pacho Ramos <pacho@gentoo.org> (17 Apr 2014)
+# Dropped stable keywords after the discussion caused by
+# Gnome 3.8/3.10 stabilization on this arch
+colord
+devhelp
+dia
+eds
+epiphany
+evo
+gdm
+gnome-online-accounts
+gnome-shell
+gnumeric
+gusb
+upnp
+upnp-av
diff --git a/profiles/arch/riscv/make.defaults b/profiles/arch/riscv/make.defaults
new file mode 100644
index 000000000000..c25e0e72a40c
--- /dev/null
+++ b/profiles/arch/riscv/make.defaults
@@ -0,0 +1,7 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Main RISC-V profile; endian/bitsize independent.
+
+ARCH="riscv"
+ACCEPT_KEYWORDS="riscv"
diff --git a/profiles/arch/riscv/package.use.mask b/profiles/arch/riscv/package.use.mask
new file mode 100644
index 000000000000..c456a6fedb42
--- /dev/null
+++ b/profiles/arch/riscv/package.use.mask
@@ -0,0 +1,5 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# libpcre doesn't support jit on RISC-V.
+dev-libs/libpcre jit
diff --git a/profiles/arch/riscv/parent b/profiles/arch/riscv/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/riscv/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/riscv/use.force b/profiles/arch/riscv/use.force
new file mode 100644
index 000000000000..612aced6a1fa
--- /dev/null
+++ b/profiles/arch/riscv/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+riscv
diff --git a/profiles/arch/s390/eapi b/profiles/arch/s390/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/s390/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/s390/make.defaults b/profiles/arch/s390/make.defaults
new file mode 100644
index 000000000000..b26df0f34271
--- /dev/null
+++ b/profiles/arch/s390/make.defaults
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="s390"
+ACCEPT_KEYWORDS="s390 ~s390"
+
+MULTILIB_ABIS="s390"
+DEFAULT_ABI="s390"
+ABI="${DEFAULT_ABI}"
+
+CHOST="s390-ibm-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+LIBDIR_s390x="lib64"
+LIBDIR_s390="lib"
+
+INPUT_DEVICES="void"
+VIDEO_CARDS="dummy"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 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_s390_32"
+
+# Enable abi_s390_32 for packages that don't have it forced.
+ABI_S390="32"
+
+# While multilib is available, we don't default it to on.
+BOOTSTRAP_USE="${BOOTSTRAP_USE} -multilib"
+USE="-multilib"
diff --git a/profiles/arch/s390/package.use.force b/profiles/arch/s390/package.use.force
new file mode 100644
index 000000000000..48d418769933
--- /dev/null
+++ b/profiles/arch/s390/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
+
+# Mike Frysinger <vapier@gentoo.org> (09 Dec 2016)
+# The ABI changes when the flag is disabled. Force it for now.
+# https://gmplib.org/list-archives/gmp-bugs/2016-December/004039.html
+dev-libs/gmp asm
diff --git a/profiles/arch/s390/package.use.mask b/profiles/arch/s390/package.use.mask
new file mode 100644
index 000000000000..74ad5000a41e
--- /dev/null
+++ b/profiles/arch/s390/package.use.mask
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Sergey Popov <pinkbyte@gentoo.org> (24 Oct 2015)
+# Not tested
+net-mail/dovecot lz4
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Sergey Popov <pinkbyte@gentoo.org> (18 Feb 2015)
+# Not tested
+app-portage/layman g-sorcery
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (16 Sep 2014)
+# Needs libepoxy keywording, bug #510940
+x11-base/xorg-server glamor wayland
+x11-drivers/xf86-video-ati glamor
+
+# Mikle Kolyada <zlogene@gentoo.org> (11 Jan 2014)
+# too much unkeyworded dependencies (bug #497068)
+dev-vcs/git mediawiki mediawiki-experimental
+
+# Agostino Sarubbo <ago@gentoo.org< (10 Apr 2013)
+# It requires too much unstable dep.
+x11-libs/gtk+ colord
+
+# Justin Lecher <jlec@gentoo.org> (09 Jan 2013)
+# x11-base/xorg-server[xvfb] is not keyworded
+dev-lang/tk test
+
+# Raúl Porcel <armin76@gentoo.org> (05 Nov 2011)
+# jit not supported on s390
+dev-libs/libpcre jit
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Mike Frysinger <vapier@gentoo.org> (10 Feb 2011)
+# Waiting for keywording #354309
+net-firewall/iptables netlink
+
+# Raúl Porcel <armin76@gentoo.org> (27 Mar 2008)
+# Needs gtk USE-flag
+net-dns/avahi python
+
+# missing keyword for sys-cluster/openmpi sys-cluster/mpich2
+dev-libs/boost mpi
+
+# Robin H Johnson <robbat2@gentoo.org> (01 Nov 2012)
+# MySQL 5.5 wants systemtap, tcmalloc & jemalloc
+>=dev-db/mysql-5.5 tcmalloc
+>=dev-db/mariadb-5.5 tcmalloc
+>=dev-db/percona-server-5.5 tcmalloc
diff --git a/profiles/arch/s390/packages b/profiles/arch/s390/packages
new file mode 100644
index 000000000000..6c16a3cea144
--- /dev/null
+++ b/profiles/arch/s390/packages
@@ -0,0 +1,3 @@
+*sys-apps/s390-tools
+
+-*sys-apps/hdparm
diff --git a/profiles/arch/s390/parent b/profiles/arch/s390/parent
new file mode 100644
index 000000000000..7663f5297bb4
--- /dev/null
+++ b/profiles/arch/s390/parent
@@ -0,0 +1,2 @@
+../../features/multilib
+../base
diff --git a/profiles/arch/s390/s390x/eapi b/profiles/arch/s390/s390x/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/s390/s390x/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/s390/s390x/make.defaults b/profiles/arch/s390/s390x/make.defaults
new file mode 100644
index 000000000000..69f466a272e4
--- /dev/null
+++ b/profiles/arch/s390/s390x/make.defaults
@@ -0,0 +1,16 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MULTILIB_ABIS="s390x"
+DEFAULT_ABI="s390x"
+ABI="${DEFAULT_ABI}"
+
+CHOST="s390x-ibm-linux-gnu"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 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_s390_64 -abi_s390_32"
+
+# Enable abi_s390_64 for packages that don't have it forced.
+ABI_S390="64"
diff --git a/profiles/arch/s390/s390x/package.use.force b/profiles/arch/s390/s390x/package.use.force
new file mode 100644
index 000000000000..92bb466ea4ad
--- /dev/null
+++ b/profiles/arch/s390/s390x/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (11 Nov 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_SystemZ
+sys-devel/llvm llvm_targets_SystemZ
diff --git a/profiles/arch/s390/s390x/use.force b/profiles/arch/s390/s390x/use.force
new file mode 100644
index 000000000000..adf5b7184416
--- /dev/null
+++ b/profiles/arch/s390/s390x/use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Force the flag corresponding to the only ABI.
+-abi_s390_32
+abi_s390_64
diff --git a/profiles/arch/s390/s390x/use.mask b/profiles/arch/s390/s390x/use.mask
new file mode 100644
index 000000000000..a85334605169
--- /dev/null
+++ b/profiles/arch/s390/s390x/use.mask
@@ -0,0 +1,3 @@
+# Switch ABI flags for this arch.
+abi_s390_32
+-abi_s390_64
diff --git a/profiles/arch/s390/use.force b/profiles/arch/s390/use.force
new file mode 100644
index 000000000000..89bbb956da41
--- /dev/null
+++ b/profiles/arch/s390/use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2014 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Force the flag which corresponds to ARCH.
+s390
+
+# Force the flag corresponding to the only ABI.
+abi_s390_32
+
+# We do not have multilib by default.
+-multilib
diff --git a/profiles/arch/s390/use.mask b/profiles/arch/s390/use.mask
new file mode 100644
index 000000000000..18637daa1445
--- /dev/null
+++ b/profiles/arch/s390/use.mask
@@ -0,0 +1,149 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Unmask the flag which corresponds to ARCH.
+-s390
+
+# Unmask ABI flags for this arch.
+-abi_s390_32
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Stuff we don't want/not tested
+pbins
+R
+octave
+xindy
+lyx
+lasi
+kde
+mpi
+fuse
+autotrace
+lqr
+libproxy
+tokyocabinet
+lpsol
+openexr
+enchant
+fftw
+systemd
+devil
+gts
+clang
+rtmp
+metalink
+lucene
+
+# This file contains a list of useflags that cannot be used on s390.
+bluetooth
+pcmcia
+cdr
+qt4
+gpm
+3dfx
+acpi
+afs
+alsa
+apm
+directfb
+lirc
+java
+hardened
+
+# Needs java
+pdfannotextractor
+
+# no gnome love yet
+fits
+gconf
+gimp
+gtk
+gtk2
+gtk3
+gnome
+gnome-keyring
+
+diet
+m17n-lib
+xemacs
+Xaw3d
+neXt
+motif
+mono
+ocaml
+sdl
+lm_sensors
+wxwidgets
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Many X drivers make no sense on this platform.
+input_devices_acecad
+input_devices_aiptek
+input_devices_elographics
+input_devices_evdev
+input_devices_fpit
+input_devices_hyperpen
+input_devices_joystick
+input_devices_keyboard
+input_devices_mouse
+input_devices_mutouch
+input_devices_penmount
+input_devices_vmmouse
+input_devices_synaptics
+input_devices_tslib
+input_devices_wacom
+video_cards_amdgpu
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_chips
+video_cards_cirrus
+video_cards_fbdev
+video_cards_geode
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_modesetting
+video_cards_neomagic
+video_cards_newport
+video_cards_nouveau
+video_cards_nv
+video_cards_r100
+video_cards_r128
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeon
+video_cards_radeonsi
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_sisusb
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets ported & keyworded.
+unwind
diff --git a/profiles/arch/sh/eapi b/profiles/arch/sh/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/sh/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/sh/make.defaults b/profiles/arch/sh/make.defaults
new file mode 100644
index 000000000000..63cf388187d8
--- /dev/null
+++ b/profiles/arch/sh/make.defaults
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Main SuperH profile
+
+ARCH="sh"
+ACCEPT_KEYWORDS="sh ~sh"
+
+CHOST="sh-unknown-linux-gnu"
+CFLAGS="-O2"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Set ABI & DEFAULT_ABI consistently with ${ARCH}, to make ebuild
+# checks simpler.
+ABI="sh"
+DEFAULT_ABI="sh"
+MULTILIB_ABIS="sh"
+CHOST_sh="${CHOST}"
+LIBDIR_sh="lib"
+
+# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> (16 Nov 2011)
+# Rename STAGE1_USE to BOOTSTRAP_USE and stack it to the parent value
+# We need to disable ssp.
+BOOTSTRAP_USE="${BOOTSTRAP_USE} nossp"
+
+USE="nossp"
diff --git a/profiles/arch/sh/package.mask b/profiles/arch/sh/package.mask
new file mode 100644
index 000000000000..bb224ed7af11
--- /dev/null
+++ b/profiles/arch/sh/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Zac Medico <zmedico@gentoo.org> (09 Aug 2011)
+# Bug #377907 - Use package.mask for compatibility with PMS section 5.2.7, and
+# future versions of sys-apps/portage.
+<sys-devel/gcc-3.2
diff --git a/profiles/arch/sh/package.use.force b/profiles/arch/sh/package.use.force
new file mode 100644
index 000000000000..3961c343ce92
--- /dev/null
+++ b/profiles/arch/sh/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/sh/package.use.mask b/profiles/arch/sh/package.use.mask
new file mode 100644
index 000000000000..78948caa96dd
--- /dev/null
+++ b/profiles/arch/sh/package.use.mask
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=bluetooth that is masked in this profile.
+media-sound/pulseaudio native-headset ofono-headset
+
+# Matt Turner <mattst88@gentoo.org> (25 Feb 2017)
+# Needs libepoxy keywording, bug #510940
+x11-base/xorg-server glamor wayland
+x11-drivers/xf86-video-ati glamor
+
+# Mike Frysinger <vapier@gentoo.org> 21 Feb 2016
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Sergey Popov <pinkbyte@gentoo.org> (24 Oct 2015)
+# Not tested
+net-mail/dovecot lz4
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet tested #499974
+dev-libs/efl physics
+
+# Brian Evans <grknight@gentoo.org> (03 Jun 2014)
+# unkeworded dependencies (bug #429708)
+>=dev-db/mysql-5.5 jemalloc
+>=dev-db/mariadb-5.5 jemalloc
+
+# Mikle Kolyada <zlogene@gentoo.org> (11 Jan 2014)
+# too much unkeyworded dependencies (bug #497068)
+dev-vcs/git mediawiki mediawiki-experimental
+
+# Raúl Porcel <armin76@gentoo.org> (28 May 2012)
+# Needs x11-misc/lightdm(which also requires some other deps)
+x11-misc/xscreensaver new-login
+
+# Raúl Porcel <armin76@gentoo.org> (05 Nov 2011)
+# jit not supported on sh
+dev-libs/libpcre jit
+
+# Sebastian Pipping <sping@gentoo.org> (22 Feb 2011)
+# No media-sound/lilypond here, yet (bug #356069)
+app-text/asciidoc test
+
+# Raúl Porcel <armin76@gentoo.org> (13 Feb 2011)
+# Fails to build, pending to send a report upstream
+media-libs/mesa gallium
+
+# Alon Bar-Lev <alonbl@gentoo.org> (24 Jan 2007)
+# pkcs11-helper is not keyworded
+net-vpn/openvpn pkcs11
+
+# Christoph Mende <angelos@gentoo.org> (14 May 2008)
+# media-sound/wavpack is not keyworded
+media-sound/mpd wavpack
+
+# Peter Alfredsen <loki_val@gentoo.org> (20 Jun 2008)
+# cppunit is not keyworded, needed by test. Bug 228559.
+media-libs/taglib test
+
+# missing keyword for sys-cluster/openmpi sys-cluster/mpich2
+dev-libs/boost mpi
+
+# Needs testing and keywording
+media-plugins/gst-plugins-meta aac dv lame pulseaudio taglib vcd vpx wavpack
diff --git a/profiles/arch/sh/parent b/profiles/arch/sh/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/sh/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/sh/use.force b/profiles/arch/sh/use.force
new file mode 100644
index 000000000000..f59d57ad619b
--- /dev/null
+++ b/profiles/arch/sh/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+sh
diff --git a/profiles/arch/sh/use.mask b/profiles/arch/sh/use.mask
new file mode 100644
index 000000000000..505fdfb29a76
--- /dev/null
+++ b/profiles/arch/sh/use.mask
@@ -0,0 +1,161 @@
+# Unmask the flag which corresponds to ARCH.
+-sh
+
+# Kacper Kowalik <xarthisius@gentoo.org> (9 Aug 2010)
+# cblas-external as virtual/cblas is also masked
+cblas-external
+
+hardened
+
+# Paul de Vrieze <pauldv@gentoo.org>
+# There is no java in this profile (if there is it must be available). Without
+# this repoman will fail on apps like sys-libs/db
+java
+pdfannotextractor
+
+# broken upstream, see libavcodec/sh4/idct_sh4.c:#error
+ffmpeg
+
+# No hardware to test
+bluetooth
+dvd
+ios
+
+# Stuff we don't want
+fuse
+R
+octave
+tracker
+xindy
+lyx
+mpi
+lasi
+lensfun
+fits
+networkmanager
+lpsol
+openexr
+libev
+clang
+
+# Stuff that doesn't make sense on this arch
+3dfx
+dmi
+
+# havent tested yet
+scanner
+gphoto2
+dvb
+qt4
+kde
+diet
+lirc
+afs
+mono
+lm_sensors
+qdbm
+fftw
+eds
+xine
+ocaml
+gimp
+xemacs
+lapack
+webkit
+timidity
+fluidsynth
+mms
+sid
+autotrace
+lqr
+musepack
+authdaemond
+v4l
+tokyocabinet
+wildmidi
+webp
+systemd
+soundcloud
+gts
+devil
+rtmp
+metalink
+lucene
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_apm
+video_cards_ark
+video_cards_ast
+video_cards_cirrus
+video_cards_chips
+video_cards_glint
+video_cards_i128
+video_cards_i740
+video_cards_intel
+video_cards_mach64
+video_cards_mga
+video_cards_neomagic
+video_cards_newport
+video_cards_nouveau
+video_cards_nsc
+video_cards_nv
+video_cards_r128
+video_cards_radeon
+video_cards_rendition
+video_cards_s3
+video_cards_s3virge
+video_cards_savage
+video_cards_siliconmotion
+video_cards_sis
+video_cards_tdfx
+video_cards_tga
+video_cards_trident
+video_cards_tseng
+video_cards_vesa
+video_cards_via
+video_cards_voodoo
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_amdgpu
+video_cards_r100
+video_cards_r200
+video_cards_r300
+video_cards_r600
+video_cards_radeonsi
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+
+# 2006/03/07 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures lacking direct rendering
+dri
+
+# nspr isnt ported to SuperH which means no seamonkey/firefox/etc...
+nsplugin
+firefox
+nss
+seamonkey
+
+# USE=audit masked prior to testing on alpha, arm, hppa, ppc64, s390, sh.
+# Bug #184563, 18 Sep 2007
+# Robin H. Johnson <robbat2@gentoo.org>
+audit
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets keyworded.
+unwind
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
diff --git a/profiles/arch/sparc-fbsd/eapi b/profiles/arch/sparc-fbsd/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/sparc-fbsd/make.defaults b/profiles/arch/sparc-fbsd/make.defaults
new file mode 100644
index 000000000000..bab6ea3e1254
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/make.defaults
@@ -0,0 +1,11 @@
+# Copyright 1999-2012 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# System-wide defaults for the G/FBSD Portage system
+
+ARCH="sparc-fbsd"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+ACCEPT_KEYWORDS="~sparc-fbsd sparc-fbsd"
diff --git a/profiles/arch/sparc-fbsd/package.use.force b/profiles/arch/sparc-fbsd/package.use.force
new file mode 100644
index 000000000000..dbbc84463184
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_Sparc
+sys-devel/llvm llvm_targets_Sparc
diff --git a/profiles/arch/sparc-fbsd/parent b/profiles/arch/sparc-fbsd/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/sparc-fbsd/use.force b/profiles/arch/sparc-fbsd/use.force
new file mode 100644
index 000000000000..0520964ebe4e
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+sparc-fbsd
diff --git a/profiles/arch/sparc-fbsd/use.mask b/profiles/arch/sparc-fbsd/use.mask
new file mode 100644
index 000000000000..b76d06524ff8
--- /dev/null
+++ b/profiles/arch/sparc-fbsd/use.mask
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Unmask the flag which corresponds to ARCH.
+-sparc-fbsd
+
+acpi
+
+# guile fails to build on sparc
+# Even with the patch from FreeBSD Ports it core dumps :/
+guile
+
+# valgrind hasn't been ported to sparc-fbsd yet
+valgrind
+
+# These should work one day
+avahi
+cairo
+dbus
+gnome
+gnome-keyring
+gtk
+mono
+opengl
+php
+qt4
+tk
+xpm
+X
+
+# Ryan Hill <dirtyepic@gentoo.org>
+# Needs sci-mathematics/glpk
+lpsol
diff --git a/profiles/arch/sparc/eapi b/profiles/arch/sparc/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/sparc/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/sparc/make.defaults b/profiles/arch/sparc/make.defaults
new file mode 100644
index 000000000000..7abf4172ffee
--- /dev/null
+++ b/profiles/arch/sparc/make.defaults
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+ARCH="sparc"
+ACCEPT_KEYWORDS="${ARCH}"
+
+# 64bit kernel, 32bit userland
+CHOST="sparc-unknown-linux-gnu"
+PROFILE_ARCH="sparc64"
+
+# We need sparc64 binutils for linux-headers
+CTARGETS_BINUTILS="sparc-unknown-linux-gnu sparc64-unknown-linux-gnu"
+
+# The funky stuffs for handling different kernel compiler than userland compiler
+KERNEL_ABI="sparc64"
+CHOST_sparc64="sparc64-unknown-linux-gnu"
+LDFLAGS_sparc64="-m elf64_sparc"
+
+# Multilib stuff
+MULTILIB_ABIS="sparc32"
+DEFAULT_ABI="sparc32"
+ABI="${DEFAULT_ABI}"
+CFLAGS_sparc32="" # 32 bit is the default, so no need to set it.
+LDFLAGS_sparc32="" # setting it would make gcc use -m32 and -m64 at the same time
+CHOST_sparc32="sparc-unknown-linux-gnu"
+CTARGET_sparc32="sparc-unknown-linux-gnu"
+# do NOT set CFLAGS_sparc64 here it'd break linux-headers for non-multilib
+# profiles
+
+# Compiler flags
+CFLAGS="-O2 -mcpu=ultrasparc -pipe"
+CXXFLAGS="${CFLAGS}"
+
+# These are here to override features/32bit-userland's settings. DO NOT REMOVE!
+FEATURES="-multilib-strict"
+MULTILIB_STRICT_DIRS="/lib32 /usr/lib32 /usr/kde/*/lib32 /usr/qt/*/lib32 /usr/X11R6/lib32"
+
+# 2006/10/05 - Gustavo Zacarias <gustavoz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 \
+ suncg6 sunffb sunleo tdfx voodoo"
+
+# Hans de Graaff <graaff@gentoo.org> (17 Apr 2017)
+# Temporary entry to support stable bug 615818
+RUBY_TARGETS="ruby21"
diff --git a/profiles/arch/sparc/package.mask b/profiles/arch/sparc/package.mask
new file mode 100644
index 000000000000..2c683288e66c
--- /dev/null
+++ b/profiles/arch/sparc/package.mask
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Patrice Clement <monsieurp@gentoo.org> (30 Oct 2015)
+# Requires dependencies that are not stable on sparc yet.
+# See https://qa-reports.gentoo.org/output/gentoo-ci/7182f7a/5.html#l2294
+mail-mta/postfix
+
+# Raúl Porcel <armin76@gentoo.org> (17 Nov 2014)
+# Mask sys-devel/kgcc64 since >=gcc-4.4 can build 64bit kernels
+sys-devel/kgcc64
diff --git a/profiles/arch/sparc/package.use b/profiles/arch/sparc/package.use
new file mode 100644
index 000000000000..c202aa04c6dc
--- /dev/null
+++ b/profiles/arch/sparc/package.use
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Enable the GPU targets matching the default VIDEO_CARDS
+sys-devel/clang llvm_targets_AMDGPU
+sys-devel/llvm llvm_targets_AMDGPU
+
+# Pacho Ramos <pacho@gentoo.org> (15 Feb 2014)
+# libev isn't supported on this arch, use another default (#499498)
+dev-libs/libverto libevent
diff --git a/profiles/arch/sparc/package.use.force b/profiles/arch/sparc/package.use.force
new file mode 100644
index 000000000000..26b496cc3225
--- /dev/null
+++ b/profiles/arch/sparc/package.use.force
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Michał Górny <mgorny@gentoo.org> (24 Sep 2016)
+# Force the host target to avoid dependency hell
+sys-devel/clang llvm_targets_Sparc
+sys-devel/llvm llvm_targets_Sparc
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs dev-lang/luajit tested #499974
+dev-libs/efl oldlua
diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask
new file mode 100644
index 000000000000..7964d803c924
--- /dev/null
+++ b/profiles/arch/sparc/package.use.mask
@@ -0,0 +1,386 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mart Raudsepp <leio@gentoo.org> (02 Sep 2017)
+# Failure to re-keyword ffmpeg/gst-plugins-libav in a timely
+# fashion; bugs #574786, #608868, #610810
+media-plugins/gst-plugins-meta ffmpeg
+
+# Brian Evans <grknight@gentoo.org> (21 Aug 2017)
+# No keywords for sys-process/numactl
+dev-db/mariadb numa
+
+# Gilles Dartiguelongue <eva@gentoo.org> (16 Aug 2017)
+# missing keyword on dev-python/dbusmock, bug #620024
+>=gnome-base/gnome-settings-daemon-3.24 test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Required VIDEO_CARDS=i965/radeonsi, both masked in this profile.
+media-libs/mesa vulkan
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=redis that is masked in this profile.
+dev-python/pyzor test
+
+# Michał Górny <mgorny@gentoo.org> (08 Aug 2017)
+# Requires USE=seccomp that is masked in this profile.
+net-libs/gnutls test-full
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=bluetooth that is masked in this profile.
+media-sound/pulseaudio native-headset ofono-headset
+net-misc/ofono dundee
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=hdf5 that is masked in this profile.
+media-libs/vigra doc python test
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=networkmanager that is masked in this profile.
+app-misc/geoclue skyhook
+
+# Michał Górny <mgorny@gentoo.org> (28 Jun 2017)
+# app-misc/dtach is not keyworded, and tests are restricted anyway, so
+# no point in pursuing it right now.
+app-shells/bash-completion test
+
+# Jason Zaman <perfinion@gentoo.org> (09 May 2017)
+# x11-libs/libXpresent is not keyworded on sparc
+xfce-base/xfwm4 xpresent
+
+# Michał Górny <mgorny@gentoo.org> (23 Mar 2017)
+# Most of clang runtimes are not supported here
+sys-devel/clang-runtime openmp sanitize
+sys-libs/libcxx libunwind libcxxrt
+sys-libs/libcxxabi libunwind
+
+# Pacho Ramos <pacho@gentoo.org> (04 Feb 2017)
+# Missing keywords, bug #599572
+net-libs/gnome-online-accounts gnome
+x11-terms/gnome-terminal gnome-shell
+
+# Pacho Ramos <pacho@gentoo.org> (15 Jan 2017)
+# Missing keywords, bug #559770
+>=net-misc/networkmanager-1.4.4 consolekit
+
+# Justin Lecher <jlec@gentoo.org> (15 Jan 2017)
+# unkeyworded rev deps
+dev-games/openscenegraph gdal las
+
+# Justin Lecher <jlec@gentoo.org> (15 Jan 2017)
+# masked rev deps
+media-libs/libsdl2 fusionsound
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jan 2017)
+# Don't keyword redis
+dev-libs/hiredis test
+
+# James Le Cuirot <chewi@gentoo.org> (14 Dec 2016)
+# DOSBox + OpenGLide is untested on this arch.
+games-emulation/dosbox glide
+
+# Michał Górny <mgorny@gentoo.org> (18 Nov 2016)
+# libomp does not support SPARC, #600148.
+sys-devel/clang-runtime openmp
+
+# Christian Ruppert <idl0r@gentoo.org> (14 Oct 2016)
+# dnstap USE masked due to missing keywords
+net-dns/bind dnstap
+
+# Gilles Dartiguelongue <eva@gentoo.org> (11 Sep 2016)
+# networkmanager USE masked due to missing keywords
+gnome-extra/nm-applet teamd
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (28 Jun 2016)
+# Missing keywords on app-text/gspell - bug #587368
+>=app-editors/gedit-3.20 spell
+
+# Justin Lecher <jlec@gentoo.org> (22 Feb 2016)
+# Missing test deps keyword #575366
+dev-cpp/eigen test
+
+# Mike Frysinger <vapier@gentoo.org> (21 Feb 2016)
+# Needs arch love for elementary. #575322
+media-libs/elementary javascript
+
+# Pacho Ramos <pacho@gentoo.org> (20 Feb 2016)
+# Missing keywords, bug #551580
+app-office/planner eds
+
+# Pacho Ramos <pacho@gentoo.org> (31 Jan 2016)
+# Missing keywords, bug #560382
+media-video/ffmpeg snappy
+
+# James Le Cuirot <chewi@gentoo.org> (30 Jan 2016)
+# scrollview requires Java, which is unsupported on SPARC.
+app-text/tesseract scrollview
+
+# Michael Weber <xmw@gentoo.org> (09 Jan 2016)
+# no sparc support in media-libs/glfw
+app-text/mupdf opengl
+
+# Mike Frysinger <vapier@gentoo.org> (22 Dec 2015)
+# Needs keywording. #569254
+net-firewall/iptables nftables
+
+# Justin Lecher <jlec@gentoo.org> (18 Nov 2015)
+# requires dev-python/restkit which requires
+# dev-python/socketpool which requires dev-python/gevent which requires
+# dev-python/greenlet which has not been ported
+dev-python/wsgiproxy2 test
+dev-python/pyquery test
+
+# Pacho Ramos <pacho@gentoo.org> (15 Nov 2015)
+# Missing keywords
+>=media-plugins/grilo-plugins-0.2.14 upnp-av
+
+# Julian Ospald <hasufell@gentoo.org> (08 Nov 2015)
+# Requires net-libs/http-parser
+net-im/jabberd2 websocket
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Sergey Popov <pinkbyte@gentoo.org> (24 Oct 2015)
+# Not tested
+net-mail/dovecot lz4
+
+# Justin Lecher <jlec@gentoo.org> (14 Oct 2015)
+# Requires dev-python/ipython which triggers a long dep chain
+dev-python/restkit cli
+
+# 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 innodb-snappy
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (10 Sep 2015)
+# Requires wifi USE flag, which is masked for this arch
+net-misc/networkmanager wext
+
+# Bernard Cafarelli <voyageur@gentoo.org> (06 Aug 2015)
+# Dependencies missing keywords, bug #543604
+sys-devel/llvm ocaml
+
+# Pacho Ramos <pacho@gentoo.org> (13 Jun 2015)
+# Missing keywords, bug #513108
+net-misc/spice-gtk smartcard webdav
+
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# net-fs/libnfs lacks sparc keyword, bug #551576
+gnome-base/gvfs nfs
+
+# Gilles Dartiguelongue <eva@gentoo.org> (09 Jun 2015)
+# dev-lang/luajit and dev-lua/lgi and lack sparc keyword, bug #551540
+dev-libs/libpeas lua jit
+
+# Mike Frysinger <vapier@gentoo.org> (16 Mar 2015)
+# Needs sci-physics/bullet & media-libs/libsdl2 tested #499974
+dev-libs/efl physics sdl
+media-libs/elementary sdl
+
+# Alexis Ballier <aballier@gentoo.org> (11 Feb 2015)
+# Missing ffmpeg deps, bug #510340
+media-video/ffmpeg x265
+
+# Patrick Lauer <patrick@gentoo.org> (10 Feb 2015)
+# Missing keywords for media-libs/x265
+media-video/libav x265
+
+# Pacho Ramos <pacho@gentoo.org> (10 Jan 2014)
+# Missing keywords
+net-misc/networkmanager teamd
+
+# Gilles Dartiguelongue <eva@gentoo.org> (23 Dec 2014)
+# New dependencies for wayland support in Gnome 3.14
+# See bug #533420.
+media-libs/clutter egl wayland
+media-libs/clutter-gtk wayland
+x11-wm/mutter kms
+
+# Mark Wright <gienah@gentoo.org> (14-23 Dec 2014, 1 Apr 2015)
+# test dependencies need keywording
+dev-haskell/binary test
+dev-haskell/dlist test
+dev-haskell/haskell-src-exts test
+dev-haskell/text test
+dev-haskell/vector test
+
+# Pacho Ramos <pacho@gentoo.org> (03 Oct 2014)
+# Missing keywords, bug #524352
+>=app-accessibility/orca-3.12.3 braille
+
+# Christoph Junghans <junghans@gentoo.org> (21 Jul 2014)
+# Missing keywords on sci-libs/libcerf (bug 517726)
+sci-visualization/gnuplot libcerf
+
+# Pacho Ramos <pacho@gentoo.org> (12 Apr 2014)
+# Missing keywords, bug #507490
+net-misc/modemmanager mbim
+
+# Pacho Ramos <pacho@gentoo.org> (15 Mar 2014)
+# Missing keywords, bug #504672
+>=net-misc/vinagre-3.10 rdp
+
+# Pacho Ramos <pacho@gentoo.org> (22 Feb 2014)
+# Missing keywords, bug #495250
+>=gnome-base/gnome-extra-apps-3.10 tracker
+
+# Pacho Ramos <pacho@gentoo.org> (10 Feb 2014)
+# Missing keywords, bug #495254
+>=dev-libs/totem-pl-parser-3.10 quvi
+
+# Raúl Porcel <armin76@gentoo.org> (1 Feb 2014)
+# Sigbuses
+net-misc/openssh hpn
+
+# Pacho Ramos <pacho@gentoo.org> (19 Jan 2014)
+# Missing keywords, bug #478254
+gnome-base/gnome classic extras
+
+# Pacho Ramos <pacho@gentoo.org> (02 Dec 2013)
+# Missing keywords, bug #493156
+media-libs/libgphoto2 serial
+
+# Pacho Ramos <pacho@gentoo.org> (28 Nov 2013)
+# Missing keywords, bug #492820
+net-im/telepathy-connection-managers sipe
+
+# Mark Wright <gienah@gentoo.org> (26 Oct 2013)
+# template-haskell not yet available
+dev-haskell/dataenc test
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# dev-libs/jemalloc is not keyworded
+www-plugins/gnash jemalloc
+
+# Pacho Ramos <pacho@gentoo.org> (20 Jul 2013)
+# Keywords pending, bug #476710
+>=gnome-base/gnome-extra-apps-3.8 games
+
+# Patrick Lauer <patrick@gentoo.org> (27 May 2013)
+# stable keywords missing on tagpy/coherence
+media-sound/rhythmbox upnp-av
+
+# Julian Ospald <hasufell@gentoo.org> (31 Mar 2013)
+# depends on mono
+>=net-irc/hexchat-2.9.4-r1 theme-manager
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Jan 2013)
+# remove mask when net-libs/libqmi is keyworded here
+net-misc/modemmanager qmi qmi-newest
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (22 Jan 2013)
+# remove mask if/when media-gfx/argyllcms is keywored here.
+x11-misc/colord argyllcms extra-print-profiles
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires firefox, which is not keyworded on sparc
+app-misc/tracker firefox-bookmarks
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# requires app-office/unoconv, which requires virtual/ooo, which is not
+# keyworded here. Remove mask if this situation changes.
+gnome-extra/sushi office
+
+# Raúl Porcel <armin76@gentoo.org> (30 Dec 2012)
+# Needs testing
+media-libs/phonon gstreamer vlc
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (27 Dec 2012)
+# remove mask when dev-java/fop is keyworded here
+gnome-extra/libgda reports
+
+# Robin H Johnson <robbat2@gentoo.org> (01 Nov 2012)
+# MySQL 5.5 wants systemtap, tcmalloc & jemalloc
+>=dev-db/mysql-5.5 systemtap tcmalloc jemalloc
+>=dev-db/mariadb-5.5 systemtap tcmalloc jemalloc
+>=dev-db/percona-server-5.5 systemtap tcmalloc jemalloc
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (24 Jun 2012)
+# Requires libpcre with jit
+www-apache/mod_security jit
+
+# Raúl Porcel <armin76@gentoo.org> (28 May 2012)
+# Needs x11-misc/lightdm(which also requires some other deps)
+x11-misc/xscreensaver new-login
+
+# Pacho Ramos <pacho@gentoo.org> (07 May 2012)
+# libhid is not keyworded
+app-misc/lcdproc hid lcd_devices_mdm166a
+
+# Alexey Shvetsov <alexxy@gentoo.org> (17 Dec 2011)
+# Mask use numa for openmpi
+sys-cluster/openmpi openmpi_fabrics_psm openmpi_fabrics_knem openmpi_fabrics_open-mx openmpi_fabrics_ofed openmpi_fabrics_dapl 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
+
+# Raúl Porcel <armin76@gentoo.org> (08 Oct 2011)
+# Needs media-sound/lilypond
+app-text/asciidoc test
+
+# Patrick McLean <chutzpah@gentoo.org> (07 Sep 2011)
+# missing keywords on dependencies
+media-video/x264-encoder ffmpegsource
+
+# Robin H. Johnson <robbat2@gentoo.org> (03 Sep 2011)
+# Remove this for your arch after you keyword dev-utils/google-perftools (bug #381737
+dev-libs/libmemcached tcmalloc
+
+# Alexey Shvetsov <alexxy@gentoo.org> (31 Aug 2011)
+# Mask numa use flag per bug #381313
+sys-apps/hwloc numa
+sys-cluster/openmpi numa
+
+# Pacho Ramos <pacho@gentoo.org> (27 Jan 2011)
+# missing keywords on needed plugins
+media-plugins/gst-plugins-meta dts dv libvisual modplug vcd wavpack
+
+# Michael Weber <xmw@gentoo.org> (03 Jan 2011)
+# dev-libs/libev is not keyworded
+www-servers/lighttpd libev
+
+# Raúl Porcel <armin76@gentoo.org> (5 Dec 2010)
+# Mask doc-pdf because of Java dependencies (bug #347259)
+net-analyzer/wireshark doc-pdf
+
+# Justin Lecher <jlec@gentoo.org> (13 Aug 2010)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Ben de Groot <yngwin@gentoo.org> (16 Jan 2010)
+# qtmultimedia is not keyworded, bug 293671
+dev-python/PyQt4 multimedia
+
+# Ben de Groot <yngwin@gentoo.org> (11 Nov 2009)
+# Requires qthelp, which requires qtwebkit, bug 292838
+dev-libs/uriparser doc
+media-libs/libxspf doc
+
+# Raúl Porcel <armin76@gentoo.org>
+# Depends on dev-java/fop which requires java...
+sci-geosciences/gpsbabel doc
+
+# depends on mpich2 which isn't keyworded (bug #217854)
+sci-libs/hdf5 mpi
+
+# Needs libmodplug
+media-libs/sdl-sound mikmod
+
+# Needs clisp which won't build
+app-text/texlive xindy
+
+# Needs krb4 USE flag for mit-krb5 (Bug #255579), and we believe it to be unstable.
+net-im/pidgin zephyr
+
+# Mask zemberek for enchant because it requires java.
+app-text/enchant zemberek
+
+# Mask srtp for ortp because libsrtp is marked -sparc
+net-libs/ortp srtp
+
+# Ultrabug <ultrabug@gentoo.org> (05 Sept 2011)
+# missing keyword for net-libs/zeromq
+app-admin/rsyslog zeromq
+
+# Marius Brehler <marfbre@linux.sungazer.de> (13 Aug 2015)
+# missing keyword
+>=sci-misc/boinc-7.4.42-r1 X
diff --git a/profiles/arch/sparc/package.use.stable.mask b/profiles/arch/sparc/package.use.stable.mask
new file mode 100644
index 000000000000..bb6686b73f96
--- /dev/null
+++ b/profiles/arch/sparc/package.use.stable.mask
@@ -0,0 +1,67 @@
+# 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 ---
+
+# Mart Raudsepp <leio@gentoo.org> (02 Sep 2017)
+# Drop stable gstreamer on sparc, can move to use.stable.mask
+# after gstreamer:0.10 is gone; #601354
+media-plugins/evas_generic_loaders gstreamer
+dev-libs/efl gstreamer
+media-sound/mp3splt-gtk gstreamer
+net-im/pidgin gstreamer
+media-libs/libcanberra gstreamer
+
+# Hans de Graaff <graaff@gentoo.org> (13 Aug 2017)
+# Drop stable ruby on sparc
+app-admin/augeas test
+app-text/texlive context l10n_ja
+sys-block/thin-provisioning-tools test
+
+# Gilles Dartiguelongue <eva@gentoo.org> (13 Nov 2016)
+# Remove when stabilized, see bug #538828
+<=x11-base/xorg-drivers-1.17 input_devices_libinput
+
+# Gilles Dartiguelongue <eva@gentoo.org> (13 Nov 2016)
+# Dependency not stable on this arch, bug #542570 and bug #538828.
+xfce-base/xfce4-settings libinput
+
+# Davide Pesavento <pesa@gentoo.org> (18 Oct 2015)
+# Requires dev-python/PyQt4, which is not stable on sparc
+media-sound/pulseaudio equalizer
+
+# Pacho Ramos <pacho@gentoo.org> (02 Aug 2015)
+# Missing keywords
+dev-libs/protobuf python
+dev-python/pyquery test
+sys-fs/dmraid klibc
+
+# Pacho Ramos <pacho@gentoo.org> (02 Jul 2014)
+# Mask due Gnome3 not going to be stabilized on this arch
+dev-util/geany-plugins gtkspell
+>=gnome-base/gnome-desktop-2.32.1-r2 license-docs
+gnome-base/gvfs google
+>=net-libs/webkit-gtk-2.4 geoloc
+>=x11-libs/gtk+-3.12.2 cloudprint
+x11-libs/gksu gnome
+x11-wm/icewm gnome
+
+# sufficiently recent wayland is not stable yet, bug #559062
+~dev-libs/efl-1.15.2 wayland
+~dev-libs/efl-1.17.0 wayland
+~media-libs/elementary-1.15.2 wayland
+~media-libs/elementary-1.17.0 wayland
diff --git a/profiles/arch/sparc/packages b/profiles/arch/sparc/packages
new file mode 100644
index 000000000000..90763daf6e26
--- /dev/null
+++ b/profiles/arch/sparc/packages
@@ -0,0 +1,7 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Top-level sparc profile
+
+# SPARC specific stuff (32 and 64 bit)
+*sys-apps/sparc-utils
diff --git a/profiles/arch/sparc/parent b/profiles/arch/sparc/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/sparc/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/sparc/use.force b/profiles/arch/sparc/use.force
new file mode 100644
index 000000000000..f95aef4e1765
--- /dev/null
+++ b/profiles/arch/sparc/use.force
@@ -0,0 +1,2 @@
+# Force the flag which corresponds to ARCH.
+sparc
diff --git a/profiles/arch/sparc/use.mask b/profiles/arch/sparc/use.mask
new file mode 100644
index 000000000000..468282bb36d3
--- /dev/null
+++ b/profiles/arch/sparc/use.mask
@@ -0,0 +1,289 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+
+# Unmask the flag which corresponds to ARCH.
+-sparc
+
+# This file contains a list of useflags that cannot be used on sparc.
+
+# David Seifert <soap@gentoo.org> (08 Jul 2017)
+# Games are not keyworded anymore on sparc
+fortune
+physfs
+
+# James Le Cuirot <chewi@gentoo.org> (29 Jun 2017)
+# Unmask as this profile is big endian.
+-big-endian
+
+# Andreas Sturmlechner <asturm@gentoo.org> (25 Feb 2017)
+# kwallet integration split from kde to distinct flag
+kwallet
+
+# Julian Ospald <hasufell@gentoo.org> (20 Sep 2015)
+# no LibreSSL support yet
+curl_ssl_libressl
+libressl
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# keyworded on sparc
+-ecls
+-sbcl
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# net-misc/connman is not keyworded, bug 348308
+connman
+
+# Alexandre Rostovtsev <tetromino@gentoo.org> (31 Dec 2012)
+# Not keyworded on sparc
+xine
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (17 Aug 2012)
+# qstat is not available on sparc, as it is
+nagios-game
+
+# Samuli Suominen <ssuominen@gentoo.org> (07 May 2012)
+# Missing keywording in www-client/firefox wrt #360427
+firefox
+mozilla
+thunderbird
+
+# Alexandre Rostovtsev <tetromino@gmail.com> (28 Oct 2011)
+# x11-misc/colord and app-admin/packagekit-base not tested. Bug #387959.
+colord
+packagekit
+
+# Raúl Porcel <armin76@gentoo.org>
+# Stuff that sigbuses
+libburn
+# bug #266193
+srtp
+# bug #290154
+tokyocabinet
+# bug 235685
+webkit
+# bug 359963
+webp
+
+# Gustavo Zacarias <gustavoz@gentoo.org> 14 Feb 2007
+# Mono needs gcc4 and it's not yet stable
+mono
+
+# Gustavo Zacarias <gustavoz@gentoo.org>
+# It doesn't even build
+d
+# LCDproc masks see bug #148072
+lcd_devices_g15
+lcd_devices_graphlcd
+lcd_devices_ula200
+# Masking hardened, it isn't really supported, see bugs #144126 #78951
+hardened
+# AIO is b0rked for now....
+aio
+romio
+# They're borked
+dar32
+dar64
+
+# 2006/09/05 - Tupone Alfredo <tupone@gentoo.org>
+# doomsday ebuild is not available on this architecture
+doomsday
+
+# Needs java
+pdfannotextractor
+
+# Stuff that won't ever work on sparc
+3dfx
+acpi
+afs
+apm
+battery
+dmi
+ibm
+jfs
+libedit
+pm-utils
+reiser4
+reiserfs
+xfs
+
+# Need testing
+musepack
+topal
+lqr
+indi
+chm
+ebook
+celt
+capi
+lensfun
+jingle
+mod_wsgi
+vaapi
+librtmp
+rtmp
+vpx
+kde
+wildmidi
+barcode
+xmms2
+gme
+aacplus
+soundcloud
+devil
+gts
+clang
+metalink
+tremor
+fdk
+tcmalloc
+jemalloc
+zmq
+
+# No hardware to test
+ifp
+chipcard
+hbci
+lm_sensors
+openct
+bluetooth
+dmraid
+ipod
+ios
+mtp
+pda
+apcupsd
+bluray
+gps
+
+# Stuff we don't want
+schroedinger
+ots
+frei0r
+prelude
+redis
+
+# Asterisk use flag masking
+zaptel
+
+
+# USE-flags from differents origins
+brltty
+directfb
+djbfft
+dvb
+java
+lirc
+netbeans
+networkmanager
+pbs
+pcmcia
+rar
+uml
+valgrind
+wifi
+xvmc
+zoran
+
+# Other masks
+hdf
+hdf5
+
+# This should probably never be touched
+
+# Unmask sparc-only video cards
+-video_cards_sunbw2
+-video_cards_suncg14
+-video_cards_suncg3
+-video_cards_suncg6
+-video_cards_sunffb
+-video_cards_sunleo
+-video_cards_suntcx
+
+# 2006/02/05 - Donnie Berkholz <dberkholz@gentoo.org>
+# Modular X: mask for architectures on which they aren't available
+video_cards_nsc
+video_cards_s3
+video_cards_sis
+video_cards_tseng
+video_cards_s3virge
+video_cards_i128
+video_cards_trident
+video_cards_neomagic
+video_cards_cirrus
+video_cards_tga
+video_cards_i740
+video_cards_siliconmotion
+video_cards_ark
+video_cards_rendition
+video_cards_newport
+video_cards_chips
+video_cards_apm
+video_cards_intel
+video_cards_nv
+video_cards_vesa
+video_cards_ast
+video_cards_nouveau
+
+# Matt Turner <mattst88@gentoo.org>
+# Mask more VIDEO_CARDs added with mesa-8.0
+video_cards_i915
+video_cards_i965
+video_cards_ilo
+# vmware wasn't added with mesa-8.0, but it should still be masked
+video_cards_vmware
+# llvm is not keyworded
+video_cards_amdgpu
+video_cards_radeonsi
+
+# Diego Pettenò <flameeyes@gentoo.org> (6 Dec 2006)
+# Mask ALSA drivers for ISA cards
+alsa_cards_msnd-pinnacle
+alsa_cards_hdsp
+alsa_cards_hdspm
+alsa_cards_sb16
+alsa_cards_sbawe
+alsa_cards_sscape
+alsa_cards_wavefront
+
+# Copied over from default-linux/sparc/sparc64
+-vis
+
+# The default on SPARC is non-multilib
+# if a sub-profile want's it, it can -use.mask it
+multilib
+
+# Ben de Groot <yngwin@gentoo.org> (11 Feb 2009)
+# Both dev-qt/qtphonon and media-sound/phonon are unkeyworded
+phonon
+
+# Samuli Suominen <ssuominen@gentoo.org> (18 Jan 2013)
+# libdlm and cman are not keyworded
+cman
+clvm
+
+-zeitgeist
+
+# nvidia toolkit for binary drivers
+cg
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
+
+# Unmask once sys-libs/libunwind gets ported & keyworded.
+unwind
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (10 Nov 2013)
+# sys-devel/llvm is not keyworded, bug #320221
+llvm
+
+# Pacho Ramos <pacho@gentoo.org> (19 Jan 2014)
+# Unmask systemd since it is keyworded here.
+-systemd
+
+# sys-libs/libseccomp has not been ported to this arch yet #524148
+seccomp
+
+# Ben de Groot <yngwin@gentoo.org> (01 Feb 2015)
+# please remove when keyworded
+qt5
diff --git a/profiles/arch/sparc/use.stable.mask b/profiles/arch/sparc/use.stable.mask
new file mode 100644
index 000000000000..ad15d3c33df9
--- /dev/null
+++ b/profiles/arch/sparc/use.stable.mask
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 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
+
+# Hans de Graaff <graaff@gentoo.org> (13 Aug 2017)
+# Drop stable ruby on sparc
+ruby
+
+# Hans de Graaff <graaff@gentoo.org> (17 Apr 2017)
+# Temporary mask to support stable bug 615818
+ruby_targets_ruby22
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# no stable version on sparc
+ecls
+sbcl
+
+# Pacho Ramos <pacho@gentoo.org> (17 Apr 2014)
+# Dropped stable keywords after the discussion caused by
+# Gnome 3.8/3.10 stabilization on this arch
+devhelp
+dia
+eds
+gnumeric
+upnp
+upnp-av
+
+# Pacho Ramos <pacho@gentoo.org> (13 Apr 2014)
+# Not going to be stabilized on this arch
+gnome-online-accounts
diff --git a/profiles/arch/x86-fbsd/eapi b/profiles/arch/x86-fbsd/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/x86-fbsd/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/x86-fbsd/make.defaults b/profiles/arch/x86-fbsd/make.defaults
new file mode 100644
index 000000000000..abf5cc1cad8a
--- /dev/null
+++ b/profiles/arch/x86-fbsd/make.defaults
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+# System-wide defaults for the G/FBSD Portage system
+
+ARCH="x86-fbsd"
+CFLAGS="-march=i686 -O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
+
+# Michał Górny <mgorny@gentoo.org> (20 Jun 2014)
+# Provide values for ABI-related variables that are compatible with
+# multilib amd64, to make consistent ebuild writing easier.
+MULTILIB_ABIS="x86_fbsd"
+DEFAULT_ABI="x86_fbsd"
+ABI="x86_fbsd"
+LIBDIR_x86_fbsd="lib"
+
+VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 intel mach64 mga \
+ nv r128 radeon rendition s3 s3virge savage siliconmotion sis \
+ sisusb tga trident tseng via vmware"
+
+# Unhide the CPU_FLAGS_X86 USE_EXPANDs.
+USE_EXPAND_HIDDEN="-CPU_FLAGS_X86"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Default to abi_x86_32 for packages that don't have it forced.
+ABI_X86="32"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 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_32"
diff --git a/profiles/arch/x86-fbsd/package.use.force b/profiles/arch/x86-fbsd/package.use.force
new file mode 100644
index 000000000000..ca264fedc8ce
--- /dev/null
+++ b/profiles/arch/x86-fbsd/package.use.force
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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
diff --git a/profiles/arch/x86-fbsd/package.use.mask b/profiles/arch/x86-fbsd/package.use.mask
new file mode 100644
index 000000000000..6cf70a4cc213
--- /dev/null
+++ b/profiles/arch/x86-fbsd/package.use.mask
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Thomas Deutschmann <whissi@gentoo.org> (09 Jun 2017)
+# sys-process/audit not keyworded
+sys-process/fcron audit
+
+# Thomas Deutschmann <whissi@gentoo.org> (14 Feb 2017)
+# net-misc/curl dropped keywords in ffe8d873b8110d4434fc89423ea668450cab1d96
+www-servers/nginx nginx_modules_http_security
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
+# nvidia drivers are unmasked here
+media-video/ffmpeg -nvenc
+
+# Michael Palimaka <kensington@gentoo.org> (21 Jun 2016)
+# Requires unkeyworded media-sound/jack-audio-connection-kit & media-video/movit
+media-libs/mlt jack opengl
+
+# Davide Pesavento <pesa@gentoo.org> (26 Oct 2015)
+# Tests require non-keyworded qt5
+dev-qt/qtchooser test
+
+# Johannes Huber <johu@gentoo.org> (28 Jan 2015)
+# Missing keyword on dev-libs/botan
+app-crypt/qca botan
+
+# Justin Lecher <jlec@gentoo.org> (18 Mar 2010)
+# Unkeyworded deps
+net-im/gajim kde
+
+# Alexandre Rostovtsev <tetromono@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
+
+# Pacho Ramos <pacho@gentoo> (18 Mar 2011)
+# Missing keywords on deps (GNOME related packages)
+dev-libs/totem-pl-parser quvi
+media-plugins/gst-plugins-meta dv dvd musepack vcd vpx wavpack
+
+# Justin Lecher <jlec@gentoo.org> (19 Sep 2010)
+# kde-apps/konqueror not keyworded
+app-arch/p7zip kde
+
+# Justin Lecher <jlec@gentoo.org> (12 Sep 2010)
+# net-libs/farsight2 not keyworded
+net-im/gajim jingle
+
+# Justin Lecher <jlec@gentoo.org> (13 Aug 2010)
+# MKL not available on this arch
+media-gfx/povray mkl
+
+# Java currently uses generation 1
+dev-libs/cyrus-sasl java
+
+# nvidia-driver uses acpid
+x11-drivers/nvidia-drivers acpi
+
+# gavl and opencv do not build
+media-plugins/frei0r-plugins scale0tilt facedetect
+
+# Dependencies not keyworded, bug #424571
+net-nds/openldap smbkrb5passwd
diff --git a/profiles/arch/x86-fbsd/parent b/profiles/arch/x86-fbsd/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/x86-fbsd/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/x86-fbsd/use.force b/profiles/arch/x86-fbsd/use.force
new file mode 100644
index 000000000000..98c1a17086cf
--- /dev/null
+++ b/profiles/arch/x86-fbsd/use.force
@@ -0,0 +1,3 @@
+# Force the flag which corresponds to ARCH.
+x86-fbsd
+abi_x86_32
diff --git a/profiles/arch/x86-fbsd/use.mask b/profiles/arch/x86-fbsd/use.mask
new file mode 100644
index 000000000000..bb116708b031
--- /dev/null
+++ b/profiles/arch/x86-fbsd/use.mask
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Michael Palimaka <kensington@gentoo.org> (21 Jun 2016)
+# Unkeyworded
+qt5
+
+# Unmask the flag which corresponds to ARCH.
+-x86-fbsd
+-abi_x86_32
+
+# Diego Elio Pettenò <flameeyes@gentoo.org> (21 Aug 2012)
+# IPMI is only implemented for x86, amd64 and ia64
+-ipmi
+
+-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
+
+# nvidia drivers works on x86
+-xvmc
+-nvidia
+-video_cards_nvidia
+
+# Unmask vmware drivers
+-video_cards_vmware
+-input_devices_vmmouse
+
+# James Le Cuirot <chewi@gentoo.org> (19 May 2015)
+# icedtea needs testing and gcj isn't supported
+java
+
+# No pulseaudio version is keyworded; unmask when it works
+pulseaudio
+# No portaudio version is keyworded; unmask when it works
+portaudio
+
+# valgrind hasn't been ported to fbsd yet
+valgrind
+
+# libva doesnt build on fbsd for now
+vaapi
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (22 Aug 2013)
+# virtual/opencl is not keyworded
+opencl
diff --git a/profiles/arch/x86/eapi b/profiles/arch/x86/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/x86/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/x86/make.defaults b/profiles/arch/x86/make.defaults
new file mode 100644
index 000000000000..f3347ce31a71
--- /dev/null
+++ b/profiles/arch/x86/make.defaults
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# All extra USE/etc should be specified in sub-profiles.
+# DO NOT POLLUTE USE ON THIS PROFILE.
+
+ARCH="x86"
+ACCEPT_KEYWORDS="x86"
+
+CHOST="i686-pc-linux-gnu"
+CFLAGS="-O2 -march=i686 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Michał Górny <mgorny@gentoo.org> (30 Jan 2015)
+# Unhide the CPU_FLAGS_X86 USE_EXPANDs.
+USE_EXPAND_HIDDEN="-CPU_FLAGS_X86"
+
+# Michał Górny <mgorny@gentoo.org> (20 Jun 2014)
+# Provide values for ABI-related variables that are compatible with
+# multilib amd64, to make consistent ebuild writing easier.
+MULTILIB_ABIS="x86"
+DEFAULT_ABI="x86"
+ABI="x86"
+CHOST_x86="${CHOST}"
+LIBDIR_x86="lib"
+
+# 2006/08/18 - Donnie Berkholz <dberkholz@gentoo.org>
+# Defaults for video drivers
+VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa"
+
+# 2006/12/21 - Andrej Kacian <ticho@gentoo.org>
+# Defaults for audio drivers
+ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
+
+# 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_32"
+
+# Michał Górny <mgorny@gentoo.org> (01 Jul 2014)
+# Default to abi_x86_32 for packages that don't have it forced.
+ABI_X86="32"
diff --git a/profiles/arch/x86/package.mask b/profiles/arch/x86/package.mask
new file mode 100644
index 000000000000..79ce81f9e1df
--- /dev/null
+++ b/profiles/arch/x86/package.mask
@@ -0,0 +1,7 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Mike Gilbert <floppym@gentoo.org> (05 Nov 2016)
+# seccomp-related regression on x86.
+# https://bugs.gentoo.org/598992
+=sys-apps/systemd-232
diff --git a/profiles/arch/x86/package.use b/profiles/arch/x86/package.use
new file mode 100644
index 000000000000..4aa1c4ffcd91
--- /dev/null
+++ b/profiles/arch/x86/package.use
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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
+
+# Doug Goldstein <cardoe@gentoo.org> (29 Oct 2012)
+# Enable the native arch as the default qemu target
+app-emulation/qemu qemu_softmmu_targets_i386
diff --git a/profiles/arch/x86/package.use.force b/profiles/arch/x86/package.use.force
new file mode 100644
index 000000000000..6d74f7f7c286
--- /dev/null
+++ b/profiles/arch/x86/package.use.force
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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
+
+# Pawel Hajdan jr <phajdan.jr@gentoo.org> (12 Jun 2014)
+# On x86 Chromium can be built in non-PIC mode, and this
+# flag can affect performance, see http://crbug.com/332109 .
+www-client/chromium -pic
diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask
new file mode 100644
index 000000000000..ebfbaafd0d12
--- /dev/null
+++ b/profiles/arch/x86/package.use.mask
@@ -0,0 +1,241 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This file requires >=portage-2.1.1
+
+# Tim Harder <radhermit@gentoo.org> (11 Sep 2017)
+# Pulls in dev-ruby/asciidoctor which has too large of a ruby testing
+# dep tree that is unkeyworded at this time.
+>=net-irc/weechat-1.7 doc
+
+# Johannes Huber <johu@gentoo.org> (07 Aug 2017)
+# Requires media-libs/qtav, which is not keyworded on x86.
+media-gfx/digikam mediaplayer
+
+# Michał Górny <mgorny@gentoo.org> (07 Aug 2017)
+# Requires USE=cuda that is masked in this profile.
+media-gfx/blender opensubdiv
+
+# Brian Evans <grknight@gentoo.org> (21 Jul 2017)
+# app-crypt/argon2 is keyworded on x86
+dev-lang/php -argon2
+
+# Thomas Deutschmann <whissi@gentoo.org> (01 Mar 2017)
+# dev-libs/libmaxminddb is keyworded on x86
+app-admin/rsyslog -mdblookup
+
+# David Seifert <soap@gentoo.org> (10 Feb 2017)
+# Requires dev-lua/ldoc for building documentation,
+# which is only keyworded for amd64
+x11-wm/awesome doc
+
+# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
+# nvidia drivers are unmasked here
+media-video/ffmpeg -nvenc
+
+# Luca Barbato <lu_zero@gentoo.org> (22 Jan 2017)
+# cuda is not available on x86 nvidia-video-codec depends on it
+media-video/libav nvidia
+
+# 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
+
+# Yixun lan <dlan@gentoo.org> (07 Dec 2016)
+# Disable zfs storage backend since sys-fs/zfs doesn't support 32bit arch
+app-emulation/libvirt zfs
+
+# 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/percona-server -numa
+
+# Brian Evans <grknight@gentoo.org> (18 Aug 2016)
+# Allow jdbc on this arch
+dev-db/mariadb -jdbc
+
+# Rick Farina <zerochaos@gentoo.org> (23 Mar 2016)
+# rspec:3 is not keyworded for x86 at this time
+=dev-ruby/bundler-audit-0.5.0 test
+
+# Mike Gilbert <floppym@gentoo.org> (03 Mar 2016)
+# chrome-binary-plugins dropped x86 support
+www-client/chromium widevine
+
+# Ian Delaney <idella4@gentoo.org> (02 Dec 2015)
+# mask revdeps of xen that emply a hypervisor in arch x86
+app-emulation/libvirt xen
+app-emulation/ganeti xen
+
+# 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 x86 Linux.
+dev-java/oracle-jdk-bin -javafx -nsplugin
+dev-java/oracle-jre-bin -javafx -nsplugin
+
+# Ben de Groot <yngwin@gentoo.org> (15 Mar 2015)
+# media-libs/libbdplus is keyworded on x86, 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
+
+# Jeroen Roovers <jer@gentoo.org> (31 Jan 2015)
+# >x11-drivers/nvidia-drivers-346 on x86 has no UVM support (bug #534156)
+>x11-drivers/nvidia-drivers-346 uvm
+
+# Tim Harder <radhermit@gentoo.org> (11 Oct 2014)
+# Unmask skype support for unstable keywords
+net-im/bitlbee -skype
+
+# 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
+
+# Yixun Lan <dlan@gentoo.org> (21 May 2014)
+# sys-fs/zfs not keyworded on x86
+sys-cluster/ceph zfs
+
+# Lars Wendler <polynomial-c@gentoo.org (23 Apr 2014)
+# Works on 32bit x86
+media-sound/lmms -vst
+
+# 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
+
+# Sergey Popov <pinkbyte@gentoo.org> (27 Dec 2013)
+# Boost.Context can be built on x86
+dev-libs/boost -context
+
+# Christoph Junghans <junghans@gentoo.org> (08 Sep 2013)
+# restrict USE=quad for x86 as there are too less registers
+sci-libs/fftw quad
+
+# 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 x86 (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 x86
+sys-apps/hwloc -gl
+
+# Christoph Junghans <junghans@gentoo.org> (26 Dec 2012)
+# mkl 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
+
+# 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
+
+# Doug Goldstein <cardoe@gentoo.org> (17 Jan 2012)
+# The SPICE server is only supported on 64-bit platforms and not on 32-bit
+# https://lists.freedesktop.org/archives/spice-devel/2015-September/021846.html
+app-emulation/qemu spice
+
+# 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
+
+# Samuli Suominen <ssuominen@gentoo.org> (06 Dec 2011)
+# NuppelVideo support is 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 the flag is masked in the base profile and unmasked here.
+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 base/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
+
+# 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
+
+# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (28 Nov 2010)
+# sys-devel/llvm is keyworded on x86
+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
+
+# Serkan Kaba <serkan@gentoo.org> (20 Jul 2008)
+app-text/enchant -zemberek
+
+x11-terms/eterm cpu_flags_x86_sse2
+
+# Steve Dibb <beandog@gentoo.org> (29 Sept 2008)
+media-video/mplayer -cpudetection
diff --git a/profiles/arch/x86/package.use.stable.mask b/profiles/arch/x86/package.use.stable.mask
new file mode 100644
index 000000000000..53a7d35766bd
--- /dev/null
+++ b/profiles/arch/x86/package.use.stable.mask
@@ -0,0 +1,70 @@
+# 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 ---
+
+# Thomas Deutschmann <whissi@gentoo.org> (01 Oct 2017)
+# Stable mask dev-ruby/haml test till rails is stabilized.
+dev-ruby/haml test
+
+# 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
+
+# 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
+
+# Michael Palimaka <kensington@gentoo.org> (26 May 2016)
+# Dependencies not yet stable
+dev-cpp/eigen test
+
+# Pacho Ramos <pacho@gentoo.org> (08 Mar 2015)
+# mayavi is broken, bug #500104
+dev-python/apptools test
+
+# Tim Harder <radhermit@gentoo.org> (11 Oct 2014)
+# Masked since skype isn't stable
+net-im/bitlbee skype
+
+# 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
+
+# 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/x86/parent b/profiles/arch/x86/parent
new file mode 100644
index 000000000000..eb001c6e8ab8
--- /dev/null
+++ b/profiles/arch/x86/parent
@@ -0,0 +1 @@
+../base
diff --git a/profiles/arch/x86/profile.bashrc b/profiles/arch/x86/profile.bashrc
new file mode 100644
index 000000000000..cf66d2d68f6b
--- /dev/null
+++ b/profiles/arch/x86/profile.bashrc
@@ -0,0 +1,12 @@
+if [[ ${EBUILD_PHASE} == "setup" ]] ; then
+
+ # on x86, -pg requires the frame pointer, so turning it off makes no sense
+ if has profile ${IUSE} && use profile && \
+ has -fomit-frame-pointer ${CFLAGS} ${CXXFLAGS}
+ then
+ eerror "\nUSE=profile and -fomit-frame-pointer make no sense"
+ eerror "Fix your build settings to avoid build failures\n"
+ [[ -z ${EPAUSE_IGNORE} ]] && sleep 5
+ fi
+
+fi
diff --git a/profiles/arch/x86/use.force b/profiles/arch/x86/use.force
new file mode 100644
index 000000000000..1f18bb0cec1e
--- /dev/null
+++ b/profiles/arch/x86/use.force
@@ -0,0 +1,7 @@
+# Force the flag which corresponds to ARCH.
+x86
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Force the flag corresponding to the only ABI. This allows x86 binary
+# packages to have uniform dependencies for amd64-multilib & x86.
+abi_x86_32
diff --git a/profiles/arch/x86/use.mask b/profiles/arch/x86/use.mask
new file mode 100644
index 000000000000..75ad6085c52b
--- /dev/null
+++ b/profiles/arch/x86/use.mask
@@ -0,0 +1,165 @@
+# Copyright 1999-2017 Gentoo Foundation.
+# Distributed under the terms of the GNU General Public License, v2
+
+# Unmask the flag which corresponds to ARCH.
+-x86
+
+# 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 x86
+-libvirt
+
+# Andreas K. Hüttel <dilfridge@gentoo.org> (26 May 2017)
+# dev-db/firebird is keyworded ~x86
+-firebird
+
+# cilk has been ported to this arch.
+-cilk
+
+# Mike Gilbert <floppym@gentoo.org (19 Oct 2014)
+# sys-libs/libapparmor
+-apparmor
+
+# 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 x86
+-clisp
+-clozurecl
+-cmucl
+-ecls
+-gcl
+-sbcl
+
+# Michał Górny <mgorny@gentoo.org> (26 Jan 2013)
+# Unmask the flag corresponding to the only ABI. This allows x86 binary
+# packages to have uniform dependencies for amd64-multilib & x86.
+-abi_x86_32
+
+# 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 x86
+-python_targets_jython2_7
+-python_single_target_jython2_7
+
+# Joerg Bornkessel <hd_brummy@gentoo.org> (05. Mar 2012)
+# Unmask, works with v4l2, #350211
+-dxr3
+
+# Samuli Suominen <ssuominen@gentoo.org> (28 Feb 2012)
+# Unmasking vidix for x86 which is masked in base/use.mask for others
+-vidix
+
+# Justin Lecher <jlec@gentoo.org> (04 Feb 2012)
+# Unmask because deps are keyworded
+-zeitgeist
+
+# This file masks out USE flags that are simply NOT allowed in the default
+# x86 profile. This works, for example, if another architecture's
+# profile have a USE flag associated with (such as altivec, mmx, etc).
+
+# 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 on x86
+-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
+
+# pbbuttonsd and macbook for KDE and pbuttonsd it
+#-pbbuttonsd
+-macbook
+
+# Unmask x86 instruction sets
+-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
+
+# Unmask nvidia XvMC support
+-nvidia
+
+# Unmask dev-db/oracle-instantclient-basic support
+-oci8-instant-client
+-oracle
+
+# Modular X: unmask for architectures on which they are available
+-input_devices_synaptics
+-input_devices_vmmouse
+-input_devices_wacom
+-video_cards_nvidia
+-video_cards_vmware
+-video_cards_geode
+-video_cards_via
+-video_cards_virtualbox
+-video_cards_qxl
+
+# Modular X: mask for architectures on which they aren't available
+video_cards_newport
+
+# Diego Pettenò <flameeyes@gentoo.org> (4 Jan 2007)
+# Unmask the flags for PHP that are available only on x86
+#
+# Shared with amd64
+-oci8
+
+# Robert Buchholz <rbu@gentoo.org> (03 Jun 2007)
+# Unmask as it works on x86
+-lcd_devices_svga
+-lcd_devices_luise
+
+# George Shapovalov <george@gentoo.org> (8 Apr 2007)
+# supported on x86
+-ada
+
+# fdk-aac is already keyworded here
+-fdk
diff --git a/profiles/arch/x86/use.stable.mask b/profiles/arch/x86/use.stable.mask
new file mode 100644
index 000000000000..118c3436da94
--- /dev/null
+++ b/profiles/arch/x86/use.stable.mask
@@ -0,0 +1,28 @@
+# 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.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 ~x86
+firebird
+
+# Mike Gilbert <floppym@gentoo.org> (19 Oct 2014)
+# sys-libs/libapparmor
+apparmor
+
+# Andrey Grozin <grozin@gentoo.org> (25 Jun 2014)
+# no stable versions on x86
+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/x86/xbox/eapi b/profiles/arch/x86/xbox/eapi
new file mode 100644
index 000000000000..7ed6ff82de6b
--- /dev/null
+++ b/profiles/arch/x86/xbox/eapi
@@ -0,0 +1 @@
+5
diff --git a/profiles/arch/x86/xbox/make.defaults b/profiles/arch/x86/xbox/make.defaults
new file mode 100644
index 000000000000..77e30c62110c
--- /dev/null
+++ b/profiles/arch/x86/xbox/make.defaults
@@ -0,0 +1,10 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PROFILE_ARCH="xbox"
+CPU_FLAGS_X86="mmx sse"
+
+CFLAGS="-O2 -march=pentium3 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
diff --git a/profiles/arch/x86/xbox/package.mask b/profiles/arch/x86/xbox/package.mask
new file mode 100644
index 000000000000..633c704dafd1
--- /dev/null
+++ b/profiles/arch/x86/xbox/package.mask
@@ -0,0 +1,2 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
diff --git a/profiles/arch/x86/xbox/parent b/profiles/arch/x86/xbox/parent
new file mode 100644
index 000000000000..f3229c5b9876
--- /dev/null
+++ b/profiles/arch/x86/xbox/parent
@@ -0,0 +1 @@
+..