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

clapper: 0.5.2 -> 0.6.0; clean up and move to finalAttrs #306548

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

kashw2
Copy link
Contributor

@kashw2 kashw2 commented Apr 24, 2024

Description of changes

closes #306475

https://github.com/Rafostar/clapper/releases/tag/0.6.0

removed the explicit postInstall as the icons and other images are now output to $out/share without it
removed variable and overwritable repo name by explicitly declaring clapper as the repo in src
moved some nativeBuildInputs into buildInputs
added vala, cmake and libmicrodns as nativeBuildInputs and buildInputs respectively
updated libsoup to libsoup_3
moved the derivation to finalAttrs

in the future it may be worth it to split this derivation into two for the two different outputs (the clappergtk lib and clapper the application)

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.

@kashw2
Copy link
Contributor Author

kashw2 commented Apr 24, 2024

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

1 package built:
  • clapper

@kashw2 kashw2 changed the title clapper: 0.5.2 -> 0.5.0; clean up and move to finalAttrs clapper: 0.5.2 -> 0.6.0; clean up and move to finalAttrs Apr 24, 2024
@ofborg ofborg bot requested a review from tomfitzhenry April 24, 2024 15:39
pkgs/applications/video/clapper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/video/clapper/default.nix Show resolved Hide resolved
@Rafostar
Copy link

Hi, thanks for updating this! Just two things if I may:

  1. Commit title: 0.5.2 -> 0.5.0 - is this a downgrade? 🙃
  2. Latest version of Clapper no longer uses GJS, please consider removing it from dependencies and app description (OpenGL rendering part can also be removed/updated actually).

@kashw2
Copy link
Contributor Author

kashw2 commented Apr 26, 2024

Hi, thanks for updating this! Just two things if I may:

1. Commit title: `0.5.2 -> 0.5.0` - is this a downgrade? 🙃

2. Latest version of Clapper no longer uses `GJS`, please consider removing it from dependencies and app description (OpenGL rendering part can also be removed/updated actually).

Hi, thanks for the catch on these two.

I've amended the commit title to be correct after the version typo and have removed gjs from the derivation's attribute set, buildInputs and the long description.

Copy link
Member

@Aleksanaa Aleksanaa left a comment

Choose a reason for hiding this comment

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

Others look okay, will test

Copy link
Contributor

@JohnRTitor JohnRTitor left a comment

Choose a reason for hiding this comment

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

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

1 package built:
  • clapper

@Aleksanaa
Copy link
Member

Works ...okay? But I have no idea why it plays media in another window

image

Does it work on GNOME?

@Rafostar
Copy link

Works ...okay? But I have no idea why it plays media in another window

Please try to run it with --gst-debug=clappergtkvideo:5

Should print lines like:

0:00:03.260855584 37688      0x194b4b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1005:_video_sink_changed_cb:<ClapperGtkVideo@0x19ce040> Video sink changed to: <glsinkbin0>
0:00:03.260909462 37688      0x194b4b0 DEBUG        clappergtkvideo clapper-gtk-video.c:980:_get_widget_from_video_sink: Video sink provides a widget

@Aleksanaa
Copy link
Member

0:00:00.266347674 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now inactive
0:00:00.511464359 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1005:_video_sink_changed_cb:<ClapperGtkVideo@0x2347660> Video sink changed to: (NULL)
0:00:00.511491901 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1038:_video_sink_changed_cb:<ClapperGtkVideo@0x2347660> No widget from video sink, using placeholder
0:00:00.511501669 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1044:_video_sink_changed_cb:<ClapperGtkVideo@0x2347660> Set new video widget

(clapper:679006): Gtk-WARNING **: 16:09:07.808: Allocating size to ClapperAppWindow 0x251b420 without calling gtk_widget_measure(). How does the code know the size to allocate?
0:00:00.539143857 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now active

(clapper:679006): Gtk-WARNING **: 16:09:07.832: Allocating size to ClapperAppWindow 0x251b420 without calling gtk_widget_measure(). How does the code know the size to allocate?
0:00:02.214443466 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now inactive
0:00:02.270493884 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now active
0:00:02.416223097 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now inactive
0:00:12.148997125 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now active
0:00:12.279236648 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:907:_set_inhibit_session:<ClapperGtkVideo@0x2347660> Trying to inhibit session...

(clapper:679006): Gtk-WARNING **: 16:09:19.571: Calling org.freedesktop.portal.Inhibit.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop
0:00:12.279621873 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:937:_set_inhibit_session:<ClapperGtkVideo@0x2347660> Session inhibited
0:00:12.279972634 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now inactive
0:00:13.183247397 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now active
0:00:15.820866414 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:582:_window_is_active_cb:<ClapperGtkVideo@0x2347660> Window is now inactive
0:00:18.724117810 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:558:_fade_overlay_delay_cb:<ClapperGtkVideo@0x2347660> Can fade overlays: yes

@Aleksanaa
Copy link
Member

Seems to be a problem with hyprland, we have nothing to do with it

@Aleksanaa Aleksanaa merged commit 8c217e6 into NixOS:master Apr 27, 2024
25 checks passed
@kashw2 kashw2 deleted the clapper branch April 27, 2024 08:30
@Rafostar
Copy link

Rafostar commented Apr 27, 2024

@Aleksanaa

0:00:00.511464359 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1005:_video_sink_changed_cb:<ClapperGtkVideo@0x2347660> Video sink changed to: (NULL)
0:00:00.511491901 679006      0x25956b0 DEBUG        clappergtkvideo clapper-gtk-video.c:1038:_video_sink_changed_cb:<ClapperGtkVideo@0x2347660> No widget from video sink, using placeholder

Seems to be a problem with hyprland, we have nothing to do with it

From the log it seems to be a packaging problem, actually.

Normally at startup Clapper requests GStreamer to load and create a videosink (in case of GStreamer 1.24 - glsinkbin together with clappersink), but here it seems to be not found, NULL is returned and then Clapper tires to recover by using any other video display it can find and ends up with one that cannot be placed within UI - thus another window is created to display video.

@Aleksanaa
Copy link
Member

I'll look into it

@Aleksanaa
Copy link
Member

@JohnRTitor Could you reproduce the bug?

@JohnRTitor
Copy link
Contributor

Yes, indeed, also using Hyprland.

@Aleksanaa
Copy link
Member

Path problem, very probably

Aleksanaa added a commit to Aleksanaa/nixpkgs that referenced this pull request Apr 27, 2024
This fixes
NixOS#306548 (comment).
The gstreamer plugin provided in this package is also used by itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update request: clapper 0.5.2 → 0.6.0
5 participants