Skip to content

deja-dup: fix nautilus extension breaking nautilus#42177

Merged
fpletz merged 1 commit intoNixOS:masterfrom
jtojnar:deja-dup-nautilus
Jun 19, 2018
Merged

deja-dup: fix nautilus extension breaking nautilus#42177
fpletz merged 1 commit intoNixOS:masterfrom
jtojnar:deja-dup-nautilus

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Jun 18, 2018

Motivation for this change

When deja-dup is installed, Nautilus segfaults on start due to the missing gsettings schemas.

This commit hard-codes path to the compiled schemas file to the extension.

Discuss the solutions in #42176

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/)
  • Fits CONTRIBUTING.md.

When deja-dup is installed, Nautilus segfaults on start due to
the missing gsettings schemas.

This commit hardcodes path to the compiled schemas file to the extension.
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jun 18, 2018
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: deja-dup

Partial log (click to expand)

shrinking /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/lib/nautilus/extensions-3.0/libdeja-dup.so
shrinking /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/libexec/deja-dup/tools/.libduplicity.so-wrapped
shrinking /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/libexec/deja-dup/.deja-dup-monitor-wrapped
shrinking /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/bin/.deja-dup-wrapped
gzipping man pages under /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/share/man/
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/lib  /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/libexec  /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/bin
patching script interpreter paths in /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0
/nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0/libexec/deja-dup/.duplicity-wrapped: interpreter directive changed from "/bin/sh" to "/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/np144wj6z7xkldmy1k9d7ja0zs9293vg-deja-dup-38.0...

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: deja-dup

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: deja-dup

Partial log (click to expand)

[1712/2152] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/UIProcess/Downloads/DownloadProxy.cpp.o
[1713/2152] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/NetworkProcess/Downloads/Download.cpp.o
building of '/nix/store/8xrc3gig87ivcjcnmlv9ks6pjavk0k2m-webkitgtk-2.20.3.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/0v8nyg22k1iqjg717s34nw7pkssn6m9j-gnome-online-accounts-3.28.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gf8595gkjsd87q39169fzma99wjzcinf-libgdata-0.17.9.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/8mx72jm5zvcxy0h90wyxi17fixapsv3x-evolution-data-server-3.28.2.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/hm3lj33cjlhm9ggbfy5m65bsrjiky345-tracker-miners-2.0.4.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/lclsp858v352vgjdyh73mr8gnvgn9j13-nautilus-3.28.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/y7nk1v9429h1cbb8yrk9kqv5b2a6rdh5-deja-dup-38.0.drv': 2 dependencies couldn't be built
error: build of '/nix/store/y7nk1v9429h1cbb8yrk9kqv5b2a6rdh5-deja-dup-38.0.drv' failed

@fpletz fpletz merged commit bcc60fa into NixOS:master Jun 19, 2018
@jtojnar jtojnar deleted the deja-dup-nautilus branch July 15, 2018 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants