-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
exhibit: 1.2.0 -> 1.4.1 #369684
base: master
Are you sure you want to change the base?
exhibit: 1.2.0 -> 1.4.1 #369684
Conversation
|
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.
got this build error on x86_64-linux:
error: builder for '/nix/store/0dff57hx7lsylzw52psnln83b803d6pi-exhibit-1.4.1.drv' failed with exit code 1;
last 25 log lines:
> Source dir: /build/source
> Build dir: /build/source/build
> Build type: native build
> Project name: exhibit
> Project version: 1.4.1
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Found pkg-config: YES (/nix/store/0d4m43yp69lrm8imxbqgl9zxjwwz52jw-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
> Build-time dependency gio-2.0 found: YES 2.82.1
> Program /nix/store/y8fxzs8srzd6d74a85zbpssjr8wkj9q4-glib-2.82.1-dev/bin/glib-compile-resources found: YES (/nix/store/y8fxzs8srzd6d74a85zbpssjr8wkj9q4-glib-2.82.1-dev/bin/glib-compile-resources)
> Program msgfmt found: YES (/nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/msgfmt)
> Program desktop-file-validate found: YES (/nix/store/1a68w7414qcrvh3dkmyk434jckrzg41s-desktop-file-utils-0.28/bin/desktop-file-validate)
> Program appstreamcli found: NO
> Program glib-compile-schemas found: YES (/nix/store/y8fxzs8srzd6d74a85zbpssjr8wkj9q4-glib-2.82.1-dev/bin/glib-compile-schemas)
> Program python3 found: YES (/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3)
> Configuring exhibit using configuration
> Program msginit found: YES (/nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/msginit)
> Program msgmerge found: YES (/nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/msgmerge)
> Program xgettext found: YES (/nix/store/9a46kza0vbb4vdsdmpzbdc7f31y7hs0i-gettext-0.22.5/bin/xgettext)
> Could not find file LINGUAS in /build/source/help
> Program itstool found: NO
>
> help/meson.build:1:6: ERROR: Program 'itstool' not found or not executable
>
> A full log can be found at /build/source/build/meson-logs/meson-log.txt
For full logs, run 'nix log /nix/store/0dff57hx7lsylzw52psnln83b803d6pi-exhibit-1.4.1.drv'.
error: 1 dependencies of derivation '/nix/store/4diz0g8kw7vkac646y4pzgq8bk3b7z4k-review-shell.drv' failed to build
4cfa684
to
a0526a6
Compare
|
builds fine now but still seems to miss some dependency. Traceback (most recent call last):
File "/nix/store/l122xj8im5zgxjcdw21ifb67n3f0ljav-exhibit-1.4.1/bin/.exhibit-wrapped", line 46, in <module>
from exhibit import main
File "/nix/store/l122xj8im5zgxjcdw21ifb67n3f0ljav-exhibit-1.4.1/share/exhibit/exhibit/main.py", line 26, in <module>
from .window import Viewer3dWindow
File "/nix/store/l122xj8im5zgxjcdw21ifb67n3f0ljav-exhibit-1.4.1/share/exhibit/exhibit/window.py", line 29, in <module>
from wand.image import Image
ModuleNotFoundError: No module named 'wand' |
Drafting until the issue above is resolved. |
new error when running exhibit: Traceback (most recent call last):
File "/nix/store/xxvi52va23nasb7f6rxh4cr866d5rj9j-exhibit-1.4.1/bin/.exhibit-wrapped", line 46, in <module>
from exhibit import main
File "/nix/store/xxvi52va23nasb7f6rxh4cr866d5rj9j-exhibit-1.4.1/share/exhibit/exhibit/main.py", line 30, in <module>
info = f3d.Engine.get_lib_info()
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'f3d.pyf3d.Engine' has no attribute 'get_lib_info' |
Signed-off-by: lucasew <[email protected]>
Signed-off-by: lucasew <[email protected]>
I know. I asked upstream for a release because of that. |
Signed-off-by: lucasew <[email protected]>
be76980
to
c594b09
Compare
It works now but there is a detail. The app reads the data location using the environment variable XDG_DATA_HOME, which by standard [1] has the default value of The problem, which doesn't happen in Flatpak, is that it doesn't create a subfolder inside there for that, so it assumes that, in this example, ~/.local/share is the root data folder, which causes a mess. And this is not a problem in the flatpak version because flatpak itself does the scoping and stuff not letting the mess happen. So there is basically the following strategies:
I, myself, for these utility graphical packages, am prefering to use the flatpak versions because they are directly maintained upstream so I am inclined to basically just give up on this package and suggest people to just use the flatpak version. What are your thoughs on this? [1] https://specifications.freedesktop.org/basedir-spec/latest/ |
postPatch = '' | ||
substituteInPlace src/logger_lib.py src/window.py \ | ||
--replace-warn 'os.environ["XDG_DATA_HOME"]' 'os.environ.get("XDG_DATA_HOME", os.path.expanduser("~/.local/share"))' | ||
''; | ||
|
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.
We should not disregard a user's XDG_DATA_HOME preference and hard code it to some path.
If the upstream code is this simply/dumb, please just patch it to do the right thing instead (create subdir under XDG_DATA_HOME and use that).
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.
I am not disregarding, I am adding a fallback.
If the variable is defined it will use the original value.
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.
Ah, I read it wrong.
I'd prefer a patch or at least replace-fail.
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.
Patch is too hardcoded and replace-fail would become a build failure if eventually upstream fixes that.
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.
Yes that's the point.
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.
And bot bumps fail silently
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.
Basically, r-ryantm only notifies you when everything went right.
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.
We want to know when the patch no longer applies and needs to be updated. Making the build fail is the only reliable way to achieve that.
Closes: #369543
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.