public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/mythtv/
Date: Wed, 19 Feb 2020 07:34:28 +0000 (UTC)	[thread overview]
Message-ID: <1582097025.efbfda26c37b30d1648468e272f5ecebc646d1c6.juippis@gentoo> (raw)

commit:     efbfda26c37b30d1648468e272f5ecebc646d1c6
Author:     Wilson Michaels <thebitpit <AT> earthlink <DOT> net>
AuthorDate: Tue Feb 18 15:13:20 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 19 07:23:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efbfda26

media-tv/mythtv: Bug fix, add user info

Closes: https://bugs.gentoo.org/702654
Closes: https://bugs.gentoo.org/696568
Closes: https://bugs.gentoo.org/710046
Closes: https://bugs.gentoo.org/710048
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Wilson Michaels <thebitpit <AT> earthlink.net>
Closes: https://github.com/gentoo/gentoo/pull/14694
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-tv/mythtv/mythtv-29.1-r2.ebuild              |  8 ++--
 media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild    |  2 +-
 ...8-r1.ebuild => mythtv-30.0_p20190808-r2.ebuild} | 52 ++++++++++++++--------
 3 files changed, 38 insertions(+), 24 deletions(-)

diff --git a/media-tv/mythtv/mythtv-29.1-r2.ebuild b/media-tv/mythtv/mythtv-29.1-r2.ebuild
index b0eb9f82677..c386ea2be4f 100644
--- a/media-tv/mythtv/mythtv-29.1-r2.ebuild
+++ b/media-tv/mythtv/mythtv-29.1-r2.ebuild
@@ -9,7 +9,7 @@ BACKPORTS="d8a2db77f5731cf32c6d31127452391c6cf7f91f"
 MY_P=${P%_p*}
 MY_PV=${PV%_p*}
 
-inherit flag-o-matic python-single-r1 qmake-utils user readme.gentoo-r1 systemd toolchain-funcs vcs-snapshot
+inherit flag-o-matic python-single-r1 qmake-utils user-info readme.gentoo-r1 systemd toolchain-funcs vcs-snapshot
 
 MYTHTV_BRANCH="fixes/29"
 
@@ -31,6 +31,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
 "
 
 COMMON="
+	acct-user/mythtv
 	dev-libs/glib:2
 	dev-qt/qtcore:5
 	dev-qt/qtdbus:5
@@ -111,8 +112,6 @@ COMMON="
 	)
 "
 RDEPEND="${COMMON}
-	!media-tv/mythtv-bindings
-	!x11-themes/mythtv-themes
 	media-fonts/corefonts
 	media-fonts/dejavu
 	media-fonts/liberation-fonts
@@ -160,8 +159,7 @@ PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" ) # bug 691904
 
 pkg_setup() {
 	python-single-r1_pkg_setup
-	enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
-	usermod -a -G ${MYTHTV_GROUPS} mythtv
+	# The acct-user/mythtv package creates/manages the user 'mythtv'
 }
 
 src_prepare() {

diff --git a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild b/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild
index 4c42db6d5f8..c3cd77028d3 100644
--- a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild
+++ b/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild
@@ -10,7 +10,7 @@ BACKPORTS="5cde0578d84926171b20c8f7e95a101e9b0b9457" # August 8, 2019
 MY_P=${P%_p*}
 MY_PV=${PV%_p*}
 
-inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user vcs-snapshot
+inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user-info vcs-snapshot
 
 MYTHTV_BRANCH="fixes/${P%.*}"
 

diff --git a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild
similarity index 88%
copy from media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild
copy to media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild
index 4c42db6d5f8..59f2710c139 100644
--- a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild
+++ b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild
@@ -10,7 +10,7 @@ BACKPORTS="5cde0578d84926171b20c8f7e95a101e9b0b9457" # August 8, 2019
 MY_P=${P%_p*}
 MY_PV=${PV%_p*}
 
-inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user vcs-snapshot
+inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd user-info vcs-snapshot
 
 MYTHTV_BRANCH="fixes/${P%.*}"
 
@@ -33,10 +33,6 @@ REQUIRED_USE="
 	bluray? ( xml )
 	cdr? ( cdda )
 "
-
-# Some of the QA tests fail -- fix in next revision
-RESTRICT="test"
-
 COMMON="
 	acct-user/mythtv
 	dev-libs/glib:2
@@ -69,7 +65,7 @@ COMMON="
 	)
 	alsa? ( >=media-libs/alsa-lib-1.0.24 )
 	bluray? (
-		media-libs/libbluray:=
+		media-libs/libbluray:=[java?]
 		dev-libs/libcdio:=
 		sys-fs/udisks:2
 	)
@@ -87,6 +83,7 @@ COMMON="
 		>=sys-libs/libraw1394-1.2.0
 	)
 	jack? ( media-sound/jack-audio-connection-kit )
+	java? ( dev-java/ant-core )
 	lcd? ( app-misc/lcdproc )
 	libass? ( >=media-libs/libass-0.9.11:= )
 	lirc? ( app-misc/lirc )
@@ -99,14 +96,6 @@ COMMON="
 		dev-perl/Net-UPnP
 	)
 	pulseaudio? ( media-sound/pulseaudio )
-	python? (
-		${PYTHON_DEPS}
-		dev-python/lxml
-		dev-python/mysql-python
-		dev-python/urlgrabber
-		dev-python/future
-		dev-python/requests-cache
-	)
 	systemd? ( sys-apps/systemd:= )
 	vaapi? ( x11-libs/libva:=[opengl] )
 	vdpau? ( x11-libs/libvdpau )
@@ -122,6 +111,16 @@ COMMON="
 	)
 "
 RDEPEND="${COMMON}
+	python? (
+		${PYTHON_DEPS}
+		$(python_gen_cond_dep '
+			dev-python/lxml[${PYTHON_MULTI_USEDEP}]
+			dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}]
+			dev-python/urlgrabber[${PYTHON_MULTI_USEDEP}]
+			dev-python/future[${PYTHON_MULTI_USEDEP}]
+			dev-python/requests-cache[${PYTHON_MULTI_USEDEP}]
+		')
+	)
 	media-fonts/corefonts
 	media-fonts/dejavu
 	media-fonts/liberation-fonts
@@ -158,6 +157,20 @@ If a MYSQL server is installed, a mythtv MySQL user and mythconverg database
 is created if it does not already exist.
 You will be prompted for your MySQL root password.
 
+A mythtv user is maintained by acct-user/mythtv. An existing mythtv user
+may be modified to the configuration defined by acct-user/mythtv.
+An existing mythtv user may be changed which may alter some functionality.
+If it breaks mythtv you may need to (choose one):
+	* Restore the original mythtv user
+	* Create custom acct-user/mythtv overlay for your system
+	* Fix you system to use mythtv as daemon only
+Failure to emerge acct-user/mythtv indicates that the existing mythtv user
+is customized and not changed. Corrective action (choose one):
+	* Ignore emerge failure
+	* Create custom acct-user/mythtv overlay for your system
+	* Fix you system to use mythtv as daemon only
+	* Delete existing user and try again (dangerous)
+
 Mythtv is updated to use correct FHS/Gentoo policy paths.
 Updating mythtv installations may report:
 	* mythtv is in use, cannot update home
@@ -183,7 +196,7 @@ to journald via the console at the notice verbosity.
 "
 
 pkg_setup() {
-	python-single-r1_pkg_setup
+	use python && python-single-r1_pkg_setup
 	# The acct-user/mythtv package creates/manages the user 'mythtv'
 }
 
@@ -325,20 +338,23 @@ src_configure() {
 
 	myconf+=($(use_enable bluray libbluray_external))
 
+	# econf sets these options that are not handled by configure:
+	# --build --host --infodir --localstatedir --sysconfdir
+
 	einfo "Running ./configure ${myconf[@]} - THIS MAY TAKE A WHILE."
 	./configure \
+		--prefix="${EPREFIX}/usr" \
 		--cc="$(tc-getCC)" \
 		--cxx="$(tc-getCXX)" \
 		--ar="$(tc-getAR)" \
-		--extra-cflags="${CFLAGS}" \
-		--extra-cxxflags="${CXXFLAGS}" \
-		--extra-ldflags="${LDFLAGS}" \
+		--optflags="${CFLAGS}" \
 		--qmake=$(qt5_get_bindir)/qmake \
 		"${myconf[@]}"
 }
 
 src_install() {
 	emake STRIP="true" INSTALL_ROOT="${D}" install
+	python_optimize  # does all packages by default
 	dodoc AUTHORS UPGRADING README
 	readme.gentoo_create_doc
 


             reply	other threads:[~2020-02-19  7:34 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19  7:34 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-28  0:05 [gentoo-commits] repo/gentoo:master commit in: media-tv/mythtv/ Andreas Sturmlechner
2024-09-06  9:24 Miroslav Šulc
2024-09-03  8:07 Miroslav Šulc
2024-07-30 19:01 Pacho Ramos
2024-03-10  1:59 Sam James
2024-02-02 19:41 Sam James
2023-05-27 15:29 Sam James
2023-05-01  9:53 Sam James
2023-04-17  1:25 Matt Turner
2022-07-15  7:58 David Seifert
2022-04-27 14:00 Joonas Niilola
2022-04-27 13:19 Joonas Niilola
2022-04-15  5:28 Sam James
2022-04-15  5:27 Sam James
2022-04-12  1:13 Sam James
2022-04-12  1:13 Sam James
2022-04-10 23:01 Sam James
2021-10-31  0:19 Sam James
2021-08-10 16:22 Joonas Niilola
2021-08-10 16:22 Joonas Niilola
2021-08-10 16:22 Joonas Niilola
2021-06-10 19:05 Sam James
2021-04-20 13:30 Joonas Niilola
2021-03-02  5:42 Joonas Niilola
2021-03-01 17:41 Joonas Niilola
2020-09-04 16:34 Andreas Sturmlechner
2020-09-04 16:34 Andreas Sturmlechner
2020-08-01 22:24 Aaron Bauman
2020-07-24 12:03 Joonas Niilola
2020-07-04  9:20 Michał Górny
2020-06-14 10:29 Joonas Niilola
2020-06-11  8:03 Joonas Niilola
2020-04-03 16:55 Andreas Sturmlechner
2020-03-03 14:54 Joonas Niilola
2020-02-21  6:08 Joonas Niilola
2019-10-12 21:22 Andreas Sturmlechner
2019-10-09  3:07 Joonas Niilola
2019-10-09  3:07 Joonas Niilola
2019-10-09  3:07 Joonas Niilola
2019-01-27 19:46 Pacho Ramos
2019-01-05 13:24 Pacho Ramos
2018-10-20 16:36 Pacho Ramos
2018-06-26 21:07 Lars Wendler
2017-12-31 20:33 Pacho Ramos
2017-12-27 14:18 Pacho Ramos
2017-12-27 14:18 Pacho Ramos
2017-12-18 22:36 Craig Andrews
2017-08-11 15:43 Andreas Sturmlechner
2017-07-24  8:51 Pacho Ramos
2017-07-22  0:23 Andreas Sturmlechner
2017-07-22  0:23 Andreas Sturmlechner
2017-07-22  0:23 Andreas Sturmlechner
2017-03-12 23:19 Michael Palimaka
2017-01-08 13:12 Aaron Bauman
2016-12-05 14:24 Pacho Ramos
2016-10-02 12:37 Pacho Ramos
2016-10-02 12:37 Pacho Ramos
2016-04-19 11:25 Richard Freeman
2016-04-17 21:42 Richard Freeman
2016-04-17  0:13 Richard Freeman
2016-03-20  3:41 Doug Goldstein
2016-03-20  0:58 Doug Goldstein
2016-01-29 12:19 Richard Freeman
2015-11-15  4:37 Doug Goldstein
2015-10-27 20:25 Manuel Rüger
2015-10-27 14:21 Doug Goldstein
2015-09-17 14:07 Doug Goldstein
2015-09-13 15:11 Doug Goldstein
2015-09-09  3:27 Doug Goldstein
2015-08-10 13:17 Doug Goldstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1582097025.efbfda26c37b30d1648468e272f5ecebc646d1c6.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox