summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorIsmael Luceno2019-05-14 00:13:45 +0200
committerIsmael Luceno2019-05-14 00:13:45 +0200
commit14b961da9d127b0bd660f40fac2a27a17b57f903 (patch)
tree32fde0f3fdc0ccafcb0fb454fd762ab63e109478 /database
parent418f17581b85092fb5229900c1e1a683570e3e01 (diff)
db: Fix build against musl
Diffstat (limited to 'database')
-rw-r--r--database/db/HISTORY3
-rwxr-xr-xdatabase/db/PRE_BUILD2
-rw-r--r--database/db/db-5.3.28-musl-detect.patch10
3 files changed, 15 insertions, 0 deletions
diff --git a/database/db/HISTORY b/database/db/HISTORY
index e9035a34ac..f81de232ea 100644
--- a/database/db/HISTORY
+++ b/database/db/HISTORY
@@ -1,3 +1,6 @@
+2019-05-14 Ismael Luceno <ismael@sourcemage.org>
+ * PRE_BUILD, db-5.3.28-musl-detect.patch: Fixed build against musl
+
2018-09-13 Eric Sandall <sandalle@sourcemage.org>
* BUILD: Move javafix.diff to PRE_BUILD
* PRE_BUILD: Apply javafix.diff
diff --git a/database/db/PRE_BUILD b/database/db/PRE_BUILD
index 4068dcca83..5608e63b5c 100755
--- a/database/db/PRE_BUILD
+++ b/database/db/PRE_BUILD
@@ -7,4 +7,6 @@ patch -p1 < "${SPELL_DIRECTORY}"/javafix.diff &&
message "${MESSAGE_COLOR}Applying GCC 8.x Clang fix...${DEFAULT_COLOR}" &&
patch -p1 < "${SPELL_DIRECTORY}"/0002-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch &&
+patch -fp1 -i "$SPELL_DIRECTORY"/db-5.3.28-musl-detect.patch &&
+
sedit 's|\(docdir\w*=\w*[^/]*\)/docs|\1/share/doc/db|' dist/Makefile.in
diff --git a/database/db/db-5.3.28-musl-detect.patch b/database/db/db-5.3.28-musl-detect.patch
new file mode 100644
index 0000000000..72809bbfba
--- /dev/null
+++ b/database/db/db-5.3.28-musl-detect.patch
@@ -0,0 +1,10 @@
+--- db-5.3.28/dist/config.sub.orig 2019-05-14 01:47:55.953219891 +0200
++++ db-5.3.28/dist/config.sub 2019-05-14 01:48:35.713528717 +0200
+@@ -125,6 +125,7 @@
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
++ linux-musl* | \
+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \