summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2025-11-14 19:31:32 +0200
committerViorel Munteanu <ceamac@gentoo.org>2025-11-14 19:33:15 +0200
commit9eb4f10394b83203c968b44b570cc51a6b541d63 (patch)
tree417451f8d8aee2418ff9345a97aea5c6e9519122
parentc609724402f624e3eb7269cc34dfa7106bcc3b81 (diff)
downloadgentoo-9eb4f10394b83203c968b44b570cc51a6b541d63.tar.gz
gentoo-9eb4f10394b83203c968b44b570cc51a6b541d63.tar.bz2
gentoo-9eb4f10394b83203c968b44b570cc51a6b541d63.zip
gui-wm/wayfire: fix compilation on musl
Closes: https://bugs.gentoo.org/966059 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
-rw-r--r--gui-wm/wayfire/files/wayfire-0.10.0-fix-musl.patch28
-rw-r--r--gui-wm/wayfire/wayfire-0.10.0-r1.ebuild (renamed from gui-wm/wayfire/wayfire-0.10.0.ebuild)4
2 files changed, 32 insertions, 0 deletions
diff --git a/gui-wm/wayfire/files/wayfire-0.10.0-fix-musl.patch b/gui-wm/wayfire/files/wayfire-0.10.0-fix-musl.patch
new file mode 100644
index 000000000000..d7398049ca6e
--- /dev/null
+++ b/gui-wm/wayfire/files/wayfire-0.10.0-fix-musl.patch
@@ -0,0 +1,28 @@
+https://github.com/WayfireWM/wayfire/pull/2875/commits/4040e432f917fb488477193304142553e0df8413
+https://bugs.gentoo.org/966059
+
+From: Sammy <samexner@protonmail.com>
+Date: Sun, 2 Nov 2025 18:45:01 -0700
+Subject: [PATCH] fix musl compilation
+
+changed uint to standard type unsigned int, fixes compilation error on musl
+--- a/src/json.cpp
++++ b/src/json.cpp
+@@ -225,7 +225,7 @@ json_reference_t& json_reference_t::operator =(const int& v)
+ return *this;
+ }
+
+-json_reference_t& json_reference_t::operator =(const uint& v)
++json_reference_t& json_reference_t::operator =(const unsigned int& v)
+ {
+ yyjson_mut_set_uint(this->v, v);
+ return *this;
+@@ -331,7 +331,7 @@ bool json_reference_t::is_uint() const
+ (yyjson_mut_get_uint(v) <= std::numeric_limits<unsigned int>::max());
+ }
+
+-json_reference_t::operator uint() const
++json_reference_t::operator unsigned int() const
+ {
+ wf::dassert(is_uint());
+ return yyjson_mut_get_uint(v);
diff --git a/gui-wm/wayfire/wayfire-0.10.0.ebuild b/gui-wm/wayfire/wayfire-0.10.0-r1.ebuild
index bd646cdc650f..0985eef77bbd 100644
--- a/gui-wm/wayfire/wayfire-0.10.0.ebuild
+++ b/gui-wm/wayfire/wayfire-0.10.0-r1.ebuild
@@ -68,6 +68,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-musl.patch
+)
+
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}