Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726450 - dev-texlive/texlive-pictures-2020-r1: One or more empty directories installed to /var
Summary: dev-texlive/texlive-pictures-2020-r1: One or more empty directories installed...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-31 13:27 UTC by Pacho Ramos
Modified: 2020-06-25 09:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2020-05-31 13:27:58 UTC
I get this warning

QA: other
One or more empty directories installed to /var:

  /var/lib/texmf

If those directories need to be preserved, please make sure to create
or mark them for keeping using 'keepdir'. Future versions of Portage
will strip empty directories from installation image.


Thanks
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-05-31 14:17:43 UTC
One of these cases where portage is more clever than developers are, and therfore portage stupidity can be ignored.

None of the actual texlive packages maybe installed without texlive-core being installed on your system. In turn, texlive-core depends on the dev-libs/kpathsea packages (which is separated from the texlive-core one for convinience, in fact these are the same sources).

kpathsea runs keepdir on /var/lib/texmf as in https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/kpathsea/kpathsea-6.3.2_p20200406.ebuild#n95

That said, by the time you install any of the dev-texlive packages /var/lib/texmf can not be simply vanished as it is not empty. Sure, we can put the `keepdir /var/lib/texmf` call to the texlive-module.eclass. but this gonna only crate a keepdir file for each and every dev-texlive package you install, which for sure does not make any sense.
Comment 2 Pacho Ramos gentoo-dev 2020-05-31 14:42:22 UTC
Maybe it would be better to reassign to portage people to see if they can maybe add a QA_ variable for that (that eclass could pass). Otherwise people will still get the warning and you will keep getting the bug reports from time to time
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-05-31 14:52:52 UTC
(In reply to Pacho Ramos from comment #2)
> Maybe it would be better to reassign to portage people to see if they can
> maybe add a QA_ variable for that (that eclass could pass). Otherwise people
> will still get the warning and you will keep getting the bug reports from
> time to time

Actually, why not.
Comment 4 Zac Medico gentoo-dev 2020-05-31 18:42:16 UTC
The reason for the QA notice it that the empty directory is prohibited by PMS, as explained in 95empty-dirs comments:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=104635efa9b4c9e268832d9ac64ad39e44002df3

Is there a reason not to have the ebuild suppress this by runnning `rmdir "${ED}/var/lib/texmf"`?
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-06-25 09:46:23 UTC
Hmm, I have gone through the texlive-module.eclass. Found it was creating /var/lib/texmf on each call unconditionally, which is not needed. Fixed as per

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=882a9e6e80c0e5113c752140608a7f53784d7fdd


Sorry for the noise.