Open erdnaxe opened 1 year ago
Steps to reproduce the behavior:
nixpkgs.config.strictDepsByDefault
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
Motivation: https://github.com/NixOS/nixpkgs/issues/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
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
nix-shell -p nix-info --run "nix-info -m"
"aarch64-linux"
Linux 5.15.106, NixOS, 23.05 (Stoat), 23.05.20230408.d9f759f
yes
nix-env (Nix) 2.13.3
"nixos"
"nixpkgs-22.05"
/nix/var/nix/profiles/per-user/root/channels/nixos
This might be fixed by #225503.
Steps To Reproduce
Steps to reproduce the behavior:
nixpkgs.config.strictDepsByDefault
,Build log
Additional context
Motivation: https://github.com/NixOS/nixpkgs/issues/178468
Applying the following patch make the strictDeps build work:
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."aarch64-linux"
Linux 5.15.106, NixOS, 23.05 (Stoat), 23.05.20230408.d9f759f
yes
yes
nix-env (Nix) 2.13.3
"nixos"
"nixpkgs-22.05"
/nix/var/nix/profiles/per-user/root/channels/nixos