1 |
Hi, |
2 |
|
3 |
most packages are putting acct-{user,group}/* dependencies into RDEPEND. |
4 |
|
5 |
What about packages using tmpfiles eclass and installing tmpfiles which |
6 |
will make use of acct-{user,group}/* depedencies? |
7 |
|
8 |
I.e. dev-db/mysql-init-scripts will install |
9 |
"/usr/lib/tmpfiles.d/mysql.conf" with the following content: |
10 |
|
11 |
> d /var/run/mysqld 0755 mysql mysql - |
12 |
|
13 |
The package is a requirement for all |
14 |
dev-db/{mysql,mariadb,percona-server} packages because it will provide |
15 |
runscript/services. |
16 |
|
17 |
To be able to start your chosen database server right after |
18 |
installation, we trigger tmpfiles service in pkg_postinst via |
19 |
tmpfiles_process(). |
20 |
|
21 |
Therefore, mysql user and group provided by acct-{user,group}/mysql must |
22 |
be merged *before* tmpfiles_process() will be called or |
23 |
"/var/run/mysqld" will be created as root:root which will prevent your |
24 |
favorite database server to start. |
25 |
|
26 |
However, devmanual |
27 |
(https://devmanual.gentoo.org/general-concepts/dependencies/) says: |
28 |
|
29 |
> Items which are in RDEPEND but not DEPEND could in theory be merged |
30 |
> after the target package. Portage does not currently do this. |
31 |
So don't we have a conceptual problem here and are just lucky that |
32 |
current used PMs don't do at the moment what specification will allow |
33 |
them to do? |
34 |
|
35 |
Moving to (B)DEPEND will address the problem for non-binary package |
36 |
users only. |
37 |
|
38 |
|
39 |
-- |
40 |
Regards, |
41 |
Thomas Deutschmann / Gentoo Linux Developer |
42 |
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5 |