Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921694 - media-tv/mythtv-33.1-r1::gentoo failed (prepare phase)
Summary: media-tv/mythtv-33.1-r1::gentoo failed (prepare phase)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wilson M. Michaels
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-10 07:54 UTC by Norman Back
Modified: 2024-01-11 14:54 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.gz,3.47 KB, application/gzip)
2024-01-10 10:20 UTC, Norman Back
Details
environment.gz (environment.gz,44.70 KB, application/gzip)
2024-01-10 10:20 UTC, Norman Back
Details
build.log (build.log,13.62 KB, text/plain)
2024-01-10 10:27 UTC, Norman Back
Details
environment (environment,191.14 KB, text/plain)
2024-01-10 10:28 UTC, Norman Back
Details
media-tv/mythtv: fix broken patch (0001-media-tv-mythtv-fix-broken-patch.patch,4.23 KB, patch)
2024-01-10 23:03 UTC, Eli Schwartz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2024-01-10 07:54:05 UTC
ERROR: media-tv/mythtv-33.1-r1::gentoo failed (prepare phase):
patch -p1  failed with /var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-python3.12.patch

Reproducible: Always

Steps to Reproduce:
1. emerge -1av mythtv
2.
3.
Actual Results:  
emerge fails

Expected Results:  
emerge succeeds

emerge --info '=media-tv/mythtv-33.1-r1::gentoo'
Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.38-r9, 6.6.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.10-gentoo-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.38
KiB Mem:   131848560 total, 110346912 free
KiB Swap:   71303144 total,  71303144 free
Timestamp of repository gentoo: Wed, 10 Jan 2024 02:45:01 +0000
Head commit of repository gentoo: 8e225a87533a354a6a990aecf76f059131bdf4fd
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.8.3 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-util/ccache:           4.8.3::gentoo
dev-util/cmake:            3.27.9::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://datastoreone/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 3

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

Installed sets: @kernels, @openwrt-prerequisites
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -mtune=znver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/vmware-installer"
CXXFLAGS="-march=znver2 -mtune=znver2 -O2 -pipe"
DISTDIR="/mnt/portage.autofs/distfiles/ddata"
EMERGE_DEFAULT_OPTS="--with-bdeps=y -j 65 --load-average=65 --quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirror.bytemark.co.uk/gentoo/ http://mirrors.gethosted.online/gentoo http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ https://mirrors.ircam.fr/pub/gentoo-distfiles/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_GB"
MAKEOPTS="-j 65 --load-average=65"
PKGDIR="/mnt/portage.autofs/packages/pdata"
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 --exclude=lost+found/"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities aes alsa amarok amd64 amr authdaemond avx avx2 bash-completion bluetooth bluray branding bzip2 cairo caps cdda cdr cli crypt cups dbus declarative dri dts dv dvd dvdr dvdread elogind encode exif f16c fam flac fma3 fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg jumbo-build kde kwallet lcms libnotify libtirpc lm-sensors lm_sensors lock lvm mad mmx mmxext mng mp3 mp4 mpeg multilib mysql ncurses network networkmanager nls nptl ofx ogg opencl opengl openmp oss pam pango pclmul pcre pdf pipewire plasma png policykit popcnt ppds pulseaudio qml qt3 qt5 rdrand readline samba sasl screencast sdl seccomp semantic-desktop session sha sound sound-server spell split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg test-rust thunar tiff truetype udev udisks uk_bleb uk_rt unicode upower usb v4l v4l2 vdpau vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid slotmem_shm unixd access_compat authz_core socache_shmcb authn_core" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-32 efi-64 pc multiboot mount" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp5590 hp net abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp3500 hp3900 hp4200 hp5400 hpljm1005 hpsj5s hs2p ibm kodak kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Norman Back 2024-01-10 07:59:26 UTC
emerge -pqv '=media-tv/mythtv-33.1-r1::gentoo'
[ebuild     U ] media-tv/mythtv-33.1-r1 [33.1] USE="X alsa cdda cdr cec dvb dvd exif fftw hdhomerun ieee1394 lame lirc opengl oss perl pulseaudio python raw v4l vdpau wrapper x264 xml xmltv xvid -asi -autostart -ceton -debug -jack -java -lcd -libass -nvdec -systemd -vaapi -vbox -vpx -x265 -zeroconf" INPUT_DEVICES="-joystick"
Comment 2 Norman Back 2024-01-10 08:07:40 UTC
Tried to upload buildlog and environment files but failed:-
<<<
This site can’t be reachedThe web page at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
ERR_ACCESS_DENIED
>>

I will try again later.

It looks as though the paths in the python3.12.patch are incorrect.
Comment 3 Norman Back 2024-01-10 10:20:04 UTC
Created attachment 881809 [details]
build.log
Comment 4 Norman Back 2024-01-10 10:20:52 UTC
Created attachment 881810 [details]
environment.gz
Comment 5 Norman Back 2024-01-10 10:27:57 UTC
Created attachment 881811 [details]
build.log

build.log uncompressed
Comment 6 Norman Back 2024-01-10 10:28:40 UTC
Created attachment 881812 [details]
environment

environment uncompressed
Comment 7 Frank Noack 2024-01-10 16:26:46 UTC
Exactly the same error here.
Comment 8 Florian Evers 2024-01-10 17:25:18 UTC
Same error here, thanks for reporting!
Comment 9 Eli Schwartz 2024-01-10 23:03:00 UTC
Created attachment 881880 [details, diff]
media-tv/mythtv: fix broken patch

Oops. I thought I tested this with `ebuild ...` but perhaps I did so with unpack instead of prepare. It wasn't practical to test emerging, since it's ~arch *and* requires accepting new licenses *and* changing USE flags and I have no use for it other than treecleaning "future"...

The issue is that eapply is patching against a subdirectory rather than against the tarball root. Updated the patch.

It actually works this time:

```
# ebuild mythtv-33.1-r1.ebuild clean prepare
 * mythtv-33.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking mythtv-33.1.tar.gz to /var/tmp/portage/media-tv/mythtv-33.1-r1/work
>>> Source unpacked in /var/tmp/portage/media-tv/mythtv-33.1-r1/work
>>> Preparing source in /var/tmp/portage/media-tv/mythtv-33.1-r1/work/mythtv-33.1/mythtv ...
 * Applying mythtv-33.1-libva.patch ...                                                                                                                                                                     [ ok ]
 * Applying mythtv-33.1-ffmpeg-binutils-2.41.patch ...                                                                                                                                                      [ ok ]
 * Applying mythtv-33.1-linux-headers-6.5.patch ...                                                                                                                                                         [ ok ]
 * Applying mythtv-33.1-python3.12.patch ...
patching file configure
patching file programs/scripts/hardwareprofile/smolt.py
patching file configure
patching file programs/scripts/hardwareprofile/MultipartPostHandler.py
patching file programs/scripts/hardwareprofile/distros/mythtv_data/request.py
patching file programs/scripts/hardwareprofile/distros/mythtv_data/uuiddb.py
patching file programs/scripts/hardwareprofile/hwdata.py
patching file programs/scripts/hardwareprofile/os_detect.py
patching file programs/scripts/hardwareprofile/request.py
patching file programs/scripts/hardwareprofile/scan.py
patching file programs/scripts/hardwareprofile/uuiddb.py                                                                                                                                                    [ ok ]
>>> Source prepared.
```
Comment 10 Larry the Git Cow gentoo-dev 2024-01-11 12:03:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecc8eaf12dc554f02cdf1a7a4e1a7435f88f311d

commit ecc8eaf12dc554f02cdf1a7a4e1a7435f88f311d
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-01-10 22:54:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-11 12:02:27 +0000

    media-tv/mythtv: fix broken patch
    
    Recreate patch to work when applied with -p2, since ${S} is not the
    tarball root.
    
    Fixes: f785d71faf63548afe5e2f6fb4ee03da1c686597
    Closes: https://bugs.gentoo.org/921694
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-tv/mythtv/files/mythtv-33.1-python3.12.patch | 20 +++-----------------
 media-tv/mythtv/mythtv-33.1-r1.ebuild              |  9 +++++----
 2 files changed, 8 insertions(+), 21 deletions(-)
Comment 11 Norman Back 2024-01-11 14:54:01 UTC
eix-sync and compiled OK. Thank you.