From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/, dev-db/mongodb/files/
Date: Tue, 5 Sep 2017 08:17:24 +0000 (UTC) [thread overview]
Message-ID: <1504599317.faee40dcab8c8344b772f0d414aa95b2579494d5.soap@gentoo> (raw)
commit: faee40dcab8c8344b772f0d414aa95b2579494d5
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 5 08:15:17 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Sep 5 08:15:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faee40dc
dev-db/mongodb: Add missing sys/sysmacros.h include
Closes: https://bugs.gentoo.org/show_bug.cgi?id=629906
Package-Manager: Portage-2.3.8, Repoman-2.3.3
.../files/mongodb-3.4.6-sysmacros-include.patch | 38 ++++++++++++++++++++++
dev-db/mongodb/mongodb-3.4.6.ebuild | 13 ++++----
2 files changed, 45 insertions(+), 6 deletions(-)
diff --git a/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch b/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch
new file mode 100644
index 00000000000..868ba73e442
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch
@@ -0,0 +1,38 @@
+From e245cac2b3c18015dee8caddd449532785d15c2b Mon Sep 17 00:00:00 2001
+From: Jason Carey <jcarey@argv.me>
+Date: Mon, 26 Jun 2017 11:09:10 -0400
+Subject: [PATCH] SERVER-29855 Pull major/minor from sys/sysmacros.h
+
+Per newer versions of glibc:
+
+----
+error: In the GNU C Library, "major" is defined
+ by <sys/sysmacros.h>. For historical compatibility, it is
+ currently defined by <sys/types.h> as well, but we plan to
+ remove this soon. To use "major", include <sys/sysmacros.h>
+ directly. If you did not intend to use a system-defined macro
+ "major", you should undefine it after including <sys/types.h>. [-Werror]
+ string path = str::stream() << "/sys/dev/block/" << major(dev) << ':' << minor(dev)
+----
+
+Including <sys/sysmacros.h> appears to be the correct solution to quiet
+the warning
+---
+ src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
+index 5a784b25dc7..c43e148d3f4 100644
+--- a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
++++ b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
+@@ -36,6 +36,10 @@
+ #include <boost/filesystem/path.hpp>
+ #include <fstream>
+
++#ifdef __linux__
++#include <sys/sysmacros.h>
++#endif
++
+ #include "mongo/db/mongod_options.h"
+ #include "mongo/db/storage/mmap_v1/data_file_sync.h"
+ #include "mongo/db/storage/mmap_v1/dur.h"
diff --git a/dev-db/mongodb/mongodb-3.4.6.ebuild b/dev-db/mongodb/mongodb-3.4.6.ebuild
index 18751f0bf10..5900f1f4fac 100644
--- a/dev-db/mongodb/mongodb-3.4.6.ebuild
+++ b/dev-db/mongodb/mongodb-3.4.6.ebuild
@@ -100,12 +100,13 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}/${PN}-3.4.0-fix-scons.patch"
- epatch "${FILESDIR}/${P}-no-boost-check.patch"
- epatch "${FILESDIR}/${PN}-3.4.4-Replace-string-with-explicit-std-string.patch"
- if has_version ">=dev-libs/boost-1.62"; then
- epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch"
- fi
+ epatch \
+ "${FILESDIR}/${PN}-3.4.0-fix-scons.patch" \
+ "${FILESDIR}/${P}-no-boost-check.patch" \
+ "${FILESDIR}/${PN}-3.4.4-Replace-string-with-explicit-std-string.patch" \
+ "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" \
+ "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch"
+
epatch_user
}
next reply other threads:[~2017-09-05 8:17 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 8:17 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 4:57 [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/, dev-db/mongodb/files/ Sam James
2024-07-15 4:22 Sam James
2024-05-30 6:46 Alexys Jacob
2024-05-28 1:45 Sam James
2023-05-23 13:32 Sam James
2023-05-16 7:53 Alexys Jacob
2022-12-30 20:22 Sam James
2022-06-18 17:17 Sam James
2022-05-14 21:50 Sam James
2022-05-14 21:27 Sam James
2021-08-19 16:38 Alexys Jacob
2019-09-21 21:22 David Seifert
2019-08-21 7:21 Alexys Jacob
2019-08-09 7:28 Alexys Jacob
2018-11-05 12:33 Alexys Jacob
2018-06-28 12:45 Alexys Jacob
2018-01-11 11:34 Alexys Jacob
2017-09-22 9:28 Patrice Clement
2017-09-21 19:50 Patrice Clement
2017-07-26 22:17 Zac Medico
2017-01-11 7:43 Alexys Jacob
2016-01-03 12:27 Alexys Jacob
2016-01-01 10:36 Michał Górny
2015-12-27 16:59 Alexys Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1504599317.faee40dcab8c8344b772f0d414aa95b2579494d5.soap@gentoo \
--to=soap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox