package/python-psutil: add host variant
PATCH 1/8 package/python-psutil: add host variant
From: Fabrice Fontaine <[email protected]>
host-python-psutil for host-python3 is needed for mongodb >= 4.1.8
--- package/python-psutil/python-psutil.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/python-psutil/python-psutil.mk +4 -0
@@ -11,4 +11,8 @@ PYTHON_PSUTIL_SETUP_TYPE = setuptools PYTHON_PSUTIL_LICENSE = BSD-3-Clause PYTHON_PSUTIL_LICENSE_FILES = LICENSE +# Needed to build mongodb +HOST_PYTHON_PSUTIL_NEEDS_HOST_PYTHON = python3 + $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 2/8 package/python-regex: new package
From: Yegor Yefremov <[email protected]>
--- package/Config.in | 1 + package/python-regex/Config.in | 6 ++++++ package/python-regex/python-regex.hash | 3 +++ package/python-regex/python-regex.mk | 14 ++++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 package/python-regex/Config.in create mode 100644 package/python-regex/python-regex.hash create mode 100644 package/python-regex/python-regex.mk
package/Config.in +1 -0
@@ -1111,6 +1111,7 @@ menu "External python modules" source "package/python-raven/Config.in" source "package/python-redis/Config.in" source "package/python-reentry/Config.in" + source "package/python-regex/Config.in" source "package/python-remi/Config.in" source "package/python-request-id/Config.in" source "package/python-requests/Config.in"
package/python-regex/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_REGEX + bool "python-regex" + help + Alternative regular expression module, to replace re. + + https://bitbucket.org/mrabarnett/mrab-regex
package/python-regex/python-regex.hash new file +3 -0
@@ -0,0 +1,3 @@ +# md5, sha256 from https://pypi.org/pypi/regex/json +md5 ac88a9c036e626ae4d436e69f35f50cf regex-2020.2.20.tar.gz +sha256 9e9624440d754733eddbcd4614378c18713d2d9d0dc647cf9c72f64e39671be5 regex-2020.2.20.tar.gz
package/python-regex/python-regex.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# python-regex +# +################################################################################ + +PYTHON_REGEX_VERSION = 2020.2.20 +PYTHON_REGEX_SOURCE = regex-$(PYTHON_REGEX_VERSION).tar.gz +PYTHON_REGEX_SITE = https://files.pythonhosted.org/packages/e8/76/8ac7f467617b9cfbafcef3c76df6f22b15de654a62bea719792b00a83195 +PYTHON_REGEX_SETUP_TYPE = setuptools +PYTHON_REGEX_LICENSE = CNRI-Python + +$(eval $(python-package)) +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 2/8 package/python-regex: new package
Quoted 3 lines · On Mon, 23 Mar 2020 11:49:03 +0100 yegorslists at googlemail.com wrote:
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
I have applied to master, but after dropping the host variant of this package, which would not be used at the end of this series.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 3/8 package/python3-regex: add special package variant for the host build
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
Needed to build mongodb.
--- package/python3-regex/python3-regex.hash | 1 + package/python3-regex/python3-regex.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 120000 package/python3-regex/python3-regex.hash create mode 100644 package/python3-regex/python3-regex.mk
package/python3-regex/python3-regex.hash new file +1 -0
@@ -0,0 +1 @@ +../python-regex/python-regex.hash
package/python3-regex/python3-regex.mk new file +17 -0
@@ -0,0 +1,17 @@ +################################################################################ +# +# python3-regex +# +################################################################################ + +# Please keep in sync with +# package/python-regex/python-regex.mk +PYTHON3_REGEX_VERSION = 2020.2.20 +PYTHON3_REGEX_SOURCE = regex-$(PYTHON3_REGEX_VERSION).tar.gz +PYTHON3_REGEX_SITE = https://files.pythonhosted.org/packages/e8/76/8ac7f467617b9cfbafcef3c76df6f22b15de654a62bea719792b00a83195 +PYTHON3_REGEX_SETUP_TYPE = setuptools +PYTHON3_REGEX_LICENSE = CNRI-Python +HOST_PYTHON3_REGEX_DL_SUBDIR = python-regex +HOST_PYTHON3_REGEX_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 3/8 package/python3-regex: add special package variant for the host build
Hi Yegor,
Le 23/03/2020 ? 11:49, yegorslists at googlemail.com a ?crit?:
Quoted 31 lines
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python3-regex/python3-regex.hash | 1 + package/python3-regex/python3-regex.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 120000 package/python3-regex/python3-regex.hash create mode 100644 package/python3-regex/python3-regex.mkpackage/python3-regex/python3-regex.hash new file +1
-0@@ -0,0 +1 @@ +../python-regex/python-regex.hashpackage/python3-regex/python3-regex.mk new file +5
-0@@ -0,0 +1,17 @@ +################################################################################ +# +# python3-regex +# +################################################################################
package/python3-regex/python3-regex.mk line 15
Quoted 10 lines
package/python3-regex/python3-regex.mk new file +10
-0+ +# Please keep in sync with +# package/python-regex/python-regex.mk +PYTHON3_REGEX_VERSION = 2020.2.20 +PYTHON3_REGEX_SOURCE = regex-$(PYTHON3_REGEX_VERSION).tar.gz +PYTHON3_REGEX_SITE = https://files.pythonhosted.org/packages/e8/76/8ac7f467617b9cfbafcef3c76df6f22b15de654a62bea719792b00a83195 +PYTHON3_REGEX_SETUP_TYPE = setuptools +PYTHON3_REGEX_LICENSE = CNRI-Python +HOST_PYTHON3_REGEX_DL_SUBDIR = python-regex +HOST_PYTHON3_REGEX_NEEDS_HOST_PYTHON = python3
I don't think we should continue to add more python3 packages to provide host python3 modules. Titouan what is the status of python2 removal ?
Best regards,
Romain
Quoted 3 lines
package/python3-regex/python3-regex.mk new file +2
-0+ +$(eval $(host-python-package))
PATCH 3/8 package/python3-regex: add special package variant for the host build
In reply to yegorslists at googlemail.comQuoted 11 lines · On Mon, 23 Mar 2020 11:49:04 +0100 yegorslists at googlemail.com wrote:
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python3-regex/python3-regex.hash | 1 + package/python3-regex/python3-regex.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 120000 package/python3-regex/python3-regex.hash create mode 100644 package/python3-regex/python3-regex.mk
Like Romain, I don't really like that we're adding more and more duplicated packages for host-python3, but we don't really have a good solution today. And since the mid-term plan is to get rid of Python 2.x, I don't think it's very useful to implement an alternate solution now.
package/python3-regex/python3-regex.mk line 8
Quoted 2 lines
package/python3-regex/python3-regex.mk new file +2
-0+# Please keep in sync with +# package/python-regex/python-regex.mk
I've put this comment on one line, and also added the comment in package/python-regex/python-regex.mk.
Applied with this change. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 4/8 package/python3-cheetah: add special host variant
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
Needed to build mongodb.
--- package/python3-cheetah/python-cheetah.mk | 18 ++++++++++++++++++ package/python3-cheetah/python3-cheetah.hash | 1 + 2 files changed, 19 insertions(+) create mode 100644 package/python3-cheetah/python-cheetah.mk create mode 120000 package/python3-cheetah/python3-cheetah.hash
package/python3-cheetah/python-cheetah.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# python3-cheetah +# +################################################################################ + +# Please keep in sync with +# package/python-cheetah/python-cheetah.mk +PYTHON3_CHEETAH_VERSION = 3.2.4 +PYTHON3_CHEETAH_SOURCE = Cheetah3-$(PYTHON3_CHEETAH_VERSION).tar.gz +PYTHON3_CHEETAH_SITE = https://files.pythonhosted.org/packages/4e/72/e6a7d92279e3551db1b68fd336fd7a6e3d2f2ec742bf486486e6150d77d2 +PYTHON3_CHEETAH_LICENSE = MIT +PYTHON3_CHEETAH_LICENSE_FILES = LICENSE +PYTHON3_CHEETAH_SETUP_TYPE = setuptools +HOST_PYTHON3_CHEETAH_DL_SUBDIR = python-cheetah +HOST_PYTHON3_CHEETAH_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))
package/python3-cheetah/python3-cheetah.hash new file +1 -0
@@ -0,0 +1 @@ +../python-cheetah/python-cheetah.hash
Signature · 1 line
2.17.0
PATCH 4/8 package/python3-cheetah: add special host variant
Quoted 7 lines · On Mon, 23 Mar 2020 11:49:05 +0100 yegorslists at googlemail.com wrote:
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python3-cheetah/python-cheetah.mk | 18 ++++++++++++++++++
The name of the .mk file was wrong, it should have been python3-cheetah.mk.
With your version of the patch, check-package was complaining quite loudly:
package/python3-cheetah/python-cheetah.mk:9: possible typo: PYTHON3_CHEETAH_VERSION -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:10: possible typo: PYTHON3_CHEETAH_SOURCE -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:11: possible typo: PYTHON3_CHEETAH_SITE -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:12: possible typo: PYTHON3_CHEETAH_LICENSE -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:13: possible typo: PYTHON3_CHEETAH_LICENSE_FILES -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:14: possible typo: PYTHON3_CHEETAH_SETUP_TYPE -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:15: possible typo: HOST_PYTHON3_CHEETAH_DL_SUBDIR -> *PYTHON_CHEETAH* package/python3-cheetah/python-cheetah.mk:16: possible typo: HOST_PYTHON3_CHEETAH_NEEDS_HOST_PYTHON -> *PYTHON_CHEETAH
package/python3-cheetah/python-cheetah.mk line 8
Quoted 2 lines
package/python3-cheetah/python-cheetah.mk new file +2
-0+# Please keep in sync with +# package/python-cheetah/python-cheetah.mk
This comment fits on one line. And I've added the corresponding comment in package/python-cheetah/python-cheetah.mk.
Applied with these changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 5/8 package/python3-requests: add special host variant
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Also convert python-requests to host package.
--- package/python-requests/python-requests.mk | 1 + package/python3-requests/python3-requests.hash | 1 + package/python3-requests/python3-requests.mk | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 120000 package/python3-requests/python3-requests.hash create mode 100644 package/python3-requests/python3-requests.mk
package/python-requests/python-requests.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_REQUESTS_LICENSE = Apache-2.0 PYTHON_REQUESTS_LICENSE_FILES = LICENSE $(eval $(python-package)) +$(eval $(host-python-package))
package/python3-requests/python3-requests.hash new file +1 -0
@@ -0,0 +1 @@ +../python-requests/python-requests.hash
package/python3-requests/python3-requests.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# python3-requests +# +################################################################################ + +# Please keep in sync with +# package/python-requests/python-requests.mk +PYTHON3_REQUESTS_VERSION = 2.22.0 +PYTHON3_REQUESTS_SOURCE = requests-$(PYTHON3_REQUESTS_VERSION).tar.gz +PYTHON3_REQUESTS_SITE = https://files.pythonhosted.org/packages/01/62/ddcf76d1d19885e8579acb1b1df26a852b03472c0e46d2b959a714c90608 +PYTHON3_REQUESTS_SETUP_TYPE = setuptools +PYTHON3_REQUESTS_LICENSE = Apache-2.0 +PYTHON3_REQUESTS_LICENSE_FILES = LICENSE +HOST_PYTHON3_REQUESTS_DL_SUBDIR = python-requests +HOST_PYTHON3_REQUESTS_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 5/8 package/python3-requests: add special host variant
Quoted 20 lines · On Mon, 23 Mar 2020 11:49:06 +0100 yegorslists at googlemail.com wrote:
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Also convert python-requests to host package.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python-requests/python-requests.mk | 1 + package/python3-requests/python3-requests.hash | 1 + package/python3-requests/python3-requests.mk | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 120000 package/python3-requests/python3-requests.hash create mode 100644 package/python3-requests/python3-requests.mkpackage/python-requests/python-requests.mk +0
-0
package/python-requests/python-requests.mk PYTHON_REQUESTS_LICENSE = Apache-2.0 · line 15
Quoted 4 lines
package/python-requests/python-requests.mk +1
-0@@ -12,3 +12,4 @@ PYTHON_REQUESTS_LICENSE = Apache-2.0 PYTHON_REQUESTS_LICENSE_FILES = LICENSE $(eval $(python-package)) +$(eval $(host-python-package))
There was no need to add a host variant to python-requests, only host-python3-requests is needed. However, I've added a comment in this file to indicate that the version needs to stay in sync with the one in python3-requests.
package/python-requests/python-requests.mk
Quoted 5 lines
package/python-requests/python-requests.mk +5
-0+# Please keep in sync with +# package/python-requests/python-requests.mk +PYTHON3_REQUESTS_VERSION = 2.22.0 +PYTHON3_REQUESTS_SOURCE = requests-$(PYTHON3_REQUESTS_VERSION).tar.gz +PYTHON3_REQUESTS_SITE = https://files.pythonhosted.org/packages/01/62/ddcf76d1d19885e8579acb1b1df26a852b03472c0e46d2b959a714c90608
I've updated to be in sync with python-requests, which is at 2.23.0.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 6/8 package/python3-pyyaml: add special host variant
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
Needed to build mongodb.
--- package/python3-pyyaml/python3-pyyaml.hash | 1 + package/python3-pyyaml/python3-pyyaml.mk | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 package/python3-pyyaml/python3-pyyaml.hash create mode 100644 package/python3-pyyaml/python3-pyyaml.mk
package/python3-pyyaml/python3-pyyaml.hash new file +1 -0
@@ -0,0 +1 @@ +../python-pyyaml/python-pyyaml.hash
package/python3-pyyaml/python3-pyyaml.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# python3-pyyaml +# +################################################################################ + +# Please keep in sync with +# package/python-pyyaml/python-pyyaml.mk +PYTHON3_PYYAML_VERSION = 5.3 +PYTHON3_PYYAML_SOURCE = PyYAML-$(PYTHON3_PYYAML_VERSION).tar.gz +PYTHON3_PYYAML_SITE = https://files.pythonhosted.org/packages/3d/d9/ea9816aea31beeadccd03f1f8b625ecf8f645bd66744484d162d84803ce5 +PYTHON3_PYYAML_SETUP_TYPE = distutils +PYTHON3_PYYAML_LICENSE = MIT +PYTHON3_PYYAML_LICENSE_FILES = LICENSE +PYTHON3_PYYAML_DEPENDENCIES = libyaml +HOST_PYTHON3_PYYAML_DL_SUBDIR = python-pyyaml +HOST_PYTHON3_PYYAML_NEEDS_HOST_PYTHON = python3 +HOST_PYTHON3_PYYAML_DEPENDENCIES = host-libyaml + +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 6/8 package/python3-pyyaml: add special host variant
Yegor,
I've been working on testing that your patch series builds/works to fix the issue with MongoDB not compiling with Buildroot 2020.02. Please see my feedback in regards to your current patch set below:
Quoted 27 lines · On Mon, Mar 23, 2020 at 5:50 AM <[email protected]> wrote:
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python3-pyyaml/python3-pyyaml.hash | 1 + package/python3-pyyaml/python3-pyyaml.mk | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 package/python3-pyyaml/python3-pyyaml.hash create mode 100644 package/python3-pyyaml/python3-pyyaml.mkpackage/python3-pyyaml/python3-pyyaml.hash new file +1
-0@@ -0,0 +1 @@ +../python-pyyaml/python-pyyaml.hashpackage/python3-pyyaml/python3-pyyaml.mk new file +0
-0
package/python3-pyyaml/python3-pyyaml.mk line 9
Quoted 9 lines
package/python3-pyyaml/python3-pyyaml.mk new file +9
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# python3-pyyaml +# +################################################################################ + +# Please keep in sync with +# package/python-pyyaml/python-pyyaml.mk +PYTHON3_PYYAML_VERSION = 5.3
This currently does not work as python-pyyaml has been bumped to version 5.3.1.
https://patchwork.ozlabs.org/project/buildroot/patch/20200326100404.82191-1-james.hilliard1 at gmail.com/
Changing version to 5.3.1 fixes this.
Thanks,
-Ryan
---
Ryan Barnett | Sr Systems Engineer | Commercial Avionics COLLINS AEROSPACE
400 Collins Rd NE, Cedar Rapids, IA 52498 USA ryan.barnett at collins.com | collinsaerospace.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of Collins Aerospace and its affiliated companies. If you are not the intended recipient, please 1) Do not disclose, copy, distribute or use this message or its contents. 2) Advise the sender by return email. 3) Delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.
PATCH 6/8 package/python3-pyyaml: add special host variant
Hi Ryan,
Quoted 47 lines · Ryan Barnett
Yegor,
I've been working on testing that your patch series builds/works to fix the issue with MongoDB not compiling with Buildroot 2020.02. Please see my feedback in regards to your current patch set below:
Quoted 27 lines · On Mon, Mar 23, 2020 at 5:50 AM <[email protected]> wrote:
From: Yegor Yefremov <[email protected]>
Needed to build mongodb.
Signed-off-by Yegor Yefremov <[email protected]>--- package/python3-pyyaml/python3-pyyaml.hash | 1 + package/python3-pyyaml/python3-pyyaml.mk | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 120000 package/python3-pyyaml/python3-pyyaml.hash create mode 100644 package/python3-pyyaml/python3-pyyaml.mkpackage/python3-pyyaml/python3-pyyaml.hash new file +1
-0@@ -0,0 +1 @@ +../python-pyyaml/python-pyyaml.hashpackage/python3-pyyaml/python3-pyyaml.mk new file +0
-0package/python3-pyyaml/python3-pyyaml.mk line 9
Quoted 9 lines
package/python3-pyyaml/python3-pyyaml.mk new file +9
-0@@ -0,0 +1,20 @@ +################################################################################ +# +# python3-pyyaml +# +################################################################################ + +# Please keep in sync with +# package/python-pyyaml/python-pyyaml.mk +PYTHON3_PYYAML_VERSION = 5.3This currently does not work as python-pyyaml has been bumped to version 5.3.1.
Quoted 3 lines
https://patchwork.ozlabs.org/project/buildroot/patch/20200326100404.82191-1-james.hilliard1 at gmail.com/
Changing version to 5.3.1 fixes this.
Thanks for your feedback and testing. The problem is, there is still no agreement on how to proceed. One way is to create python3-* packages and the other is to remove Python2 support (see comments to my patch [1]).
[1] https://patchwork.ozlabs.org/project/buildroot/patch/20200323104909.16765-3-yegorslists at googlemail.com/
Regards,
Yegor
PATCH 6/8 package/python3-pyyaml: add special host variant
In reply to yegorslists at googlemail.comQuoted 2 lines · On Mon, 23 Mar 2020 11:49:07 +0100 yegorslists at googlemail.com wrote:
package/python3-pyyaml/python3-pyyaml.hash | 1 + package/python3-pyyaml/python3-pyyaml.mk | 20 ++++++++++++++++++++
I've modified python-pyyaml.mk to indicate that its version should stay in sync with python3-pyyaml.
package/python3-pyyaml/python3-pyyaml.mk line 11
Quoted 5 lines
package/python3-pyyaml/python3-pyyaml.mk new file +5
-0+# Please keep in sync with +# package/python-pyyaml/python-pyyaml.mk +PYTHON3_PYYAML_VERSION = 5.3 +PYTHON3_PYYAML_SOURCE = PyYAML-$(PYTHON3_PYYAML_VERSION).tar.gz +PYTHON3_PYYAML_SITE = https://files.pythonhosted.org/packages/3d/d9/ea9816aea31beeadccd03f1f8b625ecf8f645bd66744484d162d84803ce5
Updated to use the same version as python-pyyaml, i.e version 5.3.1.
package/python3-pyyaml/python3-pyyaml.mk line 15
Quoted 4 lines
package/python3-pyyaml/python3-pyyaml.mk new file +4
-0+PYTHON3_PYYAML_SETUP_TYPE = distutils +PYTHON3_PYYAML_LICENSE = MIT +PYTHON3_PYYAML_LICENSE_FILES = LICENSE +PYTHON3_PYYAML_DEPENDENCIES = libyaml
This line was not needed, since there is no target version of python3-pyyaml, so I dropped this line.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 7/8 package/python3-psutil: add a special host variant
In reply to yegorslists at googlemail.comFrom: Yegor Yefremov <[email protected]>
Needed to build mongodb.
With this host variant there is no need to enforce host python in the original package.
--- package/python-psutil/python-psutil.mk | 3 --- package/python3-psutil/python3-psutil.hash | 1 + package/python3-psutil/python3-psutil.mk | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 120000 package/python3-psutil/python3-psutil.hash create mode 100644 package/python3-psutil/python3-psutil.mk
package/python-psutil/python-psutil.mk +0 -3
@@ -11,8 +11,5 @@ PYTHON_PSUTIL_SETUP_TYPE = setuptools PYTHON_PSUTIL_LICENSE = BSD-3-Clause PYTHON_PSUTIL_LICENSE_FILES = LICENSE -# Needed to build mongodb -HOST_PYTHON_PSUTIL_NEEDS_HOST_PYTHON = python3 - $(eval $(python-package)) $(eval $(host-python-package))
package/python3-psutil/python3-psutil.hash new file +1 -0
@@ -0,0 +1 @@ +../python-psutil/python-psutil.hash
package/python3-psutil/python3-psutil.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# python3-psutil +# +################################################################################ + +# Please keep in sync with +# package/python-mako/python-psutil.mk +PYTHON3_PSUTIL_VERSION = 5.6.7 +PYTHON3_PSUTIL_SOURCE = psutil-$(PYTHON3_PSUTIL_VERSION).tar.gz +PYTHON3_PSUTIL_SITE = https://files.pythonhosted.org/packages/73/93/4f8213fbe66fc20cb904f35e6e04e20b47b85bee39845cc66a0bcf5ccdcb +PYTHON3_PSUTIL_SETUP_TYPE = setuptools +PYTHON3_PSUTIL_LICENSE = BSD-3-Clause +PYTHON3_PSUTIL_LICENSE_FILES = LICENSE +HOST_PYTHON3_PSUTIL_DL_SUBDIR = python-psutil +HOST_PYTHON3_PSUTIL_NEEDS_HOST_PYTHON = python3 + +$(eval $(host-python-package))
Signature · 1 line
2.17.0
PATCH 7/8 package/python3-psutil: add a special host variant
package/python-psutil/python-psutil.mk PYTHON_PSUTIL_SETUP_TYPE = setuptools · line 15
Quoted 10 lines · On Mon, 23 Mar 2020 11:49:08 +0100 yegorslists at googlemail.com wrote:
package/python-psutil/python-psutil.mk +0
-2@@ -11,8 +11,5 @@ PYTHON_PSUTIL_SETUP_TYPE = setuptools PYTHON_PSUTIL_LICENSE = BSD-3-Clause PYTHON_PSUTIL_LICENSE_FILES = LICENSE -# Needed to build mongodb -HOST_PYTHON_PSUTIL_NEEDS_HOST_PYTHON = python3
I dropped this chunk, since I did not apply PATCH 1/8. I've however added a comment in python-psutil.mk to tell that the version should be kept in sync with python3-psutil.
package/python-psutil/python-psutil.mk PYTHON_PSUTIL_SETUP_TYPE = setuptools · line 15
Quoted 2 lines
package/python-psutil/python-psutil.mk +2
-0+# Please keep in sync with +# package/python-mako/python-psutil.mk
^^^^^ should have been psutil
package/python-psutil/python-psutil.mk PYTHON_PSUTIL_SETUP_TYPE = setuptools
Quoted 3 lines
package/python-psutil/python-psutil.mk +3
-0+PYTHON3_PSUTIL_VERSION = 5.6.7 +PYTHON3_PSUTIL_SOURCE = psutil-$(PYTHON3_PSUTIL_VERSION).tar.gz +PYTHON3_PSUTIL_SITE = https://files.pythonhosted.org/packages/73/93/4f8213fbe66fc20cb904f35e6e04e20b47b85bee39845cc66a0bcf5ccdcb
I've updated the version and site to be in sync with python-psutil.
Applied with those changes. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 8/8 package/mongodb: bump to version 4.2.4
In reply to yegorslists at googlemail.comFrom: Fabrice Fontaine <[email protected]>
- Drop !BR2_PACKAGE_PYTHON3 dependency as SConstruct requires host-python3 since version 4.1.10 and:
https://github.com/mongodb/mongo/commit/8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6
- host-python-psutil is needed since 4.1.8 and
https://github.com/mongodb/mongo/commit/ff03811e31851984617d73739de8acc7640b19a2
- Drop unneeded host-python-typing dependency
- C++17 and so gcc 7 is required since 4.1.8 and
https://github.com/mongodb/mongo/commit/01d84b2565fc9ea9626a55dcf1f3f817968088f2
- Set --disable-minimum-compiler-version-enforcement as mongodb enforces gcc >= 8.2 since verson 4.1.8 and
https://github.com/mongodb/mongo/commit/9ac90b128ebeb1bb431ebe3fe9176cb6142818cb
- Explictly disable ssl if needed as ssl is enabled by default
- Add host-python-cheetah dependency if needed
- Manage new http-client option added in version 4.1.2 and
https://github.com/mongodb/mongo/commit/4d7dcca91bc2bbde65843fe88c41fa040e0d1877
--- package/mongodb/Config.in | 8 +++----- package/mongodb/mongodb.hash | 2 +- package/mongodb/mongodb.mk | 27 ++++++++++++++++++--------- 3 files changed, 22 insertions(+), 15 deletions(-)
package/mongodb/Config.in +3 -5
@@ -8,12 +8,11 @@ config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS config BR2_PACKAGE_MONGODB bool "mongodb" depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS - depends on !BR2_PACKAGE_PYTHON3 depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 select BR2_PACKAGE_BOOST select BR2_PACKAGE_BOOST_FILESYSTEM select BR2_PACKAGE_BOOST_IOSTREAMS
@@ -35,9 +34,8 @@ config BR2_PACKAGE_MONGODB https://www.mongodb.org/ -comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 6" +comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 7" depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_6 + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS - depends on !BR2_PACKAGE_PYTHON3
package/mongodb/mongodb.hash +1 -1
@@ -1,4 +1,4 @@ # Locally computed: -sha256 b39c5b7bb77a547804ab6f43f9b5f09add47574356b31512fd1cc641a08b4ea5 mongodb-r4.0.12.tar.gz +sha256 033839fe43adb13351f9e0ef361d4731d7e917b2d7ad12f09df73e6e9c8bf6db mongodb-r4.2.4.tar.gz sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 APACHE-2.0.txt sha256 09d99ca61eb07873d5334077acba22c33e7f7d0a9fa08c92734e0ac8430d6e27 LICENSE-Community.txt
package/mongodb/mongodb.mk +18 -9
@@ -4,7 +4,7 @@ # ################################################################################ -MONGODB_VERSION_BASE = 4.0.12 +MONGODB_VERSION_BASE = 4.2.4 MONGODB_VERSION = r$(MONGODB_VERSION_BASE) MONGODB_SITE = $(call github,mongodb,mongo,$(MONGODB_VERSION))
@@ -13,9 +13,11 @@ MONGODB_LICENSE_FILES = APACHE-2.0.txt LICENSE-Community.txt MONGODB_DEPENDENCIES = \ boost \ - host-python-cheetah \ - host-python-pyyaml \ - host-python-typing \ + host-python3-cheetah \ + host-python3-psutil \ + host-python3-pyyaml \ + host-python3-regex \ + host-python3-requests \ host-scons \ pcre \ snappy \
@@ -29,6 +31,7 @@ MONGODB_SCONS_ENV = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \ -j"$(PARALLEL_JOBS)" MONGODB_SCONS_OPTS = \ + --disable-minimum-compiler-version-enforcement \ --disable-warnings-as-errors \ --use-system-boost \ --use-system-pcre \
@@ -60,21 +63,27 @@ endif ifeq ($(BR2_PACKAGE_LIBCURL),y) MONGODB_DEPENDENCIES += libcurl -MONGODB_SCONS_OPTS += --enable-free-mon=on +MONGODB_SCONS_OPTS += \ + --enable-free-mon=on \ + --enable-http-client=on else -MONGODB_SCONS_OPTS += --enable-free-mon=off +MONGODB_SCONS_OPTS += \ + --enable-free-mon=off \ + --enable-http-client=off endif ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGODB_DEPENDENCIES += openssl MONGODB_SCONS_OPTS += \ - --ssl \ + --ssl=on \ --ssl-provider=openssl +else +MONGODB_SCONS_OPTS += --ssl=off endif define MONGODB_BUILD_CMDS (cd $(@D); \ - $(HOST_DIR)/bin/python $(SCONS) \ + $(HOST_DIR)/bin/python3 $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ $(MONGODB_SCONS_TARGETS))
@@ -82,7 +91,7 @@ endef define MONGODB_INSTALL_TARGET_CMDS (cd $(@D); \ - $(HOST_DIR)/bin/python $(SCONS) \ + $(HOST_DIR)/bin/python3 $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ --prefix=$(TARGET_DIR)/usr \
Signature · 1 line
2.17.0
PATCH 8/8 package/mongodb: bump to version 4.2.4
Hi,
Le 23/03/2020 ? 11:49, yegorslists at googlemail.com a ?crit?:
Quoted 17 lines
From: Fabrice Fontaine <[email protected]>
- Drop !BR2_PACKAGE_PYTHON3 dependency as SConstruct requires host-python3 since version 4.1.10 and:
https://github.com/mongodb/mongo/commit/8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6
- host-python-psutil is needed since 4.1.8 and
https://github.com/mongodb/mongo/commit/ff03811e31851984617d73739de8acc7640b19a2
- Drop unneeded host-python-typing dependency
- C++17 and so gcc 7 is required since 4.1.8 and
https://github.com/mongodb/mongo/commit/01d84b2565fc9ea9626a55dcf1f3f817968088f2
- Set --disable-minimum-compiler-version-enforcement as mongodb enforces gcc >= 8.2 since verson 4.1.8 and
https://github.com/mongodb/mongo/commit/9ac90b128ebeb1bb431ebe3fe9176cb6142818cb
- Explictly disable ssl if needed as ssl is enabled by default
- Add host-python-cheetah dependency if needed
- Manage new http-client option added in version 4.1.2 and
https://github.com/mongodb/mongo/commit/4d7dcca91bc2bbde65843fe88c41fa040e0d1877
This series superseed the previous one from Titouan:
http://patchwork.ozlabs.org/project/buildroot/list/?series=138894
Best regards,
Romain
Quoted 129 lines
Signed-off-by Fabrice Fontaine <[email protected]>[Titouan: Fix patch conflicts with master]Signed-off-by Titouan Christophe <[email protected]>Signed-off-by Yegor Yefremov <[email protected]>--- package/mongodb/Config.in | 8 +++----- package/mongodb/mongodb.hash | 2 +- package/mongodb/mongodb.mk | 27 ++++++++++++++++++--------- 3 files changed, 22 insertions(+), 15 deletions(-)package/mongodb/Config.in +3
-5@@ -8,12 +8,11 @@ config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS config BR2_PACKAGE_MONGODB bool "mongodb" depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS - depends on !BR2_PACKAGE_PYTHON3 depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_6 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 select BR2_PACKAGE_BOOST select BR2_PACKAGE_BOOST_FILESYSTEM select BR2_PACKAGE_BOOST_IOSTREAMS@@ -35,9 +34,8 @@ config BR2_PACKAGE_MONGODB https://www.mongodb.org/ -comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 6" +comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 7" depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_6 + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS - depends on !BR2_PACKAGE_PYTHON3package/mongodb/mongodb.hash +1
-1@@ -1,4 +1,4 @@ # Locally computed: -sha256 b39c5b7bb77a547804ab6f43f9b5f09add47574356b31512fd1cc641a08b4ea5 mongodb-r4.0.12.tar.gz +sha256 033839fe43adb13351f9e0ef361d4731d7e917b2d7ad12f09df73e6e9c8bf6db mongodb-r4.2.4.tar.gz sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 APACHE-2.0.txt sha256 09d99ca61eb07873d5334077acba22c33e7f7d0a9fa08c92734e0ac8430d6e27 LICENSE-Community.txtpackage/mongodb/mongodb.mk +18
-9@@ -4,7 +4,7 @@ # ################################################################################ -MONGODB_VERSION_BASE = 4.0.12 +MONGODB_VERSION_BASE = 4.2.4 MONGODB_VERSION = r$(MONGODB_VERSION_BASE) MONGODB_SITE = $(call github,mongodb,mongo,$(MONGODB_VERSION))@@ -13,9 +13,11 @@ MONGODB_LICENSE_FILES = APACHE-2.0.txt LICENSE-Community.txt MONGODB_DEPENDENCIES = \ boost \ - host-python-cheetah \ - host-python-pyyaml \ - host-python-typing \ + host-python3-cheetah \ + host-python3-psutil \ + host-python3-pyyaml \ + host-python3-regex \ + host-python3-requests \ host-scons \ pcre \ snappy \@@ -29,6 +31,7 @@ MONGODB_SCONS_ENV = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \ -j"$(PARALLEL_JOBS)" MONGODB_SCONS_OPTS = \ + --disable-minimum-compiler-version-enforcement \ --disable-warnings-as-errors \ --use-system-boost \ --use-system-pcre \@@ -60,21 +63,27 @@ endif ifeq ($(BR2_PACKAGE_LIBCURL),y) MONGODB_DEPENDENCIES += libcurl -MONGODB_SCONS_OPTS += --enable-free-mon=on +MONGODB_SCONS_OPTS += \ + --enable-free-mon=on \ + --enable-http-client=on else -MONGODB_SCONS_OPTS += --enable-free-mon=off +MONGODB_SCONS_OPTS += \ + --enable-free-mon=off \ + --enable-http-client=off endif ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGODB_DEPENDENCIES += openssl MONGODB_SCONS_OPTS += \ - --ssl \ + --ssl=on \ --ssl-provider=openssl +else +MONGODB_SCONS_OPTS += --ssl=off endif define MONGODB_BUILD_CMDS (cd $(@D); \ - $(HOST_DIR)/bin/python $(SCONS) \ + $(HOST_DIR)/bin/python3 $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ $(MONGODB_SCONS_TARGETS))@@ -82,7 +91,7 @@ endef define MONGODB_INSTALL_TARGET_CMDS (cd $(@D); \ - $(HOST_DIR)/bin/python $(SCONS) \ + $(HOST_DIR)/bin/python3 $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ --prefix=$(TARGET_DIR)/usr \
PATCH 8/8 package/mongodb: bump to version 4.2.4
In reply to yegorslists at googlemail.comYegor/All,
Quoted 23 lines · On Mon, Mar 23, 2020 at 5:54 AM <[email protected]> wrote:
From: Fabrice Fontaine <[email protected]>
- Drop !BR2_PACKAGE_PYTHON3 dependency as SConstruct requires host-python3 since version 4.1.10 and:
https://github.com/mongodb/mongo/commit/8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6
- host-python-psutil is needed since 4.1.8 and
https://github.com/mongodb/mongo/commit/ff03811e31851984617d73739de8acc7640b19a2
- Drop unneeded host-python-typing dependency
- C++17 and so gcc 7 is required since 4.1.8 and
https://github.com/mongodb/mongo/commit/01d84b2565fc9ea9626a55dcf1f3f817968088f2
- Set --disable-minimum-compiler-version-enforcement as mongodb enforces gcc >= 8.2 since verson 4.1.8 and
https://github.com/mongodb/mongo/commit/9ac90b128ebeb1bb431ebe3fe9176cb6142818cb
- Explictly disable ssl if needed as ssl is enabled by default
- Add host-python-cheetah dependency if needed
- Manage new http-client option added in version 4.1.2 and
https://github.com/mongodb/mongo/commit/4d7dcca91bc2bbde65843fe88c41fa040e0d1877Signed-off-by Fabrice Fontaine <[email protected]>[Titouan: Fix patch conflicts with master]Signed-off-by Titouan Christophe <[email protected]>Signed-off-by Yegor Yefremov <[email protected]>
Quoted 5 lines
--- package/mongodb/Config.in | 8 +++----- package/mongodb/mongodb.hash | 2 +- package/mongodb/mongodb.mk | 27 ++++++++++++++++++--------- 3 files changed, 22 insertions(+), 15 deletions(-)
I've run into an error when compiling for an x86-64 bit platform for the core-i5 architecture:
/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(node_data.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(null.cpp.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(ostream_wrapper.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parse.cpp.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parser.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(regex_yaml.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanner.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantoken.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(simplekey.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(singledocparser.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(stream.cpp.o):
relocation R_X86_64_32 against `.data' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(tag.cpp.o):
relocation R_X86_64_32 against `.bss' can not be used when making a
PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(binary.cpp.o):
relocation R_X86_64_32S against `.rodata' can not be used when making
a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(directives.cpp.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(nodebuilder.cpp.o):
relocation R_X86_64_32S against symbol `_ZTVN4YAML11NodeBuilderE' can
not be used when making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanscalar.cpp.o):
relocation R_X86_64_32 against symbol `_ZGVZN4YAML3Exp5EmptyEvE1e' can
not be used when making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantag.cpp.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC /tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(exp.cpp.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC
/accts
Do you have any ideas of what the issue is?
I have BR2_SHARED_LIBS set along with using the latest stable bootlin toolchain for x86-64-core-i7 toolchain:
Please let me know if you need any more information in order to recreate the problem.
[...]
Thanks,
-Ryan
PATCH 8/8 package/mongodb: bump to version 4.2.4
Yegor/All,
Quoted 80 lines · Ryan Barnett
I've run into an error when compiling for an x86-64 bit platform for the core-i5 architecture:
/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(node_data.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(null.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(ostream_wrapper.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parse.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parser.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(regex_yaml.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanner.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantoken.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(simplekey.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(singledocparser.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(stream.cpp.o):
relocationR_X86_64_32against `.data' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(tag.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(binary.cpp.o):
relocationR_X86_64_32Sagainst `.rodata' can not be used when making
a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(directives.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(nodebuilder.cpp.o):
relocationR_X86_64_32Sagainst symbol `_ZTVN4YAML11NodeBuilderE' can
not be used when making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanscalar.cpp.o):
relocationR_X86_64_32against symbol `_ZGVZN4YAML3Exp5EmptyEvE1e' can
not be used when making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantag.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(exp.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC
/acctsDo you have any ideas of what the issue is?
Quoted 7 lines
I have
BR2_SHARED_LIBSset along with using the latest stable bootlin toolchain for x86-64-core-i7 toolchain:Please let me know if you need any more information in order to recreate the problem.
Here is the defconfig based on qemu_x86_64_defconfig which will reproduce the issue:
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--glibc--stable-2020.02-2.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/qemu/x86_64/post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.91"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux.config"
BR2_PACKAGE_MONGODB=y
BR2_TARGET_ROOTFS_EXT2=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_QEMU=y
BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
Thanks,
-Ryan
---
Ryan Barnett | Sr Systems Engineer | Commercial Avionics COLLINS AEROSPACE
400 Collins Rd NE, Cedar Rapids, IA 52498 USA ryan.barnett at collins.com | collinsaerospace.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of Collins Aerospace and its affiliated companies. If you are not the intended recipient, please 1) Do not disclose, copy, distribute or use this message or its contents. 2) Advise the sender by return email. 3) Delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.
PATCH 8/8 package/mongodb: bump to version 4.2.4
Hi Ryan,
Le mar. 21 avr. 2020 ? 18:06, Ryan Barnett <[email protected]> a ?crit :
Quoted 109 lines
Yegor/All,
Quoted 80 lines · Ryan Barnett
I've run into an error when compiling for an x86-64 bit platform for the core-i5 architecture:
/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(node_data.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(null.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(ostream_wrapper.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parse.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(parser.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(regex_yaml.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanner.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantoken.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(simplekey.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(singledocparser.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(stream.cpp.o):
relocationR_X86_64_32against `.data' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(tag.cpp.o):
relocationR_X86_64_32against `.bss' can not be used when making a
PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(binary.cpp.o):
relocationR_X86_64_32Sagainst `.rodata' can not be used when making
a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(directives.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(nodebuilder.cpp.o):
relocationR_X86_64_32Sagainst symbol `_ZTVN4YAML11NodeBuilderE' can
not be used when making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scanscalar.cpp.o):
relocationR_X86_64_32against symbol `_ZGVZN4YAML3Exp5EmptyEvE1e' can
not be used when making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(scantag.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC/tmp/mongodb-buildhost/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-gnu/8.4.0/../../../../x86_64-buildroot-linux-gnu/bin/ld:
/tmp/mongodb-buildhost/x86_64-buildroot-linux-gnu/sysroot/lib/../lib64/libyaml-cpp.a(exp.cpp.o):
relocationR_X86_64_32against `.rodata.str1.1' can not be used when
making a PIE object; recompile with -fPIC
/acctsDo you have any ideas of what the issue is?
Quoted 7 lines
I have
BR2_SHARED_LIBSset along with using the latest stable bootlin toolchain for x86-64-core-i7 toolchain:Please let me know if you need any more information in order to recreate the problem.
Here is the defconfig based on
qemu_x86_64_defconfigwhich will reproduce the issue:BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64-core-i7/tarballs/x86-64-core-i7--glibc--stable-2020.02-2.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/qemu/x86_64/post-build.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
Quoted 8 lines
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.91" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux.config" BR2_PACKAGE_MONGODB=y
BR2_TARGET_ROOTFS_EXT2=y
#BR2_TARGET_ROOTFS_TARis not set BR2_PACKAGE_HOST_QEMU=y BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
Thanks for this defconfig, I was able to reproduce your issue.
The patch that fixes it is available here:
https://patchwork.ozlabs.org/project/buildroot/patch/20200421183543.4135516-1-fontaine.fabrice at gmail.com
Quoted 10 lines
Thanks,
-Ryan---
Ryan Barnett | Sr Systems Engineer | Commercial Avionics COLLINS AEROSPACE
400 Collins Rd NE, Cedar Rapids, IA 52498 USA ryan.barnett at collins.com | collinsaerospace.com
Quoted 7 lines
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of Collins Aerospace and its affiliated companies. If you are not the intended recipient, please 1) Do not disclose, copy, distribute or use this message or its contents. 2) Advise the sender by return email. 3) Delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.
Best Regards,
Fabrice
[Buildroot] [External] Re: [PATCH 8/8] package/mongodb: bump to version 4.2.4
Fabrice/Peter,
Quoted 8 lines · Fabrice Fontaine
Hi Ryan,
Le mar. 21 avr. 2020 ? 18:06, Ryan Barnett <[email protected]> a ?crit :
Thanks for this defconfig, I was able to reproduce your issue.
The patch that fixes it is available here:
https://patchwork.ozlabs.org/project/buildroot/patch/20200421183543.4135516-1-fontaine.fabrice at gmail.com
The patch fixed the issue I was having. While I investigated the version mongodb issue, I ran across this buildroot bug which contained the patch you proposed:
https://bugs.busybox.net/show_bug.cgi?id=12681
Peter - while testing the build of mongodb on the latest LTS tag, I found that mongodb doesn't build there as well and also requires a patch to fix the build of that version (given in the bug report). What approach do we want to take for fixing mongodb on the 2020.02 LTS tag? Bump the version with the patchset proposed or add a patch to mongodb to fix building of mongodb version 4.0.12?
Thanks,
-Ryan
---
Ryan Barnett | Sr Systems Engineer | Commercial Avionics COLLINS AEROSPACE
400 Collins Rd NE, Cedar Rapids, IA 52498 USA ryan.barnett at collins.com | collinsaerospace.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or privileged information of Collins Aerospace and its affiliated companies. If you are not the intended recipient, please 1) Do not disclose, copy, distribute or use this message or its contents. 2) Advise the sender by return email. 3) Delete all copies (including all attachments) from your computer. Your cooperation is greatly appreciated.
Thomas Petazzoni
AppliedPATCH 8/8 package/mongodb: bump to version 4.2.4
In reply to yegorslists at googlemail.comQuoted 22 lines · On Mon, 23 Mar 2020 11:49:09 +0100 yegorslists at googlemail.com wrote:
From: Fabrice Fontaine <[email protected]>
- Drop !BR2_PACKAGE_PYTHON3 dependency as SConstruct requires host-python3 since version 4.1.10 and:
https://github.com/mongodb/mongo/commit/8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6
- host-python-psutil is needed since 4.1.8 and
https://github.com/mongodb/mongo/commit/ff03811e31851984617d73739de8acc7640b19a2
- Drop unneeded host-python-typing dependency
- C++17 and so gcc 7 is required since 4.1.8 and
https://github.com/mongodb/mongo/commit/01d84b2565fc9ea9626a55dcf1f3f817968088f2
- Set --disable-minimum-compiler-version-enforcement as mongodb enforces gcc >= 8.2 since verson 4.1.8 and
https://github.com/mongodb/mongo/commit/9ac90b128ebeb1bb431ebe3fe9176cb6142818cb
- Explictly disable ssl if needed as ssl is enabled by default
- Add host-python-cheetah dependency if needed
- Manage new http-client option added in version 4.1.2 and
https://github.com/mongodb/mongo/commit/4d7dcca91bc2bbde65843fe88c41fa040e0d1877Signed-off-by Fabrice Fontaine <[email protected]>[Titouan: Fix patch conflicts with master]Signed-off-by Titouan Christophe <[email protected]>Signed-off-by Yegor Yefremov <[email protected]>
Quoted 5 lines
--- package/mongodb/Config.in | 8 +++----- package/mongodb/mongodb.hash | 2 +- package/mongodb/mongodb.mk | 27 ++++++++++++++++++--------- 3 files changed, 22 insertions(+), 15 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/8 package/python-psutil: add host variant
In reply to yegorslists at googlemail.comQuoted 9 lines · On Mon, 23 Mar 2020 11:49:02 +0100 yegorslists at googlemail.com wrote:
From: Fabrice Fontaine <[email protected]>
host-python-psutil for host-python3 is needed for mongodb >= 4.1.8
Signed-off-by Fabrice Fontaine <[email protected]>Signed-off-by Titouan Christophe <[email protected]>--- package/python-psutil/python-psutil.mk | 4 ++++ 1 file changed, 4 insertions(+)
I have not applied, because this commit is essentially reverted by
PATCH 7/8 in this series
(http://patchwork.ozlabs.org/project/buildroot/patch/20200323104909.16765-7-yegorslists at googlemail.com/), leaving the host-python-psutil package unused. So I've marked as Rejected.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com