eclass/pax-utils: Sync with gentoo

It's from gentoo commit 84b43bac4e545999e00c768bbcc908652eaf5502.
This commit is contained in:
Krzesimir Nowak 2022-03-03 16:18:30 +01:00
parent d6edbe5c5d
commit b4d6d2916e

View File

@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Foundation # Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: pax-utils.eclass # @ECLASS: pax-utils.eclass
@ -7,6 +7,7 @@
# @AUTHOR: # @AUTHOR:
# Author: Kevin F. Quinn <kevquinn@gentoo.org> # Author: Kevin F. Quinn <kevquinn@gentoo.org>
# Author: Anthony G. Basile <blueness@gentoo.org> # Author: Anthony G. Basile <blueness@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: functions to provide PaX markings for hardened kernels # @BLURB: functions to provide PaX markings for hardened kernels
# @DESCRIPTION: # @DESCRIPTION:
# #
@ -20,6 +21,11 @@
# To control what markings are made, set PAX_MARKINGS in /etc/portage/make.conf # To control what markings are made, set PAX_MARKINGS in /etc/portage/make.conf
# to contain either "PT", "XT" or "none". The default is none # to contain either "PT", "XT" or "none". The default is none
case ${EAPI:-0} in
5|6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_PAX_UTILS_ECLASS} ]]; then if [[ -z ${_PAX_UTILS_ECLASS} ]]; then
_PAX_UTILS_ECLASS=1 _PAX_UTILS_ECLASS=1
@ -176,6 +182,10 @@ host-is-pax() {
# them elsewhere as they are not supported (i.e. they may be removed # them elsewhere as they are not supported (i.e. they may be removed
# or their function may change arbitrarily). # or their function may change arbitrarily).
# @FUNCTION: _pax_list_files
# @INTERNAL
# @USAGE: <command to display items> [items]
# @DESCRIPTION:
# Display a list of things, one per line, indented a bit, using the # Display a list of things, one per line, indented a bit, using the
# display command in $1. # display command in $1.
_pax_list_files() { _pax_list_files() {