diff options
author | M.Dinslage <daedra1980@gmail.com> | 2021-01-30 09:17:50 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:07:57 -0500 |
commit | 2e53e7f470fea9ff745990ab461f440d1000244c (patch) | |
tree | 6e34e14214e7030823a672666f5aeb2b9cc67ab5 /audio/alsamixergui | |
parent | 95ca5545579fb1c02b9e18e1cb624f5315d10e66 (diff) | |
download | slackbuilds-2e53e7f470fea9ff745990ab461f440d1000244c.tar.gz |
audio/alsamixergui: Fix for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/alsamixergui')
-rw-r--r-- | audio/alsamixergui/alsamixergui-0.9.0.1.2-strsignal.patch | 13 | ||||
-rw-r--r-- | audio/alsamixergui/alsamixergui.SlackBuild | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/audio/alsamixergui/alsamixergui-0.9.0.1.2-strsignal.patch b/audio/alsamixergui/alsamixergui-0.9.0.1.2-strsignal.patch new file mode 100644 index 0000000000..cd72309f9a --- /dev/null +++ b/audio/alsamixergui/alsamixergui-0.9.0.1.2-strsignal.patch @@ -0,0 +1,13 @@ +diff --git a/src/alsamixer.cxx b/src/alsamixer.cxx +index c7fda51..0d17e21 100644 +--- a/src/alsamixer.cxx ++++ b/src/alsamixer.cxx +@@ -2081,7 +2081,7 @@ static void + mixer_signal_handler (int signal) + { + if (signal != SIGSEGV) +- mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0); ++ mixer_abort (ERR_SIGNAL, strsignal(signal), 0); + else + { + fprintf (stderr, "\nSegmentation fault.\n"); diff --git a/audio/alsamixergui/alsamixergui.SlackBuild b/audio/alsamixergui/alsamixergui.SlackBuild index d7a599d26f..326ee8ac5c 100644 --- a/audio/alsamixergui/alsamixergui.SlackBuild +++ b/audio/alsamixergui/alsamixergui.SlackBuild @@ -69,6 +69,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/alsamixergui-0.9.0.1.2-strsignal.patch + # Fix autotools and broken FLTK detection: zcat $CWD/alsamixergui_0.9.0rc2-1-9.1.diff.gz | patch -p1 chmod +x configure |