From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- profiles/features/prefix/eapi | 1 + profiles/features/prefix/make.defaults | 27 +++++++++++++ profiles/features/prefix/package.mask | 22 +++++++++++ profiles/features/prefix/package.use.mask | 46 ++++++++++++++++++++++ profiles/features/prefix/packages | 26 ++++++++++++ profiles/features/prefix/rpath/eapi | 1 + profiles/features/prefix/rpath/packages | 11 ++++++ profiles/features/prefix/rpath/parent | 1 + profiles/features/prefix/rpath/profile.bashrc | 22 +++++++++++ profiles/features/prefix/rpath/use.force | 6 +++ profiles/features/prefix/rpath/use.mask | 9 +++++ profiles/features/prefix/standalone/eapi | 1 + .../prefix/standalone/legacy/make.defaults | 17 ++++++++ .../features/prefix/standalone/legacy/package.mask | 7 ++++ .../prefix/standalone/legacy/package.unmask | 2 + .../prefix/standalone/legacy/profile.bashrc | 6 +++ profiles/features/prefix/standalone/make.defaults | 7 ++++ profiles/features/prefix/standalone/parent | 1 + profiles/features/prefix/use.force | 8 ++++ profiles/features/prefix/use.mask | 23 +++++++++++ 20 files changed, 244 insertions(+) create mode 100644 profiles/features/prefix/eapi create mode 100644 profiles/features/prefix/make.defaults create mode 100644 profiles/features/prefix/package.mask create mode 100644 profiles/features/prefix/package.use.mask create mode 100644 profiles/features/prefix/packages create mode 100644 profiles/features/prefix/rpath/eapi create mode 100644 profiles/features/prefix/rpath/packages create mode 100644 profiles/features/prefix/rpath/parent create mode 100644 profiles/features/prefix/rpath/profile.bashrc create mode 100644 profiles/features/prefix/rpath/use.force create mode 100644 profiles/features/prefix/rpath/use.mask create mode 100644 profiles/features/prefix/standalone/eapi create mode 100644 profiles/features/prefix/standalone/legacy/make.defaults create mode 100644 profiles/features/prefix/standalone/legacy/package.mask create mode 100644 profiles/features/prefix/standalone/legacy/package.unmask create mode 100644 profiles/features/prefix/standalone/legacy/profile.bashrc create mode 100644 profiles/features/prefix/standalone/make.defaults create mode 100644 profiles/features/prefix/standalone/parent create mode 100644 profiles/features/prefix/use.force create mode 100644 profiles/features/prefix/use.mask (limited to 'profiles/features/prefix') diff --git a/profiles/features/prefix/eapi b/profiles/features/prefix/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/prefix/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/prefix/make.defaults b/profiles/features/prefix/make.defaults new file mode 100644 index 000000000000..28ddc1270c94 --- /dev/null +++ b/profiles/features/prefix/make.defaults @@ -0,0 +1,27 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Michael Haubenwallner (19 Apr 2016) +# We can not use xattrs by default in Prefix. +USE="-xattr" + +# Jeremy Olexa (30 Jun 2009) +# As of now, there does not exist a reliable working sandbox implementation on +# any Gentoo Prefix platform. Lately, sandbox has caused *many* issues that +# the Gentoo Prefix team has no time to fix and/or troubleshoot. see: bug 271424 +# see: +# https://archives.gentoo.org/gentoo-alt/msg_3c355ca5e70e7975eae293823f1751f2.xml +# see: bug 274239 +# and other issues, etc etc. +# +# If in the future, there does exist a working sandbox implementation then it +# should be enabled on a per-profile basis only. +FEATURES="${FEATURES} -sandbox -usersandbox" + +# Prefix does not have user management and the security model does not apply. +# Disable user* features by default. +FEATURES="${FEATURES} -userpriv -userfetch -usersync" + +# this probably already is like this, but we assure that in prefix we +# have a GNU userland +USERLAND="GNU" diff --git a/profiles/features/prefix/package.mask b/profiles/features/prefix/package.mask new file mode 100644 index 000000000000..dfa6e719cf82 --- /dev/null +++ b/profiles/features/prefix/package.mask @@ -0,0 +1,22 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Jeremy Olexa (30 Jun 2009) +# The PAM auth system just will not work in Gentoo Prefix, instead the host auth +# system should be used. +sys-libs/pam +sys-auth/pambase + +# Jeremy Olexa (02 Jun 2009) +# If you have MacFuse or some other implementation of fuse installed, you can +# probably use this by placing sys-fs/fuse in package.provided, bug 272210 +net-fs/curlftpfs + +# Jeremy Olexa (02 Dec 2008) +# Reported to work. However, you will need to package.provide some deps. +# See bug 248809 for more details. +net-fs/openafs + +# Fabian Groffen (11 Jan 2008) +# Screws up things, see bug #204998 + (28 Jul 2016) +# Needs root privilege. +sys-fs/eudev hwdb kmod + +# Kacper Kowalik (14 Jan 2012) +# sci-libs/mkl don't have prefix keywords +dev-python/numexpr mkl + +# Fabian Groffen (08 Dec 2011) +# USE=vanilla produces a broken compiler for Prefix. Only use this flag +# when you're absolutely sure what you're doing. Do NOT report bugs +# about failing packages when using a vanilla compiler! +sys-devel/gcc vanilla + +# Rafael Goncalves Martins (29 Sep 2010) +# dev-libs/judy without prefix keywords +# (amd64-linux and x86-linux) +sci-electronics/gtkwave judy + +# Jonathan Callen (22 Feb 2010) +# ppp is not available in Prefix +kde-apps/kdenetwork-meta ppp + +# Christian Faulhammer (09 Jan 2010) +# hesiod and m17n-lib are not available in Prefix +app-editors/emacs-vcs hesiod m17n-lib +app-editors/emacs hesiod m17n-lib + +# Jeremy Olexa (30 Sep 2009) +# berkdb has hardcoded paths all over, breaks on linux at least. Use flag +# disappearing in next bump: prefix can be early and force it to be not used to +# save headaches. +# NOTE to prefix devs: if it needs to not be a global mask, talk to me because +# it currently causes failures on linux. It can be made a "less global" mask. +dev-lang/python berkdb + +# Elias Pipping (18 Nov 2007) +# feynmf fails to build documentation +dev-tex/feynmf doc + +# Elias Pipping (15 Nov 2007) +# pkg_postinst tries to create/delete a user, fails +dev-libs/cyrus-sasl berkdb gdbm diff --git a/profiles/features/prefix/packages b/profiles/features/prefix/packages new file mode 100644 index 000000000000..a4d727977333 --- /dev/null +++ b/profiles/features/prefix/packages @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Gentoo Base Prefix Profile + +# NOTE: THIS MODIFIES THE BASE PROFILE FOR *ANY* PREFIX BASED OPERATING SYSTEM. +# NO MODIFICATIONS MAY BE MADE TO THIS FILE WITHOUT PRIOR DISCUSSION. IF +# YOU ARE CREATING A NEW PROFILE, YOU SIMPLY NEED TO INHERIT THIS BASE +# PROFILE IN YOUR PROFILE DIRECTORY'S "parent" FILE. + +# Read the descriptions of ../../base/packages for some explanation + +# This file removes everything from the base profile which is not +# necessary/desired in a prefix environment. + +-*net-misc/iputils +-*sys-apps/iproute2 +-*sys-apps/kbd +-*sys-fs/e2fsprogs +-*virtual/dev-manager +-*virtual/modutils +-*virtual/shadow + +# we don't want this either (as baselayout-prefix provides the functions.sh +# file that this was added to ../base/packages for) +-*sys-apps/openrc diff --git a/profiles/features/prefix/rpath/eapi b/profiles/features/prefix/rpath/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/prefix/rpath/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/prefix/rpath/packages b/profiles/features/prefix/rpath/packages new file mode 100644 index 000000000000..ca559fb1847a --- /dev/null +++ b/profiles/features/prefix/rpath/packages @@ -0,0 +1,11 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# we don't ever will install these, so no need to depend on them +-*virtual/libc +-*virtual/os-headers + +-*>=sys-apps/baselayout-2 +# add back prefix baselayout +*sys-apps/baselayout-prefix + diff --git a/profiles/features/prefix/rpath/parent b/profiles/features/prefix/rpath/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/features/prefix/rpath/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/features/prefix/rpath/profile.bashrc b/profiles/features/prefix/rpath/profile.bashrc new file mode 100644 index 000000000000..1964faf33266 --- /dev/null +++ b/profiles/features/prefix/rpath/profile.bashrc @@ -0,0 +1,22 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Hack to avoid every package that uses libiconv/gettext +# install a charset.alias that will collide with libiconv's one +# See bugs 169678, 195148 and 256129. +# Also the discussion on +# https://archives.gentoo.org/gentoo-dev/msg_8cb1805411f37b4eb168a3e680e531f3.xml +prefix-post_src_install() { + local f + if [[ ${PN} != "libiconv" && -n $(ls "${ED}"/usr/lib*/charset.alias 2>/dev/null) ]]; then + einfo "automatically removing charset.alias" + rm -f "${ED}"/usr/lib*/charset.alias + fi +} + +# These are because of +# https://archives.gentoo.org/gentoo-dev/msg_529a0806ed2cf841a467940a57e2d588.xml +# The profile-* ones are meant to be used in etc/portage/profile.bashrc by user +# until there is the registration mechanism. +profile-post_src_install() { prefix-post_src_install ; } + post_src_install() { prefix-post_src_install ; } diff --git a/profiles/features/prefix/rpath/use.force b/profiles/features/prefix/rpath/use.force new file mode 100644 index 000000000000..ee3ee2379455 --- /dev/null +++ b/profiles/features/prefix/rpath/use.force @@ -0,0 +1,6 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# prefix-guest USE flag should be set in prefix rpath profiles +prefix-guest + diff --git a/profiles/features/prefix/rpath/use.mask b/profiles/features/prefix/rpath/use.mask new file mode 100644 index 000000000000..294cb12c1d19 --- /dev/null +++ b/profiles/features/prefix/rpath/use.mask @@ -0,0 +1,9 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# prefix-guest USE flag should be set in prefix rpath profiles +-prefix-guest + +# multilib is never going to work as expected in Prefix rpath +multilib + diff --git a/profiles/features/prefix/standalone/eapi b/profiles/features/prefix/standalone/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/prefix/standalone/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/prefix/standalone/legacy/make.defaults b/profiles/features/prefix/standalone/legacy/make.defaults new file mode 100644 index 000000000000..254b730a79c4 --- /dev/null +++ b/profiles/features/prefix/standalone/legacy/make.defaults @@ -0,0 +1,17 @@ +# This profile is supporting >=linux-2.6.16[a] and =linux-2.6.27. Needed by python-3. +ac_cv_func_pipe2=no + +# >=python-3 is masked. +PYTHON_TARGETS="-python3_4" diff --git a/profiles/features/prefix/standalone/legacy/package.mask b/profiles/features/prefix/standalone/legacy/package.mask new file mode 100644 index 000000000000..5125269d289d --- /dev/null +++ b/profiles/features/prefix/standalone/legacy/package.mask @@ -0,0 +1,7 @@ +# >=glibc-2.20 requires >=linux-2.6.32. +>=sys-libs/glibc-2.20 + +# >=python-3.4 assumes F_DUPFD_CLOEXEC of fcntl, +# which requires >=linux-2.6.24. +# python-3.3 seems to be unconditionally using utimensat. +>=dev-lang/python-3 \ No newline at end of file diff --git a/profiles/features/prefix/standalone/legacy/package.unmask b/profiles/features/prefix/standalone/legacy/package.unmask new file mode 100644 index 000000000000..0d7380b42738 --- /dev/null +++ b/profiles/features/prefix/standalone/legacy/package.unmask @@ -0,0 +1,2 @@ +# >=glibc-2.20 requires >=linux-2.6.32. +