public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-sound/klick/files/
@ 2022-10-12 16:23 Joonas Niilola
  0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2022-10-12 16:23 UTC (permalink / raw
  To: gentoo-commits

commit:     912cee2d7b77a3a2f779cf1939ae44aad44d66ce
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sat Oct  1 09:30:08 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 16:23:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=912cee2d

media-sound/klick: fix build with clang

Replace gcc6 patch with the patch from Debian.

Closes: https://bugs.gentoo.org/731018
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-sound/klick/files/klick-0.12.2-gcc6.patch | 92 +++++++++++++++++--------
 1 file changed, 63 insertions(+), 29 deletions(-)

diff --git a/media-sound/klick/files/klick-0.12.2-gcc6.patch b/media-sound/klick/files/klick-0.12.2-gcc6.patch
index c8c07121e497..016d221d30e0 100644
--- a/media-sound/klick/files/klick-0.12.2-gcc6.patch
+++ b/media-sound/klick/files/klick-0.12.2-gcc6.patch
@@ -1,44 +1,78 @@
---- klick-0.12.2/src/metronome_map.hh.old	2016-09-21 22:17:41.364102201 -0400
-+++ klick-0.12.2/src/metronome_map.hh	2016-09-21 22:28:50.611858765 -0400
-@@ -48,7 +48,7 @@
+Description: Fix build with gcc-6.
+Author: Jaromír Mikeš <mira.mikes@seznam.cz>
+Forwarded: dominic.sacre@gmx.de
+
+Index: klick/src/metronome_map.hh
+===================================================================
+--- klick.orig/src/metronome_map.hh
++++ klick/src/metronome_map.hh
+@@ -48,7 +48,7 @@ class MetronomeMap
      virtual void timebase_callback(position_t *);
  
    private:
 -    static double const TICKS_PER_BEAT = 1920.0;
-+    static double const TICKS_PER_BEAT;
++    static double constexpr TICKS_PER_BEAT = 1920.0;
  
      // transport position
      nframes_t _current;
---- klick-0.12.2/src/metronome_map.cc.old	2016-09-21 22:27:01.551067088 -0400
-+++ klick-0.12.2/src/metronome_map.cc	2016-09-21 22:28:49.027158380 -0400
-@@ -195,3 +195,5 @@
-         p->beats_per_minute = _pos.map_entry().tempi[n];
-     }
- }
-+
-+double const MetronomeMap::TICKS_PER_BEAT = 1920.0;
---- klick-0.12.2/src/metronome_simple.hh.old	2016-09-21 22:18:57.674628602 -0400
-+++ klick-0.12.2/src/metronome_simple.hh	2016-09-21 22:29:04.307859355 -0400
-@@ -58,9 +58,9 @@
- 
+Index: klick/src/metronome_simple.hh
+===================================================================
+--- klick.orig/src/metronome_simple.hh
++++ klick/src/metronome_simple.hh
+@@ -59,8 +59,8 @@ class MetronomeSimple
    private:
  
--    static int const MAX_TAPS = 5;
+     static int const MAX_TAPS = 5;
 -    static float const MAX_TAP_AGE = 3.0;
 -    static float const TAP_DIFF = 0.2;
-+    static int const MAX_TAPS;
-+    static float const MAX_TAP_AGE;
-+    static float const TAP_DIFF;
++    static float constexpr MAX_TAP_AGE = 3.0;
++    static float constexpr TAP_DIFF = 0.2;
  
      float _tempo;
      float _tempo_increment, _tempo_start, _tempo_limit;
---- klick-0.12.2/src/metronome_simple.cc.old	2016-09-21 22:27:24.883846428 -0400
-+++ klick-0.12.2/src/metronome_simple.cc	2016-09-21 22:28:46.015859632 -0400
-@@ -217,3 +217,7 @@
+Index: klick/src/tempomap.cc
+===================================================================
+--- klick.orig/src/tempomap.cc
++++ klick/src/tempomap.cc
+@@ -57,17 +57,17 @@ static char const regex_blank[] = "^[[:b
+ // matches any valid line in a tempomap file
+ static char const regex_valid[] =
+     // label
+-    "^[[:blank:]]*("REGEX_LABEL":)?" \
++    "^[[:blank:]]*(" REGEX_LABEL":)?" \
+     // bars
+-    "[[:blank:]]*"REGEX_INT"" \
++    "[[:blank:]]*" REGEX_INT"" \
+     // meter
+-    "([[:blank:]]+"REGEX_INT"/"REGEX_INT")?" \
++    "([[:blank:]]+" REGEX_INT"/" REGEX_INT")?" \
+     // tempo
+-    "[[:blank:]]+"REGEX_FLOAT"(-"REGEX_FLOAT"|((,"REGEX_FLOAT")*))?" \
++    "[[:blank:]]+" REGEX_FLOAT"(-" REGEX_FLOAT"|((," REGEX_FLOAT")*))?" \
+     // pattern
+-    "([[:blank:]]+"REGEX_PATTERN")?" \
++    "([[:blank:]]+" REGEX_PATTERN")?" \
+     // volume
+-    "([[:blank:]]+"REGEX_FLOAT")?" \
++    "([[:blank:]]+" REGEX_FLOAT")?" \
+     // comment
+     "[[:blank:]]*(#.*)?$";
+ 
+@@ -87,13 +87,13 @@ static int const
+ // matches valid tempo parameters on the command line
+ static char const regex_cmdline[] =
+     // bars
+-    "^[[:blank:]]*("REGEX_INT"[[:blank:]]+)?" \
++    "^[[:blank:]]*(" REGEX_INT"[[:blank:]]+)?" \
+     // meter
+-    "("REGEX_INT"/"REGEX_INT"[[:blank:]]+)?" \
++    "(" REGEX_INT"/" REGEX_INT"[[:blank:]]+)?" \
+     // tempo
+-    REGEX_FLOAT"(-"REGEX_FLOAT"/"REGEX_FLOAT")?" \
++    REGEX_FLOAT"(-" REGEX_FLOAT"/" REGEX_FLOAT")?" \
+     // pattern
+-    "([[:blank:]]+"REGEX_PATTERN")?[[:blank:]]*$";
++    "([[:blank:]]+" REGEX_PATTERN")?[[:blank:]]*$";
  
-     _frame += nframes;
- }
-+
-+int const MetronomeSimple::MAX_TAPS = 5;
-+float const MetronomeSimple::MAX_TAP_AGE = 3.0;
-+float const MetronomeSimple::TAP_DIFF = 0.2;
+ static int const
+     RE_NMATCHES_CMD = 15,


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-12 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12 16:23 [gentoo-commits] repo/gentoo:master commit in: media-sound/klick/files/ Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox