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

Build failure with strictDeps: texlive-combined-basic #225702

Open
erdnaxe opened this issue Apr 11, 2023 · 1 comment
Open

Build failure with strictDeps: texlive-combined-basic #225702

erdnaxe opened this issue Apr 11, 2023 · 1 comment
Labels
0.kind: build failure A package fails to build 6.topic: TeX Issues regarding texlive and TeX in general

Comments

@erdnaxe
Copy link
Member

erdnaxe commented Apr 11, 2023

Steps To Reproduce

Steps to reproduce the behavior:

  1. enable nixpkgs.config.strictDepsByDefault,
  2. build texlive-combined-basic.

Build log

created 176 symlinks in user environment
patching script interpreter paths in /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/fmtutil
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/dvilualatex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/dvilualatex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/latex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/latex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/lualatex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/lualatex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/pdflatex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/pdflatex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/luahbtex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/luahbtex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/dviluatex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/dviluatex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/luatex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/luatex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/etex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/etex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/pdfetex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/pdfetex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/pdftex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/pdftex failed: file already exists.
install_link /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/tex -> /nix/store/zif20wh4480fmdxv6kdl72szqxmb7b5b-texlive-bin-2022/bin/tex failed: file already exists.
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/afm2pl'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/afm2tfm'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/aleph'
[...]
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/vptovf'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/weave'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/wofm2opl'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/wopl2ofm'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/wovf2ovp'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/wovp2ovf'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/xdvipdfmx'
Wrapping '/nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/xml2pmx'
/build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 86: /nix/store/1amc8i63p68wb7b3rcjz3xr8s86r8j02-texlive-combined-basic-2022.20221227/bin/fmtutil: cannot execute: required file not found

Additional context

Motivation: #178468

Applying the following patch make the strictDeps build work:

diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix
index 5681d2cd454..7c5c30e8c85 100644
--- a/pkgs/tools/typesetting/tex/texlive/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive/combine.nix
@@ -228,7 +228,7 @@ in (buildEnv {
     ln -sf fmtutil "$out/bin/mktexfmt"
 
     texlinks "$out/bin" && wrapBin
-    FORCE_SOURCE_DATE=1 fmtutil --sys --all | grep '^fmtutil' # too verbose
+    #FORCE_SOURCE_DATE=1 fmtutil --sys --all | grep '^fmtutil' # too verbose
     #texlinks "$out/bin" && wrapBin # do we need to regenerate format links?
 
     # tex intentionally ignores SOURCE_DATE_EPOCH even when FORCE_SOURCE_DATE=1

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "aarch64-linux"
  • host os: Linux 5.15.106, NixOS, 23.05 (Stoat), 23.05.20230408.d9f759f
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.13.3
  • channels(root): "nixos"
  • channels(ubuntu): "nixpkgs-22.05"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@erdnaxe erdnaxe added the 0.kind: build failure A package fails to build label Apr 11, 2023
@apfelkuchen6
Copy link
Contributor

This might be fixed by #225503.

@xworld21 xworld21 added the 6.topic: TeX Issues regarding texlive and TeX in general label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: TeX Issues regarding texlive and TeX in general
Projects
None yet
Development

No branches or pull requests

3 participants