[Pkg-mongodb-maintainers] [pkg-mongodb] 288/394: fix integer comparision FTBFS with patch
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Wed Sep 21 13:59:44 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 0112837845dca521f013dbafbefcab47dd09ecd2
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date: Fri Oct 18 10:37:12 2013 +0200
fix integer comparision FTBFS with patch
---
debian/changelog | 2 +
debian/patches/0010-fix-integer-signs.patch | 75 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 78 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 9f82a53..45a6598 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ mongodb (1:2.4.6-1) UNRELEASED; urgency=low
* Update Standards-Version to 3.9.4 .
* Fix typedefs FTBFS with 0009-ignore-unused-local-typedefs.patch
(closes: #701324), thanks to James Page <james.page at ubuntu.com>
+ * Fix integer comparision FTBFS with 0010-fix-integer-signs.patch
+ (closes: #724100).
-- Laszlo Boszormenyi (GCS) <gcs at debian.org> Tue, 24 Sep 2013 12:31:11 +0000
diff --git a/debian/patches/0010-fix-integer-signs.patch b/debian/patches/0010-fix-integer-signs.patch
new file mode 100644
index 0000000..30137de
--- /dev/null
+++ b/debian/patches/0010-fix-integer-signs.patch
@@ -0,0 +1,75 @@
+Description: make ints unsigned to match boost library
+ argc should be unsigned everywhere, negative values have no sense
+Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
+Bug-Debian: http://bugs.debian.org/724100
+Last-Update: 2013-10-13
+
+---
+
+--- mongodb-2.4.6.orig/src/mongo/db/auth/privilege_set.cpp
++++ mongodb-2.4.6/src/mongo/db/auth/privilege_set.cpp
+@@ -79,7 +79,7 @@ namespace mongo {
+ resourceSearchList[1] = nsToDatabaseSubstring(desiredPrivilege.getResource());
+
+ ActionSet unmetRequirements = desiredPrivilege.getActions();
+- for (int i = 0; i < boost::size(resourceSearchList); ++i) {
++ for (unsigned int i = 0; i < boost::size(resourceSearchList); ++i) {
+ ResourcePrivilegeCacheEntry* entry = _lookupEntry(resourceSearchList[i]);
+ if (NULL == entry)
+ continue;
+--- mongodb-2.4.6.orig/src/mongo/db/cmdline_test.cpp
++++ mongodb-2.4.6/src/mongo/db/cmdline_test.cpp
+@@ -71,7 +71,7 @@ namespace {
+ "KEEP",
+ "--servicePasswordFake=KEEP"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+ testCensoringArgv(argv, argv, argc);
+ }
+
+@@ -88,7 +88,7 @@ namespace {
+ "--servicePassword",
+ "get out of dodge"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+
+ const char* const expected[] = {
+ "first",
+@@ -120,7 +120,7 @@ namespace {
+ "-servicePassword",
+ "get out of dodge"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+
+ const char* const expected[] = {
+ "first",
+@@ -152,7 +152,7 @@ namespace {
+ "KEEP",
+ "--servicePasswordFake=KEEP"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+ testCensoringVector(argv, argv, argc);
+ }
+
+@@ -169,7 +169,7 @@ namespace {
+ "--servicePassword",
+ "get out of dodge"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+
+ const char* const expected[] = {
+ "first",
+@@ -201,7 +201,7 @@ namespace {
+ "-servicePassword",
+ "get out of dodge"
+ };
+- const int argc = boost::size(argv);
++ const unsigned int argc = boost::size(argv);
+
+ const char* const expected[] = {
+ "first",
diff --git a/debian/patches/series b/debian/patches/series
index 5ae55bf..824d8f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0007-Use-TIME_UTC_-macro.patch
0008-Use-system-libstemmer.patch
0009-ignore-unused-local-typedefs.patch
+0010-fix-integer-signs.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