Skip to contentSkip to conversation

package/sway: new package

PATCH In review Raphael Pavlidis 2 participants 6 messages Oct 31, 2022 – Feb 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sway: new package

i3-compatible Wayland compositor

This Wayland compositor can be used as a kiosk compositor like cage, but with the advantage of better configuration of multiple monitor and windows. For example, move a window by title to the output X or set the resolution of Y to Z.

---
 DEVELOPERS             |  3 ++-
 package/Config.in      |  1 +
 package/sway/Config.in | 42 ++++++++++++++++++++++++++++++++++++++++++
 package/sway/sway.hash |  3 +++
 package/sway/sway.mk   | 36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 1 deletion(-)
 create mode 100644 package/sway/Config.in
 create mode 100644 package/sway/sway.hash
 create mode 100644 package/sway/sway.mk
DEVELOPERS +2 -1
index dac8fefd0b..0390b94519 100644
@@ -2477,8 +2477,9 @@ F:	support/testing/tests/package/test_python_jmespath.py
 F:	support/testing/tests/package/test_python_rsa.py
 F:	support/testing/tests/package/test_python_s3transfer.py
 
-N:	Raphael Pavlidis <[email protected]>
+N:	Raphael Pavlidis <[email protected]>
 F:	package/slirp4netns/
+F:	package/sway/
 
 N:	Refik Tuzakli <[email protected]>
 F:	package/freescale-imx/
package/Config.in +1 -0
index e4eb2b7434..c70729734d 100644
@@ -325,6 +325,7 @@ comment "Graphic applications"
 	source "package/qt5cinex/Config.in"
 	source "package/rrdtool/Config.in"
 	source "package/stellarium/Config.in"
+	source "package/sway/Config.in"
 	source "package/tesseract-ocr/Config.in"
 	source "package/tinifier/Config.in"
 
package/sway/Config.in new file +42 -0

42 lines not on this page · raw message

package/sway/sway.hash new file +3 -0
new file mode 100644
index 0000000000..6dfa71730f
@@ -0,0 +1,3 @@
+# Locally computed, tarball verified with GPG signature
+sha256  0c64536fb2883ec518e75cfb119f9300115fb49b084e3fde62b794fe2c6c8d84  sway-1.7.tar.gz
+sha256  bd35722bff46327f5eded1d211207277bbe043d2a22048b282c42ef801593b8b  LICENSE
package/sway/sway.mk new file +36 -0
new file mode 100644
index 0000000000..6bf49dbb6b
@@ -0,0 +1,36 @@
+################################################################################
+#
+# sway
+#
+################################################################################
+
+SWAY_VERSION = 1.7
+SWAY_SITE = $(call github,swaywm,sway,v$(SWAY_VERSION))
+SWAY_LICENSE = MIT
+SWAY_LICENSE_FILES = LICENSE
+SWAY_DEPENDENCIES = systemd host-pkgconf wlroots json-c pcre cairo pango
+SWAY_CONF_OPTS = \
+	-Dwerror=false \
+	-Ddefault-wallpaper=false \
+	-Dzsh-completions=false \
+	-Dbash-completions=false \
+	-Dfish-completions=false \
+	-Dswaybar=false \
+	-Dswaynag=false \
+	-Dtray=disabled \
+	-Dman-pages=disabled \
+	-Dsd-bus-provider=libsystemd
+
+ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
+SWAY_CONF_OPTS += -Dxwayland=enabled
+else
+SWAY_CONF_OPTS += -Dxwayland=disabled
+endif
+
+ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
+SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled
+else
+SWAY_CONF_OPTS += -Dgdk-pixbuf=disabled
+endif
+
+$(eval $(meson-package))
Signature · 6 lines
2.37.4

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 45 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Raphael" == Raphael Pavlidis <[email protected]> writes:

i3-compatible Wayland compositor
This Wayland compositor can be used as a kiosk compositor like cage, but with the advantage of better configuration of multiple monitor and windows. For example, move a window by title to the output X or set the resolution of Y to Z.

---
 DEVELOPERS             |  3 ++-
 package/Config.in      |  1 +
 package/sway/Config.in | 42 ++++++++++++++++++++++++++++++++++++++++++
 package/sway/sway.hash |  3 +++
 package/sway/sway.mk   | 36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 1 deletion(-)
 create mode 100644 package/sway/Config.in
 create mode 100644 package/sway/sway.hash
 create mode 100644 package/sway/sway.mk

+++ b/package/sway/Config.in

package/sway/Config.in new file +23 -0
@@ -0,0 +1,42 @@
+config BR2_PACKAGE_SWAY
+	bool "sway"
+	depends on BR2_PACKAGE_SYSTEMD # is required by the sd-bus provider
+	depends on !BR2_STATIC_LIBS # wlroots
+	depends on BR2_TOOLCHAIN_HAS_THREADS # wlroots
+	depends on BR2_PACKAGE_HAS_LIBEGL # wlroots
+	depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # wlroots
+	depends on BR2_PACKAGE_HAS_LIBGLES # wlroots
+	depends on BR2_PACKAGE_HAS_UDEV # wlroots
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
+	depends on BR2_USE_WCHAR # pango
+	depends on BR2_TOOLCHAIN_HAS_THREADS # pango
+	depends on BR2_USE_MMU # pango
+	depends on BR2_INSTALL_LIBSTDCPP # pango
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango
+	select BR2_PACKAGE_WLROOTS
+	select BR2_PACKAGE_JSON_C
+	select BR2_PACKAGE_PCRE
+	select BR2_PACKAGE_CAIRO
+	select BR2_PACKAGE_CAIRO_PNG
+	select BR2_PACKAGE_PANGO
+	help

package/sway/Config.in line 33

Quoted 10 lines
package/sway/Config.in new file +10 -0
+	  i3-compatible Wayland compositor 
+
+	  https://github.com/swaywm/sway
+
+comment "sway needs systemd, udev, EGL w/ Wayland backend and OpenGL ES support"
+	depends on !BR2_PACKAGE_SYSTEMD || \
+		!BR2_PACKAGE_HAS_UDEV || \
+ 		!BR2_PACKAGE_HAS_LIBEGL || \
+		!BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \
+		!BR2_PACKAGE_HAS_LIBGLES 

NIT: You have a number of trailing spaces here.

Quoted 17 lines
package/sway/sway.mk new file +16 -0
+++ b/package/sway/sway.mk
@@ -0,0 +1,36 @@
+################################################################################
+#
+# sway
+#
+################################################################################
+
+SWAY_VERSION = 1.7
+SWAY_SITE = $(call github,swaywm,sway,v$(SWAY_VERSION))
+SWAY_LICENSE = MIT
+SWAY_LICENSE_FILES = LICENSE
+SWAY_DEPENDENCIES = systemd host-pkgconf wlroots json-c pcre cairo pango
+SWAY_CONF_OPTS = \
+	-Dwerror=false \
+	-Ddefault-wallpaper=false \
+	-Dzsh-completions=false \

package/sway/sway.mk line 25

Quoted 10 lines
package/sway/sway.mk new file +10 -0
+	-Dbash-completions=false \
+	-Dfish-completions=false \
+	-Dswaybar=false \
+	-Dswaynag=false \
+	-Dtray=disabled \
+	-Dman-pages=disabled \
+	-Dsd-bus-provider=libsystemd
+
+ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
+SWAY_CONF_OPTS += -Dxwayland=enabled

How did you test this? Here wlroots with x11 support doesn't build as we don't have an Xwayland .pc file or binary in Buildroot.

package/sway/sway.mk line 31

Quoted 6 lines
package/sway/sway.mk new file +6 -0
+else
+SWAY_CONF_OPTS += -Dxwayland=disabled
+endif
+
+ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
+SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled

You also need to ensure that sway is built after gdk-pixbuf with:

SWAY_DEPENDENCIES += gdk-pixbuf

Committed with that fixed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hi Peter,

On 08.02.23 14:43, Peter Korsgaard wrote:
[--SNIP--]

Quoted 4 lines

How did you test this? Here wlroots with x11 support doesn't build as we don't have an Xwayland .pc file or binary in Buildroot.

I create a xwayland package, which build the xserver binary, but did not send the patch yet. (This will fix the problems with weston, too)

Quoted 9 lines

package/sway/sway.mk line 31

Quoted 6 lines
package/sway/sway.mk new file +6 -0
+else
+SWAY_CONF_OPTS += -Dxwayland=disabled
+endif
+
+ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
+SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled

You also need to ensure that sway is built after gdk-pixbuf with:

Quoted 4 lines

SWAY_DEPENDENCIES += gdk-pixbuf

Committed with that fixed, thanks.

Thanks,
Raphael Pavlidis
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Raphael" == Raphael Pavlidis <[email protected]> writes:

Hi Peter,
On 08.02.23 14:43, Peter Korsgaard wrote:
[--SNIP--]

Quoted 4 lines

How did you test this? Here wlroots with x11 support doesn't build as we
don't have an Xwayland .pc file or binary in Buildroot.

I create a xwayland package, which build the xserver binary, but did not send the patch yet. (This will fix the problems with weston, too)

Ok, thanks - Will you submit the xwayland package?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 5 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Raphael" == Raphael Pavlidis <[email protected]> writes:

Hi Peter,
On 08.02.23 14:43, Peter Korsgaard wrote:
[--SNIP--]

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

How did you test this? Here wlroots with x11 support doesn't build as we
don't have an Xwayland .pc file or binary in Buildroot.

I create a xwayland package, which build the xserver binary, but did not send the patch yet. (This will fix the problems with weston, too)

Ok, thanks - Will you submit the xwayland package?

Yes, but I have to do some cleanups. Should I add you to CC then?
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Raphael" == Raphael Pavlidis <[email protected]> writes:

Quoted 8 lines · Peter Korsgaard
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Raphael" == Raphael Pavlidis <[email protected]> writes:

Hi Peter,
On 08.02.23 14:43, Peter Korsgaard wrote:
[--SNIP--]

Quoted 4 lines

How did you test this? Here wlroots with x11 support doesn't build as we
don't have an Xwayland .pc file or binary in Buildroot.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I create a xwayland package, which build the xserver binary, but did not send the patch yet. (This will fix the problems with weston, too)

Ok, thanks - Will you submit the xwayland package?

Yes, but I have to do some cleanups. Should I add you to CC then?

Ok, please do.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot