summaryrefslogtreecommitdiff
path: root/media-sound/alsa-scarlett-gui
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-05 05:00:03 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-05 05:00:03 +0000
commitd0835364e1877539c2b8ce70c1941ebfedd2a91b (patch)
treeb496ea9ff0daadf6d98d7ec065164327d30ae154 /media-sound/alsa-scarlett-gui
parentb3bfc7186e4f820493aa2eb8cc65f0efba7ed6f6 (diff)
gentoo auto-resync : 05:12:2023 - 05:00:03
Diffstat (limited to 'media-sound/alsa-scarlett-gui')
-rw-r--r--media-sound/alsa-scarlett-gui/Manifest3
-rw-r--r--media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild (renamed from media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild)5
-rw-r--r--media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch33
3 files changed, 39 insertions, 2 deletions
diff --git a/media-sound/alsa-scarlett-gui/Manifest b/media-sound/alsa-scarlett-gui/Manifest
index c7d7219e3fa1..a5eb7ba55750 100644
--- a/media-sound/alsa-scarlett-gui/Manifest
+++ b/media-sound/alsa-scarlett-gui/Manifest
@@ -1,4 +1,5 @@
AUX alsa-scarlett-gui-0.3.3-cflags.patch 1071 BLAKE2B 994958c3e4395229f0b9c31eac5e9050f46d98241224fba8c09b31e2cdfda91bff762a4c72c7f5441010f7d60e48a0942c51e4430d0190f6b167d753defffc02 SHA512 a7dd3cfd4318858d733dafeeaf6ea52de91b10e7d0cc8392295b7a0020745b7ed0edad8fb8e7892ff4bc81187f627c144e08beb364f881bcdd7b91686b5e8e8c
+AUX alsa-scarlett-gui-0.3.3-fabs.patch 1165 BLAKE2B a5da1ef2709b94c4bb83cf2b097baef61176d359642c009de1927d72f0b7bd49a082801f13f1c68d8e6bfa62030195ad631f94f08a9153dc5de71ff01202a8cb SHA512 440e70e63de07def071f18db14c0be98483cb2839ab4f572c000ce4f1dd9aa8aa915aa9c13fbdca7dd94764f0edfed30248caf1629604d619794c54109f1ed68
DIST alsa-scarlett-gui-0.3.3.tar.gz 3113190 BLAKE2B 16128c8795c4a4ebd9d711f64dad1dd0e38ba17e34a50d17cf43b8ce454409ee2a5bc817120d5b421b367d3f1e5ef0f9f7868fb1109af6edb8d820579cad7b14 SHA512 38b0e8cb0bb1d9039463d7635ee81ad1ae477628b885f5f1f3601c163369ff59c7effbba140fb761b26dca7cf9c0f6b5a3f8db0b68a8c604078fe8f08cea082f
-EBUILD alsa-scarlett-gui-0.3.3.ebuild 588 BLAKE2B 2366ee8994de2bf3746cc58e9841e4fdfa323573e0e1bd7e82791d05ee3f74f1bdd9e6dcf4830eab5b0b4281c493cdba5862b66e5c91e97aae29380429f7d4d2 SHA512 74cc090c839b082e400d60c3aaff25ab5cad241d88341c5acf84b5d8a6ef091294d36f364c3f38213019e62900d31296cf2ca7533abc2424af7a7c2744efa5b9
+EBUILD alsa-scarlett-gui-0.3.3-r1.ebuild 622 BLAKE2B b27e814cdb268dd928842b6cae287e97a31d0ecf84cef1cdb071f38994e9d319665d7fdc40a5b979f0ee080e242cb49d1d50c096c4e49a75429a6fb89140ec76 SHA512 73c7db7f2827d28c8cab1906d75c42047ce074667f0782d53e63b5108b8985b1d36be15b808fe5e582b3311c328138ed4a08ba20dbf69f5d9597c087665da56d
MISC metadata.xml 339 BLAKE2B c3857d4ec13e19a52f17671c11cbf727a47d4df5e237ff5195d3afd0257bf7bf7beb80c70031785f39d18a5455e284a6d71fb5ca4dc630c44ebbd229222765fb SHA512 77f353703790fef3da5f204bedced8f81598386ab3806748a7127be1334c8db37f2d7fbd28d53f4bfdb376c665073d45409494dba422078cf2248c1e99a1dcba
diff --git a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild
index bbffa10a19b6..8f4c27ffd11c 100644
--- a/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3.ebuild
+++ b/media-sound/alsa-scarlett-gui/alsa-scarlett-gui-0.3.3-r1.ebuild
@@ -19,7 +19,10 @@ DEPEND="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
-PATCHES=( "${FILESDIR}"/"${P}"-cflags.patch )
+PATCHES=(
+ "${FILESDIR}"/"${P}"-cflags.patch
+ "${FILESDIR}"/"${P}"-fabs.patch
+)
MAKEOPTS="${MAKEOPTS} -C src"
export PREFIX="/usr"
diff --git a/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch
new file mode 100644
index 000000000000..31f21bed199a
--- /dev/null
+++ b/media-sound/alsa-scarlett-gui/files/alsa-scarlett-gui-0.3.3-fabs.patch
@@ -0,0 +1,33 @@
+From 883541a1073e5bd2f8a8f759db56e48d90a2f448 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason@zx2c4.com>
+Date: Tue, 5 Dec 2023 00:00:34 +0100
+Subject: [PATCH] gtkdial: use fabs() for double
+
+Passing a double to abs() truncates it to an integer, which is probably
+not intended, and also causes fatal errors on clang.
+
+Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
+---
+ src/gtkdial.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/gtkdial.c b/src/gtkdial.c
+index ce06515..931b06b 100644
+--- a/src/gtkdial.c
++++ b/src/gtkdial.c
+@@ -832,9 +832,9 @@ gtk_dial_scroll_controller_scroll (GtkEventControllerScroll *scroll,
+ double dy,
+ GtkDial *dial)
+ {
+- double delta = dx ? dx : dy;
+- if (abs(delta) > 1)
+- delta *= abs(delta);
++ double delta = dx ? dx : dy, absolute_delta = fabs(delta);
++ if (absolute_delta > 1)
++ delta *= absolute_delta;
+ double step = -gtk_adjustment_get_step_increment(dial->adj)*delta;
+
+ set_value(dial, gtk_adjustment_get_value(dial->adj) + step);
+--
+2.42.0
+