Skip to content

zrythm: 1.0.0-beta.4.9.1 -> 1.0.0-beta.4.12.5#253765

Closed
davidak wants to merge 1 commit intoNixOS:masterfrom
davidak:zrythm-update
Closed

zrythm: 1.0.0-beta.4.9.1 -> 1.0.0-beta.4.12.5#253765
davidak wants to merge 1 commit intoNixOS:masterfrom
davidak:zrythm-update

Conversation

@davidak
Copy link
Member

@davidak davidak commented Sep 7, 2023

Description of changes

Related #252561

can't add @yuuyins as reviewer for some reason

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

1.0.0-beta.4.12.34 needs a newer GTK version than we have in nixpkgs.

Dependency gtk4 found: NO found 4.10.4 but need: '>=4.13'

GTK 4.13.0 is also still unstable.

https://www.gtk.org/
https://gitlab.gnome.org/GNOME/gtk/-/tags

@nyabinary we could update to the latest zrythm version compatible with the dependencies in nixpkgs. would that be helpful?

@bobby285271 @jtojnar updating gtk4 to latest stable (4.12.1) is a bigger project, right? is there a plan or issue to follow?

@ofborg ofborg bot requested review from magnetophon and tshaynik September 7, 2023 03:01
@ofborg ofborg bot added 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. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Sep 7, 2023
@nyabinary
Copy link
Contributor

nyabinary commented Sep 7, 2023

A little bit useful but I need the latest since that is preferable, also it uses a GTK 4.13 commit but only because it includes fixes for MacOS

@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

Then this update will take some time.

@bobby285271
Copy link
Member

updating gtk4 to latest stable

It is in GNOME 45 PR 822896a 1c34cf7. I don't have a reason to block this from bumping separately for now so probably we can try (I changed my day $job recently and have much fewer time to work on Nixpkgs things so there is no guarantee on this).

@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

@bobby285271 it's probably not worth the risk to break a lot of packages. makes sense to update gnome at once

Be careful not to work too much!

@davidak davidak changed the title zrythm: 1.0.0-beta.4.9.1 -> 1.0.0-beta.4.12.34 zrythm: 1.0.0-beta.4.9.1 -> 1.0.0-beta.4.12.5 Sep 7, 2023
@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

I updated it to the previous release (1.0.0-beta.4.12.5). That's some months newer than what we have.

It does build, but when i start it, i get a lot of errors and a backtrace. I don't have Jack installed and also still run NixOS 22.11.4588.93fddcf640c.
I also have never used it, so i don't know what would be expected experience.

Screenshot from 2023-09-07 16-47-47
Screenshot from 2023-09-07 16-47-52
Screenshot from 2023-09-07 17-15-12
Screenshot from 2023-09-07 17-15-16

Screenshot from 2023-09-07 17-15-38

I also get a backtrace with pulseaudio backend and hit record.

zrythm-Message: 17:33:46.479: (segv_handler:146): Error: Segmentation fault - Backtrace:
../src/utils/backtrace.c (_backtrace_get:325)
../src/zrythm_app.c (segv_handler:139)
??? unknown
../src/gui/widgets/cpu.c (refresh_dsp_load:137)
??? g_timeout_dispatch
??? g_main_context_dispatch
??? g_main_context_iterate.constprop.0
??? g_main_context_iteration
??? g_application_run
../src/main.c (main:22)
??? __libc_start_call_main
??? __libc_start_main_alias_2
??? _start
??? unknown

Not sure if that's all my system or if this version is broken.

@nyabinary can you test this update?

@davidak davidak marked this pull request as ready for review September 7, 2023 15:42
@nyabinary
Copy link
Contributor

How would I test it? Bit of a newbie.

@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

This command builds the packages affected by this pull request and opens a shell that has them available. Then you can run and test them. You have to run it inside a local checkout of nixpkgs.

nix-shell -p nixpkgs-review --run "nixpkgs-review pr 253765"

Optionally, you can setup a github token to post the build result as a comment to the pull request using --post-result.

https://github.com/Mic92/nixpkgs-review#github-api-token

@davidak
Copy link
Member Author

davidak commented Sep 7, 2023

Result of nixpkgs-review pr 253765 run on x86_64-linux 1

1 package built:
  • zrythm

@delroth delroth added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 9, 2023
@davidak
Copy link
Member Author

davidak commented Sep 10, 2023

@magnetophon have you tested it and verified that you don't have the crashes i experienced?

@nyabinary
Copy link
Contributor

@davidak The segment fault issue is solved in the new version of Zrythm, 4.13, so should update this PR to 4.13

@davidak
Copy link
Member Author

davidak commented Sep 10, 2023

@nyabinary that still needs an unstable version of GTK we don't have in nixpkgs yet.

4.12 and 4.11 all crash when "save and close". i don't want to update the package to a broken state. the packaged version works. so we have to wait here

until then, you can use the flatpak as a workaround: https://flathub.org/apps/org.zrythm.Zrythm

@davidak davidak marked this pull request as draft September 10, 2023 18:53
@nyabinary
Copy link
Contributor

@davidak The flatpak isnt officially supported

@davidak
Copy link
Member Author

davidak commented Sep 11, 2023

@nyabinary it's verified by the developers. and flatpak is supported on nixos. so it should work

@nyabinary
Copy link
Contributor

Any updates on this btw?

@yuuyins
Copy link
Contributor

yuuyins commented Oct 3, 2023

@nyabinary No. Need to wait until the likely stable release of GTK 4.14 and then addition to Nixpkgs.

@nyabinary
Copy link
Contributor

Any updates on this?

@m-bdf
Copy link
Contributor

m-bdf commented Dec 12, 2023

GTK 4.13 still isn't in nixpkgs, see #258634 (comment).

I'm currently using this to build zrythm 1.0.0-beta.6.0.26 with GTK 4.13.4:

{ lib, pkgs, ... }:

let
  gtk4 = pkgs.gtk4.overrideAttrs (oldAttrs: rec {
    version = "4.13.4";
  
    src = pkgs.fetchurl {
      url = "mirror://gnome/sources/gtk/${lib.versions.majorMinor version}/gtk-${version}.tar.xz";
      sha256 = "sxx1EQI6LOClFEs7a3IiH+tWPiO+Fk7N3Uh8qFm5xA8=";
    };
  
    patches = [];
  
    buildInputs = oldAttrs.buildInputs ++ [ pkgs.libdrm ];
  });
in

(pkgs.zrythm.override { inherit gtk4; }).overrideAttrs (oldAttrs: rec {
  version = "1.0.0-beta.6.0.26";

  src = pkgs.fetchFromGitLab {
    domain = "gitlab.zrythm.org";
    owner = "zrythm";
    repo = "zrythm";
    rev = "v${version}";
    hash = "sha256-9bmnrBwu91yUXIwfe5q8c/H9YUpyvJnBR+5OQPSlB3s=";
  };

  buildInputs = oldAttrs.buildInputs ++ [ pkgs.soxr pkgs.yyjson ];
})

@PowerUser64
Copy link
Member

I have updated zrythm on my own branch: PowerUser64@2aeeecc. This brings zrythm to its current version (1.0.0-beta.5.1.1). I used overrideAttrs to bring gtk to the required release, and updated carla to the latest commit.

Should I submit a PR with these changes? I don't know whether using overrideAttrs inside buildInputs is allowed in nixpkgs.

@nyabinary
Copy link
Contributor

I have updated zrythm on my own branch: PowerUser64@2aeeecc. This brings zrythm to its current version (1.0.0-beta.5.1.1). I used overrideAttrs to bring gtk to the required release, and updated carla to the latest commit.

Should I submit a PR with these changes? I don't know whether using overrideAttrs inside buildInputs is allowed in nixpkgs.

overrideAttrs should be allowed.

@PowerUser64
Copy link
Member

PowerUser64 commented Feb 22, 2024

Made a PR to update to v1.0.0-beta.6.4.1 using overrideAttrs to fill gaps in package versions where needed #290598
feel free to drop a thumbs up on it to help visibility

@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@PowerUser64
Copy link
Member

Superseded by #306959 (Merged)

@PowerUser64 PowerUser64 closed this May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 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. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants