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
syncthing-gtk: explicitly depend on gobjectIntrospection #34277
syncthing-gtk: explicitly depend on gobjectIntrospection #34277
Conversation
Should I also file an issue for the bug this fixes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks.
Could you please also take a look at #32016? |
pkgs/top-level/python-packages.nix
Outdated
@@ -17343,7 +17343,8 @@ in { | |||
|
|||
propagatedBuildInputs = with self; [ pkgs.syncthing dateutil pyinotify | |||
pkgs.libnotify | |||
(pkgs.librsvg.override { withGTK = true; }) | |||
(pkgs.librsvg.override { withGTK = true; enableIntrospection = true; }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, withGtk
implies enableIntrospection
. But in this case , the latter should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right, it no longer does since #32296. But enabling introspection should be still enough.
Previously atk had gobjectIntrospection as a propagated build input, which was making its way into librsvg (even without enableIntrospection set to true) and then to syncthing-gtk.
681e68d
to
cdb42d6
Compare
Yeah, I wouldn't have found I've taken out |
@GrahamcOfBorg build syncthing-gtk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-linux
error: attribute ‘syncthing-gtk’ in selection path ‘syncthing-gtk’ not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: aarch64-linux
error: attribute 'syncthing-gtk' in selection path 'syncthing-gtk' not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure for system: x86_64-darwin
error: attribute 'syncthing-gtk' in selection path 'syncthing-gtk' not found
Oh, it's actually |
@GrahamcOfBorg build pythonPackages.syncthing-gtk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘python2.7-pyinotify-0.9.6’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/top-level/python-packages.nix:13995 is not supported on ‘x86_64-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success on x86_64-linux (full log)
Partial log (click to expand)
writing top-level names to syncthing_gtk.egg-info/top_level.txt
writing dependency_links to syncthing_gtk.egg-info/dependency_links.txt
reading manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
writing manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success on aarch64-linux (full log)
Partial log (click to expand)
writing dependency_links to syncthing_gtk.egg-info/dependency_links.txt
reading manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
writing manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/d60170k0pk7xrf5hw288r5cyrz9n3hw4-python2.7-syncthing-gtk-0.9.2.3
@GrahamcOfBorg build syncthing-gtk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failure on x86_64-darwin (full log)
Partial log (click to expand)
error: while evaluating the attribute 'propagatedBuildInputs' of the derivation 'syncthing-gtk-0.9.2.3' at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/stdenv/generic/make-derivation.nix:148:11:
while evaluating 'getOutput' at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/lib/attrsets.nix:450:23, called from undefined position:
while evaluating anonymous function at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/stdenv/generic/make-derivation.nix:111:17, called from undefined position:
while evaluating 'callPackageWith' at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/lib/customisation.nix:113:35, called from /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/top-level/all-packages.nix:4227:12:
while evaluating 'makeOverridable' at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/lib/customisation.nix:72:24, called from /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/lib/customisation.nix:117:8:
while evaluating anonymous function at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/os-specific/linux/psmisc/default.nix:1:1, called from /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/lib/customisation.nix:74:12:
assertion failed at /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/os-specific/linux/psmisc/default.nix:3:1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success on aarch64-linux (full log)
Partial log (click to expand)
writing dependency_links to syncthing_gtk.egg-info/dependency_links.txt
reading manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
writing manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/ki9kgnb197zm7lan4yvd8iai4ln2ln9j-syncthing-gtk-0.9.2.3
Also both of these pull requests are runtime fixes so we need someone to test them locally. (I cannot do it because syncthing hates me.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Success on x86_64-linux (full log)
Partial log (click to expand)
writing dependency_links to syncthing_gtk.egg-info/dependency_links.txt
reading manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
writing manifest file 'syncthing_gtk.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
/nix/store/sjgr9sgl7pvp6xx8m2mlf966xr5bfzgv-syncthing-gtk-0.9.2.3
Merged as part of #32016. |
Motivation for this change
After a recent update I found
syncthing-gtk
can no longer start up. The error message it displayed was:I diffed the store output of the most recent working version I had, and the main difference seemed to be that the new version didn't have a reference to gobjectIntrospection in its wrappers. Searching around led me to believe the cause may be a recent change to stop atk propagating gobjectIntrospection (see #32296).
Although I'm not familiar with all of the packages/issues involved, I did come up with a patch to fix it so that syncthing-gtk seems to work again.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)