[Pkg-mongodb-maintainers] [pkg-mongodb] 308/394: Add support for GNU/Hurd

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 13:59:49 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 77ac71c8e13d5cb53936732650c247f869aeffcb
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date:   Tue Jun 30 15:48:46 2015 +0000

    Add support for GNU/Hurd
---
 debian/changelog                      |  3 +++
 debian/control                        |  8 ++++----
 debian/patches/0012-support-gnu.patch | 31 +++++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 4 files changed, 39 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e70924f..d73c5bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ mongodb (1:2.4.10-2) unstable; urgency=low
   * Build with -Wno-unused-function, fixing FTBFS with gcc-4.9
     (closes: #746887).
 
+  [ Svante Signell <svante.signell at gmail.com> ]
+  * Add support for GNU/Hurd (closes: #747586).
+
  -- Laszlo Boszormenyi (GCS) <gcs at debian.org>  Sat, 21 Jun 2014 18:34:48 +0000
 
 mongodb (1:2.4.10-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 399ba6a..58f0cc2 100644
--- a/debian/control
+++ b/debian/control
@@ -28,7 +28,7 @@ Homepage: http://www.mongodb.org
 XS-Testsuite: autopkgtest
 
 Package: mongodb
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf ppc64el
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf ppc64el
 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 armhf ppc64el
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf ppc64el
 Depends:
  adduser,
  mongodb-clients,
@@ -82,7 +82,7 @@ Description: object/document-oriented database (server package)
  server/load-balancer (mongos).
 
 Package: mongodb-clients
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf ppc64el
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf ppc64el
 Depends:
  ${misc:Depends},
  ${shlibs:Depends}
@@ -109,7 +109,7 @@ Description: object/document-oriented database (client apps)
 
 Package: mongodb-dev
 Section: libdevel
-Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf ppc64el
+Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 hurd-any armhf ppc64el
 Depends:
  libboost-dev,
  ${misc:Depends}
diff --git a/debian/patches/0012-support-gnu.patch b/debian/patches/0012-support-gnu.patch
new file mode 100644
index 0000000..f2c69e7
--- /dev/null
+++ b/debian/patches/0012-support-gnu.patch
@@ -0,0 +1,31 @@
+--- a/SConstruct	2014-05-09 00:54:25.000000000 +0200
++++ b/SConstruct	2014-05-09 13:27:08.000000000 +0200
+@@ -348,6 +348,8 @@
+     env['PYSYSPLATFORM'] = 'linux2'
+ if 'freebsd' in env['PYSYSPLATFORM']:
+     env['PYSYSPLATFORM'] = 'freebsd'
++if 'gnu0' in env['PYSYSPLATFORM']:
++    env['PYSYSPLATFORM'] = 'gnu'
+ 
+ if os.sys.platform == 'win32':
+     env['OS_FAMILY'] = 'win'
+@@ -526,7 +528,7 @@
+        env.Append( EXTRACPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) )
+        env.Append( EXTRALIBPATH=filterExists(["/sw/lib/", "/opt/local/lib"]) )
+ 
+-elif os.sys.platform.startswith("linux") or os.sys.platform.startswith("gnukfreebsd"):
++elif os.sys.platform.startswith("linux") or os.sys.platform.startswith("gnukfreebsd") or os.sys.platform.startswith("gnu0"):
+     linux = True
+     platform = "linux"
+ 
+--- a/src/mongo/platform/random.cpp	2014-05-09 00:54:25.000000000 +0200
++++ b/src/mongo/platform/random.cpp	2014-05-09 01:30:24.000000000 +0200
+@@ -105,7 +105,7 @@
+         return new WinSecureRandom();
+     }
+ 
+-#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
++#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
+ 
+     class InputStreamSecureRandom : public SecureRandom {
+     public:
diff --git a/debian/patches/series b/debian/patches/series
index ea89345..54d40fa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,4 +11,5 @@
 0011-Use-a-signed-char-to-store-BSONType-enumerations.patch
 0099-Pagesize-hacks.patch
 0004-Support-ppc64el-builds.patch
+0012-support-gnu.patch
 no-unused-function.patch

-- 
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