Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652014

Summary: dev-haskell/lhs2tex Please set VARTEXFONTS=${T}/fonts to prevent sandbox violations
Product: Gentoo Linux Reporter: Jonas Stein <jstein>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal CC: tex
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 223077    

Description Jonas Stein gentoo-dev 2018-03-30 17:44:32 UTC
Please set VARTEXFONTS=${T}/fonts to prevent sandbox violations
"[here a .pdf file is installed using dodoc, and hence will be bzip2ed - not a goog idea]"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-30 18:31:26 UTC
I have a few clarifying questions. This is the ebuild I we are talking about:
  https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-haskell/lhs2tex/lhs2tex-1.19-r1.ebuild

> Please set VARTEXFONTS=${T}/fonts to prevent sandbox violations

I glanced at tracker ticket and got lost. Which tool reads VARTEXFONTS variable and has a chance to?

> "[here a .pdf file is installed using dodoc, and hence will be bzip2ed - not a goog idea]"

dodoc is not used in the ebuild. I guess it's about optional support of package managers being able to compress /usr/share/doc as defined in:
    https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-14000012.3.11

Why it's a problem in theory and in practice?

emerge does not compress .pdfs for me (I believe it's a default)
  $ emerge --info | fgrep -i compress
  PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"

If I compress .pdf into .pdf.gz okular opens file just fine.

If it's a problem should we have a QA check in emerge to complain about such condition?
Comment 2 Larry the Git Cow gentoo-dev 2022-07-22 22:57:37 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c5ca5dec763541eb3748c5f3c3bd8657479257c

commit 6c5ca5dec763541eb3748c5f3c3bd8657479257c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-22 22:53:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-22 22:57:24 +0000

    profiles: last-rite broken, revdep-less Haskell packages
    
    As discussed in #gentoo-haskell. More items are likely to be added
    to this mask, like we've done with Python packages in the past.
    
    Bug: https://bugs.gentoo.org/830336
    Bug: https://bugs.gentoo.org/637278
    Bug: https://bugs.gentoo.org/652014
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 13 +++++++++++++
 1 file changed, 13 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2022-08-22 07:35:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c9d5288a2cc5f3de78c9bb2509d24adcf89ac08

commit 1c9d5288a2cc5f3de78c9bb2509d24adcf89ac08
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-08-22 06:56:08 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-08-22 06:56:08 +0000

    dev-haskell/lhs2tex: treeclean
    
    Closes: https://bugs.gentoo.org/652014
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-haskell/lhs2tex/Manifest                       |  1 -
 .../lhs2tex/files/lhs2tex-1.18.1-mandir.patch      | 11 -------
 dev-haskell/lhs2tex/lhs2tex-1.24.ebuild            | 35 ----------------------
 dev-haskell/lhs2tex/metadata.xml                   | 12 --------
 profiles/package.mask                              |  1 -
 5 files changed, 60 deletions(-)