During emerge an error happens regarding a failed source patch Reproducible: Always Steps to Reproduce: 1. Emerge media-sound/tenacity-9999::tezeta with the given config Actual Results: media-sound/tenacity-9999::tezeta cannot emerge Expected Results: Successful emerge of the package Emerge fails with the following error: >>> Preparing source in /var/tmp/portage/media-sound/tenacity-9999/work/tenacity-9999 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-sound/tenacity-9999/work/tenacity-9999" * Build directory (BUILD_DIR): "/var/tmp/portage/media-sound/tenacity-9999/work/tenacity-9999_build" * Applying tenacity-9999-fix-vertical-track-resizing.patch ... [ ok ] * Applying tenacity-9999-fix-gettimeofday.patch ... [ ok ] * Applying tenacity-9999-add-missing-include-portaudio.patch ... patching file src/AudioIOBase.cpp Hunk #1 FAILED at 21. 1 out of 1 hunk FAILED -- saving rejects to file src/AudioIOBase.cpp.rej [ !! ] * ERROR: media-sound/tenacity-9999::tezeta failed (prepare phase): * patch -p1 failed with /var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-add-missing-include-portaudio.patch * * Call stack: * ebuild.sh, line 127: Called src_prepare * environment, line 2731: Called cmake_src_prepare * environment, line 1190: Called default_src_prepare * phase-functions.sh, line 923: Called __eapi6_src_prepare * environment, line 271: Called eapply '/var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-fix-vertical-track-resizing.patch' '/var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-fix-gettimeofday.patch' '/var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-add-missing-include-portaudio.patch' '/var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-about-dialog-fix-flag-checks.patch' * environment, line 1350: Called _eapply_patch '/var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-add-missing-include-portaudio.patch' * environment, line 1288: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/media-sound/tenacity-9999/files/tenacity-9999-add-missing-include-portaudio.patch' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=media-sound/tenacity-9999::tezeta'`, * the complete build log and the output of `emerge -pqv '=media-sound/tenacity-9999::tezeta'`. * The complete build log is located at '/var/tmp/portage/media-sound/tenacity-9999/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/tenacity-9999/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/tenacity-9999/work/tenacity-9999' * S: '/var/tmp/portage/media-sound/tenacity-9999/work/tenacity-9999 ---- emerge --info: Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.3.0, glibc-2.33-r1, 5.10.61-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-5.10.61-gentoo-x86_64-x86_64-AMD_A6-9200_RADEON_R4,_5_COMPUTE_CORES_2C+3G-with-glibc2.33 KiB Mem: 3892540 total, 127836 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 15 Sep 2021 19:00:01 +0000 Head commit of repository gentoo: 52a638e6e0ae85696cad3a25dd73b7046f66cf5c Timestamp of repository 4nykey: Wed, 15 Sep 2021 00:08:05 +0000 Head commit of repository 4nykey: 33ab66ec531f46afa83dffc4f168fb3fb409f197 Timestamp of repository ikelos: Wed, 15 Sep 2021 00:07:57 +0000 Head commit of repository ikelos: 5c0cae5063ce0fe6a5063993505875d76471253c Timestamp of repository tezeta: Tue, 14 Sep 2021 18:08:36 +0000 Head commit of repository tezeta: 70479709edbd88ed2e4ae8bf563f93600db2baa5 sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p5) 2.36.1 ccache version 4.3 [enabled] app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0::gentoo dev-lang/python: 3.9.6_p2::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/ccache: 4.3-r2::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.36.1-r2::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: <Censored due to 24-hour bugzilla restrictions> priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 4nykey location: /var/db/repos/4nykey sync-type: git sync-uri: <Censored due to 24-hour bugzilla restrictions> masters: gentoo devstop location: /var/db/repos/devstop masters: gentoo ikelos location: /var/db/repos/ikelos sync-type: git sync-uri: <Censored due to 24-hour bugzilla restrictions> masters: gentoo tezeta location: /var/db/repos/tezeta sync-type: git sync-uri: <Censored due to 24-hour bugzilla restrictions> masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE @OSI-APPROVED @FSF-APPROVED" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=bdver4 -O2 -pipe -mno-rdrnd" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=bdver4 -O2 -pipe -mno-rdrnd" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=bdver4 -O2 -pipe -mno-rdrnd" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=bdver4 -O2 -pipe -mno-rdrnd" GENTOO_MIRRORS="<Censored due to 24-hour bugzilla restrictions> <Censored due to 24-hour bugzilla restrictions>" LANG="en_DK.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Thank you and sorry for the delay, the failing patch is unnecessary now. This is due to commit 12c0cba3c45505f2470bbc5cf1f4cc02e3f3a02c on Tenacity's end (removal of PortMixer). The Tenacity ebuild has been updated and should now function correctly.