Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559754 - dev-libs/libgcrypt-1.6.3-r4 USE=doc - sandbox violation in mkdir /var/cache/fonts/pk/ljfour/public/cm
Summary: dev-libs/libgcrypt-1.6.3-r4 USE=doc - sandbox violation in mkdir /var/cache/f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 538488
  Show dependency tree
 
Reported: 2015-09-06 10:09 UTC by Andrey Golovizin
Modified: 2015-09-07 06:23 UTC (History)
1 user (show)

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


Attachments
set VARTEXFONTS="${T}/fonts" when building LaTeX documentation (libgcrypt-font-cache.patch,368 bytes, patch)
2015-09-06 10:10 UTC, Andrey Golovizin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Golovizin 2015-09-06 10:09:19 UTC
dev-libs/libgcrypt-1.6.3-r4 fails to build with USE=doc due to font cache issues. The patch fixes that.

Reproducible: Always




Build log:

<...>
make -j6 -C doc gcrypt.pdf 
make: Entering directory '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3-abi_x86_64.amd64/doc'
TEXINPUTS="/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3/build-aux:$TEXINPUTS" \
MAKEINFO='/bin/sh /var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3/build-aux/missing makeinfo   -I /var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3/doc' \
texi2dvi --pdf --batch  --build-dir=gcrypt.t2p -o gcrypt.pdf  \
/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3/doc/gcrypt.texi
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdfetex)
 restricted \write18 enabled.
entering extended mode
<...>
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+540/600 --dpi 540 cmsltt10
 * ACCESS DENIED:  mkdir:        /var/cache/fonts/pk/ljfour/public/cm
mkdir: cannot create directory ‘././var/cache/fonts/pk/ljfour/public/cm’: Permission denied
mktexpk: /usr/share/texmf-dist/web2c/mktexdir /var/cache/fonts/pk/ljfour/public/cm failed.
kpathsea: Appending font creation commands to missfont.log.
 )
(see the transcript file for additional information)
!pdfTeX error: pdfetex (file cmsltt10): Font cmsltt10 at 540 not found
 ==> Fatal error occurred, no output PDF file produced!
/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.
Makefile:466: recipe for target 'gcrypt.pdf' failed
make: *** [gcrypt.pdf] Error 1
make: Leaving directory '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3-abi_x86_64.amd64/doc'
 * ERROR: dev-libs/libgcrypt-1.6.3-r4::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libgcrypt-1.6.3-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libgcrypt-1.6.3-r4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libgcrypt-1.6.3-r4/work/libgcrypt-1.6.3'
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-31938.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: ././var/cache/fonts/pk/ljfour/public/cm
A: /var/cache/fonts/pk/ljfour/public/cm
R: /var/cache/fonts/pk/ljfour/public/cm
C: mkdir ././var/cache/fonts/pk/ljfour/public/cm 
 * --------------------------------------------------------------------------------
Comment 1 Andrey Golovizin 2015-09-06 10:10:29 UTC
Created attachment 411130 [details, diff]
set VARTEXFONTS="${T}/fonts" when building LaTeX documentation
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2015-09-06 20:36:19 UTC
Thanks!

Added.
Comment 3 Andrey Golovizin 2015-09-07 06:23:03 UTC
> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e140c65fbec9de5dce8a66d8c221947fb290bb0

Seems to be a typo, ARTEXFONTS instead of VARTEXFONTS.