Skip to contentSkip to conversation

findutils: fix musl compilation

PATCH New Nicola Lunghi 1 participant 1 message Feb 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 findutils: fix musl compilation

see patch and commit: e42ded0 coreutils: fix musl compilation

---
 ...charset.alias-when-building-for-musl.patch | 38 +++++++++++++++++++
 .../findutils/findutils_4.2.31.bb             |  1 +
 2 files changed, 39 insertions(+)
 create mode 100644 recipes-extended/findutils/findutils-4.2.31/build-don-t-need-charset.alias-when-building-for-musl.patch
recipes-extended/findutils/findutils-4.2.31/build-don-t-need-charset.alias-when-building-for-musl.patch new file +38 -0
new file mode 100644
index 0000000..cf25f28
@@ -0,0 +1,38 @@
+From d7178a76d066afdd487047574ffe840999201de8 Mon Sep 17 00:00:00 2001
+From: Nicola Lunghi <[email protected]>
+Date: Mon, 3 Feb 2020 18:47:03 +0000
+Subject: [PATCH] build: don't need charset.alias when building for musl
+
+Upstream-Status: Inappropriate [required for findutils 4.2.31 (GPLv2) only]
+Signed-off-by: Nicola Lunghi <[email protected]>
+---
+ gnulib/lib/Makefile.am | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/gnulib/lib/Makefile.am b/gnulib/lib/Makefile.am
+index 90351b3..1b06b16 100644
+--- a/gnulib/lib/Makefile.am
++++ b/gnulib/lib/Makefile.am
+@@ -471,7 +471,11 @@ all-local: charset.alias ref-add.sed ref-del.sed
+ charset_alias = $(DESTDIR)$(libdir)/charset.alias
+ charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
+ install-exec-local: all-local
+-	test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir)
++	case '$(host_os)' in \
++	    linux-musl*) \
++	      : ;;\
++	    *) \
++	test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) ;\
+ 	if test -f $(charset_alias); then \
+ 	  sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
+ 	  $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
+@@ -482,7 +486,8 @@ install-exec-local: all-local
+ 	    $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
+ 	    rm -f $(charset_tmp) ; \
+ 	  fi ; \
+-	fi
++	fi ;\
++	esac
+ 
+ uninstall-local: all-local
+ 	if test -f $(charset_alias); then \
recipes-extended/findutils/findutils_4.2.31.bb +1 -0
index 7dee018..5fb1f65 100644
@@ -8,6 +8,7 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \
            file://gnulib-extension.patch \
            file://findutils_fix_for_automake-1.12.patch \
            file://findutils-fix-doc-build-error.patch \
+           file://build-don-t-need-charset.alias-when-building-for-musl.patch \
            "
 
 SRC_URI[md5sum] = "a0e31a0f18a49709bf5a449867c8049a"
Signature · 1 line
2.20.1