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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicity: Fix finding Gio typelib #310514

Merged
merged 1 commit into from May 11, 2024
Merged

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented May 10, 2024

Description of changes

Previously, if a package just depended on GLib (or other bindings shipped with gobject-introspection), wrapper was not needed since ${gobject-introspection}/lib/girepository-1.0 is implicitly on typelib path. Now that GLib bindings were moved to glib package, ${glib}/lib/girepository-1.0 must be added to GI_TYPELIB_PATH by the wrapper (or gobject-introspection setup hook for build time).

Simplest way to ensure that is using wrapGApps* hook. Let鈥檚 also ensure that there is just one wrapper instead of three.


Untested, supposedly fixes #310492

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 馃憤 reaction to pull requests you find important.

Previously, if a package just depended on GLib (or other bindings shipped with gobject-introspection),
wrapper was not needed since `${gobject-introspection}/lib/girepository-1.0` is implicitly on typelib path.
Now that GLib bindings were moved to `glib` package, `${glib}/lib/girepository-1.0` must be added
to `GI_TYPELIB_PATH` by the wrapper (or `gobject-introspection` setup hook for build time).

Simplest way to ensure that is using `wrapGApps*` hook.
Let鈥檚 also ensure that there is just one wrapper instead of three.
@corngood
Copy link
Contributor

Do you know the steps to reproduce the error with duplicity on its own?

@VeilSilence
Copy link

Openrazer got almost same issue, but with ImportError: cannot import name GLib, introspection typelib not found if I'm trying to manually calling it. #310205

@jdev082
Copy link

jdev082 commented May 10, 2024

鉁旓笍 With this fix I was able to run a backup successfully!

@jtojnar jtojnar merged commit 0d67b55 into NixOS:master May 11, 2024
26 checks passed
@jtojnar jtojnar deleted the duplicity-typelib branch May 11, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants