1 |
commit: efbfda26c37b30d1648468e272f5ecebc646d1c6 |
2 |
Author: Wilson Michaels <thebitpit <AT> earthlink <DOT> net> |
3 |
AuthorDate: Tue Feb 18 15:13:20 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 19 07:23:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efbfda26 |
7 |
|
8 |
media-tv/mythtv: Bug fix, add user info |
9 |
|
10 |
Closes: https://bugs.gentoo.org/702654 |
11 |
Closes: https://bugs.gentoo.org/696568 |
12 |
Closes: https://bugs.gentoo.org/710046 |
13 |
Closes: https://bugs.gentoo.org/710048 |
14 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
15 |
Signed-off-by: Wilson Michaels <thebitpit <AT> earthlink.net> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/14694 |
17 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
18 |
|
19 |
media-tv/mythtv/mythtv-29.1-r2.ebuild | 8 ++-- |
20 |
media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild | 2 +- |
21 |
...8-r1.ebuild => mythtv-30.0_p20190808-r2.ebuild} | 52 ++++++++++++++-------- |
22 |
3 files changed, 38 insertions(+), 24 deletions(-) |
23 |
|
24 |
diff --git a/media-tv/mythtv/mythtv-29.1-r2.ebuild b/media-tv/mythtv/mythtv-29.1-r2.ebuild |
25 |
index b0eb9f82677..c386ea2be4f 100644 |
26 |
--- a/media-tv/mythtv/mythtv-29.1-r2.ebuild |
27 |
+++ b/media-tv/mythtv/mythtv-29.1-r2.ebuild |
28 |
@@ -9,7 +9,7 @@ BACKPORTS="d8a2db77f5731cf32c6d31127452391c6cf7f91f" |
29 |
MY_P=${P%_p*} |
30 |
MY_PV=${PV%_p*} |
31 |
|
32 |
-inherit flag-o-matic python-single-r1 qmake-utils user readme.gentoo-r1 systemd toolchain-funcs vcs-snapshot |
33 |
+inherit flag-o-matic python-single-r1 qmake-utils user-info readme.gentoo-r1 systemd toolchain-funcs vcs-snapshot |
34 |
|
35 |
MYTHTV_BRANCH="fixes/29" |
36 |
|
37 |
@@ -31,6 +31,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE} |
38 |
" |
39 |
|
40 |
COMMON=" |
41 |
+ acct-user/mythtv |
42 |
dev-libs/glib:2 |
43 |
dev-qt/qtcore:5 |
44 |
dev-qt/qtdbus:5 |
45 |
@@ -111,8 +112,6 @@ COMMON=" |
46 |
) |
47 |
" |
48 |
RDEPEND="${COMMON} |
49 |
- !media-tv/mythtv-bindings |
50 |
- !x11-themes/mythtv-themes |
51 |
media-fonts/corefonts |
52 |
media-fonts/dejavu |
53 |
media-fonts/liberation-fonts |
54 |
@@ -160,8 +159,7 @@ PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" ) # bug 691904 |
55 |
|
56 |
pkg_setup() { |
57 |
python-single-r1_pkg_setup |
58 |
- enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
59 |
- usermod -a -G ${MYTHTV_GROUPS} mythtv |
60 |
+ # The acct-user/mythtv package creates/manages the user 'mythtv' |
61 |
} |
62 |
|
63 |
src_prepare() { |
64 |
|
65 |
diff --git a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild b/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild |
66 |
index 4c42db6d5f8..c3cd77028d3 100644 |
67 |
--- a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild |
68 |
+++ b/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild |
69 |
@@ -10,7 +10,7 @@ BACKPORTS="5cde0578d84926171b20c8f7e95a101e9b0b9457" # August 8, 2019 |
70 |
MY_P=${P%_p*} |
71 |
MY_PV=${PV%_p*} |
72 |
|
73 |
-inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user vcs-snapshot |
74 |
+inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user-info vcs-snapshot |
75 |
|
76 |
MYTHTV_BRANCH="fixes/${P%.*}" |
77 |
|
78 |
|
79 |
diff --git a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
80 |
similarity index 88% |
81 |
copy from media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild |
82 |
copy to media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
83 |
index 4c42db6d5f8..59f2710c139 100644 |
84 |
--- a/media-tv/mythtv/mythtv-30.0_p20190808-r1.ebuild |
85 |
+++ b/media-tv/mythtv/mythtv-30.0_p20190808-r2.ebuild |
86 |
@@ -10,7 +10,7 @@ BACKPORTS="5cde0578d84926171b20c8f7e95a101e9b0b9457" # August 8, 2019 |
87 |
MY_P=${P%_p*} |
88 |
MY_PV=${PV%_p*} |
89 |
|
90 |
-inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd toolchain-funcs user vcs-snapshot |
91 |
+inherit eutils flag-o-matic python-single-r1 qmake-utils readme.gentoo-r1 systemd user-info vcs-snapshot |
92 |
|
93 |
MYTHTV_BRANCH="fixes/${P%.*}" |
94 |
|
95 |
@@ -33,10 +33,6 @@ REQUIRED_USE=" |
96 |
bluray? ( xml ) |
97 |
cdr? ( cdda ) |
98 |
" |
99 |
- |
100 |
-# Some of the QA tests fail -- fix in next revision |
101 |
-RESTRICT="test" |
102 |
- |
103 |
COMMON=" |
104 |
acct-user/mythtv |
105 |
dev-libs/glib:2 |
106 |
@@ -69,7 +65,7 @@ COMMON=" |
107 |
) |
108 |
alsa? ( >=media-libs/alsa-lib-1.0.24 ) |
109 |
bluray? ( |
110 |
- media-libs/libbluray:= |
111 |
+ media-libs/libbluray:=[java?] |
112 |
dev-libs/libcdio:= |
113 |
sys-fs/udisks:2 |
114 |
) |
115 |
@@ -87,6 +83,7 @@ COMMON=" |
116 |
>=sys-libs/libraw1394-1.2.0 |
117 |
) |
118 |
jack? ( media-sound/jack-audio-connection-kit ) |
119 |
+ java? ( dev-java/ant-core ) |
120 |
lcd? ( app-misc/lcdproc ) |
121 |
libass? ( >=media-libs/libass-0.9.11:= ) |
122 |
lirc? ( app-misc/lirc ) |
123 |
@@ -99,14 +96,6 @@ COMMON=" |
124 |
dev-perl/Net-UPnP |
125 |
) |
126 |
pulseaudio? ( media-sound/pulseaudio ) |
127 |
- python? ( |
128 |
- ${PYTHON_DEPS} |
129 |
- dev-python/lxml |
130 |
- dev-python/mysql-python |
131 |
- dev-python/urlgrabber |
132 |
- dev-python/future |
133 |
- dev-python/requests-cache |
134 |
- ) |
135 |
systemd? ( sys-apps/systemd:= ) |
136 |
vaapi? ( x11-libs/libva:=[opengl] ) |
137 |
vdpau? ( x11-libs/libvdpau ) |
138 |
@@ -122,6 +111,16 @@ COMMON=" |
139 |
) |
140 |
" |
141 |
RDEPEND="${COMMON} |
142 |
+ python? ( |
143 |
+ ${PYTHON_DEPS} |
144 |
+ $(python_gen_cond_dep ' |
145 |
+ dev-python/lxml[${PYTHON_MULTI_USEDEP}] |
146 |
+ dev-python/mysqlclient[${PYTHON_MULTI_USEDEP}] |
147 |
+ dev-python/urlgrabber[${PYTHON_MULTI_USEDEP}] |
148 |
+ dev-python/future[${PYTHON_MULTI_USEDEP}] |
149 |
+ dev-python/requests-cache[${PYTHON_MULTI_USEDEP}] |
150 |
+ ') |
151 |
+ ) |
152 |
media-fonts/corefonts |
153 |
media-fonts/dejavu |
154 |
media-fonts/liberation-fonts |
155 |
@@ -158,6 +157,20 @@ If a MYSQL server is installed, a mythtv MySQL user and mythconverg database |
156 |
is created if it does not already exist. |
157 |
You will be prompted for your MySQL root password. |
158 |
|
159 |
+A mythtv user is maintained by acct-user/mythtv. An existing mythtv user |
160 |
+may be modified to the configuration defined by acct-user/mythtv. |
161 |
+An existing mythtv user may be changed which may alter some functionality. |
162 |
+If it breaks mythtv you may need to (choose one): |
163 |
+ * Restore the original mythtv user |
164 |
+ * Create custom acct-user/mythtv overlay for your system |
165 |
+ * Fix you system to use mythtv as daemon only |
166 |
+Failure to emerge acct-user/mythtv indicates that the existing mythtv user |
167 |
+is customized and not changed. Corrective action (choose one): |
168 |
+ * Ignore emerge failure |
169 |
+ * Create custom acct-user/mythtv overlay for your system |
170 |
+ * Fix you system to use mythtv as daemon only |
171 |
+ * Delete existing user and try again (dangerous) |
172 |
+ |
173 |
Mythtv is updated to use correct FHS/Gentoo policy paths. |
174 |
Updating mythtv installations may report: |
175 |
* mythtv is in use, cannot update home |
176 |
@@ -183,7 +196,7 @@ to journald via the console at the notice verbosity. |
177 |
" |
178 |
|
179 |
pkg_setup() { |
180 |
- python-single-r1_pkg_setup |
181 |
+ use python && python-single-r1_pkg_setup |
182 |
# The acct-user/mythtv package creates/manages the user 'mythtv' |
183 |
} |
184 |
|
185 |
@@ -325,20 +338,23 @@ src_configure() { |
186 |
|
187 |
myconf+=($(use_enable bluray libbluray_external)) |
188 |
|
189 |
+ # econf sets these options that are not handled by configure: |
190 |
+ # --build --host --infodir --localstatedir --sysconfdir |
191 |
+ |
192 |
einfo "Running ./configure ${myconf[@]} - THIS MAY TAKE A WHILE." |
193 |
./configure \ |
194 |
+ --prefix="${EPREFIX}/usr" \ |
195 |
--cc="$(tc-getCC)" \ |
196 |
--cxx="$(tc-getCXX)" \ |
197 |
--ar="$(tc-getAR)" \ |
198 |
- --extra-cflags="${CFLAGS}" \ |
199 |
- --extra-cxxflags="${CXXFLAGS}" \ |
200 |
- --extra-ldflags="${LDFLAGS}" \ |
201 |
+ --optflags="${CFLAGS}" \ |
202 |
--qmake=$(qt5_get_bindir)/qmake \ |
203 |
"${myconf[@]}" |
204 |
} |
205 |
|
206 |
src_install() { |
207 |
emake STRIP="true" INSTALL_ROOT="${D}" install |
208 |
+ python_optimize # does all packages by default |
209 |
dodoc AUTHORS UPGRADING README |
210 |
readme.gentoo_create_doc |