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
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.
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
(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.
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"`?
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.