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

weston: 5.0.0 -> 6.0.0 #58522

Merged
merged 13 commits into from May 31, 2019
Merged

weston: 5.0.0 -> 6.0.0 #58522

merged 13 commits into from May 31, 2019

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Mar 29, 2019

Motivation for this change

https://lists.freedesktop.org/archives/wayland-devel/2019-March/040356.html
https://lists.freedesktop.org/archives/wayland-devel/2019-March/040334.html

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Tested a handful of the executables, not sure how to use all of them :3.

Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

Added a few notes but I didn't test it yet.

pkgs/applications/window-managers/weston/default.nix Outdated Show resolved Hide resolved
pkgs/applications/window-managers/weston/default.nix Outdated Show resolved Hide resolved
pkgs/applications/window-managers/weston/default.nix Outdated Show resolved Hide resolved
pkgs/applications/window-managers/weston/default.nix Outdated Show resolved Hide resolved
@Ekleog
Copy link
Member

Ekleog commented Apr 11, 2019

@dtzWill Is this still WIP?

@dtzWill
Copy link
Member Author

dtzWill commented Apr 17, 2019

@dtzWill Is this still WIP?

I suspect no, but don't remember O:).

@primeos
Copy link
Member

primeos commented Apr 18, 2019

@dtzWill also 2/4 of my review notes are still not marked as resolved, could you have a quick look at them?

I could help testing this when it's finished.

@primeos
Copy link
Member

primeos commented May 16, 2019

Just recalled that there was this PR. I'll have a quick look.

mesonFlags= [
"-Dbackend-rdp=${boolToString (freerdp != null)}"
"-Dremoting=false" # TODO
"-Dsimple-dmabuf-drm=" # Disables all drivers
Copy link
Member

Choose a reason for hiding this comment

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

Note: The default is [ 'intel', 'freedreno', 'etnaviv' ] and I didn't check whether disabling this makes sense or not...

@primeos
Copy link
Member

primeos commented May 16, 2019

Gave it a quick test and at least weston and weston-terminal still work. But I cannot test all build configurations, hardware setups, and executables.

Testing is welcome :) I'm not sure how solid this actually is, but I'm in favor of merging it after some comments/reviews.

@dtzWill Can you rebase to resolve the merge conflict? I didn't try but AFAIK I wouldn't have the permissions anyway.

Copy link
Member

@primeos primeos left a comment

Choose a reason for hiding this comment

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

File diff from diffoscope:

--- /nix/store/dfbdv03q88v28xh6vv8jz3r85aibdx10-weston-5.0.0
+++ /nix/store/2z706w77w9b8c28w335psal9wybci1r2-weston-6.0.0
├── file list
│ @@ -1,90 +1,108 @@
│  bin
│  bin/wcap-decode
│  bin/weston
│ +bin/weston-calibrator
│ +bin/weston-clickdot
│ +bin/weston-cliptest
│ +bin/weston-confine
│ +bin/weston-debug
│ +bin/weston-dnd
│ +bin/weston-editor
│ +bin/weston-eventdemo
│ +bin/weston-flower
│ +bin/weston-fullscreen
│ +bin/weston-image
│  bin/weston-info
│  bin/weston-launch
│ +bin/weston-multi-resource
│ +bin/weston-presentation-shm
│ +bin/weston-resizor
│ +bin/weston-scaler
│ +bin/weston-screenshooter
│ +bin/weston-simple-damage
│ +bin/weston-simple-dmabuf-drm
│ +bin/weston-simple-dmabuf-egl
│ +bin/weston-simple-dmabuf-v4l
│ +bin/weston-simple-egl
│ +bin/weston-simple-shm
│ +bin/weston-simple-touch
│ +bin/weston-smoke
│ +bin/weston-stacking
│ +bin/weston-subsurfaces
│  bin/weston-terminal
│ +bin/weston-touch-calibrator
│ +bin/weston-transformed
│  include
│ -include/libweston-5
│ -include/libweston-5/compositor-drm.h
│ -include/libweston-5/compositor-fbdev.h
│ -include/libweston-5/compositor-headless.h
│ -include/libweston-5/compositor-rdp.h
│ -include/libweston-5/compositor-wayland.h
│ -include/libweston-5/compositor-x11.h
│ -include/libweston-5/compositor.h
│ -include/libweston-5/config-parser.h
│ -include/libweston-5/libweston-desktop.h
│ -include/libweston-5/matrix.h
│ -include/libweston-5/plugin-registry.h
│ -include/libweston-5/timeline-object.h
│ -include/libweston-5/version.h
│ -include/libweston-5/windowed-output-api.h
│ -include/libweston-5/xwayland-api.h
│ -include/libweston-5/zalloc.h
│ +include/libweston-6
│ +include/libweston-6/compositor-drm.h
│ +include/libweston-6/compositor-fbdev.h
│ +include/libweston-6/compositor-headless.h
│ +include/libweston-6/compositor-rdp.h
│ +include/libweston-6/compositor-wayland.h
│ +include/libweston-6/compositor-x11.h
│ +include/libweston-6/compositor.h
│ +include/libweston-6/config-parser.h
│ +include/libweston-6/libweston-desktop.h
│ +include/libweston-6/matrix.h
│ +include/libweston-6/plugin-registry.h
│ +include/libweston-6/timeline-object.h
│ +include/libweston-6/version.h
│ +include/libweston-6/windowed-output-api.h
│ +include/libweston-6/xwayland-api.h
│ +include/libweston-6/zalloc.h
│  include/weston
│  include/weston/ivi-layout-export.h
│  include/weston/weston.h
│  lib
│ -lib/libweston-5
│ -lib/libweston-5.la
│ -lib/libweston-5.so
│ -lib/libweston-5.so.0
│ -lib/libweston-5.so.0.0.0
│ -lib/libweston-5/drm-backend.la
│ -lib/libweston-5/drm-backend.so
│ -lib/libweston-5/fbdev-backend.la
│ -lib/libweston-5/fbdev-backend.so
│ -lib/libweston-5/gl-renderer.la
│ -lib/libweston-5/gl-renderer.so
│ -lib/libweston-5/headless-backend.la
│ -lib/libweston-5/headless-backend.so
│ -lib/libweston-5/rdp-backend.la
│ -lib/libweston-5/rdp-backend.so
│ -lib/libweston-5/wayland-backend.la
│ -lib/libweston-5/wayland-backend.so
│ -lib/libweston-5/x11-backend.la
│ -lib/libweston-5/x11-backend.so
│ -lib/libweston-5/xwayland.la
│ -lib/libweston-5/xwayland.so
│ -lib/libweston-desktop-5.la
│ -lib/libweston-desktop-5.so
│ -lib/libweston-desktop-5.so.0
│ -lib/libweston-desktop-5.so.0.0.0
│ +lib/libweston-6
│ +lib/libweston-6.so
│ +lib/libweston-6.so.0
│ +lib/libweston-6.so.0.0.0
│ +lib/libweston-6/drm-backend.so
│ +lib/libweston-6/fbdev-backend.so
│ +lib/libweston-6/gl-renderer.so
│ +lib/libweston-6/headless-backend.so
│ +lib/libweston-6/rdp-backend.so
│ +lib/libweston-6/wayland-backend.so
│ +lib/libweston-6/x11-backend.so
│ +lib/libweston-6/xwayland.so
│ +lib/libweston-desktop-6.so
│ +lib/libweston-desktop-6.so.0
│ +lib/libweston-desktop-6.so.0.0.0
│  lib/pkgconfig
│ -lib/pkgconfig/libweston-5.pc
│ -lib/pkgconfig/libweston-desktop-5.pc
│ +lib/pkgconfig/libweston-6.pc
│ +lib/pkgconfig/libweston-desktop-6.pc
│  lib/pkgconfig/weston.pc
│  lib/weston
│ -lib/weston/desktop-shell.la
│ +lib/weston/cms-colord.so
│ +lib/weston/cms-static.so
│  lib/weston/desktop-shell.so
│ -lib/weston/fullscreen-shell.la
│  lib/weston/fullscreen-shell.so
│ -lib/weston/hmi-controller.la
│  lib/weston/hmi-controller.so
│ -lib/weston/ivi-shell.la
│  lib/weston/ivi-shell.so
│ -lib/weston/screen-share.la
│  lib/weston/screen-share.so
│ +lib/weston/systemd-notify.so
│  libexec
│  libexec/weston-desktop-shell
│  libexec/weston-ivi-shell-user-interface
│  libexec/weston-keyboard
│ -libexec/weston-screenshooter
│  libexec/weston-simple-im
│  share
│  share/man
│  share/man/man1
│ +share/man/man1/weston-debug.1.gz
│  share/man/man1/weston.1.gz
│  share/man/man5
│  share/man/man5/weston.ini.5.gz
│  share/man/man7
│  share/man/man7/weston-drm.7.gz
│  share/man/man7/weston-rdp.7.gz
│ +share/pkgconfig
│ +share/pkgconfig/libweston-6-protocols.pc
│  share/wayland-sessions
│  share/wayland-sessions/weston.desktop
│  share/weston
│  share/weston/background.png
│  share/weston/border.png
│  share/weston/fullscreen.png
│  share/weston/home.png
│ @@ -95,14 +113,16 @@
│  share/weston/icon_ivi_simple-egl.png
│  share/weston/icon_ivi_simple-shm.png
│  share/weston/icon_ivi_smoke.png
│  share/weston/icon_terminal.png
│  share/weston/icon_window.png
│  share/weston/panel.png
│  share/weston/pattern.png
│ +share/weston/protocols
│ +share/weston/protocols/weston-debug.xml
│  share/weston/random.png
│  share/weston/sidebyside.png
│  share/weston/sign_close.png
│  share/weston/sign_maximize.png
│  share/weston/sign_minimize.png
│  share/weston/terminal.png
│  share/weston/tiling.png

Seems like we now export additional binaries to /bin but that's strange since --enable-clients was provided before...

Overall it looks ok and should hopefully be fine.

"-Dremoting=false" # TODO
"-Dsimple-dmabuf-drm=" # Disables all drivers
"-Dtest-junit-xml=false"
#"--enable-clients"
Copy link
Member

Choose a reason for hiding this comment

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

"-Dsimple-dmabuf-drm=" # Disables all drivers
"-Dtest-junit-xml=false"
#"--enable-clients"
#"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
Copy link
Member

Choose a reason for hiding this comment

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

Should be fine to remove since the build doesn't fail.

@primeos primeos self-assigned this May 31, 2019
@primeos
Copy link
Member

primeos commented May 31, 2019

According to nix-review the rebuilds are fine.

For the log:

File differences with:

postPatch = ''
       substituteInPlace meson.build --replace "version: '6.0.0'" "version: '5.0.0'"
       substituteInPlace meson.build --replace "libweston_major = 6" "libweston_major = 5"
'';

westonLite

file list

@@ -1,87 +1,78 @@
 bin
 bin/wcap-decode
 bin/weston
+bin/weston-calibrator
+bin/weston-debug
 bin/weston-info
 bin/weston-launch
+bin/weston-screenshooter
 bin/weston-terminal
+bin/weston-touch-calibrator
 include
 include/libweston-5
 include/libweston-5/compositor-drm.h
 include/libweston-5/compositor-fbdev.h
 include/libweston-5/compositor-headless.h
-include/libweston-5/compositor-rdp.h
 include/libweston-5/compositor-wayland.h
 include/libweston-5/compositor-x11.h
 include/libweston-5/compositor.h
 include/libweston-5/config-parser.h
 include/libweston-5/libweston-desktop.h
 include/libweston-5/matrix.h
 include/libweston-5/plugin-registry.h
 include/libweston-5/timeline-object.h
 include/libweston-5/version.h
 include/libweston-5/windowed-output-api.h
-include/libweston-5/xwayland-api.h
 include/libweston-5/zalloc.h
 include/weston
 include/weston/ivi-layout-export.h
 include/weston/weston.h
 lib
 lib/libweston-5
-lib/libweston-5.la
 lib/libweston-5.so
 lib/libweston-5.so.0
 lib/libweston-5.so.0.0.0
-lib/libweston-5/drm-backend.la
 lib/libweston-5/drm-backend.so
-lib/libweston-5/fbdev-backend.la
 lib/libweston-5/fbdev-backend.so
-lib/libweston-5/gl-renderer.la
 lib/libweston-5/gl-renderer.so
-lib/libweston-5/headless-backend.la
 lib/libweston-5/headless-backend.so
-lib/libweston-5/wayland-backend.la
 lib/libweston-5/wayland-backend.so
-lib/libweston-5/x11-backend.la
 lib/libweston-5/x11-backend.so
-lib/libweston-5/xwayland.la
-lib/libweston-5/xwayland.so
-lib/libweston-desktop-5.la
 lib/libweston-desktop-5.so
 lib/libweston-desktop-5.so.0
 lib/libweston-desktop-5.so.0.0.0
 lib/pkgconfig
 lib/pkgconfig/libweston-5.pc
 lib/pkgconfig/libweston-desktop-5.pc
 lib/pkgconfig/weston.pc
 lib/weston
-lib/weston/desktop-shell.la
+lib/weston/cms-colord.so
+lib/weston/cms-static.so
 lib/weston/desktop-shell.so
-lib/weston/fullscreen-shell.la
 lib/weston/fullscreen-shell.so
-lib/weston/hmi-controller.la
 lib/weston/hmi-controller.so
-lib/weston/ivi-shell.la
 lib/weston/ivi-shell.so
-lib/weston/screen-share.la
 lib/weston/screen-share.so
+lib/weston/systemd-notify.so
 libexec
 libexec/weston-desktop-shell
 libexec/weston-ivi-shell-user-interface
 libexec/weston-keyboard
-libexec/weston-screenshooter
-libexec/weston-simple-im
 share
 share/man
 share/man/man1
+share/man/man1/weston-debug.1.gz
 share/man/man1/weston.1.gz
 share/man/man5
 share/man/man5/weston.ini.5.gz
 share/man/man7
 share/man/man7/weston-drm.7.gz
+share/pkgconfig
+share/pkgconfig/libweston-5-protocols.pc
 share/wayland-sessions
 share/wayland-sessions/weston.desktop
 share/weston
 share/weston/background.png
 share/weston/border.png
 share/weston/fullscreen.png
 share/weston/home.png
@@ -92,14 +83,16 @@
 share/weston/icon_ivi_simple-egl.png
 share/weston/icon_ivi_simple-shm.png
 share/weston/icon_ivi_smoke.png
 share/weston/icon_terminal.png
 share/weston/icon_window.png
 share/weston/panel.png
 share/weston/pattern.png
+share/weston/protocols
+share/weston/protocols/weston-debug.xml
 share/weston/random.png
 share/weston/sidebyside.png
 share/weston/sign_close.png
 share/weston/sign_maximize.png
 share/weston/sign_minimize.png
 share/weston/terminal.png
 share/weston/tiling.png

weston

file list

@@ -1,13 +1,17 @@
 bin
 bin/wcap-decode
 bin/weston
+bin/weston-calibrator
+bin/weston-debug
 bin/weston-info
 bin/weston-launch
+bin/weston-screenshooter
 bin/weston-terminal
+bin/weston-touch-calibrator
 include
 include/libweston-5
 include/libweston-5/compositor-drm.h
 include/libweston-5/compositor-fbdev.h
 include/libweston-5/compositor-headless.h
 include/libweston-5/compositor-rdp.h
 include/libweston-5/compositor-wayland.h
@@ -23,68 +27,57 @@
 include/libweston-5/xwayland-api.h
 include/libweston-5/zalloc.h
 include/weston
 include/weston/ivi-layout-export.h
 include/weston/weston.h
 lib
 lib/libweston-5
-lib/libweston-5.la
 lib/libweston-5.so
 lib/libweston-5.so.0
 lib/libweston-5.so.0.0.0
-lib/libweston-5/drm-backend.la
 lib/libweston-5/drm-backend.so
-lib/libweston-5/fbdev-backend.la
 lib/libweston-5/fbdev-backend.so
-lib/libweston-5/gl-renderer.la
 lib/libweston-5/gl-renderer.so
-lib/libweston-5/headless-backend.la
 lib/libweston-5/headless-backend.so
-lib/libweston-5/rdp-backend.la
 lib/libweston-5/rdp-backend.so
-lib/libweston-5/wayland-backend.la
 lib/libweston-5/wayland-backend.so
-lib/libweston-5/x11-backend.la
 lib/libweston-5/x11-backend.so
-lib/libweston-5/xwayland.la
 lib/libweston-5/xwayland.so
-lib/libweston-desktop-5.la
 lib/libweston-desktop-5.so
 lib/libweston-desktop-5.so.0
 lib/libweston-desktop-5.so.0.0.0
 lib/pkgconfig
 lib/pkgconfig/libweston-5.pc
 lib/pkgconfig/libweston-desktop-5.pc
 lib/pkgconfig/weston.pc
 lib/weston
-lib/weston/desktop-shell.la
+lib/weston/cms-colord.so
+lib/weston/cms-static.so
 lib/weston/desktop-shell.so
-lib/weston/fullscreen-shell.la
 lib/weston/fullscreen-shell.so
-lib/weston/hmi-controller.la
 lib/weston/hmi-controller.so
-lib/weston/ivi-shell.la
 lib/weston/ivi-shell.so
-lib/weston/screen-share.la
 lib/weston/screen-share.so
+lib/weston/systemd-notify.so
 libexec
 libexec/weston-desktop-shell
 libexec/weston-ivi-shell-user-interface
 libexec/weston-keyboard
-libexec/weston-screenshooter
-libexec/weston-simple-im
 share
 share/man
 share/man/man1
+share/man/man1/weston-debug.1.gz
 share/man/man1/weston.1.gz
 share/man/man5
 share/man/man5/weston.ini.5.gz
 share/man/man7
 share/man/man7/weston-drm.7.gz
 share/man/man7/weston-rdp.7.gz
+share/pkgconfig
+share/pkgconfig/libweston-5-protocols.pc
 share/wayland-sessions
 share/wayland-sessions/weston.desktop
 share/weston
 share/weston/background.png
 share/weston/border.png
 share/weston/fullscreen.png
 share/weston/home.png
@@ -95,14 +88,16 @@
 share/weston/icon_ivi_simple-egl.png
 share/weston/icon_ivi_simple-shm.png
 share/weston/icon_ivi_smoke.png
 share/weston/icon_terminal.png
 share/weston/icon_window.png
 share/weston/panel.png
 share/weston/pattern.png
+share/weston/protocols
+share/weston/protocols/weston-debug.xml
 share/weston/random.png
 share/weston/sidebyside.png
 share/weston/sign_close.png
 share/weston/sign_maximize.png
 share/weston/sign_minimize.png
 share/weston/terminal.png
 share/weston/tiling.png

@primeos
Copy link
Member

primeos commented May 31, 2019

It still builds/runs, nix-review was successful, and looking at the file changes it should be fine. I added myself as maintainer in case anything breaks.

@primeos primeos merged commit 3a26a1f into NixOS:master May 31, 2019
@dtzWill
Copy link
Member Author

dtzWill commented Jun 1, 2019 via email

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.

None yet

6 participants