Skip to content

backintime-qt4: unbreak#102417

Merged
veprbl merged 2 commits intoNixOS:masterfrom
freezeboy:unbreak-backintime-qt4
Nov 3, 2020
Merged

backintime-qt4: unbreak#102417
veprbl merged 2 commits intoNixOS:masterfrom
freezeboy:unbreak-backintime-qt4

Conversation

@freezeboy
Copy link
Copy Markdown
Contributor

@freezeboy freezeboy commented Nov 2, 2020

Motivation for this change

Derivation marked broken but in fact works as expected

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 2, 2020
@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

You need to restore the meta attribute to compile things on hydra. I suggest replacing your commit with a complete revert of 119570c. You would also need to patch the build system to not try to write to /nix/store (see commit message for the original commit)

@freezeboy
Copy link
Copy Markdown
Contributor Author

ok for the meta flag, but I compiled my version and it didn't try to write to /nix/store

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

cc @mguentner

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

I don't see any changes [1] since it was marked broken, so why would it be fixed

[1] https://github.com/NixOS/nixpkgs/commits/master/pkgs/applications/networking/sync/backintime

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

I see following in the build log:

#install dbus conf
install -d /nix/store/iinzv04gsbwd8kgil9d0kk0jbv4hgxs1-backintime-qt4-1.1.24/../etc/dbus-1/system.d
install --mode=644 net.launchpad.backintime.serviceHelper.conf /nix/store/iinzv04gsbwd8kgil9d0kk0jbv4hgxs1-backintime-qt4-1.1.24/../etc/dbus-1/system.d

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

Also

substituteStream(): WARNING: pattern '="/usr/share' doesn't match anything in file '/nix/store/iinzv04gsbwd8kgil9d0kk0jbv4hgxs1-backintime-qt4-1.1.24/bin/backintime-qt4'

@freezeboy
Copy link
Copy Markdown
Contributor Author

true for the substitute I can remove it
but the install are ... in $out, so what is the problem?

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020 via email

@freezeboy freezeboy force-pushed the unbreak-backintime-qt4 branch from 2773dde to 3913328 Compare November 2, 2020 11:55
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 2, 2020
@freezeboy
Copy link
Copy Markdown
Contributor Author

Ok, I understand, it would mean add the new branch 1.2 maybe

@freezeboy freezeboy force-pushed the unbreak-backintime-qt4 branch from 3913328 to 831d647 Compare November 2, 2020 14:32
@freezeboy
Copy link
Copy Markdown
Contributor Author

Updated to 1.2.1 and qt5, currently, there is a problem running the qt5 app, it complains on a missing QPA plugin:

Back In Time
Version: 1.2.1

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb, wayland-org.kde.kwin.qpa.

/nix/store/9rsxqq9n3rkcd3x8828a106d0ngvipb5-backintime-qt5-1.2.1/bin/.backintime-qt-wrapped: line 31: 22774 Aborted                 (core dumped) python3 -Es ${APP_PATH}/app.py "$@"

@ofborg ofborg bot added the 8.has: clean-up This PR removes packages or removes other cruft label Nov 2, 2020
@freezeboy freezeboy force-pushed the unbreak-backintime-qt4 branch from 831d647 to b0b3aa0 Compare November 2, 2020 16:25
@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

You might need to add an explicit wrapQtAppsHook to fix the missing Qt plugin problem

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 2, 2020

I meant not the hook, but an explicit call to wrapQtApp https://nixos.org/manual/nixpkgs/stable/#sec-language-qt

@freezeboy freezeboy force-pushed the unbreak-backintime-qt4 branch from b0b3aa0 to 3d39d25 Compare November 2, 2020 17:11
@veprbl veprbl force-pushed the unbreak-backintime-qt4 branch 4 times, most recently from 175cf12 to 9050249 Compare November 3, 2020 00:06
@veprbl veprbl force-pushed the unbreak-backintime-qt4 branch 3 times, most recently from 26b2971 to 30d16b2 Compare November 3, 2020 01:08
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
@veprbl veprbl force-pushed the unbreak-backintime-qt4 branch from 30d16b2 to bbc8a26 Compare November 3, 2020 01:08
@freezeboy
Copy link
Copy Markdown
Contributor Author

@veprbl I dont see the changes from your fore-pushed, were they rebased commits ?

@veprbl
Copy link
Copy Markdown
Member

veprbl commented Nov 3, 2020

@freezeboy Sorry, let me document what I've changed:

  • added a missing space in 3d39d25#diff-189f4e80141b1b016da37c29f47a856298323b67a906b47c5359a38c0f6c4e21R4
  • renamed file from qt5.nix to qt.nix
  • changed value of the name attribute from backintime-qt5 to backintime-qt so that it matches the name of the package in all-packages.nix
  • replaced qt5.callPackage with libsForQt5.callPackage
  • replaced substituteInPlace configure --replace "/.." "" with substituteInPlace configure --replace '"/../etc' '"/etc' to prevent accidental substitutes

@veprbl veprbl merged commit 00e30c9 into NixOS:master Nov 3, 2020
@freezeboy freezeboy deleted the unbreak-backintime-qt4 branch November 3, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 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.

2 participants