Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texlive: provide repstopdf #49416

Merged
merged 1 commit into from Oct 30, 2018
Merged

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Oct 29, 2018

It is just a symlink to epstopdf. epstopdf will enable restricted mode
if exectuted as repstopdf.
Usually repstopdf is just a symlink to epstopdf. This will not work with our tricky wrappers. A care must be taken to ensure that restricted mode gets enabled.

Motivation for this change

Fix #49405

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

/cc @jabranham @7c6f434c

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018/bin/fmtutil-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-sys.sh'
'/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018/bin/fmtutil-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-user.sh'
'/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018/bin/rungs' -> '/nix/store/qhmxgxmcajhdvwiy1l1nb46wg22sijmz-texlive-texlive-scripts-2018/scripts/texlive/rungs.tlu'
'/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018/bin/updmap-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-sys.sh'
'/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018/bin/updmap-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-user.sh'
Wrapping './bin/fmtutil-user' and patching shebang '/bin/sh'
Wrapping './bin/rungs' and patching shebang '/usr/bin/env texlua'
Wrapping './bin/simpdftex' and patching shebang '/bin/sh'
Wrapping './bin/updmap-user' and patching shebang '/bin/sh'
/nix/store/yyx6x9h8xdhzxxnr114s14sxph2l7h29-texlive-combined-minimal-2018

@7c6f434c
Copy link
Member

@vcunat so was 7aa1404 ever applied to master?

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf' saved in '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.lua'
system          | lua | compiling '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.lua' into '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.luc'
system          | lua | dumping '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.lua' into '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/70039cb0a869385816e10015d9d8adad.luc'
mtxrun          |
mtxrun          | elapsed lua time: 2.993 seconds

/nix/store/4s5m6mcc48ln4nnfqv8zz18bl8pra85l-texlive-combined-minimal-2018
/nix/store/zq4573dqrgw0n89j8c4wwwrggxfn0fx4-texlive-combined-full-2018

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

Judging by 7aa1404 this must be broken

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

Actually, the 7aa1404 doesn't enable restricted mode as well.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf' saved in '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.lua'
system          | lua | compiling '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.lua' into '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.luc'
system          | lua | dumping '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.lua' into '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d0d09337caf5954c68c1aa590de77f11.luc'
mtxrun          |
mtxrun          | elapsed lua time: 4.847 seconds

/nix/store/ziaspb0dywba64gdxlbsjzxgz2m2fdrr-texlive-combined-minimal-2018
/nix/store/549q90zklf8xbbfjk60wj8rryi73jnky-texlive-combined-full-2018

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

Please take a look at updated version.

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

  /nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/share/texmf-config/web2c/updmap.cfg
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/simpdftex' -> '/nix/store/xvyrbd7y1x77lp19rsdwm4hw1krdivpa-texlive-pdftex-2018/scripts/simpdftex/simpdftex'
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/fmtutil-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-sys.sh'
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/fmtutil-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-user.sh'
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/rungs' -> '/nix/store/qhmxgxmcajhdvwiy1l1nb46wg22sijmz-texlive-texlive-scripts-2018/scripts/texlive/rungs.tlu'
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/updmap-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-sys.sh'
'/nix/store/nrr46hgirrn6b0mps7qnjp665f3vib15-texlive-combined-minimal-2018/bin/updmap-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-user.sh'
Testing restricted mode
builder for '/nix/store/99jk3w6n25rdbcwxs63r6ls191ja9mhf-texlive-combined-minimal-2018.drv' failed with exit code 1
error: build of '/nix/store/99jk3w6n25rdbcwxs63r6ls191ja9mhf-texlive-combined-minimal-2018.drv' failed

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018/bin/fmtutil-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-sys.sh'
'/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018/bin/fmtutil-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-user.sh'
'/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018/bin/rungs' -> '/nix/store/qhmxgxmcajhdvwiy1l1nb46wg22sijmz-texlive-texlive-scripts-2018/scripts/texlive/rungs.tlu'
'/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018/bin/updmap-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-sys.sh'
'/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018/bin/updmap-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-user.sh'
Wrapping './bin/fmtutil-user' and patching shebang '/bin/sh'
Wrapping './bin/rungs' and patching shebang '/usr/bin/env texlua'
Wrapping './bin/simpdftex' and patching shebang '/bin/sh'
Wrapping './bin/updmap-user' and patching shebang '/bin/sh'
/nix/store/f2kywpz30bpfz93ikqgi6svmpvqady8d-texlive-combined-minimal-2018

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf' saved in '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.lua'
system          | lua | compiling '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.lua' into '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.luc'
system          | lua | dumping '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.lua' into '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/487e6d26203893cf889c2e1a4f3d7d1d.luc'
mtxrun          |
mtxrun          | elapsed lua time: 2.785 seconds

/nix/store/9g295s8lljjd8v5a0gcrg8sa9p0pbhw1-texlive-combined-minimal-2018
/nix/store/6vhp91sk5l8ww6i2zkj7aj84mfn4npww-texlive-combined-full-2018

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/htmex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/htmex.sh'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/httex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/httex.sh'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/httexi' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/httexi.sh'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/htxelatex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/htxelatex.sh'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/htxetex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/htxetex.sh'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/mk4ht' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/mk4ht.pl'
'/nix/store/k2jivifb7pm8jx4yyf9lwppc3pgfc2ji-texlive-combined-full-2018/bin/xhlatex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/xhlatex.sh'
Testing restricted mode for {,r}epstopdf
builder for '/nix/store/0k2l8np8m5fk7dn8lyfcccfg6gw5c312-texlive-combined-full-2018.drv' failed with exit code 1
error: build of '/nix/store/0k2l8np8m5fk7dn8lyfcccfg6gw5c312-texlive-combined-full-2018.drv' failed

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018/bin/fmtutil-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-sys.sh'
'/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018/bin/fmtutil-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-user.sh'
'/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018/bin/rungs' -> '/nix/store/qhmxgxmcajhdvwiy1l1nb46wg22sijmz-texlive-texlive-scripts-2018/scripts/texlive/rungs.tlu'
'/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018/bin/updmap-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-sys.sh'
'/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018/bin/updmap-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-user.sh'
Wrapping './bin/fmtutil-user' and patching shebang '/bin/sh'
Wrapping './bin/rungs' and patching shebang '/usr/bin/env texlua'
Wrapping './bin/simpdftex' and patching shebang '/bin/sh'
Wrapping './bin/updmap-user' and patching shebang '/bin/sh'
/nix/store/dk4d0898pzk84ds67z811sh3frcqqn5a-texlive-combined-minimal-2018

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf' saved in '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.lua'
system          | lua | compiling '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.lua' into '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.luc'
system          | lua | dumping '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.lua' into '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/d6c5acb2b232f09407fec96022fa748b.luc'
mtxrun          |
mtxrun          | elapsed lua time: 5.263 seconds

/nix/store/xr2yfr529pjcys96j3xacqlsf3acs5gx-texlive-combined-minimal-2018
/nix/store/pfag3lwgjqpms5rc126sbpab5r6mi1ay-texlive-combined-full-2018

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/htxelatex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/htxelatex.sh'
'/nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/htxetex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/htxetex.sh'
'/nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/mk4ht' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/mk4ht.pl'
'/nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/xhlatex' -> '/nix/store/nbg2myaf5z7qzmvqiiw3zf2wxbml533w-texlive-tex4ht-2018/scripts/tex4ht/xhlatex.sh'
Testing restricted mode for {,r}epstopdf
/nix/store/3h4j4qk4996cch5xsxldng4r6a5i4cwb-stdenv-linux/setup: /nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/epstopdf: /usr/bin/env: bad interpreter: No such file or directory
foo
/nix/store/3h4j4qk4996cch5xsxldng4r6a5i4cwb-stdenv-linux/setup: /nix/store/pxpqkj5ww1zw04kcpk525dbpr46cx0yg-texlive-combined-full-2018/bin/repstopdf: /usr/bin/env: bad interpreter: No such file or directory
builder for '/nix/store/xp319mg8rwjssrxygna21cp9dn6xljln-texlive-combined-full-2018.drv' failed with exit code 1
error: build of '/nix/store/xp319mg8rwjssrxygna21cp9dn6xljln-texlive-combined-full-2018.drv' failed

repstopdf is supposed to be a symlink to epstopdf. Then epstopdf looks
at "$0" to detect when restricted mode needs to be enabled.  Unfortunately
our wrapper will drop all intermediate symlinks, which messes up "$0".
Restricted mode appears to be a security feature, so a test is
introduced to verify that the wrapper works as expected.
@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

'/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018/bin/fmtutil-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-sys.sh'
'/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018/bin/fmtutil-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/fmtutil-user.sh'
'/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018/bin/rungs' -> '/nix/store/qhmxgxmcajhdvwiy1l1nb46wg22sijmz-texlive-texlive-scripts-2018/scripts/texlive/rungs.tlu'
'/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018/bin/updmap-sys' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-sys.sh'
'/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018/bin/updmap-user' -> '/nix/store/inkiad0nm0764a9dvk22yshdcj3rcn11-texlive-tetex-3.0/scripts/texlive/updmap-user.sh'
Wrapping './bin/fmtutil-user' and patching shebang '/bin/sh'
Wrapping './bin/rungs' and patching shebang '/usr/bin/env texlua'
Wrapping './bin/simpdftex' and patching shebang '/bin/sh'
Wrapping './bin/updmap-user' and patching shebang '/bin/sh'
/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf' saved in '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.lua'
system          | lua | compiling '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.lua' into '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.luc'
system          | lua | dumping '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.lua' into '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/9c756dd6623eb3f13654b00758862d89.luc'
mtxrun          |
mtxrun          | elapsed lua time: 5.267 seconds

/nix/store/90vg6k4c6ddxllhivwq6pdmh9142b41w-texlive-combined-minimal-2018
/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf' saved in '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua'
system          | lua | compiling '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua' into '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc'
system          | lua | dumping '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua' into '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc'
mtxrun          |
mtxrun          | elapsed lua time: 4.822 seconds

/nix/store/rs296pad7pprdglc7mvnx00mmwx7i64k-texlive-combined-minimal-2018
/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caches | hashing tree '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf', hash '84e148dd58cd4a85174d7197ed51e48a'
resolvers       | caching | preparing 'files' for '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf' saved in '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.lua'
system          | lua | compiling '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.lua' into '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.luc'
system          | lua | dumping '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.lua' into '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/c0zqswdp2pfhdhs5n2nk5ilpama8fg2h-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/84e148dd58cd4a85174d7197ed51e48a.luc'
mtxrun          |
mtxrun          | elapsed lua time: 5.245 seconds

error: build of '/nix/store/5x2l2l0p973zfy0ivl17ppw8fbxzaqzi-texlive-combined-minimal-2018.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

building '/nix/store/h93f1x2yirjji0d1ln0b9g47ahdw9nws-zxjatype.tar.xz.drv'...

trying https://cat3.de/texlive-2018/tlnet/archive/zxjatype.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8408  100  8408    0     0  76436      0 --:--:-- --:--:-- --:--:-- 76436
building '/nix/store/mai3cg50lfr2m39gdn9kyihj587xys9f-texlive-zxjafont-0.4.drv'...
building '/nix/store/z4x38i2djxxcqr9qqkzspmyksvmycayd-texlive-zxjatype-0.6c.drv'...
cannot build derivation '/nix/store/s3n91q9qcgk7q8v4468g5byyqm0fkl5y-texlive-combined-full-2018.drv': 1 dependencies couldn't be built
error: build of '/nix/store/bv9dav0h7kdrsl7s2vvxrv6cjfi08fya-texlive-combined-minimal-2018.drv', '/nix/store/s3n91q9qcgk7q8v4468g5byyqm0fkl5y-texlive-combined-full-2018.drv' failed

@veprbl
Copy link
Member Author

veprbl commented Oct 29, 2018

@GrahamcOfBorg build texlive.combined.scheme-minimal texlive.combined.scheme-full

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: texlive.combined.scheme-minimal

The following builds were skipped because they don't evaluate on aarch64-linux: texlive.combined.scheme-full

Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.


/nix/store/g9nrwzhm1sajyjycv1v9d1cipfwix6gh-texlive-combined-minimal-2018

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

/nix/store/90vg6k4c6ddxllhivwq6pdmh9142b41w-texlive-combined-minimal-2018
/nix/store/cb7iq5iiqhyhpvpll8gwaz0qyg80yzg5-texlive-combined-full-2018

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: texlive.combined.scheme-minimal, texlive.combined.scheme-full

Partial log (click to expand)

resolvers       | caching | preparing 'files' for '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf'
resolvers       | caching | category 'files', cachename '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf' saved in '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua'
system          | lua | compiling '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua' into '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc'
system          | lua | dumping '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.lua' into '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc' stripped
resolvers       | caching | 'files' compiled to '/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018/share/texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b/trees/a412384cedfb094f9c6f0d682db20d62.luc'
mtxrun          |
mtxrun          | elapsed lua time: 4.835 seconds

/nix/store/rs296pad7pprdglc7mvnx00mmwx7i64k-texlive-combined-minimal-2018
/nix/store/khpgixdp2nvni270mkv97sskpv85ahps-texlive-combined-full-2018

@vcunat
Copy link
Member

vcunat commented Oct 29, 2018

@7c6f434c: no, it has never been applied; I don't think I've got non-trivial feedback about it until recently.

@7c6f434c
Copy link
Member

@vcunat well, I did check it back in 2017 and posted the result in the old issue… Anyway, this PR now does take into account the code from the old patch, so do we declare the current state ready to merge?

@vcunat
Copy link
Member

vcunat commented Oct 30, 2018

I'd say you merge what you consider best. I won't have time to dive into this, so I can't really say which approach (or their combination) is better.

@7c6f434c
Copy link
Member

OK, the current state improves the situation, and now I don't see anything obvious to cross-check now.

@7c6f434c 7c6f434c merged commit b201817 into NixOS:master Oct 30, 2018
@veprbl veprbl added the 6.topic: TeX Issues regarding texlive and TeX in general label Apr 10, 2020
@veprbl veprbl deleted the pr/texlive_repstopdf_fix branch December 1, 2020 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

texlive: repstopdf not included
5 participants