[arch-commits] Commit in cage/repos (3 files)

David Runge dvzrv at archlinux.org
Thu Jul 16 11:11:27 UTC 2020


    Date: Thursday, July 16, 2020 @ 11:11:26
  Author: dvzrv
Revision: 664111

archrelease: copy trunk to community-staging-x86_64

Added:
  cage/repos/community-staging-x86_64/
  cage/repos/community-staging-x86_64/PKGBUILD
    (from rev 664110, cage/trunk/PKGBUILD)
  cage/repos/community-staging-x86_64/cage-0.1.1-wlroots-0.11.0.patch
    (from rev 664110, cage/trunk/cage-0.1.1-wlroots-0.11.0.patch)

---------------------------------+
 PKGBUILD                        |   55 +++++++++++++++++++++++++++++++++++
 cage-0.1.1-wlroots-0.11.0.patch |   59 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

Copied: cage/repos/community-staging-x86_64/PKGBUILD (from rev 664110, cage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-16 11:11:26 UTC (rev 664111)
@@ -0,0 +1,55 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Maintainer: Brett Cornwall <ainola at archlinux.org>
+
+_commit='27391f174a1fe385899074f13453667b98af8621'
+pkgname=cage
+pkgver=0.1.1.r68.g27391f1
+pkgrel=1
+pkgdesc="A kiosk compositor for Wayland"
+arch=('x86_64')
+url="https://www.hjdskes.nl/projects/cage/"
+license=('MIT')
+depends=('glibc' 'libxkbcommon' 'polkit' 'pixman' 'wayland')
+makedepends=('git' 'meson' 'wayland-protocols' 'wlroots' 'xorg-server-xwayland')
+optdepends=('xorg-server-xwayland: X11 support')
+# cage 0.1.1 not compatible with wlroots > 0.8.1
+# therefore pinning current HEAD to be able to upgrade wlroots
+# https://github.com/Hjdskes/cage/issues/107
+# source=("$pkgname-$pkgver.tar.gz::https://github.com/Hjdskes/${pkgname}/archive/v${pkgver}.tar.gz"
+#         "https://github.com/Hjdskes/cage/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz.sig")
+source=("${pkgname}-${pkgver}::git+https://github.com/Hjdskes/${pkgname}.git#commit=${_commit}?signed"
+        "${pkgname}-0.1.1-wlroots-0.11.0.patch")
+sha512sums=('SKIP'
+            '4273fb848309c329496a61ecc68018e302ec6b7b4b65c8d3a57304b2e1dd95822d08043cf3ec6c6e1673e16d276edb3b7d0c2566da72689e0f6cabe86f2bf96a')
+validpgpkeys=('13B6A35E9FD677D02CD68DBE37C445296EBC43B1') # Jente Hidskes <dev at hjdskes.nl>
+
+pkgver() {
+  cd "$pkgname-$pkgver"
+  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -Np1 -i "../${pkgname}-0.1.1-wlroots-0.11.0.patch"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  arch-meson --prefix=/usr \
+             --libdir=lib \
+             --buildtype=release \
+             -Dxwayland=true \
+             build
+  ninja -C build
+}
+
+package() {
+  depends+=('libwlroots.so')
+  cd "$pkgname-$pkgver"
+  DESTDIR="${pkgdir}" meson install -C build
+  #docs
+  install -vDm 644 README.md \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}

Copied: cage/repos/community-staging-x86_64/cage-0.1.1-wlroots-0.11.0.patch (from rev 664110, cage/trunk/cage-0.1.1-wlroots-0.11.0.patch)
===================================================================
--- community-staging-x86_64/cage-0.1.1-wlroots-0.11.0.patch	                        (rev 0)
+++ community-staging-x86_64/cage-0.1.1-wlroots-0.11.0.patch	2020-07-16 11:11:26 UTC (rev 664111)
@@ -0,0 +1,59 @@
+From 6a12da196068189a6ba390ca5ca3473454a90da7 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich at FreeBSD.org>
+Date: Sat, 9 May 2020 11:39:00 +0000
+Subject: [PATCH 1/3] output: unbreak with wlroots 0.11.0
+
+Port changes changes from
+https://github.com/swaywm/sway/commit/9d0aa0cb8396
+https://github.com/swaywm/sway/commit/40e87fa98afd
+---
+ output.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/output.c b/output.c
+index d6e34aa..96f915c 100644
+--- a/output.c
++++ b/output.c
+@@ -232,10 +232,7 @@ scan_out_primary_view(struct cg_output *output)
+ 		return false;
+ 	}
+ 
+-	if (!wlr_output_attach_buffer(wlr_output, surface->buffer)) {
+-		return false;
+-	}
+-
++	wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
+ 	return wlr_output_commit(wlr_output);
+ }
+ 
+
+From 3575c9180bc09d72545b8c832b5278905fa0b006 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich at FreeBSD.org>
+Date: Wed, 15 Jul 2020 23:30:48 +0000
+Subject: [PATCH 2/3] meson: require wlroots 0.11.0 after 6a12da196068
+
+../output.c:235:57: error: no member named 'base' in 'struct wlr_buffer'
+        wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
+                                              ~~~~~~~~~~~~~~~  ^
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 90bc400..ee6d4c7 100644
+--- a/meson.build
++++ b/meson.build
+@@ -34,7 +34,7 @@ if is_freebsd
+   )
+ endif
+ 
+-wlroots        = dependency('wlroots', version: '>= 0.9.1')
++wlroots        = dependency('wlroots', version: '>= 0.11.0')
+ wayland_protos = dependency('wayland-protocols', version: '>=1.14')
+ wayland_server = dependency('wayland-server')
+ pixman         = dependency('pixman-1')
+
+From c9cef876c05d5412c412774f58926d3b38ae594a Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich at FreeBSD.org>
+Date: Sat, 9 May 2020 11:46:10 +0000
+Subject: [PATCH 3/3] CI: bump wlroots version to 0.11.0



More information about the arch-commits mailing list