This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git


The following commit(s) were added to refs/heads/master by this push:
     new 148c4ba  debian: Relax Erlang dependencies when building Debian 
packages on ARM (#34)
148c4ba is described below

commit 148c4bacd1ec7b9c5888f33f14f1b2c0005001d4
Author: lag-linaro <lee.jo...@linaro.org>
AuthorDate: Fri Nov 2 19:36:48 2018 +0000

    debian: Relax Erlang dependencies when building Debian packages on ARM (#34)
    
    Erlang is built and installed from source on ARM based platforms.
---
 Makefile | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 60a2c87..0e76d8e 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,21 @@ centos6: make-rpmbuild centos
 centos-7: centos7
 centos7: make-rpmbuild centos
 
+# Erlang is built from source on ARMv8
+# These packages are not installed, but the files are present
+drop-deb-deps-for-source-arch:
+       if [ "$(shell arch)" = "aarch64" ]; then                          \
+               sed -i '/erlang-dev/d' $(DISTDIR)/debian/control;         \
+               sed -i '/erlang-crypto/d' $(DISTDIR)/debian/control;      \
+               sed -i '/erlang-dialyzer/d' $(DISTDIR)/debian/control;    \
+               sed -i '/erlang-eunit/d' $(DISTDIR)/debian/control;       \
+               sed -i '/erlang-inets/d' $(DISTDIR)/debian/control;       \
+               sed -i '/erlang-xmerl/d' $(DISTDIR)/debian/control;       \
+               sed -i '/erlang-os-mon/d' $(DISTDIR)/debian/control;      \
+               sed -i '/erlang-reltool/d' $(DISTDIR)/debian/control;     \
+               sed -i '/erlang-syntax-tools/d' $(DISTDIR)/debian/control;\
+       fi
+
 # ######################################
 get-couch:
        mkdir -p $(COUCHDIR)
@@ -96,7 +111,7 @@ copy-debian:
        rm -rf $(DISTDIR)/debian
        cp -R debian $(DISTDIR)
 
-update-changelog:
+update-changelog: drop-deb-deps-for-source-arch
        cd $(DISTDIR) && dch -v $(VERSION)~$(PLATFORM) $(DEBCHANGELOG)
 
 dpkg:

Reply via email to