1 |
Hi there, |
2 |
|
3 |
I'm using a build host to generate all packages for my different machines in my |
4 |
local network; Not every machine gets every package. |
5 |
|
6 |
I encountered a problem where a package that looks absolutely fine on the |
7 |
buildhost but on the target machine its broken since some libraries are |
8 |
missing. NB: I previously did an emerge -e world before on the buildhost. |
9 |
|
10 |
As an example I'd like to take media-tv/mythtv-31.0-r1, which has a dependency |
11 |
to dev-qt/qtwebkit:5 if the xmltv useflag is set: |
12 |
|
13 |
buildhost-desktop ~ # equery depends dev-qt/qtwebkit-5.212.0_pre20200309-r1 |
14 |
* These packages depend on dev-qt/qtwebkit-5.212.0_pre20200309-r1: |
15 |
dev-python/PyQt5-5.14.2 (webkit ? dev-qt/qtwebkit:5[printsupport]) |
16 |
dev-qt/designer-5.14.2 (webkit ? >=dev-qt/qtwebkit-5.9.1:5) |
17 |
dev-util/kdevelop-5.5.2 (webkit ? >=dev-qt/qtwebkit-5.212.0_pre20180120:5) |
18 |
kde-apps/k3b-19.12.3 (webkit ? >=dev-qt/qtwebkit-5.212.0_pre20180120:5) |
19 |
kde-apps/kdenlive-19.12.3-r3 (freesound ? >=dev-qt/ |
20 |
qtwebkit-5.212.0_pre20180120:5) |
21 |
kde-apps/umbrello-19.12.3 (>=dev-qt/qtwebkit-5.212.0_pre20180120:5) |
22 |
media-gfx/digikam-6.4.0-r1 (webkit ? >=dev-qt/qtwebkit-5.212.0_pre20180120:5) |
23 |
media-gfx/wkhtmltopdf-0.12.5 (dev-qt/qtwebkit:5[printsupport]) |
24 |
media-tv/mythtv-31.0-r1 (xmltv ? dev-qt/qtwebkit:5) |
25 |
net-misc/teamviewer-15.4.4445 (dev-qt/qtwebkit:5) |
26 |
|
27 |
The Useflag "xmltv" is not set, but since the packages kde-apps/umbrello and |
28 |
media-gfx/wkhtmltopdf have a direct dependency to dev-qt/qtwebkit, it is |
29 |
installed on the buildhost. |
30 |
When building mythtv, it finds the webkit libraries and headers installed and |
31 |
uses it, even if the xmltv-useflag is NOT set(!), yielding a binary that has an |
32 |
implicit dependency to qtwebkit, but portage does not know of it. |
33 |
|
34 |
When I install now the mythtv package on my laptop, where none of the other |
35 |
packages are installed that require qtwebkit, there's no need for portage to |
36 |
install it, and so we get a broken mythtv package. |
37 |
|
38 |
I see several ways to solve this, but none is really satisfying: |
39 |
* set the xmltv use flag to mythtv to get an explict dependency -- I don't want |
40 |
it and I don't need it. |
41 |
* rebuild mythtv on my 12-year old notebook locally -- nothing I'd really like |
42 |
to do. |
43 |
* Install qtwebkit in the world set -- I don't like those library packages in |
44 |
the world set |
45 |
* remove those packages requiring qtwebkit explicity, then rebuild mythtv, |
46 |
build package, install on notebook and rebuild/reinstall the removed packages |
47 |
on the buildhost again -- too cumbersome and I have the same problem again at |
48 |
the next update session. And mythtv is not the only package that may cause |
49 |
such problems, so I would have to do this in many different combinations. |
50 |
|
51 |
Is there a better way to solve this? Is it possible to tell mythtv's build |
52 |
system to ignore the unwanted libraries if the xmltv use-flag is NOT set? |
53 |
|
54 |
Regards |
55 |
Alex |