diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2017-08-07 08:54:02 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:42:08 -0500 |
commit | 96cba50921cb59f37771b732b6c788e03c2fdb28 (patch) | |
tree | c9b21a1d5bec1182911a551629e914e3951aa0fc /libraries/live555 | |
parent | 82b808a76fd118d2052bca398d1ea0b7d16ad530 (diff) |
libraries/live555: Fix missing header in glibc >= 2.26.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/live555')
-rw-r--r-- | libraries/live555/live555.SlackBuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/live555/live555.SlackBuild b/libraries/live555/live555.SlackBuild index c1c8fe63b12c..5031f75cd55c 100644 --- a/libraries/live555/live555.SlackBuild +++ b/libraries/live555/live555.SlackBuild @@ -62,6 +62,10 @@ 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 {} \; +# This header isn't shipped in glibc >= 2.26 anymore +# https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27 +sed -i 's/#include <xlocale.h>.*/#include <locale.h>/' liveMedia/include/Locale.hh + for f in $(find . -type f |xargs grep -l "PREFIX =") ; do echo $f; sed -i -e "/PREFIX =/c\PREFIX = \/usr" $f ; done for f in $(find . -type f |xargs grep -l "LIBDIR =") ; do echo $f; sed -i -e "/LIBDIR =/c\LIBDIR = \$(PREFIX)\/lib$LIBDIRSUFFIX" $f ; done |