Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Update pre-2021 stuff #352

Merged
merged 5 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/packages-list
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ eclass/libtool.eclass
eclass/linux-info.eclass
eclass/linux-mod.eclass
eclass/llvm.eclass
eclass/ltprune.eclass
eclass/meson.eclass
eclass/multilib-build.eclass
eclass/multilib-minimal.eclass
eclass/multilib.eclass
eclass/ninja-utils.eclass
eclass/optfeature.eclass
eclass/pax-utils.eclass
eclass/perl-functions.eclass
eclass/prefix.eclass
eclass/tmpfiles.eclass
eclass/toolchain-funcs.eclass
Expand All @@ -82,6 +84,7 @@ eclass/verify-sig.eclass
eclass/vim-doc.eclass
eclass/vim-plugin.eclass
eclass/virtualx.eclass
eclass/wrapper.eclass

net-analyzer/nmap

Expand All @@ -94,6 +97,7 @@ net-misc/rsync

sys-apps/gentoo-functions
sys-apps/help2man
sys-apps/iucode_tool

sys-devel/autoconf
sys-devel/autoconf-archive
Expand Down
4 changes: 2 additions & 2 deletions eclass/ltprune.eclass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: ltprune.eclass
Expand All @@ -12,7 +12,7 @@
#
# Discouraged. Whenever possible, please use much simpler:
# @CODE
# find "${ED}" -name '*.la' -delete || die
# find "${ED}" -type f -name '*.la' -delete || die
# @CODE

if [[ -z ${_LTPRUNE_ECLASS} ]]; then
Expand Down
74 changes: 39 additions & 35 deletions eclass/perl-functions.eclass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: perl-functions.eclass
Expand All @@ -8,24 +8,24 @@
# Seemant Kulleen <seemant@gentoo.org>
# Andreas K. Huettel <dilfridge@gentoo.org>
# Kent Fredric <kentnl@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7 8
# @SUPPORTED_EAPIS: 7 8
# @BLURB: helper functions eclass for perl modules
# @DESCRIPTION:
# The perl-functions eclass is designed to allow easier installation of perl
# modules, and their incorporation into the Gentoo Linux system.
# It provides helper functions, no phases or variable manipulation in
# global scope.

[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives

case "${EAPI:-0}" in
5|6|7|8)
case ${EAPI} in
7|8)
;;
*)
die "EAPI=${EAPI} is not supported by perl-functions.eclass"
die "${ECLASS}: EAPI ${EAPI:-0} not supported"
;;
esac

[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives

perlinfo_done=false

# @FUNCTION: perl_set_version
Expand All @@ -44,7 +44,8 @@ perlinfo_done=false
# echo $PERL_VERSION
# @CODE
perl_set_version() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

debug-print "$FUNCNAME: perlinfo_done=${perlinfo_done}"
${perlinfo_done} && return 0
perlinfo_done=true
Expand All @@ -65,7 +66,7 @@ perl_set_version() {
#
# This function used to be called fixlocalpod as well.
perl_delete_localpod() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

find "${D}" -type f -name perllocal.pod -delete
find "${D}" -depth -mindepth 1 -type d -empty -delete
Expand All @@ -75,7 +76,7 @@ perl_delete_localpod() {
# @DESCRIPTION:
# Look through ${S} for AppleDouble encoded files and get rid of them.
perl_fix_osx_extra() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

local f
find "${S}" -type f -name "._*" -print0 | while read -rd '' f ; do
Expand All @@ -92,7 +93,7 @@ perl_fix_osx_extra() {
# Bump off manpages installed by the current module such as *.3pm files as well
# as empty directories.
perl_delete_module_manpages() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

if [[ -d "${ED}"/usr/share/man ]] ; then
find "${ED}"/usr/share/man -type f -name "*.3pm" -delete
Expand All @@ -105,7 +106,8 @@ perl_delete_module_manpages() {
# Look through ${D} for .packlist files, empty .bs files and empty directories,
# and get rid of items found.
perl_delete_packlist() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

perl_set_version
if [[ -d ${D}/${VENDOR_ARCH} ]] ; then
find "${D}/${VENDOR_ARCH}" -type f -a -name .packlist -delete
Expand All @@ -118,7 +120,8 @@ perl_delete_packlist() {
# Look through ${D} for empty .bs files and empty directories,
# and get rid of items found.
perl_delete_emptybsdir() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

perl_set_version
if [[ -d ${D}/${VENDOR_ARCH} ]] ; then
find "${D}/${VENDOR_ARCH}" -type f \
Expand All @@ -132,7 +135,8 @@ perl_delete_emptybsdir() {
# Make all of ${D} user-writable, since EU::MM does silly things with
# the w bit. See bug 554346.
perl_fix_permissions() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

perl_set_version
einfo Fixing installed file permissions
fperms -R u+w /
Expand All @@ -145,7 +149,7 @@ perl_fix_permissions() {
# Remove duplicate entries; then validate all entries in the packlist against ${D}
# and prune entries that do not correspond to installed files.
perl_fix_packlist() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

local packlist_temp="${T}/.gentoo_packlist_temp"
find "${D}" -type f -name '.packlist' -print0 | while read -rd '' f ; do
Expand All @@ -161,7 +165,7 @@ perl_fix_packlist() {

# remove files that dont exist
cat "${f}" | while read -r entry; do
if [ ! -e "${D}/${entry}" ]; then
if [[ ! -e ${D}/${entry} ]]; then
einfo "Pruning surplus packlist entry ${entry}"
grep -v -x -F "${entry}" "${f}" > "${packlist_temp}"
mv "${packlist_temp}" "${f}"
Expand All @@ -176,7 +180,7 @@ perl_fix_packlist() {
# Look through ${D} for text files containing the temporary installation
# folder (i.e. ${D}). If the pattern is found, replace it with `/' and warn.
perl_remove_temppath() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do
if file "${f}" | grep -q -i " text" ; then
Expand Down Expand Up @@ -209,7 +213,8 @@ perl_remove_temppath() {
# }
# @CODE
perl_rm_files() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

local skipfile="${T}/.gentoo_makefile_skip"
local manifile="${S}/MANIFEST"
local manitemp="${T}/.gentoo_manifest_temp"
Expand All @@ -236,10 +241,9 @@ perl_rm_files() {
# lead to file collisions. Mainly for use in pkg_postinst and pkg_postrm, and makes
# only sense for perl-core packages.
perl_link_duallife_scripts() {
debug-print-function $FUNCNAME "$@"
if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then
return 0
fi
debug-print-function ${FUNCNAME} "$@"

[[ ${CATEGORY} != perl-core ]] && return 0

local i ff
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ; then
Expand Down Expand Up @@ -278,12 +282,12 @@ perl_check_env() {

for i in PERL_MM_OPT PERL5LIB PERL5OPT PERL_MB_OPT PERL_CORE PERLPREFIX; do
# Next unless match
[ -v $i ] || continue;
[[ -v $i ]] || continue;

# Warn only once, and warn only when one of the bad values are set.
# record failure here.
if [ ${errored:-0} == 0 ]; then
if [ -n "${I_KNOW_WHAT_I_AM_DOING}" ]; then
if [[ ${errored:-0} == 0 ]]; then
if [[ -n ${I_KNOW_WHAT_I_AM_DOING} ]]; then
elog "perl-module.eclass: Suspicious environment values found.";
else
eerror "perl-module.eclass: Suspicious environment values found.";
Expand All @@ -295,18 +299,18 @@ perl_check_env() {
value=${!i};

# Print ENV name/value pair
if [ -n "${I_KNOW_WHAT_I_AM_DOING}" ]; then
if [[ -n ${I_KNOW_WHAT_I_AM_DOING} ]]; then
elog " $i=\"$value\"";
else
eerror " $i=\"$value\"";
fi
done

# Return if there were no failures
[ ${errored:-0} == 0 ] && return;
[[ ${errored:-0} == 0 ]] && return;

# Return if user knows what they're doing
if [ -n "${I_KNOW_WHAT_I_AM_DOING}" ]; then
if [[ -n ${I_KNOW_WHAT_I_AM_DOING} ]]; then
elog "Continuing anyway, seems you know what you're doing."
return
fi
Expand All @@ -330,7 +334,7 @@ perl_check_env() {
# }
# @CODE
perl_doexamples() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

einfo "Installing examples into /usr/share/doc/${PF}/examples"

Expand Down Expand Up @@ -364,7 +368,7 @@ perl_doexamples() {
# @CODE

perl_has_module() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

[[ $# -gt 0 ]] || die "${FUNCNAME}: No module name provided"
[[ $# -lt 2 ]] || die "${FUNCNAME}: Too many parameters ($#)"
Expand Down Expand Up @@ -402,7 +406,7 @@ perl_has_module() {
# && echo "Test::Tester 0.017 or greater installed"
# @CODE
perl_has_module_version() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

[[ $# -gt 0 ]] || die "${FUNCNAME}: No module name provided"
[[ $# -gt 1 ]] || die "${FUNCNAME}: No module version provided"
Expand Down Expand Up @@ -443,7 +447,7 @@ perl_has_module_version() {
# @CODE

perl_get_module_version() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

[[ $# -gt 0 ]] || die "${FUNCNAME}: No module name provided"
[[ $# -lt 2 ]] || die "${FUNCNAME}: Too many parameters ($#)"
Expand Down Expand Up @@ -489,7 +493,7 @@ perl_get_module_version() {
# @CODE

perl_get_raw_vendorlib() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

[[ $# -lt 1 ]] || die "${FUNCNAME}: Too many parameters ($#)"

Expand All @@ -510,7 +514,7 @@ perl_get_raw_vendorlib() {
# @CODE

perl_get_vendorlib() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

[[ $# -lt 1 ]] || die "${FUNCNAME}: Too many parameters ($#)"

Expand Down Expand Up @@ -609,7 +613,7 @@ perl_domodule() {
# @CODE

perl_get_wikiurl() {
debug-print-function $FUNCNAME "$@"
debug-print-function ${FUNCNAME} "$@"

if [[ -z "${1}" ]]; then
echo "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}"
Expand Down
17 changes: 11 additions & 6 deletions eclass/wrapper.eclass
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: wrapper.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: create a shell wrapper script

case ${EAPI} in
5|6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

if [[ -z ${_WRAPPER_ECLASS} ]]; then
_WRAPPER_ECLASS=1

Expand All @@ -19,7 +25,6 @@ _WRAPPER_ECLASS=1
make_wrapper() {
local wrapper=$1 bin=$2 chdir=$3 libdir=$4 path=$5
local tmpwrapper="${T}/tmp.wrapper.${wrapper##*/}"
has "${EAPI:-0}" 0 1 2 && local EPREFIX=""

(
echo '#!/bin/sh'
Expand All @@ -30,11 +35,11 @@ make_wrapper() {
else
var=LD_LIBRARY_PATH
fi
cat <<-EOF
sed 's/^X//' <<-EOF || die
if [ "\${${var}+set}" = "set" ] ; then
export ${var}="\${${var}}:${EPREFIX}${libdir}"
X export ${var}="\${${var}}:${EPREFIX}${libdir}"
else
export ${var}="${EPREFIX}${libdir}"
X export ${var}="${EPREFIX}${libdir}"
fi
EOF
fi
Expand All @@ -52,7 +57,7 @@ make_wrapper() {
newexe "${tmpwrapper}" "${wrapper}"
) || die
else
newbin "${tmpwrapper}" "${wrapper}" || die
newbin "${tmpwrapper}" "${wrapper}"
fi
}

Expand Down
10 changes: 10 additions & 0 deletions sys-apps/iucode_tool/files/iucode_tool-2.3.1-limits-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Fixes build on musl.
--- a/iucode_tool.c
+++ b/iucode_tool.c
@@ -29,6 +29,7 @@
#include <assert.h>
#include <argp.h>
#include <dirent.h>
+#include <limits.h>
#include <time.h>
#include <cpuid.h>
10 changes: 8 additions & 2 deletions sys-apps/iucode_tool/iucode_tool-2.3.1-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand All @@ -10,6 +10,12 @@ SRC_URI="https://gitlab.com/iucode-tool/releases/raw/master/${PN/_/-}_${PV}.tar.
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""

RDEPEND="elibc_musl? ( sys-libs/argp-standalone )"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${PN/_/-}-${PV}"

PATCHES=(
"${FILESDIR}"/${PN}-2.3.1-limits-include.patch
)
Loading