summaryrefslogtreecommitdiffstats
path: root/audio-players
diff options
context:
space:
mode:
authorIsmael Luceno2019-06-04 23:13:42 +0200
committerIsmael Luceno2019-06-04 23:33:49 +0200
commit6362c7a650ead5be132df418640c75db61dd80ee (patch)
treed183d5286d149f82f60fcb4bc2e4aed8d61cbc94 /audio-players
parent2f2d3d626516ed8efeb65caa5b9ec16ffa2bcbec (diff)
cdparanoia: Fix build against musl
Diffstat (limited to 'audio-players')
-rw-r--r--audio-players/cdparanoia/HISTORY3
-rwxr-xr-xaudio-players/cdparanoia/PRE_BUILD9
2 files changed, 11 insertions, 1 deletions
diff --git a/audio-players/cdparanoia/HISTORY b/audio-players/cdparanoia/HISTORY
index 75c965e7db..bba5573e43 100644
--- a/audio-players/cdparanoia/HISTORY
+++ b/audio-players/cdparanoia/HISTORY
@@ -1,3 +1,6 @@
+2019-06-04 Ismael Luceno <ismael@sourcemage.org>
+ * PRE_BUILD: Fixed build against musl
+
2013-04-22 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* INSTALL: make /usr/bin/cdparanoia executable for users other than root
diff --git a/audio-players/cdparanoia/PRE_BUILD b/audio-players/cdparanoia/PRE_BUILD
index e80419b0a9..1cf5fc9859 100755
--- a/audio-players/cdparanoia/PRE_BUILD
+++ b/audio-players/cdparanoia/PRE_BUILD
@@ -1,2 +1,9 @@
default_pre_build &&
-bunzip2 -c $SPELL_DIRECTORY/gcc43-private.patch.bz2 | patch -p1 -d $SOURCE_DIRECTORY
+cd "$SOURCE_DIRECTORY" &&
+bunzip2 -c $SPELL_DIRECTORY/gcc43-private.patch.bz2 | patch -fp1 &&
+sedit 's!maybe_os in$!& linux-musl*|\\!' configure.sub &&
+sed -E -i 's/u_(int[13][26]_t)/u\1/g' \
+ interface/interface.c \
+ interface/scsi_interface.c \
+ interface/utils.h \
+ utils.h