* Package: media-tv/mythtv-33.1-r1:0  * Repository: gentoo  * Maintainer: thebitpit@austincustomerrands.com proxy-maint@gentoo.org  * USE: X abi_x86_64 alsa amd64 cdda cdr cec dvb dvd elibc_glibc exif fftw hdhomerun ieee1394 kernel_linux lame lirc opengl oss perl pulseaudio python raw v4l vdpau wrapper x264 xml xmltv xvid  * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Checking whether python3_11 is suitable ... * dev-lang/python:3.11 ...  [ ok ] * python_check_deps ... * dev-python/python-dateutil[python_targets_python3_11(-)] ...  [ ok ] * dev-python/lxml[python_targets_python3_11(-)] ...  [ ok ] * dev-python/mysqlclient[python_targets_python3_11(-)] ...  [ ok ] * dev-python/requests-cache[python_targets_python3_11(-)] ...  [ ok ]  [ ok ] * Using python3.11 to build (via PYTHON_COMPAT iteration) >>> 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 ... can't find file to patch at input line 53 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From f1848eb41bf35d57b63b3a8cb19763c5b4656717 Mon Sep 17 00:00:00 2001 |From: Eli Schwartz |Date: Thu, 4 Jan 2024 16:18:00 -0500 |Subject: [PATCH 1/2] hardwareprofile: remove external dependency on simplejson | |This uses the requests module and converts requests responses to json |using requests' own `.json()` method on responses. For incomprehensible |reasons, requests has spent about a decade using either simplejson or |the standard library's json module more or less at will, and returning |either one or the other exception types. They don't know why they use |simplejson, we don't know why they use simplejson. In requests 3 (which |will be released in the Year Of The Linux Desktop or when pigs fly, |whichever one comes later) simplejson is dropped entirely. | |There are innumerable issues discussing the problem on the requests |bugtracker, with the general consensus being that it's better to |randomly return either one of two different libraries and two different |library return types in errors -- because it was historically done that |way and people might be depending on it. ?????? | |Bugs: | |https://github.com/psf/requests/pull/710 |https://github.com/psf/requests/pull/2516 |https://github.com/psf/requests/issues/3052 |https://github.com/psf/requests/issues/4169 |https://github.com/psf/requests/issues/4842 |https://github.com/psf/requests/issues/5794 |https://github.com/psf/requests/issues/6084 | |The awkward workaround is to guarantee that requests' silent behavior of |using simplejson *if it is installed* is forcibly triggered by forcibly |depending on simplejson, and then catching the simplejson exception. | |The better solution here is pretty simple: do not rely on the requests |module's automatic json conversion, this is as simple as using the |already-imported json module and calling json.loads() on the retrieved |content. | |Fixes: 1df343e9ab7defa284a73390210a65cf2112f17e |Reimplements: bb154a843b737cc3ad8c1a45fa04a1a3609aff05 |(cherry picked from commit 6348dc01a45af6ed63c09326ec94cd425db1d6d7) |--- | .github/workflows/buildmaster.yml | 2 +- | mythtv/configure | 1 - | mythtv/programs/scripts/hardwareprofile/smolt.py | 5 ++--- | 3 files changed, 3 insertions(+), 5 deletions(-) | |diff --git a/.github/workflows/buildmaster.yml b/.github/workflows/buildmaster.yml |index eea6e9fc2a..325cc7da64 100644 |--- a/.github/workflows/buildmaster.yml |+++ b/.github/workflows/buildmaster.yml -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 66 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/configure b/mythtv/configure |index 7e966ef817..3429c208e2 100755 |--- a/mythtv/configure |+++ b/mythtv/configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 78 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/smolt.py b/mythtv/programs/scripts/hardwareprofile/smolt.py |index 1bcc8060d0..464f068d6f 100644 |--- a/mythtv/programs/scripts/hardwareprofile/smolt.py |+++ b/mythtv/programs/scripts/hardwareprofile/smolt.py -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 135 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |-- |2.41.0 | | |From 13f65c0015d3e0d82d01a1dd5c15afe0ff1e8029 Mon Sep 17 00:00:00 2001 |From: Eli Schwartz |Date: Wed, 13 Dec 2023 23:11:11 -0500 |Subject: [PATCH 2/2] hardwareprofile: remove ancient "future" compatibility | library for python2 | |Ironically, for a package that was intended to provide portability |between python2 and python3, it is broken with python 3.12. A better |library to use in all cases is "six". | |However, mythtv requires python 3.8 for a while now. Using |"future.standard_library" is a no-op other than costing a pointless |import and being troublesome to actually install. | |The hacky copy of six.with_metaclass included in "future" is rewritten |to use the pure python3 form of a metaclass. | |(cherry picked from commit 4a1ea331bb2b106e7ae7e7e9bb7970f71b8a84b3) |--- | mythtv/configure | 1 - | .../scripts/hardwareprofile/MultipartPostHandler.py | 2 -- | .../hardwareprofile/distros/mythtv_data/request.py | 2 -- | .../scripts/hardwareprofile/distros/mythtv_data/uuiddb.py | 2 -- | mythtv/programs/scripts/hardwareprofile/hwdata.py | 8 +++----- | mythtv/programs/scripts/hardwareprofile/os_detect.py | 5 ++--- | mythtv/programs/scripts/hardwareprofile/request.py | 2 -- | mythtv/programs/scripts/hardwareprofile/scan.py | 2 -- | mythtv/programs/scripts/hardwareprofile/uuiddb.py | 2 -- | 9 files changed, 5 insertions(+), 21 deletions(-) | |diff --git a/mythtv/configure b/mythtv/configure |index 3429c208e2..4bfbbd8c64 100755 |--- a/mythtv/configure |+++ b/mythtv/configure -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 147 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/MultipartPostHandler.py b/mythtv/programs/scripts/hardwareprofile/MultipartPostHandler.py |index 51619096b8..6ff2443d2e 100644 |--- a/mythtv/programs/scripts/hardwareprofile/MultipartPostHandler.py |+++ b/mythtv/programs/scripts/hardwareprofile/MultipartPostHandler.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 160 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/request.py b/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/request.py |index 2ae4fd3fdd..81362ba8b7 100644 |--- a/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/request.py |+++ b/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/request.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 173 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/uuiddb.py b/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/uuiddb.py |index 6960f8705a..9d22556c04 100644 |--- a/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/uuiddb.py |+++ b/mythtv/programs/scripts/hardwareprofile/distros/mythtv_data/uuiddb.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 186 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/hwdata.py b/mythtv/programs/scripts/hardwareprofile/hwdata.py |index ba297bf24f..0770d32b96 100644 |--- a/mythtv/programs/scripts/hardwareprofile/hwdata.py |+++ b/mythtv/programs/scripts/hardwareprofile/hwdata.py -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored can't find file to patch at input line 212 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/os_detect.py b/mythtv/programs/scripts/hardwareprofile/os_detect.py |index 7d0edee00e..beabf7d865 100644 |--- a/mythtv/programs/scripts/hardwareprofile/os_detect.py |+++ b/mythtv/programs/scripts/hardwareprofile/os_detect.py -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored can't find file to patch at input line 242 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/request.py b/mythtv/programs/scripts/hardwareprofile/request.py |index 6e6a20b9e7..d6668cef3d 100644 |--- a/mythtv/programs/scripts/hardwareprofile/request.py |+++ b/mythtv/programs/scripts/hardwareprofile/request.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 255 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/scan.py b/mythtv/programs/scripts/hardwareprofile/scan.py |index 1389400ece..d100bfe692 100644 |--- a/mythtv/programs/scripts/hardwareprofile/scan.py |+++ b/mythtv/programs/scripts/hardwareprofile/scan.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 268 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/mythtv/programs/scripts/hardwareprofile/uuiddb.py b/mythtv/programs/scripts/hardwareprofile/uuiddb.py |index e7ba3891ec..3c2fc16d86 100644 |--- a/mythtv/programs/scripts/hardwareprofile/uuiddb.py |+++ b/mythtv/programs/scripts/hardwareprofile/uuiddb.py -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored  [ !! ] * 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 * * Call stack: * ebuild.sh, line 136: Called src_prepare * environment, line 4928: Called default * phase-functions.sh, line 871: Called default_src_prepare * phase-functions.sh, line 947: Called __eapi8_src_prepare * environment, line 549: Called eapply '--' '/var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-libva.patch' '/var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-ffmpeg-binutils-2.41.patch' '/var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-linux-headers-6.5.patch' '/var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-python3.12.patch' * environment, line 1541: Called _eapply_patch '/var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-python3.12.patch' * environment, line 1479: Called __helpers_die 'patch -p1 failed with /var/tmp/portage/media-tv/mythtv-33.1-r1/files/mythtv-33.1-python3.12.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-tv/mythtv-33.1-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-tv/mythtv-33.1-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =mythtv-33.1 * The complete build log is located at '/var/tmp/portage/media-tv/mythtv-33.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-tv/mythtv-33.1-r1/temp/environment'. * Working directory: '/var/tmp/portage/media-tv/mythtv-33.1-r1/work/mythtv-33.1/mythtv' * S: '/var/tmp/portage/media-tv/mythtv-33.1-r1/work/mythtv-33.1/mythtv'