mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
csound: restore patch to fix musl builds
Avoid ugly constructs, thanks.
This commit is contained in:
parent
17bbfd58e6
commit
ef537495b2
2 changed files with 11 additions and 9 deletions
11
srcpkgs/csound/patches/musl.patch
Normal file
11
srcpkgs/csound/patches/musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Top/csound.c.orig 2017-07-12 14:54:27.000000000 +0200
|
||||||
|
+++ Top/csound.c 2017-07-17 17:27:27.064603813 +0200
|
||||||
|
@@ -1089,7 +1089,7 @@
|
||||||
|
|
||||||
|
static void signal_handler(int sig)
|
||||||
|
{
|
||||||
|
-#if defined(LINUX) && !defined(ANDROID) && !defined(NACL)
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
#include <execinfo.h>
|
||||||
|
|
||||||
|
{
|
|
@ -19,15 +19,6 @@ distfiles="https://github.com/$pkgname/$pkgname/archive/$version.tar.gz"
|
||||||
checksum=d49735b4ed50f2818b577abcface45fe7f9b7fb49ccd898db030893cbcdfc738
|
checksum=d49735b4ed50f2818b577abcface45fe7f9b7fb49ccd898db030893cbcdfc738
|
||||||
nocross=yes
|
nocross=yes
|
||||||
|
|
||||||
_xreplace() {
|
|
||||||
sed -i "s/$(echo $1 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')/$(echo $2 | sed -e 's/[\/&]/\\&/g')/g" $3
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
_xreplace '#if defined(LINUX) && !defined(ANDROID)' '#if defined(__GLIBC__)' \
|
|
||||||
Top/csound.c
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -r $DESTDIR/tmp
|
rm -r $DESTDIR/tmp
|
||||||
vinstall ${FILESDIR}/csound.sh 755 etc/profile.d
|
vinstall ${FILESDIR}/csound.sh 755 etc/profile.d
|
||||||
|
|
Loading…
Add table
Reference in a new issue