diff options
| author | Laszlo Boszormenyi (GCS) <gcs@debian.org> | 2015-06-30 15:48:46 +0000 |
|---|---|---|
| committer | Laszlo Boszormenyi (GCS) <gcs@debian.org> | 2015-06-30 15:48:46 +0000 |
| commit | 77ac71c8e13d5cb53936732650c247f869aeffcb (patch) | |
| tree | d6f323991ce046fd13d229fbbc34ede663e3e2ee | |
| parent | 17e5be26b8969ce5fd39c70c63cbc367d746a632 (diff) | |
Add support for GNU/Hurddebian/2.4.10-2
| -rw-r--r-- | debian/changelog | 3 | ||||
| -rw-r--r-- | debian/control | 8 | ||||
| -rw-r--r-- | debian/patches/0012-support-gnu.patch | 31 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
4 files changed, 39 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index e70924f60fe..d73c5bd7d2a 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@gmail.com> ] + * Add support for GNU/Hurd (closes: #747586). + -- Laszlo Boszormenyi (GCS) <gcs@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 399ba6aab7b..58f0cc2bc8b 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 00000000000..f2c69e7e257 --- /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 ea893453497..54d40fa4bc6 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 |
