Skip to content

[staging-next] xdg-desktop-portal: 1.18.4 -> 1.20.0#387894

Merged
K900 merged 1 commit intoNixOS:staging-nextfrom
K900:xdp-120
Mar 10, 2025
Merged

[staging-next] xdg-desktop-portal: 1.18.4 -> 1.20.0#387894
K900 merged 1 commit intoNixOS:staging-nextfrom
K900:xdp-120

Conversation

@K900
Copy link
Contributor

@K900 K900 commented Mar 7, 2025

Needed for Pipewire 1.4.

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.

@K900 K900 requested a review from jtojnar March 7, 2025 12:38
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 7, 2025
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

LGTM with my limited xdp expierence

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 8, 2025
@K900 K900 force-pushed the xdp-120 branch 2 times, most recently from 87281e2 to f389f9b Compare March 10, 2025 11:31
Copy link
Member

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

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

@K900 K900 force-pushed the xdp-120 branch 3 times, most recently from ff38998 to 387d23b Compare March 10, 2025 13:56
Copy link
Member

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

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

Skimmed through the remaining upstream diff. Did not notice anything problematic for us.

Should probably be squashed, as HEAD^^ does not build.

Copy link
Member

Choose a reason for hiding this comment

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

Looks like this removes the D-Bus API docs. Not ideal but the extra closure is probably not worth it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, unfortunately this is as granular as the controls get.

Copy link
Member

Choose a reason for hiding this comment

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

It this needed with docs disabled? Probably does not matter keeping it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also trying this.

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this was not supposed to be handled by the wrapGApp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kinda, but wrapGApp-ing the Python tests doesn't really work as they're not called directly, they're imported by pytest.

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should a test for the sound validator too. Though TestNotification::test_sound_fd already appears to fail if we remove the patch.

      validate-sound =
        let
          sound = fetchurl {
            url = "https://github.com/xiph/opus-website/raw/refs/heads/master/static/examples/ehren-paper_lights-96.opus";
            hash = "sha256-mX9aqiUo3oOSusP1kUDhqyS0kacASGl8jT3JHLQwDfM=";
          };
        in
        runCommand "test-sound-validation" { } ''
          ${finalAttrs.finalPackage}/libexec/xdg-desktop-portal-validate-sound --sandbox --path=${sound} > "$out"
          grep format=ogg/opus "$out"
        '';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, tests failing are how I noticed it in the first place. I think we're fine here.

- remove unneeded dependencies
- switch to wrapGAppsNoGuiHook
- add patch to fix sound validation similar to icon validation
- rebase other patches
- use a single python env with all test dependencies, as pytest path is hardcoded
  into installed tests
- fix installed tests, reenable location test (it works now)
- clean up a bunch of old hacks

Co-authored-by: aucub <[email protected]>
Co-authored-by: Jan Tojnar <[email protected]>
Copy link
Member

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

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

Looks great, thanks.

@K900 K900 merged commit 7b73ac5 into NixOS:staging-next Mar 10, 2025
25 of 27 checks passed
@jtojnar jtojnar mentioned this pull request Mar 11, 2025
@jtojnar jtojnar moved this to To Do in GNOME 48 Mar 11, 2025
@jtojnar jtojnar added this to GNOME 48 Mar 11, 2025
@jtojnar jtojnar moved this from To Do to Done in GNOME 48 Mar 11, 2025
@K900 K900 deleted the xdp-120 branch July 27, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants