All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
@ 2018-09-12  8:34 Florian La Roche
  2018-09-12  8:52 ` Thomas Petazzoni
  2018-09-16 19:57 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Florian La Roche @ 2018-09-12  8:34 UTC (permalink / raw)
  To: buildroot

glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
and therefore <sys/sysmacros.h> must be included explicitly when
major()/minor() are used.

Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
---
 package/mongodb/mongodb.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 package/mongodb/mongodb.patch

diff --git a/package/mongodb/mongodb.patch b/package/mongodb/mongodb.patch
new file mode 100644
index 0000000000..d429b4e891
--- /dev/null
+++ b/package/mongodb/mongodb.patch
@@ -0,0 +1,10 @@
+--- ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
++++ ./src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
+@@ -32,6 +32,7 @@
+ 
+ #include "mongo/db/storage/mmap_v1/mmap_v1_engine.h"
+ 
++#include <sys/sysmacros.h>
+ #include <boost/filesystem/path.hpp>
+ #include <boost/filesystem/operations.hpp>
+ #include <fstream>
-- 
2.17.1

Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12  8:34 [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28 Florian La Roche
@ 2018-09-12  8:52 ` Thomas Petazzoni
  2018-09-12  9:49   ` [Buildroot] Antwort: " Florian La Roche
  2018-09-12 12:40   ` Florian La Roche
  2018-09-16 19:57 ` Thomas Petazzoni
  1 sibling, 2 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-09-12  8:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 12 Sep 2018 10:34:47 +0200, Florian La Roche wrote:
> glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
> and therefore <sys/sysmacros.h> must be included explicitly when
> major()/minor() are used.
> 
> Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>

Thanks a lot for this patch.

> ---
>  package/mongodb/mongodb.patch | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  create mode 100644 package/mongodb/mongodb.patch
> 
> diff --git a/package/mongodb/mongodb.patch b/package/mongodb/mongodb.patch
> new file mode 100644
> index 0000000000..d429b4e891
> --- /dev/null
> +++ b/package/mongodb/mongodb.patch

Since mongodb upstream is maintained in Git, we like to have a Git
formatted patch. So could you instead clone
https://github.com/mongodb/mongo.git, checkout the 3.3.4 tag, make the
fix, do a commit, and then "git format-patch HEAD^", and use the
generated 0001 file ?

BTW, I see that in the latest version of mongodb, this file no longer
exists. Our package of mongodb is quite old, so if you have some
specific interest in mongodb, it might be useful to update it. Or maybe
Sergio can comment on this.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Antwort: Re: [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12  8:52 ` Thomas Petazzoni
@ 2018-09-12  9:49   ` Florian La Roche
  2018-09-12 12:40   ` Florian La Roche
  1 sibling, 0 replies; 7+ messages in thread
From: Florian La Roche @ 2018-09-12  9:49 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

I'll create a new patch from mongodb github and submit that as followup 
here within the next 2 days.

The mongodb version is indeed quite old. I've tried to update it, but did 
not succeed. Sergio,
do you have plans or have started such an update?

best regards,

Florian La Roche



Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180912/4f4b168b/attachment.html>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] Antwort: Re: [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12  8:52 ` Thomas Petazzoni
  2018-09-12  9:49   ` [Buildroot] Antwort: " Florian La Roche
@ 2018-09-12 12:40   ` Florian La Roche
  2018-09-12 18:06     ` [Buildroot] " Sergio Prado
  1 sibling, 1 reply; 7+ messages in thread
From: Florian La Roche @ 2018-09-12 12:40 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

Thomas Petazzoni <thomas.petazzoni@bootlin.com> schrieb am 12.09.2018 
10:52:28:
> Since mongodb upstream is maintained in Git, we like to have a Git
> formatted patch. So could you instead clone
> https://github.com/mongodb/mongo.git, checkout the 3.3.4 tag, make the
> fix, do a commit, and then "git format-patch HEAD^", and use the
> generated 0001 file ?

The github repo only contains v3.4 and newer, but buildroot is currently 
using 3.3.4.

Can you commit my original patch or any other idea on how to submit this 
change?

best regards,

Florian La Roche



Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180912/bb3c1f35/attachment.html>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12 12:40   ` Florian La Roche
@ 2018-09-12 18:06     ` Sergio Prado
  2018-09-12 18:53       ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Sergio Prado @ 2018-09-12 18:06 UTC (permalink / raw)
  To: buildroot

Hello Thomas and Florian,

I'll work on the mongodb update in the next days.

One thing I notice is that since version 3.4 mongodb no longer supports
32-bit x86 platforms [1].

What should we do in that case? Just update to the newest version and stop
supporting 32 bits systems, or create a new recipe and maintain both
versions?

[1] https://docs.mongodb.com/manual/installation/#supported-platforms

Best regards,

Sergio Prado
Embedded Labworks
Office: +55 11 2628-3461
Mobile: +55 11 97123-3420


Em qua, 12 de set de 2018 ?s 09:40, Florian La Roche <F.LaRoche@pilz.de>
escreveu:

> Hello Thomas,
>
> Thomas Petazzoni <thomas.petazzoni@bootlin.com> schrieb am 12.09.2018
> 10:52:28:
> > Since mongodb upstream is maintained in Git, we like to have a Git
> > formatted patch. So could you instead clone
> > https://github.com/mongodb/mongo.git, checkout the 3.3.4 tag, make the
> > fix, do a commit, and then "git format-patch HEAD^", and use the
> > generated 0001 file ?
>
> The github repo only contains v3.4 and newer, but buildroot is currently
> using 3.3.4.
>
> Can you commit my original patch or any other idea on how to submit this
> change?
>
> best regards,
>
> Florian La Roche
>
>
>
> Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
> Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
> Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht
> Stuttgart
> Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
> This email is intended solely for the use of the named address(es). Any
> unauthorised disclosure, copying or distribution of these confidential
> information contained therein, or the taking of any action based on it, is
> prohibited. The sender disclaims any liability for the integrity of this
> email. Legally binding declarations must be in written form.
> Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt,
> bevor Sie diese E-Mail drucken.
> We do care about the environment! - Please consider the environment before
> printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180912/de2d723e/attachment.html>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12 18:06     ` [Buildroot] " Sergio Prado
@ 2018-09-12 18:53       ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-09-12 18:53 UTC (permalink / raw)
  To: buildroot

Hello Sergio,

On Wed, 12 Sep 2018 15:06:18 -0300, Sergio Prado wrote:

> I'll work on the mongodb update in the next days.
> 
> One thing I notice is that since version 3.4 mongodb no longer supports
> 32-bit x86 platforms [1].
> 
> What should we do in that case? Just update to the newest version and stop
> supporting 32 bits systems, or create a new recipe and maintain both
> versions?

I'd say, just update to the newest version and stop supporting 32-bit
platforms. That's upstream choice, if people are unhappy with it, they
should bring this up to upstream or fork the project.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28
  2018-09-12  8:34 [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28 Florian La Roche
  2018-09-12  8:52 ` Thomas Petazzoni
@ 2018-09-16 19:57 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-09-16 19:57 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 12 Sep 2018 10:34:47 +0200, Florian La Roche wrote:
> glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
> and therefore <sys/sysmacros.h> must be included explicitly when
> major()/minor() are used.
> 
> Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
> ---
>  package/mongodb/mongodb.patch | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>  create mode 100644 package/mongodb/mongodb.patch

Applied to master, after adding a proper description in the patch.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-09-16 19:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12  8:34 [Buildroot] [PATCH 1/1] package/mongodb: add patch to compile with glibc >= 2.28 Florian La Roche
2018-09-12  8:52 ` Thomas Petazzoni
2018-09-12  9:49   ` [Buildroot] Antwort: " Florian La Roche
2018-09-12 12:40   ` Florian La Roche
2018-09-12 18:06     ` [Buildroot] " Sergio Prado
2018-09-12 18:53       ` Thomas Petazzoni
2018-09-16 19:57 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.