Re: [gentoo-dev] 'pax_kernel' USE flag
> > The PaX community in Gentoo is still big and active. > > > > Many Gentoo users received free access to upstream sources or became > > paying customers. > > > > It's just not available for everyone for free/without registration > > anymore. But it is still a thing in Gentoo. > > Can you substantiate that claim? > > There was a pax-kernel USE flag on Mesa and I don't recall anyone > saying a word when I removed it. > > If there are paying customers that have PaX kernels, perhaps they'd be > interested in providing some support for Gentoo if we're being asked > to retain support for something we cannot test. Summary from the replies so far: * either noone is using it, * or noone is willing to admit using it. -- Andreas K. Hüttel dilfri...@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) signature.asc Description: This is a digitally signed message part.
[gentoo-dev] News item: USE=pax_kernel renaming
I have attached this news item to hardened profiles, even though there is nothing in those profiles which enforces this USE flag any more. An alternative would be to attach it to all the packages with this flag in IUSE but it feels like it might generate too much noise. Regarding the USE-flag change itself, my plan is to temporarily add the REQUIRED_USE compatibility guard to libffi (as suggested by slyfox) and simply rename the flag everywhere else. * * * Title: USE flag 'pax_kernel' to be renamed to 'pax-kernel' Author: Marek Szuba Posted: 2021-06-28 Revision: 1 News-Item-Format: 2.0 Display-If-Profile: default/linux/amd64/17.0/hardened Display-If-Profile: default/linux/amd64/17.0/musl/hardened Display-If-Profile: default/linux/amd64/17.0/no-multilib/hardened Display-If-Profile: default/linux/amd64/17.0/uclibc/hardened Display-If-Profile: default/linux/amd64/17.1/hardened Display-If-Profile: default/linux/amd64/17.1/no-multilib/hardened Display-If-Profile: default/linux/arm/17.0/musl/armv6j/hardened Display-If-Profile: default/linux/arm/17.0/musl/armv7a/hardened Display-If-Profile: default/linux/arm/17.0/uclibc/armv6j/hardened Display-If-Profile: default/linux/arm/17.0/uclibc/armv7a/hardened Display-If-Profile: default/linux/arm64/17.0/musl/hardened Display-If-Profile: default/linux/powerpc/ppc32/17.0/musl/hardened Display-If-Profile: default/linux/powerpc/ppc32/17.0/uclibc/hardened Display-If-Profile: default/linux/ppc/17.0/musl/hardened Display-If-Profile: default/linux/ppc/17.0/uclibc/hardened Display-If-Profile: default/linux/ppc64/17.0/musl/hardened Display-If-Profile: default/linux/ppc64le/17.0/musl/hardened Display-If-Profile: default/linux/x86/17.0/hardened Display-If-Profile: default/linux/x86/17.0/uclibc/hardened On 2021-07-01 the USE flag 'pax_kernel' will be renamed to 'pax-kernel' in order to remove the disallowed underscore character. If you use a PaX-enabled kernel, update your package-manager configuration accordingly; failure to do so might result in affected packages no longer functioning on your system. -- Marecki OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-dev] Last Rites: media-gfx/ufraw
сб, 26 июн. 2021 г. в 00:24, Matt Turner : > > # Matt Turner (2021-06-25) > # Last release in 2015. Many open bugs. No reverse dependencies. > # Bugs #312935, #341923, #629050, #739984, #775761, #777534 > # Removal on 2021-07-25 > media-gfx/ufraw Hi, Just for the information, there is an unofficial ufraw repo with many fixes: https://github.com/sergiomb2/ufraw -- Best regards, Alex
[gentoo-dev] [PATCH 4/4] python-utils-r1.eclass: Remove _python_ln_rel
Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass | 40 --- 1 file changed, 40 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 7022d3b7d88a..7488802332f6 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -549,46 +549,6 @@ python_get_scriptdir() { echo "${PYTHON_SCRIPTDIR}" } -# @FUNCTION: _python_ln_rel -# @USAGE: -# @INTERNAL -# @DESCRIPTION: -# Create a relative symlink. -_python_ln_rel() { - debug-print-function ${FUNCNAME} "${@}" - - local target=${1} - local symname=${2} - - local tgpath=${target%/*}/ - local sympath=${symname%/*}/ - local rel_target= - - while [[ ${sympath} ]]; do - local tgseg= symseg= - - while [[ ! ${tgseg} && ${tgpath} ]]; do - tgseg=${tgpath%%/*} - tgpath=${tgpath#${tgseg}/} - done - - while [[ ! ${symseg} && ${sympath} ]]; do - symseg=${sympath%%/*} - sympath=${sympath#${symseg}/} - done - - if [[ ${tgseg} != ${symseg} ]]; then - rel_target=../${rel_target}${tgseg:+${tgseg}/} - fi - done - rel_target+=${tgpath}${target##*/} - - debug-print "${FUNCNAME}: ${symname} -> ${target}" - debug-print "${FUNCNAME}: rel_target = ${rel_target}" - - ln -fs "${rel_target}" "${symname}" -} - # @FUNCTION: python_optimize # @USAGE: [...] # @DESCRIPTION: -- 2.32.0
[gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Use 'dosym -r' in EAPI 8
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 87091951fafa..749809378c93 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -775,8 +775,10 @@ _distutils-r1_wrap_scripts() { local basename=${f##*/} debug-print "${FUNCNAME}: installing wrapper at ${bindir}/${basename}" - _python_ln_rel "${ED%/}"/usr/lib/python-exec/python-exec2 \ - "${D%/}${bindir}/${basename}" || die + local dosym=dosym + [[ ${EAPI} == [67] ]] && dosym=dosym8 + "${dosym}" -r /usr/lib/python-exec/python-exec2 \ + "${bindir#${EPREFIX}}/${basename}" done for f in "${non_python_files[@]}"; do -- 2.32.0
[gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Defer wrapping scripts until after root-merge
Defer wrapping installed Python scripts until the files are merged from impl-specific directory into ${ED}. This should clear the way into using 'dosym -r'. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index a26130f7a194..e194731ba6bb 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -921,8 +921,8 @@ distutils-r1_python_install() { fi if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then - _distutils-r1_wrap_scripts "${root}" "${scriptdir}" multibuild_merge_root "${root}" "${D%/}" + _distutils-r1_wrap_scripts "${D%/}" "${scriptdir}" fi } -- 2.32.0
[gentoo-dev] [PATCH 0/4] distutils-r1.eclass: dosym -r, attempt two
Hi, The original EAPI 8 patch series did not switch distutils-r1.eclass to 'dosym -r' correctly. The call was originally done inside a temporary build root (!= ${ED}). While we hacked around to make 'dosym -r' work, our hack did not work correctly in Prefix. To avoid this, let's merge the temporary build root first and then perform the wrapping inside ${ED}. Michał Górny (4): distutils-r1.eclass: Defer wrapping scripts until after root-merge distutils-r1.eclass: Eliminate path arg to ..._wrap_scripts distutils-r1.eclass: Use 'dosym -r' in EAPI 8 python-utils-r1.eclass: Remove _python_ln_rel eclass/distutils-r1.eclass| 27 +++ eclass/python-utils-r1.eclass | 40 --- 2 files changed, 14 insertions(+), 53 deletions(-) -- 2.32.0
[gentoo-dev] [PATCH 1/1] docs.eclass: EAPI 8 support
Add support for EAPI 8, and also update the PYTHON_COMPAT variable in the example. diff --git a/eclass/docs.eclass b/eclass/docs.eclass index 7ee7a11ca5e..3f9191ddbd5 100644 --- a/eclass/docs.eclass +++ b/eclass/docs.eclass @@ -7,7 +7,7 @@ # @AUTHOR: # Author: Andrew Ammerlaan # Based on the work of: Michał Górny -# @SUPPORTED_EAPIS: 6 7 +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: A simple eclass to build documentation. # @DESCRIPTION: # A simple eclass providing basic functions and variables to build @@ -50,7 +50,7 @@ # DOCS_DEPEND="dev-python/mkdocs-material" # DOCS_DIR="doc" # -# PYTHON_COMPAT=( python3_{7,8,9} ) +# PYTHON_COMPAT=( python3_{8..10} ) # # inherit distutils-r1 docs # @@ -61,7 +61,7 @@ case "${EAPI:-0}" in 0|1|2|3|4|5) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;; - 6|7) + 6|7|8) ;; *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
[gentoo-dev] Re: [PATCH 1/2] xdg-utils.eclass: EAPI 8 support
On Fri, Jun 25, 2021 at 12:33 PM David Michael wrote: > @@ -17,9 +17,9 @@ > # * XDG .desktop files cache management > # * XDG mime information database management > > -case "${EAPI:-0}" in > - 0|1|2|3|4|5|6|7) ;; > - *) die "EAPI=${EAPI} is not supported" ;; > +case ${EAPI} in > + 0|1|2|3|4|5|6|7|8) ;; > + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; > esac > > # @ECLASS-VARIABLE: DESKTOP_DATABASE_DIR Oops, this one should have kept "case ${EAPI:-0} in" since it actually claims to support EAPI 0.
[gentoo-dev] [PATCH 2/2] gnome.org.eclass: EAPI 8 support
Signed-off-by: David Michael --- eclass/gnome.org.eclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass index dba26155d74..7efd03bfa94 100644 --- a/eclass/gnome.org.eclass +++ b/eclass/gnome.org.eclass @@ -7,13 +7,13 @@ # @AUTHOR: # Authors: Spidler with help of carparski. # eclass variable additions and documentation: Gilles Dartiguelongue -# @SUPPORTED_EAPIS: 5 6 7 +# @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: Helper eclass for gnome.org hosted archives # @DESCRIPTION: # Provide a default SRC_URI for tarball hosted on gnome.org mirrors. -case ${EAPI:-0} in - [567]) ;; +case ${EAPI} in + 5|6|7|8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac @@ -31,7 +31,7 @@ _GNOME_ORG_ECLASS=1 # moving to only have xz tarballs for new releases. : ${GNOME_TARBALL_SUFFIX:="xz"} -# Even though xz-utils are in @system, they must still be added to DEPEND; see +# Even though xz-utils are in @system, they must still be added to BDEPEND; see # https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml if [[ ${GNOME_TARBALL_SUFFIX} == "xz" ]]; then if [[ ${EAPI} != [56] ]]; then -- 2.31.1
[gentoo-dev] [PATCH 1/2] xdg-utils.eclass: EAPI 8 support
Also standardize on one conditional block spacing syntax and drop some redundant local variables. Signed-off-by: David Michael --- Hi, Here are some EAPI updates for GNOMEy eclasses. This one in particular would benefit from IDEPEND as most of its functions run native programs at pkg_post* time. Thanks. David eclass/xdg-utils.eclass | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass index 738df865891..8b627d33cc6 100644 --- a/eclass/xdg-utils.eclass +++ b/eclass/xdg-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 2004-2019 Gentoo Authors +# Copyright 2004-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: xdg-utils.eclass @@ -7,7 +7,7 @@ # freedesktop-b...@gentoo.org # @AUTHOR: # Original author: Gilles Dartiguelongue -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 8 # @BLURB: Auxiliary functions commonly used by XDG compliant packages. # @DESCRIPTION: # This eclass provides a set of auxiliary functions needed by most XDG @@ -17,9 +17,9 @@ # * XDG .desktop files cache management # * XDG mime information database management -case "${EAPI:-0}" in - 0|1|2|3|4|5|6|7) ;; - *) die "EAPI=${EAPI} is not supported" ;; +case ${EAPI} in + 0|1|2|3|4|5|6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac # @ECLASS-VARIABLE: DESKTOP_DATABASE_DIR @@ -57,7 +57,7 @@ xdg_environment_reset() { # Updates the .desktop files database. # Generates a list of mimetypes linked to applications that can handle them xdg_desktop_database_update() { - if [[ ${EBUILD_PHASE} != post* ]] ; then + if [[ ${EBUILD_PHASE} != post* ]]; then die "xdg_desktop_database_update must be used in pkg_post* phases." fi @@ -76,7 +76,7 @@ xdg_desktop_database_update() { # Updates icon theme cache files under /usr/share/icons. # This function should be called from pkg_postinst and pkg_postrm. xdg_icon_cache_update() { - if [[ ${EBUILD_PHASE} != post* ]] ; then + if [[ ${EBUILD_PHASE} != post* ]]; then die "xdg_icon_cache_update must be used in pkg_post* phases." fi @@ -86,21 +86,17 @@ xdg_icon_cache_update() { fi ebegin "Updating icons cache" - local dir f retval=0 - local fails=( ) - for dir in "${EROOT%/}"/usr/share/icons/* - do - if [[ -f "${dir}/index.theme" ]] ; then - local rv=0 - gtk-update-icon-cache -qf "${dir}" - rv=$? - if [[ ! $rv -eq 0 ]] ; then + local dir retval=0 + local fails=() + for dir in "${EROOT%/}"/usr/share/icons/*; do + if [[ -f ${dir}/index.theme ]]; then + if ! gtk-update-icon-cache -qf "${dir}"; then debug-print "Updating cache failed on ${dir}" # Add to the list of failures fails+=( "${dir}" ) retval=2 fi - elif [[ $(ls "${dir}") = "icon-theme.cache" ]]; then + elif [[ $(ls "${dir}") = icon-theme.cache ]]; then # Clear stale cache files after theme uninstallation rm "${dir}/icon-theme.cache" fi @@ -110,8 +106,8 @@ xdg_icon_cache_update() { fi done eend ${retval} - for f in "${fails[@]}" ; do - eerror "Failed to update cache with icon $f" + for dir in "${fails[@]}"; do + eerror "Failed to update cache with icon ${dir}" done } @@ -120,7 +116,7 @@ xdg_icon_cache_update() { # Update the mime database. # Creates a general list of mime types from several sources xdg_mimeinfo_database_update() { - if [[ ${EBUILD_PHASE} != post* ]] ; then + if [[ ${EBUILD_PHASE} != post* ]]; then die "xdg_mimeinfo_database_update must be used in pkg_post* phases." fi -- 2.31.1
[gentoo-dev] Last rites: dev-lang/lua:0 (i.e. unslotted Lua)
# Marek Szuba (2021-06-25) # Unslotted version conflicting with lua eclasses. # No revdeps left. EAPI 5. Removal in 30 days (Bug #798693) dev-lang/lua:0 -- MS OpenPGP_signature Description: OpenPGP digital signature