Github messages for voidlinux
 help / color / mirror / Atom feed
From: 0x5c <0x5c@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] picom: update to 12.3.
Date: Wed, 16 Oct 2024 20:53:38 +0200	[thread overview]
Message-ID: <20241016185338.3951A2DE0E@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-52638@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]

There is an updated pull request by 0x5c against master on the void-packages repository

https://github.com/0x5c/void-packages update/picom
https://github.com/void-linux/void-packages/pull/52638

picom: update to 12.3.
This *should* be the full changeset for that update, but I'm doing some extended testing since that update has been a bit chaotic (3rd patch release in two weeks), also it's not a pressing package to update.

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/52638.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/picom-52638.patch --]
[-- Type: text/x-diff, Size: 4249 bytes --]

From 74399832ba0a69e79974b05094a88939d8855712 Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Mon, 14 Oct 2024 12:14:48 -0400
Subject: [PATCH] picom: update to 12.3.

---
 .../picom/patches/arm32-build-failures.patch  | 67 +++++++++++++++++++
 srcpkgs/picom/template                        | 14 ++--
 2 files changed, 73 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/picom/patches/arm32-build-failures.patch

diff --git a/srcpkgs/picom/patches/arm32-build-failures.patch b/srcpkgs/picom/patches/arm32-build-failures.patch
new file mode 100644
index 00000000000000..d511e4bc4463e2
--- /dev/null
+++ b/srcpkgs/picom/patches/arm32-build-failures.patch
@@ -0,0 +1,67 @@
+From 950eb6f7413db56ebf97ed95a299f84af6a47b97 Mon Sep 17 00:00:00 2001
+From: Yuxuan Shui <yshuiv7@gmail.com>
+Date: Tue, 15 Oct 2024 02:40:20 +0100
+Subject: [PATCH] misc: fix build on arm32
+
+Instead of using memcmp to compare windows_options, and thus relying on
+the struct being laid out without padding, just compare the fields
+one-by-one.
+
+Fixes #1355
+
+Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
+---
+ CHANGELOG.md |  6 ++++++
+ src/config.h | 14 ++++++++------
+ 2 files changed, 14 insertions(+), 6 deletions(-)
+
+diff --git a/CHANGELOG.md b/CHANGELOG.md
+index 1483104232..bf65e9bbc7 100644
+--- a/CHANGELOG.md
++++ b/CHANGELOG.md
+@@ -1,3 +1,9 @@
++# 12.x (unreleased)
++
++## Build fixes
++
++* Fix build on arm32 (#1355)
++
+ # 12.3 (2024-Oct-14)
+ 
+ ## Improvements
+diff --git a/src/config.h b/src/config.h
+index 369579acb8..b1d0f251e1 100644
+--- a/src/config.h
++++ b/src/config.h
+@@ -199,9 +199,6 @@ struct window_maybe_options {
+ 	struct win_script animations[ANIMATION_TRIGGER_COUNT];
+ };
+ 
+-// Make sure `window_options` has no implicit padding.
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic error "-Wpadded"
+ /// Like `window_maybe_options`, but all fields are guaranteed to be set.
+ struct window_options {
+ 	double opacity;
+@@ -220,13 +217,18 @@ struct window_options {
+ 
+ 	struct win_script animations[ANIMATION_TRIGGER_COUNT];
+ };
+-#pragma GCC diagnostic pop
+ 
+ static inline bool
+ win_options_no_damage(const struct window_options *a, const struct window_options *b) {
+ 	// Animation changing does not immediately change how window is rendered, so
+-	// they don't cause damage.
+-	return memcmp(a, b, offsetof(struct window_options, animations)) == 0;
++	// they don't cause damage; all other options do.
++	return a->opacity == b->opacity && a->dim == b->dim &&
++	       a->corner_radius == b->corner_radius && a->unredir == b->unredir &&
++	       a->transparent_clipping == b->transparent_clipping &&
++	       a->shadow == b->shadow && a->invert_color == b->invert_color &&
++	       a->blur_background == b->blur_background && a->fade == b->fade &&
++	       a->clip_shadow_above == b->clip_shadow_above && a->paint == b->paint &&
++	       a->full_shadow == b->full_shadow && a->shader == b->shader;
+ }
+ 
+ /// Structure representing all options.
diff --git a/srcpkgs/picom/template b/srcpkgs/picom/template
index 58e70dce623422..b090d2bf1836f7 100644
--- a/srcpkgs/picom/template
+++ b/srcpkgs/picom/template
@@ -1,20 +1,18 @@
 # Template file for 'picom'
 pkgname=picom
-version=11.2
+version=12.3
 revision=1
 build_style=meson
 configure_args="-Dwith_docs=true"
-hostmakedepends="pkg-config asciidoc"
-makedepends="MesaLib-devel dbus-devel libconfig-devel libepoxy-devel libev-devel
- pcre2-devel pixman-devel xcb-util-image-devel xcb-util-renderutil-devel
- libxdg-basedir-devel uthash"
-depends="desktop-file-utils"
+hostmakedepends="pkg-config ruby-asciidoctor"
+makedepends="dbus-devel libconfig-devel libepoxy-devel libev-devel pcre2-devel
+ pixman-devel uthash xcb-util-image-devel xcb-util-renderutil-devel"
 short_desc="Lightweight compositor for X11 (previously a compton fork)"
 maintainer="0x5c <dev@0x5c.io>"
-license="MIT, MPL-2.0"
+license="MPL-2.0 AND MIT"
 homepage="https://github.com/yshui/picom/"
 distfiles="https://github.com/yshui/picom/archive/v${version}.tar.gz"
-checksum=1c1063936faf09ed9bba726e7737a562564b7a5f8cdef79d48fcdaf3669a4df4
+checksum=926142c667c9e5b5205a11b2755fb9ca39c3e696365792d705a45d84e34d7a68
 
 post_install() {
 	vlicense LICENSES/MIT

  parent reply	other threads:[~2024-10-16 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-14 16:19 [PR PATCH] " 0x5c
2024-10-15  7:53 ` pondichys
2024-10-16 18:53 ` 0x5c [this message]
2024-10-18  0:17 ` 0x5c
2024-10-30  2:48 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241016185338.3951A2DE0E@inbox.vuxu.org \
    --to=0x5c@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).