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

Stirling 0.33.1 -> 0.41.0 and minor improvments #380655

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

daedric
Copy link

@daedric daedric commented Feb 9, 2025

This upgrades Stirling-PDF to 0.41.0.

Things done

  • Upgraded programs to 0.41.0

  • Depends on a LibreOffice version that does not check dbus (required to run as a service without a logged-in user)

    • I tried to set the lingering option on the user, but I could not get the DBUS information properly passed so it still tried to create the dbus dir in the state directory unsuccessfully. It felt ok to take this path, esp considering NixOS does not expose a proper way to set the lingering options on users.
  • Removed the Dynamic user from systemd unit;

  • Create a stirling-pdf user

  • Allowed the Stirling directory to be updated (Stirling-pdf can take files externally added in its customFiles directory to avoid users to always upload them. For instance signatures, stamps, etc.)

  • 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.

I'm successfully running this version of Stirling on a private Ampere VPS.
There are still issues with LibreOffice that I can't explain yet (segfault), and if I find them before this gets merged, I'll add the fixes. In any case, this is a step closer to have it properly working.
Please let me know how I can improve this contribution since it is my first :)

cc @TomaSajt since you're the maintainer :)

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 9, 2025
@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Feb 9, 2025
Before any invocation to LibreOffice ended up in trying to mkdir
/run/user/<uid>/libreoffice-dbus. Since the user is not a logged one and
the user not a lingering one, it always failed with a permission denied
error.

With this change, LibreOffice does execute and does not complain about
missing /proc nor permission denied.
@daedric daedric changed the title Stirling 0.31.1 -> 0.41.0 and minor improvments Stirling 0.33.1 -> 0.41.0 and minor improvments Feb 9, 2025
@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 Feb 9, 2025
@nix-owners nix-owners bot requested a review from TomaSajt February 9, 2025 16:57
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 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants