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

maketar fails with: [glibc locale] file changed as we read it #40

Open
michalrus opened this issue Sep 28, 2018 · 5 comments
Open

maketar fails with: [glibc locale] file changed as we read it #40

michalrus opened this issue Sep 28, 2018 · 5 comments

Comments

@michalrus
Copy link

michalrus commented Sep 28, 2018

It doesn’t happen consistently ( :o ), but I’m quite often getting this when running nix-bundle:

tar: /nix/store/2qgjpsn1zkf0clvrrjympwf6ar2dx83r-glibc-2.27/share/i18n/locales/mai_NP: file changed as we read it
builder for '/nix/store/b4qxkfr51mplhfkl7i5dg4fvd8gwm2zw-maketar.drv' failed with exit code 1
cannot build derivation '/nix/store/00p5syq4hy5jv4pw843z191w8bi2kdsf-arx.drv': 1 dependencies couldn't be built

Or:

tar: /nix/store/2qgjpsn1zkf0clvrrjympwf6ar2dx83r-glibc-2.27/share/i18n/locales/cns11643_stroke: file changed as we read it

How is it even possible for this store path to change? :o

Re-running it, it works.

@michalrus
Copy link
Author

I’m building an AppImage and nix-bundle of the same application in parallel, if it makes any difference.

@michalrus
Copy link
Author

Yeah, so it seems to be some race, when building them serially (nix-bundle first, then AppImage), it works each time.

@michalrus
Copy link
Author

So creating an artificial dependency on nix-bundle, e.g. somewhere in the AppImage source, using a string of ${lib.substring 0 1 (toString bundle)} works…

But I don’t think it’s the solution. =P

@matthewbauer
Copy link
Member

Hmmm... It could be AppImage messing with stuff in the background. Are you using a single-user or multi-user store?

@michalrus
Copy link
Author

@matthewbauer it’s on regular NixOS, so… /nix/store is immutable… Hmmm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants