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

nixos/fontconfig/make-fonts-cache: don't fail to clean the cache #49762

Merged
merged 1 commit into from Nov 14, 2018

Conversation

symphorien
Copy link
Member

Motivation for this change

Today I couldn't rebuild because of:
[...]
/nix/store/lxkrsrlqplz2n75hvpq6vr0gam0gfgrl-font-cursor-misc-1.0.3/lib/X11/fonts/misc: skipping, existing cache is valid: 1 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache: cleaning cache directory
fc-cache: succeeded
rm: cannot remove '/nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache/CACHEDIR.TAG': No such file or directory
builder for '/nix/store/zxfmil40n79vhn5hb4flqc76j99a3l7b-fc-cache.drv' failed with exit code 1

Strangely, when fixing this it seems the file really exists. No clue.
Anyway this is a good pretext to add preferLocalBuild=true.

I guess that it's worth backporting, since I experienced this bug on 18.09.

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.

Today I couldn't rebuild because of:
[...]
/nix/store/lxkrsrlqplz2n75hvpq6vr0gam0gfgrl-font-cursor-misc-1.0.3/lib/X11/fonts/misc: skipping, existing cache is valid: 1 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache: cleaning cache directory
fc-cache: succeeded
rm: cannot remove '/nix/store/xq3c44ha15pfa5a9mv1z9mni3cfghsna-fc-cache/CACHEDIR.TAG': No such file or directory
builder for '/nix/store/zxfmil40n79vhn5hb4flqc76j99a3l7b-fc-cache.drv' failed with exit code 1
@lheckemann
Copy link
Member

@GrahamcOfBorg test sddm chromium

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: tests.sddm, tests.chromium

Partial log (click to expand)


Cannot nix-instantiate `tests.chromium' because:
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/lib/attrsets.nix:347:27:
while evaluating the attribute 'chromium' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/nixos/tests/all-tests.nix:40:3:
while evaluating 'handleTestOn' at /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/nixos/tests/all-tests.nix:19:33, called from /var/lib/gc-of-borg/nix-test-rs-30/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-30/nixos/tests/all-tests.nix:40:15:
access to path '/nix/store/gin2b1811sa86ni6x9fjb9bdlval79rj-grahamc-aarch64-community-30' is forbidden in restricted mode

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: tests.sddm, tests.chromium

Partial log (click to expand)

Cannot nix-instantiate `tests.chromium' because:
error: while evaluating 'recursiveUpdate' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:415:26, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:148:28:
while evaluating 'recursiveUpdateUntil' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:384:37, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:416:5:
while evaluating 'zipAttrsWith' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:21, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:394:8:
while evaluating 'zipAttrsWithNames' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:332:33, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:27:
while evaluating anonymous function at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/lists.nix:113:41, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/lib/attrsets.nix:347:46:
while evaluating the attribute 'chromium' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:40:3:
while evaluating 'handleTestOn' at /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:19:33, called from /var/lib/gc-of-borg/nix-root/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/gleber-bastion/nixos/tests/all-tests.nix:40:15:
access to path '/nix/store/fn4r6az9wrl440saxhpci6xlir6jzc9a-gleber-bastion' is forbidden in restricted mode

@lheckemann
Copy link
Member

Since ofborg's nixos test running is currently broken, I've run the sddm test locally, which worked fine.

@lheckemann lheckemann merged commit 3ef2261 into NixOS:master Nov 14, 2018
@symphorien symphorien deleted the fccache branch May 18, 2019 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants