Skip to content

buildFHSUserEnv: fix error when share/glib-2.0/schemas is a link#164420

Merged
Artturin merged 1 commit intoNixOS:masterfrom
corngood:build-fhs-fix
Mar 22, 2022
Merged

buildFHSUserEnv: fix error when share/glib-2.0/schemas is a link#164420
Artturin merged 1 commit intoNixOS:masterfrom
corngood:build-fhs-fix

Conversation

@corngood
Copy link
Contributor

@corngood corngood commented Mar 16, 2022

Description of changes

Fixes an error with

nix-build --expr 'with import <nixpkgs> {}; buildFHSUserEnv { name = "test"; targetPkgs = pkgs: with pkgs; [ gtk3 glib.dev ]; }'
created 1369 symlinks in user environment
ln: failed to create symbolic link '/nix/store/hfxdvdjaf4slwn2xhmm7v4kdmbaf9fzp-test-usr-target/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml': Permission denied
ln: failed to create symbolic link '/nix/store/hfxdvdjaf4slwn2xhmm7v4kdmbaf9fzp-test-usr-target/share/glib-2.0/schemas/org.gtk.Settings.ColorChooser.gschema.xml': Permission denied
ln: failed to create symbolic link '/nix/store/hfxdvdjaf4slwn2xhmm7v4kdmbaf9fzp-test-usr-target/share/glib-2.0/schemas/org.gtk.Settings.Debug.gschema.xml': Permission denied
ln: failed to create symbolic link '/nix/store/hfxdvdjaf4slwn2xhmm7v4kdmbaf9fzp-test-usr-target/share/glib-2.0/schemas/org.gtk.Settings.EmojiChooser.gschema.xml': Permission denied
ln: failed to create symbolic link '/nix/store/hfxdvdjaf4slwn2xhmm7v4kdmbaf9fzp-test-usr-target/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml': Permission denied

This seems to have been introduced by #161739, @Artturin.

WIP because:

  • bubblewrap probably needs the same fix
  • should this script be moved to a common location?
  • remove verbose copy
  • use something safer than .old?
  • is * okay without dotglob?
  • perhaps there's a better/existing way of replacing a link with a directory containing links?
  • what do I need to test to know I didn't break anything?
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Mar 16, 2022
@Artturin
Copy link
Member

Artturin commented Mar 16, 2022

needs to be applied to to bublewrap fhs too
use a commit message with buildFHSUserEnv{Chroot,Bubblewrap}:

what do I need to test to know I didn't break anything?

i'll run a nixpkgs-review once this fix has been applied to both fhsuserenvs

@ofborg ofborg bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Mar 16, 2022
@corngood corngood changed the title WIP: buildFHSUserEnv: fix error when share/glib-2.0/schemas is a link buildFHSUserEnv: fix error when share/glib-2.0/schemas is a link Mar 16, 2022
@corngood
Copy link
Contributor Author

@Artturin Thanks. I've updated it with your comments.

@Artturin
Copy link
Member

[artturin@nixos:~]$ review 164420
$ git -c fetch.prune=false fetch --no-tags --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/164420/head:refs/nixpkgs-review/1
remote: Enumerating objects: 2614, done.
remote: Counting objects: 100% (1445/1445), done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 2614 (delta 1393), reused 1375 (delta 1352), pack-reused 1169
Receiving objects: 100% (2614/2614), 4.26 MiB | 7.95 MiB/s, done.
Resolving deltas: 100% (1834/1834), completed with 510 local objects.
From https://github.com/NixOS/nixpkgs
   7666a39ed9f..121b2cf8777  master     -> refs/nixpkgs-review/0
$ git worktree add /home/artturin/.cache/nixpkgs-review/pr-164420-4/nixpkgs 121b2cf87776a4d09e877bea86c4935fbf5bc518
Preparing worktree (detached HEAD 121b2cf8777)
Updating files: 100% (29932/29932), done.
HEAD is now at 121b2cf8777 ttchat: init at 0.1.6 (#161861)
$ git merge --no-commit --no-ff f63f00c8412312c8cc94b34139fff6c45ca0ebdf
Automatic merge went well; stopped before committing as requested
$ nix --experimental-features nix-command build --no-link --keep-going --option build-use-sandbox relaxed -f /home/artturin/.cache/nixpkgs-review/pr-164420-4/build.nix
error: builder for '/nix/store/dnz614pwkczr51brxqpq078kpsralp4b-CiscoPacketTracer_801_Ubuntu_64bit.deb.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file CiscoPacketTracer_801_Ubuntu_64bit.deb automatically.
       > Please go to https://www.netacad.com to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 CiscoPacketTracer_801_Ubuntu_64bit.deb
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/CiscoPacketTracer_801_Ubuntu_64bit.deb
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/dnz614pwkczr51brxqpq078kpsralp4b-CiscoPacketTracer_801_Ubuntu_64bit.deb.drv'.
error: builder for '/nix/store/7bw41r3s78466m5mssyx413rkz33y71r-ModelSimSetup-20.1.1.720-linux.run.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file ModelSimSetup-20.1.1.720-linux.run automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 ModelSimSetup-20.1.1.720-linux.run
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/ModelSimSetup-20.1.1.720-linux.run
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/7bw41r3s78466m5mssyx413rkz33y71r-ModelSimSetup-20.1.1.720-linux.run.drv'.
error: builder for '/nix/store/r9bqkk40yziwz1glsbm698j5xgy3a6j7-PacketTracer_731_amd64.deb.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file PacketTracer_731_amd64.deb automatically.
       > Please go to https://www.netacad.com to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 PacketTracer_731_amd64.deb
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/PacketTracer_731_amd64.deb
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/r9bqkk40yziwz1glsbm698j5xgy3a6j7-PacketTracer_731_amd64.deb.drv'.
error: builder for '/nix/store/ix1jkvlcsidjccvw25glyj82x198v29w-QuartusLiteSetup-20.1.1.720-linux.run.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file QuartusLiteSetup-20.1.1.720-linux.run automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 QuartusLiteSetup-20.1.1.720-linux.run
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/QuartusLiteSetup-20.1.1.720-linux.run
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/ix1jkvlcsidjccvw25glyj82x198v29w-QuartusLiteSetup-20.1.1.720-linux.run.drv'.
error: builder for '/nix/store/sxrw6z0h50smkvl1mkq72an0as64dp94-arria_lite-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file arria_lite-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 arria_lite-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/arria_lite-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/sxrw6z0h50smkvl1mkq72an0as64dp94-arria_lite-20.1.1.720.qdz.drv'.
error: builder for '/nix/store/aif3nylczcj8938mnvs91cim98r85v0y-cyclone-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file cyclone-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 cyclone-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/cyclone-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/aif3nylczcj8938mnvs91cim98r85v0y-cyclone-20.1.1.720.qdz.drv'.
error: builder for '/nix/store/p5zr70sglisvh6yy1fz7n8zwmcxwb37h-cyclone10lp-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file cyclone10lp-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 cyclone10lp-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/cyclone10lp-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/p5zr70sglisvh6yy1fz7n8zwmcxwb37h-cyclone10lp-20.1.1.720.qdz.drv'.
error: builder for '/nix/store/d1yxy8jjf9pkh8l8xfkvxi6aqh7mxwrs-cyclonev-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file cyclonev-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 cyclonev-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/cyclonev-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/d1yxy8jjf9pkh8l8xfkvxi6aqh7mxwrs-cyclonev-20.1.1.720.qdz.drv'.
error: builder for '/nix/store/4jivaak266z867bcpld08azv2mv2ppcn-houdini-py3-18.5.596-linux_x86_64_gcc6.3.tar.gz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file houdini-py3-18.5.596-linux_x86_64_gcc6.3.tar.gz automatically.
       > Please go to https://www.sidefx.com to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 houdini-py3-18.5.596-linux_x86_64_gcc6.3.tar.gz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/houdini-py3-18.5.596-linux_x86_64_gcc6.3.tar.gz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/4jivaak266z867bcpld08azv2mv2ppcn-houdini-py3-18.5.596-linux_x86_64_gcc6.3.tar.gz.drv'.
error: builder for '/nix/store/caax6q93simmkzkzfbzcrdqi6nxyc9ih-max-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file max-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 max-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/max-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/caax6q93simmkzkzfbzcrdqi6nxyc9ih-max-20.1.1.720.qdz.drv'.
error: builder for '/nix/store/7fqkyfxb8kqmcv19dxiynbin3sxg69gs-max10-20.1.1.720.qdz.drv' failed with exit code 1;
       last 10 log lines:
       > ***
       > Unfortunately, we cannot download file max10-20.1.1.720.qdz automatically.
       > Please go to https://fpgasoftware.intel.com/20.1/?edition=lite&platform=linux to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 max10-20.1.1.720.qdz
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/max10-20.1.1.720.qdz
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/7fqkyfxb8kqmcv19dxiynbin3sxg69gs-max10-20.1.1.720.qdz.drv'.
error: 1 dependencies of derivation '/nix/store/jh37pigk2rd78qb140n05gp5hvm8aw56-PacketTracer7drv.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zkcvw9ysb0jn161f66p9wqwl2sk823j2-PacketTracer8Drv.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rh5gy9yi76hp2ysnan1qh72cgqn9rrkh-houdini-runtime-18.5.596.drv' failed to build
error: 8 dependencies of derivation '/nix/store/ypf2mhxcsdbb4p1f51vvf7y5m35y5f41-quartus-prime-lite-unwrapped-20.1.1.720.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ij6fksfmca4fcs2lhk089z57xd6kjjbf-cisco-pt7.desktop.desktop.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gab7m7ghmclikqznan13w1wf82nfgpq0-cisco-pt8.desktop.desktop.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9j0is26l9lxz7fdq2lqry2jq6s7m6x9p-houdini-18.5.596.drv' failed to build
error: 1 dependencies of derivation '/nix/store/faq1xbg5331csrvwnmbhxqfbv11cp1a1-packettracer7-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6r5lrnf818ggjissrijkiixhrsp9lpy9-packettracer8-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sknxbn4y1xghc2969af2p60rwza1rhqs-quartus-prime-lite.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1lh7xm845372hy16krlzlb49va1p9klw-packettracer7.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1ig21nc7lpfyxjcrg0h6s3mnw47gpfa7-packettracer8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1rik1ph1ph5kscv5ab4kz0pp1r9rnzs6-packettracer7.drv' failed to build
error: 2 dependencies of derivation '/nix/store/ammm2bxn14c8761fk13wbrj80i189amm-packettracer8.drv' failed to build
error: 2 dependencies of derivation '/nix/store/9wxr4s8cvbr5nv68z5sg1p02l6krwy7m-ciscoPacketTracer7-7.3.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/sqvwzh1wahhj24k4q3sijq9dg1034v6g-ciscoPacketTracer8-8.0.1.drv' failed to build
error: builder for '/nix/store/ap7pf6a41k236av14khq2kbv2maa2qaz-beyond-identity-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: creating dangling symlink `/nix/store/kwrkmj0ldz4js8nsaqw7vrwhls37a2ap-beyond-identity-usr-target//etc/localtime' -> `/nix/store/1cdfh9ifs8qh56n0llala029gfcc4ksb-beyond-identity-chrootenv-etc/etc
/localtime' -> `/host/etc/localtime'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/pam.d' and dangling symlink `/nix/store/1cdfh9ifs8qh56n0llala029gfcc4ksb-beyond-identity-chrootenv-etc/etc/pam.d'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/login.defs' and dangling symlink `/nix/store/1cdfh9ifs8qh56n0llala029gfcc4ksb-beyond-identity-chrootenv-etc/etc/log
in.defs'
       > warning: collision between `/nix/store/drb5a0j2z8fh6bivl9aq15fbfmrx62kb-glibc-2.33-117-bin/bin/ldd' and `/nix/store/7sz7gm90msn4n3qrafjx46vfqp51xqhy-glibc-multi-2.33-117-bin/bin/ldd'
       > warning: collision between `/nix/store/q29bwjibv9gi9n86203s38n0577w09sx-glibc-2.33-117/lib/locale/locale-archive' and `/nix/store/fsji1nk1sh8a97mnvlkv0hrzngd7p5fm-glibc-locales-2.33-117/lib/locale/locale-
archive'
       > warning: creating dangling symlink `/nix/store/kwrkmj0ldz4js8nsaqw7vrwhls37a2ap-beyond-identity-usr-target//etc/ssl/certs' -> `/nix/store/1cdfh9ifs8qh56n0llala029gfcc4ksb-beyond-identity-chrootenv-etc/etc
/ssl/certs' -> `/host/etc/ssl/certs'
       > warning: collision between `/nix/store/7z4xp5a4jsqqhzqzp9za0i1s25d2jkjj-polkit-0.120/etc/pam.d' and dangling symlink `/nix/store/1cdfh9ifs8qh56n0llala029gfcc4ksb-beyond-identity-chrootenv-etc/etc/pam.d'
       > created 5832 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/kwrkmj0ldz4js8nsaqw7vrwhls37a2ap-beyond-identity-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/ap7pf6a41k236av14khq2kbv2maa2qaz-beyond-identity-usr-target.drv'.
error: builder for '/nix/store/r6a96s8cay54finxjdp0ixhy2a4gmjjh-vmware-usbarbitrator-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: creating dangling symlink `/nix/store/716n3kxym5yc6w4kz22637a6fgpc876m-vmware-usbarbitrator-usr-target//etc/fonts' -> `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chrootenv-e
tc/etc/fonts' -> `/host/etc/fonts'
       > warning: creating dangling symlink `/nix/store/716n3kxym5yc6w4kz22637a6fgpc876m-vmware-usbarbitrator-usr-target//etc/passwd' -> `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chrootenv-
etc/etc/passwd' -> `/host/etc/passwd'
       > warning: creating dangling symlink `/nix/store/716n3kxym5yc6w4kz22637a6fgpc876m-vmware-usbarbitrator-usr-target//etc/sudoers.d' -> `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chroote
nv-etc/etc/sudoers.d' -> `/host/etc/sudoers.d'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/pam.d' and dangling symlink `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chrootenv-etc/etc/pam
.d'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/login.defs' and dangling symlink `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chrootenv-etc/et
c/login.defs'
       > warning: collision between `/nix/store/46lffjx3km22nkix24ilnsvwgnkjwn1k-fontconfig-2.13.94/etc/fonts' and dangling symlink `/nix/store/jw7xfdp5c9qyr0jzi5390vlhslpv4mk1-vmware-usbarbitrator-chrootenv-etc/e
tc/fonts'
       > warning: collision between `/nix/store/l6qjw55i0jjbzr5bxcxvw0q18nz5d4zz-gtk+3-3.24.31/bin/gtk-update-icon-cache' and `/nix/store/x8cxprc55jiy99740v3wd1xqqqzg6znk-gtk+-2.24.33/bin/gtk-update-icon-cache'
       > created 3729 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/716n3kxym5yc6w4kz22637a6fgpc876m-vmware-usbarbitrator-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/r6a96s8cay54finxjdp0ixhy2a4gmjjh-vmware-usbarbitrator-usr-target.drv'.
error: builder for '/nix/store/3vmmvgz7r69ns2mfmn33pfyi303r7nw4-vmware-view-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: creating dangling symlink `/nix/store/vmpdsjxhg35lkyxb1296lx0qin1vlhys-vmware-view-usr-target//etc/group' -> `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/group' -> `
/host/etc/group'
       > warning: creating dangling symlink `/nix/store/vmpdsjxhg35lkyxb1296lx0qin1vlhys-vmware-view-usr-target//etc/asound.conf' -> `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/asoun
d.conf' -> `/host/etc/asound.conf'
       > warning: creating dangling symlink `/nix/store/vmpdsjxhg35lkyxb1296lx0qin1vlhys-vmware-view-usr-target//etc/os-release' -> `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/os-rel
ease' -> `/host/etc/os-release'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/pam.d' and dangling symlink `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/pam.d'
       > warning: collision between `/nix/store/dqbp53cvm6nw4zdiwmfvkb50369cp8ah-shadow-4.8.1/etc/login.defs' and dangling symlink `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/login.d
efs'
       > warning: collision between `/nix/store/46lffjx3km22nkix24ilnsvwgnkjwn1k-fontconfig-2.13.94/etc/fonts' and dangling symlink `/nix/store/nn03liw18njb7nyxh92lfdli1gxzvna7-vmware-view-chrootenv-etc/etc/fonts'
       > warning: collision between `/nix/store/l6qjw55i0jjbzr5bxcxvw0q18nz5d4zz-gtk+3-3.24.31/bin/gtk-update-icon-cache' and `/nix/store/x8cxprc55jiy99740v3wd1xqqqzg6znk-gtk+-2.24.33/bin/gtk-update-icon-cache'
       > created 3729 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/vmpdsjxhg35lkyxb1296lx0qin1vlhys-vmware-view-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/3vmmvgz7r69ns2mfmn33pfyi303r7nw4-vmware-view-usr-target.drv'.
error: 1 dependencies of derivation '/nix/store/3v9k39jqxrc9psig0brkg5k5hgwdfrxf-beyond-identity-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ljmq3dg8ifzplsfsqfkyyidq5g2srxq1-vmware-usbarbitrator-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4yww4q0j4fcg58pzb05bw41qfhn9wck5-vmware-view-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/88z8chhijj0af43ycdp3b15wbj8br2nr-beyond-identity-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8nw8k1yw4qf7zw0fp3y57qbas7cmwjkn-vmware-usbarbitrator-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8v27cgdp4n5xx8czzf3i5avmqzahjbrc-vmware-view-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/66spq6ha6lbvb2f2vb7vj8clisyzsqx5-beyond-identity.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m5avnalkyld4lmh3xr68gv35chww3rcg-vmware-usbarbitrator.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dknkqx6ih86an40gld9wvwyb9bl13w2k-vmware-view.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ih65p08jbwd9ywdmyja4jgmh3svxi3gx-vmware-view.desktop.drv' failed to build
error: 3 dependencies of derivation '/nix/store/z58nnbkgykzr3gd0i0q51751296xsaxn-vmware-horizon-client.drv' failed to build
error: hash mismatch in fixed-output derivation '/nix/store/035x8k4f5sgrl2yvh3zm66calsj6pql7-runescape-launcher_2.2.9_amd64.deb.drv':
         specified: sha256-4Qh4jrm/l1f7JEvQ6shKH1dMEcvzjhZWGFopAPkNu2Q=
            got:    sha256-z7r6Acm8WUbYDJ1dafAj23+3qbnjjLVjwT7uBsITykc=
error: 1 dependencies of derivation '/nix/store/fgwaf0dnfa84i8d9mln851f843x502g4-runescape-launcher-2.2.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wgx2hfafv879zwlczj8nv5zbaw7fq19s-RuneScape-usr-target.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jsi2yrph0a29vbpss91g9snanqjn80cz-RuneScape-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/12scclrvy0c0c13vnlqz52ib6s1y5mal-RuneScape-init.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bh469nmli84ppvy1909j8jbq6nq4rb8r-RuneScape.drv' failed to build
[6/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building opencv-4.5.4 (buildPhas[6/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building opencv-4.5.4 (buildPhas[
6/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building SDL2-2.0.20 (configureP[6/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building parted-3.4 (buildPhase)[6
/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building parted-3.4 (buildPhase)[6/31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building SDL2-2.0.20 (configureP[6/
31/399 built (15 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building parted-3.4 (buildPhase)
error: builder for '/nix/store/fz4lzjz6wrlmv88zsld9rkbprb85i2k6-steam-run-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: collision between `/nix/store/x8cxprc55jiy99740v3wd1xqqqzg6znk-gtk+-2.24.33/bin/gtk-update-icon-cache' and `/nix/store/l6qjw55i0jjbzr5bxcxvw0q18nz5d4zz-gtk+3-3.24.31/bin/gtk-update-icon-cache'
       > warning: collision between `/nix/store/jpkv8c5z9fyxbl8s587zjc6winicrj8r-librsvg-2.52.6/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache' and `/nix/store/4v7mzp0irb2a24bwbwg4n573imrip5cl-gdk-pixbuf-2.42.6/lib/gdk-p
ixbuf-2.0/2.10.0/loaders.cache'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-glx.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-glx.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-drm.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-drm.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-wayland.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-wayland.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-x11.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-x11.so'
       > created 14324 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/wyad191rsj3frifs0cpmf8ni9qlbkz7v-steam-run-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/fz4lzjz6wrlmv88zsld9rkbprb85i2k6-steam-run-usr-target.drv'.
error: builder for '/nix/store/qx22w9nklawg79za5dv9ws12nk0w61j7-steam-run-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: collision between `/nix/store/x8cxprc55jiy99740v3wd1xqqqzg6znk-gtk+-2.24.33/bin/gtk-update-icon-cache' and `/nix/store/l6qjw55i0jjbzr5bxcxvw0q18nz5d4zz-gtk+3-3.24.31/bin/gtk-update-icon-cache'
       > warning: collision between `/nix/store/jpkv8c5z9fyxbl8s587zjc6winicrj8r-librsvg-2.52.6/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache' and `/nix/store/4v7mzp0irb2a24bwbwg4n573imrip5cl-gdk-pixbuf-2.42.6/lib/gdk-p
ixbuf-2.0/2.10.0/loaders.cache'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-glx.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-glx.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-drm.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-drm.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-wayland.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-wayland.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-x11.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-x11.so'
       > created 14303 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/z95hyqvf9p2yspkivnaip2xfz2xhyrkl-steam-run-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/qx22w9nklawg79za5dv9ws12nk0w61j7-steam-run-usr-target.drv'.
error: builder for '/nix/store/9059mm7gw57vwxlqdzp8bqqia84lcgac-steam-usr-target.drv' failed with exit code 1;
       last 10 log lines:
       > warning: collision between `/nix/store/x8cxprc55jiy99740v3wd1xqqqzg6znk-gtk+-2.24.33/bin/gtk-update-icon-cache' and `/nix/store/l6qjw55i0jjbzr5bxcxvw0q18nz5d4zz-gtk+3-3.24.31/bin/gtk-update-icon-cache'
       > warning: collision between `/nix/store/jpkv8c5z9fyxbl8s587zjc6winicrj8r-librsvg-2.52.6/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache' and `/nix/store/4v7mzp0irb2a24bwbwg4n573imrip5cl-gdk-pixbuf-2.42.6/lib/gdk-p
ixbuf-2.0/2.10.0/loaders.cache'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-glx.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-glx.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-drm.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-drm.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-wayland.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-wayland.so'
       > warning: collision between `/nix/store/mwl097s2hlnaafigi0vqvzhvs8hs9yf3-libva-1.7.3/lib/libva-x11.so' and `/nix/store/myisvl040ghp0glmmsgc2pxi6kmc82s3-libva-2.13.0/lib/libva-x11.so'
       > created 14420 symlinks in user environment
       > cp: missing destination file operand after '/nix/store/rmgdwj5a4p066xwsx7kdc9dmccc1rm13-steam-usr-target/share/glib-2.0'
       > Try 'cp --help' for more information.
       For full logs, run 'nix log /nix/store/9059mm7gw57vwxlqdzp8bqqia84lcgac-steam-usr-target.drv'.
error: 1 dependencies of derivation '/nix/store/frgqnm2yzd05yr9b0ph11ng075yygqsv-steam-run-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rpb2dlw5bwzdciws7dqn4kkdlpxyz7xr-steam-run.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mwv4wnsg2rhkfgqqf1c6msai9jn13mzb-steam-run.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kxlz73xnyvgjszp73cycpf7vwfxymfpw-itch-setup.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dl0vjv06bx0qpb2hspbrflkb0h28r00y-protontricks-1.7.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5wrqaikzzbjgk35263amapq289shg5sb-steamcmd-20180104.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jjb5fvqxwb6qm9snvxdfv24yr6y68hcx-itch-25.5.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/qpm1r5r78ff0924d1p021ya23mxbbjhj-steam-tui-0.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nwbdn4v0w5h802lng1gn357hs4w5fqmp-steam-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/41qs7l2dgj20cjwwhgpy96p8l297b246-steam-run-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qv4c1mxf5vmrhckm0nd7ikgzq9sz437h-steam-run.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qdgn0p7anr64qbcrhshgchvhcafp5p5f-steam.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7zbrs5icd65mw7z95adk72ha31d14r6y-steam-run.drv' failed to build
error: 1 dependencies of derivation '/nix/store/niyb6smagw98s7zmj445kx81dkqll3b0-steam.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wyfmcfrgmhv0xjvqny5401y1wy7wivhr-kodi-steam-launcher-3.5.1.drv' failed to build
[3/356/381 built (18 failed), 26 copied (2069.7/2069.8 MiB), 976.2 MiB DL] building wine-wow-7.2-staging:   -Wabsolute-value -fno-omit-frame-pointer -gdwarf-4 -g -O2

@Artturin
Copy link
Member

Result of nixpkgs-review pr 164420 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • ovftool
  • timedoctor
1 package blacklisted:
  • appimage-run-tests
20 packages failed to build:
  • beyond-identity
  • bottles
  • ciscoPacketTracer7
  • ciscoPacketTracer8
  • houdini
  • itch
  • itch-setup
  • kodiPackages.steam-launcher
  • lutris
  • lutris-free
  • minigalaxy
  • playonlinux
  • protontricks
  • quartus-prime-lite
  • runescape
  • steam
  • steam-run
  • steam-tui
  • steamcmd
  • vmware-horizon-client
94 packages built:
  • Sylk
  • altair
  • android-studio (androidStudioPackages.stable)
  • androidStudioPackages.beta
  • androidStudioPackages.canary
  • androidStudioPackages.dev
  • anki-bin
  • anytype
  • appimage-run
  • apple-music-electron
  • arduino
  • arduino-ci
  • arduino-cli
  • arduino-core
  • beekeeper-studio
  • betterdiscord-installer
  • bitscope.chart
  • bitscope.console
  • bitscope.display
  • bitscope.dso
  • bitscope.logic
  • bitscope.meter
  • bitscope.proto
  • bitscope.server
  • bloomrpc
  • buttercup-desktop
  • chrysalis
  • clonehero
  • conda
  • cozy-drive
  • crypto-org-wallet
  • devdocs-desktop
  • dropbox
  • dropbox-cli
  • electron-mail
  • electronplayer
  • esphome
  • fahclient
  • firefly-desktop
  • flexoptix-app
  • flutter (flutterPackages.stable)
  • fspy
  • heroic
  • hover
  • irccloud
  • joplin-desktop
  • keeweb
  • lbry
  • ledger-live-desktop
  • left4gore-bin
  • lens
  • lightworks
  • losslesscut-bin
  • lunar-client
  • marktext
  • mate.caja-dropbox
  • mathpix-snipping-tool
  • mobilecoin-wallet
  • molotov
  • mycrypto
  • neo4j-desktop
  • notable
  • notion-app-enhanced
  • nuclear
  • octant-desktop
  • p3x-onenote
  • pdfstudio
  • pdfstudioviewer
  • platformio
  • plex
  • plexamp
  • radicle-upstream
  • rambox-pro
  • saleae-logic-2
  • session-desktop-appimage
  • shticker-book-unwritten
  • sidequest
  • ssb-patchwork
  • standardnotes
  • station
  • teensyduino
  • timeular
  • trezor-suite
  • tusk
  • unityhub
  • unvanquished
  • via
  • vial
  • vscode-fhs
  • vscodium-fhs
  • wootility
  • ytmdesktop
  • zettlr
  • zulip

An error would occur if share/glib-2.0/schema was a symlink.
@corngood
Copy link
Contributor Author

@Artturin thanks for running that. I pushed it again with what should be a fix for steam, etc.

One thing that bothers me about this implementation is all of these:

ln -fs $target/* $out/share/glib-2.0
ln -fs $d/glib-2.0/schemas/*.xml $out/share/glib-2.0/schemas
ln -fs $d/glib-2.0/schemas/*.gschema.override $out/share/glib-2.0/schemas

When nothing matches the wildcard they'll create a symlink in cwd. It seems like there should be a better way to create 0..many symlinks, but the best I could come up with was a for loop over the wildcard, which is more verbose and still depends on nullglob. In any case it doesn't seem to break anything.

@Artturin
Copy link
Member

Result of nixpkgs-review pr 164420 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • ovftool
  • timedoctor
1 package blacklisted:
  • appimage-run-tests
5 packages failed to build:
  • ciscoPacketTracer7
  • ciscoPacketTracer8
  • houdini
  • quartus-prime-lite
  • runescape
110 packages built:
  • Sylk
  • altair
  • android-studio (androidStudioPackages.stable)
  • androidStudioPackages.beta
  • androidStudioPackages.canary
  • androidStudioPackages.dev
  • anki-bin
  • anytype
  • appimage-run
  • apple-music-electron
  • arduino
  • arduino-ci
  • arduino-cli
  • arduino-core
  • beekeeper-studio
  • betterdiscord-installer
  • beyond-identity
  • bitscope.chart
  • bitscope.console
  • bitscope.display
  • bitscope.dso
  • bitscope.logic
  • bitscope.meter
  • bitscope.proto
  • bitscope.server
  • bloomrpc
  • bottles
  • buttercup-desktop
  • chrysalis
  • cider
  • clonehero
  • conda
  • cozy-drive
  • crypto-org-wallet
  • devdocs-desktop
  • dropbox
  • dropbox-cli
  • electron-mail
  • electronplayer
  • esphome
  • fahclient
  • firefly-desktop
  • flexoptix-app
  • flutter (flutterPackages.stable)
  • fspy
  • heroic
  • hover
  • irccloud
  • itch
  • itch-setup
  • joplin-desktop
  • keeweb
  • kodiPackages.steam-launcher
  • lbry
  • ledger-live-desktop
  • left4gore-bin
  • lens
  • lightworks
  • losslesscut-bin
  • lunar-client
  • lutris
  • lutris-free
  • marktext
  • mate.caja-dropbox
  • mathpix-snipping-tool
  • minigalaxy
  • mobilecoin-wallet
  • molotov
  • mycrypto
  • neo4j-desktop
  • notable
  • notion-app-enhanced
  • nuclear
  • octant-desktop
  • p3x-onenote
  • pdfstudio
  • pdfstudioviewer
  • platformio
  • playonlinux
  • plex
  • plexamp
  • protontricks
  • radicle-upstream
  • rambox-pro
  • saleae-logic-2
  • session-desktop-appimage
  • shticker-book-unwritten
  • sidequest
  • ssb-patchwork
  • standardnotes
  • station
  • steam
  • steam-run
  • steam-tui
  • steamcmd
  • teensyduino
  • timeular
  • trezor-suite
  • tusk
  • unityhub
  • unvanquished
  • via
  • vial
  • vmware-horizon-client
  • vscode-fhs
  • vscodium-fhs
  • wootility
  • ytmdesktop
  • zettlr
  • zulip

@Artturin
Copy link
Member

No new failures

Tested ssb-framework with XDG_DATA_DIRS= ./result/bin/ssb-patchwork and i was able to open the file dialogue

Thanks!

@Artturin Artturin merged commit 6396adb into NixOS:master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants