Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 594688 Details for
Bug 699050
net-irc/unrealircd-4.2.4.1 with app-crypt/argon2-20190702 fails to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
environment
environment (text/plain), 29.47 KB, created by
Toralf Förster
on 2019-10-31 19:43:15 UTC
(
hide
)
Description:
environment
Filename:
MIME Type:
Creator:
Toralf Förster
Created:
2019-10-31 19:43:15 UTC
Size:
29.47 KB
patch
obsolete
>declare -x ABI="amd64" >declare -x ABI_MIPS="" >declare -x ABI_PPC="" >declare -x ABI_RISCV="" >declare -x ABI_S390="" >declare -x ABI_X86="64" >declare -x ADA_TARGET="" >declare -x ALSA_CARDS="" >declare -x APACHE2_MODULES="" >declare -x APACHE2_MPMS="" >declare -x ARCH="amd64" >declare BDEPEND="" >declare -x BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr python_targets_python3_6 python_targets_python2_7 multilib hardened pic xtpax -jit -orc" >declare -x CALLIGRA_FEATURES="" >declare -x CAMERAS="" >declare -x CATKIN_PREFIX_PATH="/usr" >declare -x CBUILD="x86_64-pc-linux-gnu" >declare -x CFLAGS="-O2 -pipe -march=native" >declare -x CFLAGS_amd64="-m64" >declare -x CFLAGS_x32="-mx32" >declare -x CFLAGS_x86="-m32" >declare -x CHOST="x86_64-pc-linux-gnu" >declare -x CHOST_amd64="x86_64-pc-linux-gnu" >declare -x CHOST_x32="x86_64-pc-linux-gnux32" >declare -x CHOST_x86="i686-pc-linux-gnu" >declare -x COLLECTD_PLUGINS="" >declare -x COMMON_FLAGS="-O2 -pipe -march=native" >declare -x CPU_FLAGS_ARM="" >declare -x CPU_FLAGS_PPC="" >declare -x CPU_FLAGS_X86="" >declare -x CURL_SSL="" >declare -x CXXFLAGS="-O2 -pipe -march=native" >declare -x DEFAULT_ABI="amd64" >declare -x DEFINED_PHASES=" configure install postinst prepare pretend" >declare DEPEND=" > acct-group/unrealircd > acct-user/unrealircd > >=app-crypt/argon2-20171227-r1:= > dev-libs/libpcre2 > >=net-dns/c-ares-1.7:= > net-libs/libnsl:= > sys-libs/zlib > !libressl? ( dev-libs/openssl:0= ) > libressl? ( dev-libs/libressl:= ) > curl? ( net-misc/curl[adns] ) > > virtual/pkgconfig > || ( dev-libs/openssl:0 dev-libs/libressl:0 )" >declare DESCRIPTION="An advanced Internet Relay Chat daemon" >declare -x DESTTREE="/usr" >declare -x DIROPTIONS="-m0755" >declare -a DOCS=([0]="doc/Authors" [1]="doc/Donation" [2]="doc/RELEASE-NOTES" [3]="doc/RELEASE-NOTES.old" [4]="doc/tao.of.irc" [5]="doc/technical/" [6]="doc/translations.txt") >declare -x DSSP="/usr/bin/dssp" >declare -x EAPI="6" >declare -x EGO_BUILD_FLAGS="-p 1" >declare -x ELIBC="glibc" >declare -x EMBOSS_ACDROOT="/usr/share/EMBOSS/acd" >declare -x EMBOSS_DATA="/usr/share/EMBOSS/data" >declare -x ENLIGHTENMENT_MODULES="" >declare -x ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" >declare -- EPOCHREALTIME="1572548988.119670" >declare -- EPOCHSECONDS="1572548988" >declare -x EXEOPTIONS="-m0755" >declare -x FCFLAGS="-O2 -pipe -march=native" >declare -x FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port= ; exec rsync --rsh=\\\"ssh \\\${port:+-p\\\${port}} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\"" >declare -x FFLAGS="-O2 -pipe -march=native" >declare -x FFTOOLS="" >declare -x FLTK_DOCDIR="/usr/share/doc/fltk-1.3.5-r2/html" >declare -x G4ABLADATA="/usr/share/Geant4-10.5.1/data/G4ABLA3.1" >declare -x G4ENSDFSTATEDATA="/usr/share/Geant4-10.5.1/data/G4ENSDFSTATE2.2" >declare -x G4INCLDATA="/usr/share/Geant4-10.5.1/data/G4INCL1.0" >declare -x G4LEDATA="/usr/share/Geant4-10.5.1/data/G4EMLOW7.7" >declare -x G4LEVELGAMMADATA="/usr/share/Geant4-10.5.1/data/PhotonEvaporation5.3" >declare -x G4NEUTRONHPDATA="/usr/share/Geant4-10.5.1/data/G4NDL4.5" >declare -x G4PARTICLEXSDATA="/usr/share/Geant4-10.5.1/data/G4PARTICLEXS1.1" >declare -x G4PIIDATA="/usr/share/Geant4-10.5.1/data/G4PII1.3" >declare -x G4RADIOACTIVEDATA="/usr/share/Geant4-10.5.1/data/RadioactiveDecay5.3" >declare -x G4REALSURFACEDATA="/usr/share/Geant4-10.5.1/data/RealSurface2.1.1" >declare -x G4SAIDXSDATA="/usr/share/Geant4-10.5.1/data/G4SAIDDATA2.0" >declare -x GCC_COLORS="" >declare -x GCC_SPECS="" >declare -x GO19CONCURRENTCOMPILATION="0" >declare -x GOMAXPROCS="1" >declare -x GPSD_PROTOCOLS="" >declare -x GREP_COLORS="never" >declare -x GRUB_PLATFORMS="" >declare HDEPEND="" >declare HOMEPAGE="https://www.unrealircd.org/" >declare -x IBPATH="/usr/sbin" >declare -x INHERITED=" eapi7-ver ssl-cert" >declare -x INPUT_DEVICES="" >declare -x INSDESTTREE="" >declare -x INSOPTIONS="-m0644" >declare IUSE="class-nofakelag curl +extban-stacking libressl +operoverride operoverride-verify > +prefixaq showlistmodes shunnotices +usermod " >declare -x IUSE_EFFECTIVE="abi_x86_64 alpha amd64 amd64-fbsd amd64-linux arm arm64 class-nofakelag curl elibc_AIX elibc_Cygwin elibc_Darwin elibc_DragonFly elibc_FreeBSD elibc_HPUX elibc_Interix elibc_NetBSD elibc_OpenBSD elibc_SunOS elibc_Winnt elibc_bionic elibc_glibc elibc_mingw elibc_mintlib elibc_musl elibc_uclibc extban-stacking hppa ia64 kernel_AIX kernel_Darwin kernel_FreeBSD kernel_HPUX kernel_NetBSD kernel_OpenBSD kernel_SunOS kernel_Winnt kernel_freemint kernel_linux libressl m68k m68k-mint mips operoverride operoverride-verify ppc ppc-aix ppc-macos ppc64 ppc64-linux prefix prefix-guest prefix-stack prefixaq riscv s390 sh showlistmodes shunnotices sparc sparc-solaris sparc64-solaris userland_BSD userland_GNU usermod x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt" >declare -x IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack" >declare -x JAVAC="/bin/javac" >declare -x JDK_HOME="" >declare -x KERNEL="linux" >declare -x KEYWORDS="amd64 ppc x86 ~amd64-linux" >declare -x L10N="" >declare -x LADSPA_PATH="/usr/lib64/ladspa" >declare -x LANG="en_US.UTF-8" >declare -x LCD_DEVICES="" >declare -x LC_COLLATE="C" >declare -x LC_MESSAGES="C" >declare -x LDFLAGS="-Wl,-O1 -Wl,--as-needed" >declare -x LDFLAGS_amd64="-m elf_x86_64" >declare -x LDFLAGS_x32="-m elf32_x86_64" >declare -x LDFLAGS_x86="-m elf_i386" >declare -x LIBDIR_amd64="lib64" >declare -x LIBDIR_x32="libx32" >declare -x LIBDIR_x86="lib" >declare -x LIBOPTIONS="-m0644" >declare -x LIBREOFFICE_EXTENSIONS="" >declare -x LICENSE="GPL-2" >declare -x LIRC_DEVICES="" >declare -x LLVM_TARGETS="" >declare -x MAKEOPTS="-j1" >declare -x MANPAGER="manpager" >declare -x MONKEYD_PLUGINS="" >declare -x MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed" >declare -x MULTILIB_ABIS="amd64" >declare -x MULTILIB_STRICT_DENY="64-bit.*shared object" >declare -x MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib" >declare -x MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)" >declare -x NETBEANS_MODULES="" >declare -x NGINX_MODULES_HTTP="" >declare -x NGINX_MODULES_MAIL="" >declare -x NGINX_MODULES_STREAM="" >declare -x NINJAFLAGS="-j1" >declare -x OFED_DRIVERS="" >declare -x OFFICE_IMPLEMENTATION="" >declare -x OMP_DYNAMIC="FALSE" >declare -x OMP_NESTED="FALSE" >declare -x OMP_NUM_THREADS="1" >declare -x OPENGL_PROFILE="xorg-x11" >declare -x OPENMPI_FABRICS="" >declare -x OPENMPI_OFED_FEATURES="" >declare -x OPENMPI_RM="" >declare -x PATH="/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/lib/llvm/9/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" >declare -x PAX_MARKINGS="none" >declare PDEPEND="" >declare -x PHP_TARGETS="" >declare -x PORTAGE_COMPRESSION_COMMAND="bzip2" >declare -a PORTAGE_DOCOMPRESS=([0]="/usr/share/doc" [1]="/usr/share/info" [2]="/usr/share/man") >declare -x PORTAGE_DOCOMPRESS_SIZE_LIMIT="128" >declare -a PORTAGE_DOCOMPRESS_SKIP=([0]="/usr/share/doc/unrealircd-4.2.4.1/html") >declare -a PORTAGE_DOSTRIP=([0]="/") >declare -a PORTAGE_DOSTRIP_SKIP=() >declare -x PORT_LOGDIR="/var/log/portage" >declare -x POSTGRES_TARGETS="" >declare -x PRELINK_PATH_MASK="/usr/lib64/klibc" >declare -x PROFILE_IS_HARDENED="1" >declare -x PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USERLAND USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL USE_EXPAND_VALUES_USERLAND" >declare -x PROPERTIES="" >declare -x PYTHONDONTWRITEBYTECODE="1" >declare -x PYTHONPATH="/usr/lib/entropy/lib" >declare -x PYTHON_SINGLE_TARGET="" >declare -x PYTHON_TARGETS="" >declare -x QEMU_SOFTMMU_TARGETS="" >declare -x QEMU_USER_TARGETS="" >declare RDEPEND=" > acct-group/unrealircd > acct-user/unrealircd > >=app-crypt/argon2-20171227-r1:= > dev-libs/libpcre2 > >=net-dns/c-ares-1.7:= > net-libs/libnsl:= > sys-libs/zlib > !libressl? ( dev-libs/openssl:0= ) > libressl? ( dev-libs/libressl:= ) > curl? ( net-misc/curl[adns] ) > " >declare REPOSITORY >declare REQUIRED_USE="" >declare -x RESTRICT="" >declare -x RESUMECOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port= ; exec rsync --rsh=\\\"ssh \\\${port:+-p\\\${port}} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\"" >declare -x RNAVIEW="/usr/share/rnaview" >declare -x ROS_MASTER_URI="http://localhost:11311/" >declare -x ROS_MESSAGES="" >declare -x ROS_PACKAGE_PATH="/usr/share/ros_packages" >declare -x ROS_ROOT="/usr/share/ros" >declare -x RUBY_TARGETS="" >declare -x RUSTFLAGS="-C target-cpu=native -v -C codegen-units=1" >declare -x RUST_TEST_TASKS="1" >declare -x RUST_TEST_THREADS="1" >declare -x S="/var/tmp/portage/net-irc/unrealircd-4.2.4.1/work/unrealircd-4.2.4.1" >declare -x SANDBOX_DEBUG="0" >declare -x SANDBOX_DENY="" >declare -x SANDBOX_PREDICT="/var/tmp/portage/net-irc/unrealircd-4.2.4.1/homedir:/var/cache/man:/var/cache/fontconfig" >declare -x SANDBOX_READ="/:/var/tmp/portage" >declare -x SANDBOX_VERBOSE="1" >declare -x SANDBOX_WRITE=":/dev/console:/dev/fd:/dev/full:/dev/null:/dev/ptmx:/dev/pts/:/dev/pty:/dev/shm:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/proc/self/fd:/tmp/:/usr/lib/cf:/usr/lib/conftest:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/tmp/:/var/tmp/portage:/var/tmp/portage/net-irc/unrealircd-4.2.4.1/homedir/.bash_history" >declare -x SANE_BACKENDS="" >declare -x SBCL_HOME="/usr/lib64/sbcl" >declare -x SBCL_SOURCE_ROOT="/usr/lib64/sbcl/src" >declare -x SGML_CATALOG_FILES="/etc/sgml/xml-docbook-4.1.2.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/xml-docbook-4.5.cat:/etc/sgml/xml-docbook-4.2.cat:/etc/sgml/xml-docbook-4.4.cat:/etc/sgml/xml-docbook-4.3.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.4.cat:/etc/sgml/xml-simple-docbook-4.1.2.4.cat:/etc/sgml/xml-simple-docbook-1.0.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/xhtml1.cat:/etc/sgml/sgml-lite.cat" >declare -x SHELL="/bin/bash" >declare -x SLOT="0" >declare SRC_URI="https://www.unrealircd.org/unrealircd4/unrealircd-4.2.4.1.tar.gz" >declare -- SSL_CERT_MANDATORY="1" >declare -- SSL_CERT_USE="ssl" >declare -- SSL_DEPS_SKIP="0" >declare -x SVDIR="/etc/service/" >declare -x SYMLINK_LIB="no" >declare -x TASKDDATA="/var/lib/taskd" >declare -x TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1" >declare -x USE="abi_x86_64 amd64 elibc_glibc extban-stacking kernel_linux libressl operoverride prefixaq userland_GNU usermod" >declare -x USERLAND="GNU" >declare -x USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL USERLAND" >declare -x USE_EXPAND_UNPREFIXED="ARCH" >declare -x USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-fbsd amd64-linux arm arm64 hppa ia64 m68k m68k-mint mips ppc ppc64 ppc64-linux ppc-aix ppc-macos riscv s390 sh sparc sparc64-solaris sparc-solaris x64-cygwin x64-macos x64-solaris x86 x86-cygwin x86-fbsd x86-linux x86-macos x86-solaris x86-winnt" >declare -x USE_EXPAND_VALUES_ELIBC="AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt" >declare -x USE_EXPAND_VALUES_KERNEL="AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt" >declare -x USE_EXPAND_VALUES_USERLAND="BSD GNU" >declare -x UWSGI_PLUGINS="" >declare -x VIDEO_CARDS="" >declare -x VOICEMAIL_STORAGE="" >declare -x VTKHOME="/usr" >declare -x VTK_DATA_ROOT="/usr/share/vtk/data" >declare -x VTK_DIR="/usr/lib64/vtk-8.1" >declare -x XERCESC_NLS_HOME="/usr/share/xerces-c/msg" >declare -x XFCE_PLUGINS="" >declare -x XTABLES_ADDONS="" >declare -x _E_DOCDESTTREE_="" >declare -x _E_EXEDESTTREE_="" >__eapi6_src_install () >{ > if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then > emake DESTDIR="${D}" install; > fi; > einstalldocs >} >__eapi6_src_prepare () >{ > if ___is_indexed_array_var PATCHES; then > [[ ${#PATCHES[@]} -gt 0 ]] && eapply "${PATCHES[@]}"; > else > if [[ -n ${PATCHES} ]]; then > eapply ${PATCHES}; > fi; > fi; > eapply_user >} >_ver_compare () >{ > local va=${1} vb=${2} a an al as ar b bn bl bs br re LC_ALL=C; > re="^([0-9]+(\.[0-9]+)*)([a-z]?)((_(alpha|beta|pre|rc|p)[0-9]*)*)(-r[0-9]+)?$"; > [[ ${va} =~ ${re} ]] || die "${FUNCNAME}: invalid version: ${va}"; > an=${BASH_REMATCH[1]}; > al=${BASH_REMATCH[3]}; > as=${BASH_REMATCH[4]}; > ar=${BASH_REMATCH[7]}; > [[ ${vb} =~ ${re} ]] || die "${FUNCNAME}: invalid version: ${vb}"; > bn=${BASH_REMATCH[1]}; > bl=${BASH_REMATCH[3]}; > bs=${BASH_REMATCH[4]}; > br=${BASH_REMATCH[7]}; > _ver_compare_int "${an%%.*}" "${bn%%.*}" || return; > while [[ ${an} == *.* && ${bn} == *.* ]]; do > an=${an#*.}; > bn=${bn#*.}; > a=${an%%.*}; > b=${bn%%.*}; > if [[ ${a} == 0* || ${b} == 0* ]]; then > [[ ${a} =~ 0+$ ]] && a=${a%"${BASH_REMATCH[0]}"}; > [[ ${b} =~ 0+$ ]] && b=${b%"${BASH_REMATCH[0]}"}; > [[ ${a} > ${b} ]] && return 3; > [[ ${a} < ${b} ]] && return 1; > else > _ver_compare_int "${a}" "${b}" || return; > fi; > done; > [[ ${an} == *.* ]] && return 3; > [[ ${bn} == *.* ]] && return 1; > [[ ${al} > ${bl} ]] && return 3; > [[ ${al} < ${bl} ]] && return 1; > as=${as#_}${as:+_}; > bs=${bs#_}${bs:+_}; > while [[ -n ${as} && -n ${bs} ]]; do > a=${as%%_*}; > b=${bs%%_*}; > if [[ ${a%%[0-9]*} == "${b%%[0-9]*}" ]]; then > _ver_compare_int "${a##*[a-z]}" "${b##*[a-z]}" || return; > else > [[ ${a%%[0-9]*} == p ]] && return 3; > [[ ${b%%[0-9]*} == p ]] && return 1; > [[ ${a} > ${b} ]] && return 3 || return 1; > fi; > as=${as#*_}; > bs=${bs#*_}; > done; > if [[ -n ${as} ]]; then > [[ ${as} == p[_0-9]* ]] && return 3 || return 1; > else > if [[ -n ${bs} ]]; then > [[ ${bs} == p[_0-9]* ]] && return 1 || return 3; > fi; > fi; > _ver_compare_int "${ar#-r}" "${br#-r}" || return; > return 2 >} >_ver_compare_int () >{ > local a=$1 b=$2 d=$(( ${#1}-${#2} )); > if [[ ${d} -gt 0 ]]; then > printf -v b "%0${d}d%s" 0 "${b}"; > else > if [[ ${d} -lt 0 ]]; then > printf -v a "%0$(( -d ))d%s" 0 "${a}"; > fi; > fi; > [[ ${a} > ${b} ]] && return 3; > [[ ${a} == "${b}" ]] >} >_ver_parse_range () >{ > local range=${1}; > local max=${2}; > [[ ${range} == [0-9]* ]] || die "${FUNCNAME}: range must start with a number"; > start=${range%-*}; > [[ ${range} == *-* ]] && end=${range#*-} || end=${start}; > if [[ -n ${end} ]]; then > [[ ${start} -le ${end} ]] || die "${FUNCNAME}: end of range must be >= start"; > [[ ${end} -le ${max} ]] || end=${max}; > else > end=${max}; > fi >} >_ver_split () >{ > local v=${1} LC_ALL=C; > comp=(); > local s c; > while [[ -n ${v} ]]; do > s=${v%%[a-zA-Z0-9]*}; > v=${v:${#s}}; > [[ ${v} == [0-9]* ]] && c=${v%%[^0-9]*} || c=${v%%[^a-zA-Z]*}; > v=${v:${#c}}; > comp+=("${s}" "${c}"); > done >} >eapply () >{ > local failed patch_cmd=patch; > local -x LC_COLLATE=POSIX; > type -P gpatch > /dev/null && patch_cmd=gpatch; > function _eapply_patch () > { > local f=${1}; > local prefix=${2}; > ebegin "${prefix:-Applying }${f##*/}"; > ${patch_cmd} -p1 -f -s -g0 --no-backup-if-mismatch "${patch_options[@]}" < "${f}"; > failed=${?}; > if ! eend "${failed}"; then > __helpers_die "patch -p1 ${patch_options[*]} failed with ${f}"; > fi > }; > local patch_options=() files=(); > local i found_doublehyphen; > for ((i = 1; i <= ${#@}; ++i )) > do > if [[ ${@:i:1} == -- ]]; then > patch_options=("${@:1:i-1}"); > files=("${@:i+1}"); > found_doublehyphen=1; > break; > fi; > done; > if [[ -z ${found_doublehyphen} ]]; then > for ((i = 1; i <= ${#@}; ++i )) > do > if [[ ${@:i:1} != -* ]]; then > patch_options=("${@:1:i-1}"); > files=("${@:i}"); > break; > fi; > done; > for i in "${files[@]}"; > do > if [[ ${i} == -* ]]; then > die "eapply: all options must be passed before non-options"; > fi; > done; > fi; > if [[ ${#files[@]} -eq 0 ]]; then > die "eapply: no files specified"; > fi; > local f; > for f in "${files[@]}"; > do > if [[ -d ${f} ]]; then > function _eapply_get_files () > { > local LC_ALL=POSIX; > local prev_shopt=$(shopt -p nullglob); > shopt -s nullglob; > local f; > for f in "${1}"/*; > do > if [[ ${f} == *.diff || ${f} == *.patch ]]; then > files+=("${f}"); > fi; > done; > ${prev_shopt} > }; > local files=(); > _eapply_get_files "${f}"; > [[ ${#files[@]} -eq 0 ]] && die "No *.{patch,diff} files in directory ${f}"; > einfo "Applying patches from ${f} ..."; > local f2; > for f2 in "${files[@]}"; > do > _eapply_patch "${f2}" ' '; > [[ ${failed} -ne 0 ]] && return "${failed}"; > done; > else > _eapply_patch "${f}"; > [[ ${failed} -ne 0 ]] && return "${failed}"; > fi; > done; > return 0 >} >eapply_user () >{ > [[ ${EBUILD_PHASE} == prepare ]] || die "eapply_user() called during invalid phase: ${EBUILD_PHASE}"; > local tagfile=${T}/.portage_user_patches_applied; > [[ -f ${tagfile} ]] && return; > >> "${tagfile}"; > local basedir=${PORTAGE_CONFIGROOT%/}/etc/portage/patches; > local applied d f; > local -A _eapply_user_patches; > local prev_shopt=$(shopt -p nullglob); > shopt -s nullglob; > for d in "${basedir}"/${CATEGORY}/{${P}-${PR},${P},${PN}}{:${SLOT%/*},}; > do > for f in "${d}"/*; > do > if [[ ( ${f} == *.diff || ${f} == *.patch ) && -z ${_eapply_user_patches[${f##*/}]} ]]; then > _eapply_user_patches[${f##*/}]=${f}; > fi; > done; > done; > if [[ ${#_eapply_user_patches[@]} -gt 0 ]]; then > while read -r -d '' f; do > f=${_eapply_user_patches[${f}]}; > if [[ -s ${f} ]]; then > eapply "${f}"; > applied=1; > fi; > done < <(printf -- '%s\0' "${!_eapply_user_patches[@]}" | > LC_ALL=C sort -z); > fi; > ${prev_shopt}; > [[ -n ${applied} ]] && ewarn "User patches applied." >} >einstalldocs () >{ > ( if ! declare -p DOCS &> /dev/null; then > local d; > for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS FAQ CREDITS CHANGELOG; > do > [[ -f ${d} && -s ${d} ]] && docinto / && dodoc "${d}"; > done; > else > if ___is_indexed_array_var DOCS; then > [[ ${#DOCS[@]} -gt 0 ]] && docinto / && dodoc -r "${DOCS[@]}"; > else > [[ -n ${DOCS} ]] && docinto / && dodoc -r ${DOCS}; > fi; > fi ); > ( if ___is_indexed_array_var HTML_DOCS; then > [[ ${#HTML_DOCS[@]} -gt 0 ]] && docinto html && dodoc -r "${HTML_DOCS[@]}"; > else > [[ -n ${HTML_DOCS} ]] && docinto html && dodoc -r ${HTML_DOCS}; > fi ) >} >gen_cnf () >{ > SSL_CONF="${T}/${$}ssl.cnf"; > SSL_SERIAL="${T}/${$}ca.ser"; > SSL_RANDOM="${T}/environment:${T}/eclass-debug.log:/etc/resolv.conf"; > SSL_DAYS="${SSL_DAYS:-730}"; > SSL_BITS="${SSL_BITS:-4096}"; > SSL_MD="${SSL_MD:-sha256}"; > SSL_COUNTRY="${SSL_COUNTRY:-US}"; > SSL_STATE="${SSL_STATE:-California}"; > SSL_LOCALITY="${SSL_LOCALITY:-Santa Barbara}"; > SSL_ORGANIZATION="${SSL_ORGANIZATION:-SSL Server}"; > SSL_UNIT="${SSL_UNIT:-For Testing Purposes Only}"; > SSL_COMMONNAME="${SSL_COMMONNAME:-localhost}"; > SSL_EMAIL="${SSL_EMAIL:-root@localhost}"; > echo "01" > "${SSL_SERIAL}"; > ebegin "Generating OpenSSL configuration${1:+ for CA}"; > cat <<-EOF > "${SSL_CONF}" >[ req ] >prompt = no >default_bits = ${SSL_BITS} >distinguished_name = req_dn >[ req_dn ] >C = ${SSL_COUNTRY} >ST = ${SSL_STATE} >L = ${SSL_LOCALITY} >O = ${SSL_ORGANIZATION} >OU = ${SSL_UNIT} >CN = ${SSL_COMMONNAME}${1:+ CA} >emailAddress = ${SSL_EMAIL} >EOF > > eend $?; > return $? >} >gen_crt () >{ > local base=$(get_base "$1"); > if [ "${1}" ]; then > ebegin "Generating self-signed X.509 Certificate for CA"; > openssl x509 -extfile "${SSL_CONF}" -${SSL_MD} -days ${SSL_DAYS} -req -signkey "${base}.key" -in "${base}.csr" -out "${base}.crt" &> /dev/null; > else > local ca=$(get_base 1); > ebegin "Generating authority-signed X.509 Certificate"; > openssl x509 -extfile "${SSL_CONF}" -days ${SSL_DAYS} -req -CAserial "${SSL_SERIAL}" -CAkey "${ca}.key" -CA "${ca}.crt" -${SSL_MD} -in "${base}.csr" -out "${base}.crt" &> /dev/null; > fi; > eend $?; > return $? >} >gen_csr () >{ > local base=$(get_base "$1"); > ebegin "Generating Certificate Signing Request${1:+ for CA}"; > openssl req -config "${SSL_CONF}" -new -key "${base}.key" -out "${base}.csr" &> /dev/null; > eend $?; > return $? >} >gen_key () >{ > local base=$(get_base "$1"); > ebegin "Generating ${SSL_BITS} bit RSA key${1:+ for CA}"; > if openssl version | grep -i libressl > /dev/null; then > openssl genrsa -out "${base}.key" "${SSL_BITS}" &> /dev/null; > else > openssl genrsa -rand "${SSL_RANDOM}" -out "${base}.key" "${SSL_BITS}" &> /dev/null; > fi; > eend $?; > return $? >} >gen_pem () >{ > local base=$(get_base "$1"); > ebegin "Generating PEM Certificate"; > ( cat "${base}.key"; > echo; > cat "${base}.crt" ) > "${base}.pem"; > eend $?; > return $? >} >get_base () >{ > if [ "${1}" ]; then > echo "${T}/${$}ca"; > else > echo "${T}/${$}server"; > fi >} >get_libdir () >{ > local libdir_var="LIBDIR_${ABI}"; > local libdir="lib"; > [[ -n ${ABI} && -n ${!libdir_var} ]] && libdir=${!libdir_var}; > echo "${libdir}" >} >in_iuse () >{ > local use=${1}; > if [[ -z "${use}" ]]; then > echo "!!! in_iuse() called without a parameter." 1>&2; > echo "!!! in_iuse <USEFLAG>" 1>&2; > die "in_iuse() called without a parameter"; > fi; > local liuse=(${IUSE_EFFECTIVE}); > has "${use}" "${liuse[@]#[+-]}" >} >install_cert () >{ > if [ $# -lt 1 ]; then > eerror "At least one argument needed"; > return 1; > fi; > case ${EBUILD_PHASE} in > unpack | prepare | configure | compile | test | install) > die "install_cert cannot be called in ${EBUILD_PHASE}" > ;; > esac; > gen_cnf 1 || return 1; > gen_key 1 || return 1; > gen_csr 1 || return 1; > gen_crt 1 || return 1; > echo; > gen_cnf || return 1; > echo; > local count=0; > for cert in "$@"; > do > if [ -z "${cert##*/}" ]; then > ewarn "Invalid certification requested, skipping"; > continue; > fi; > for type in key csr crt pem; > do > if [ -e "${ROOT}${cert}.${type}" ]; then > ewarn "${ROOT}${cert}.${type}: exists, skipping"; > continue 2; > fi; > done; > gen_key || continue; > gen_csr || continue; > gen_crt || continue; > gen_pem || continue; > echo; > local base=$(get_base); > install -d "${ROOT}${cert%/*}"; > install -m0400 "${base}.key" "${ROOT}${cert}.key"; > install -m0444 "${base}.csr" "${ROOT}${cert}.csr"; > install -m0444 "${base}.crt" "${ROOT}${cert}.crt"; > install -m0400 "${base}.pem" "${ROOT}${cert}.pem"; > : $(( ++count )); > done; > if [ ${count} = 0 ]; then > eerror "No certificates were generated"; > return 1; > else > if [ ${count} != ${#} ]; then > ewarn "Some requested certificates were not generated"; > fi; > fi >} >pkg_nofetch () >{ > default >} >pkg_postinst () >{ > if [[ ! -f "${EROOT}"etc/${PN}/ssl/server.cert.key ]]; then > if [[ -f "${EROOT}"etc/${PN}/server.cert.key ]]; then > ewarn "The location ${PN} looks for SSL certificates has changed"; > ewarn "from ${EROOT}etc/${PN} to ${EROOT}etc/${PN}/ssl."; > ewarn "Please move your existing certificates."; > else > ( umask 0037; > install_cert /etc/${PN}/ssl/server.cert; > chown unrealircd "${EROOT}"etc/${PN}/ssl/server.cert.*; > ln -snf server.cert.key "${EROOT}"etc/${PN}/ssl/server.key.pem ); > fi; > fi; > local unrealircd_conf="${EROOT}"etc/${PN}/${PN}.conf; > if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then > ebegin "Generating cloak-keys"; > local keys=($(su ${PN} -s /bin/sh -c "${PN} -k 2>&1 | tail -n 3")); > [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]]; > eend $?; > ebegin "Substituting cloak-keys into ${unrealircd_conf}"; > sed -i -e '/cloak-keys/ { >n >s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/ >n >s/"and another one";/"'"${keys[1]}"'";/ >n >s/"and another one";/"'"${keys[2]}"'";/ >}' "${unrealircd_conf}"; > eend $?; > fi; > elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"; > elog; > elog "You can also configure ${PN} start at boot with rc-update(1)."; > elog "It is recommended to run unrealircd as an unprivileged user."; > elog "The provided init.d script does this for you." >} >pkg_pretend () >{ > local v; > for v in ${REPLACING_VERSIONS}; > do > ver_test "${v}" -ge 4 && continue; > ewarn "The configuration file format has changed since ${v}."; > ewarn "Please be prepared to manually update them and visit:"; > ewarn "https://www.unrealircd.org/docs/Upgrading_from_3.2.x"; > break; > done >} >src_compile () >{ > default >} >src_configure () >{ > econf --with-bindir="${EPREFIX}"/usr/bin --with-cachedir="${EPREFIX}"/var/lib/${PN} --with-confdir="${EPREFIX}"/etc/${PN} --with-datadir="${EPREFIX}"/var/lib/${PN} --with-docdir="${EPREFIX}"/usr/share/doc/${PF} --with-logdir="${EPREFIX}"/var/log/${PN} --with-modulesdir="${EPREFIX}"/usr/"$(get_libdir)"/${PN}/modules --without-privatelibdir --with-pidfile="${EPREFIX}"/run/${PN}/ircd.pid --with-tmpdir="${EPREFIX}"/var/lib/${PN}/tmp --with-maxconnections=1024 --with-nick-history=2000 --with-sendq=3000000 --with-permissions=0640 --with-system-argon2 --with-system-cares --with-system-pcre2 --without-tre --enable-dynamic-linking --enable-ssl="${EPREFIX}"/usr $(use_enable curl libcurl "${EPREFIX}"/usr) $(use_enable prefixaq) $(use_with showlistmodes) $(use_with shunnotices) $(use_with !operoverride no-operoverride) $(use_with operoverride-verify) $(use_with !usermod disableusermod) $(use_with !extban-stacking disable-extendedban-stacking) >} >src_install () >{ > keepdir /var/log/${PN}; > keepdir /var/lib/${PN}/tmp; > newbin src/ircd ${PN}; > ( cd src/modules || die; > for subdir in $(find . -type d -print); > do > if [[ -n $(shopt -s nullglob; echo ${subdir}/*.so) ]]; then > exeinto /usr/$(get_libdir)/${PN}/modules/"${subdir}"; > doexe "${subdir}"/*.so; > fi; > done ); > insinto /etc/${PN}; > doins -r doc/conf/{aliases,help}; > doins doc/conf/*.conf; > newins doc/conf/examples/example.conf ${PN}.conf; > keepdir /etc/${PN}/ssl; > einstalldocs; > newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}; > newconfd "${FILESDIR}"/${PN}.confd-r3 ${PN}; > fperms -R 0640 /etc/${PN}; > fperms 0750 /etc/${PN}{,/aliases,/help}; > fperms 0750 /etc/${PN}/ssl; > fperms 0770 /var/log/${PN}; > fperms 0770 /var/lib/${PN}{,/tmp}; > fowners -R root:unrealircd /{etc,var/{lib,log}}/${PN} >} >src_prepare () >{ > rm -r extras || die; > if use class-nofakelag; then > sed -i -e 's:#undef\( FAKELAG_CONFIGURABLE\):#define\1:' include/config.h || die; > fi; > sed -i -e 's:%s/ssl/curl-ca-bundle.crt:%s/../ssl/certs/ca-certificates.crt:' src/s_conf.c || die; > eapply_user >} >src_test () >{ > default >} >src_unpack () >{ > default >} >ver_cut () >{ > local range=${1}; > local v=${2:-${PV}}; > local start end; > local -a comp; > _ver_split "${v}"; > local max=$((${#comp[@]}/2)); > _ver_parse_range "${range}" "${max}"; > if [[ ${start} -gt 0 ]]; then > start=$(( start*2 - 1 )); > fi; > printf "%s" "${comp[@]:start:end*2-start}" ' >' >} >ver_rs () >{ > local v; > (( ${#} & 1 )) && v=${@: -1} || v=${PV}; > local start end i; > local -a comp; > _ver_split "${v}"; > local max=$((${#comp[@]}/2 - 1)); > while [[ ${#} -ge 2 ]]; do > _ver_parse_range "${1}" "${max}"; > for ((i = start*2; i <= end*2; i+=2 )) > do > [[ ${i} -eq 0 && -z ${comp[i]} ]] && continue; > comp[i]=${2}; > done; > shift 2; > done; > local IFS=; > echo "${comp[*]}" >} >ver_test () >{ > local va op vb; > if [[ $# -eq 3 ]]; then > va=${1}; > shift; > else > va=${PVR}; > fi; > [[ $# -eq 2 ]] || die "${FUNCNAME}: bad number of arguments"; > op=${1}; > vb=${2}; > case ${op} in > -eq | -ne | -lt | -le | -gt | -ge) > > ;; > *) > die "${FUNCNAME}: invalid operator: ${op}" > ;; > esac; > _ver_compare "${va}" "${vb}"; > test $? "${op}" 2 >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 699050
:
594684
|
594686
| 594688 |
594690
|
594692
|
594694
|
594696