[Pkg-mongodb-maintainers] [pkg-mongodb] 342/394: Enable arm64 build

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 14:00:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit 07d52447f3c096335ed4ad8e98bf74bbb195e75f
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Thu Jan 14 17:55:31 2016 +0200

    Enable arm64 build
    
    Mark all binary packages as arm64 as well and B-D on libv8-dev
    everywhere except arm64. For arm64, disable scripting and remove the
    mongo shell as it is broken without scripting support.
    
    Bits imported from Ubuntu.
    
    Closes: #791935
---
 debian/control | 10 +++++-----
 debian/rules   | 13 +++++++++++++
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 82b600d..5b1a8d7 100644
--- a/debian/control
+++ b/debian/control
@@ -19,7 +19,7 @@ Build-Depends:
  libsnappy-dev (>= 1.1.3-2),
  libstemmer-dev,
  libssl-dev,
- libv8-dev (>= 3.12),
+ libv8-dev (>= 3.12) [!arm64],
  python-pymongo,
  scons
 Standards-Version: 3.9.6
@@ -28,7 +28,7 @@ Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/mongodb.git/
 Homepage: http://www.mongodb.org
 
 Package: mongodb
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf arm64
 Depends:
  mongodb-dev,
  mongodb-server (>= 1:2.4.1-2),
@@ -54,7 +54,7 @@ Description: object/document-oriented database (metapackage)
  the server, the clients and the development files (headers and library).
 
 Package: mongodb-server
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf arm64
 Pre-Depends:
  adduser
 Depends:
@@ -83,7 +83,7 @@ Description: object/document-oriented database (server package)
  server/load-balancer (mongos).
 
 Package: mongodb-clients
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf arm64
 Depends:
  ${misc:Depends},
  ${shlibs:Depends}
@@ -110,7 +110,7 @@ Description: object/document-oriented database (client apps)
 
 Package: mongodb-dev
 Section: libdevel
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf arm64
 Depends:
  libboost-dev,
  ${misc:Depends}
diff --git a/debian/rules b/debian/rules
index 2e500c7..2946015 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,10 @@ COMMON_OPTIONS = --use-system-snappy --use-system-tcmalloc --use-system-pcre \
   --use-system-boost --use-system-v8 --use-system-yaml --ssl \
   $(DEB_SCONS_OPTIONS)
 
+ifeq ($(DEB_HOST_ARCH), arm64)
+COMMON_OPTIONS += --disable-scripting
+endif
+
 DEB_SCONS_CLEAN = --directory="." $(HARDENING_OPTIONS) . --keep-going --clean \
   $(COMMON_OPTIONS)
 DEB_SCONS_BUILD = --directory="." $(HARDENING_OPTIONS) all $(COMMON_OPTIONS)
@@ -54,6 +58,15 @@ override_dh_systemd_enable:
 override_dh_installinit:
 	dh_installinit -pmongodb-server --name=mongodb
 
+ifeq ($(DEB_HOST_ARCH), arm64)
+# mongo shell is broken without scripting so drop it from
+# the binary
+override_dh_install:
+	dh_install
+	rm -f $(CURDIR)/tmp/mongodb-clients/usr/bin/mongo
+.PHONY: override_dh_install
+endif
+
 %:
 	dh $@ --parallel --with=systemd
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git



More information about the Pkg-mongodb-maintainers mailing list