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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geary: fix cross compilation #366636

Merged
merged 1 commit into from
Dec 20, 2024
Merged

geary: fix cross compilation #366636

merged 1 commit into from
Dec 20, 2024

Conversation

uninsane
Copy link
Contributor

  • nix-build -A pkgsCross.aarch64-multiplatform.geary

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 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.

@uninsane uninsane added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Dec 19, 2024
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 19, 2024
@misuzu misuzu merged commit cf5b58a into NixOS:master Dec 20, 2024
40 of 43 checks passed
@@ -56,12 +56,10 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [
appstream-glib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was here for appstream-util, though it is only required to optionally validate the metainfo file, which is not something we want to do in the build anyway.

desktop-file-utils
gettext
gobject-introspection
itstool
libxml2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was here for glib tools stop complaining at build time:

[6/708] Generating ui/org.gnome.Geary_h with a custom command
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH

@@ -72,6 +70,7 @@ stdenv.mkDerivation rec {

buildInputs = [
adwaita-icon-theme
appstream-glib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can understand https://gitlab.gnome.org/GNOME/geary/-/issues/439, the dependency is only needed for share/gettext/its/appdata.{its,loc} files used when generating the POT file, which should not be needed at build time so https://gitlab.gnome.org/GNOME/geary/-/merge_requests/243 should never have been merged.

Additionally, appstream-glib is no longer maintained and ${appstream}/share/gettext/its/metainfo.{its,loc} would be used nowadays.

Opened https://gitlab.gnome.org/GNOME/geary/-/merge_requests/856, though it is hard to test because glib propagates gettext, which also has metainfo.its.

@jtojnar jtojnar mentioned this pull request Dec 22, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants