Skip to contentSkip to conversation

mender updates

PATCH New aduskett at gmail.com 3 participants 14 messages Mar 20, 2021 – Apr 4, 2021

lore
Share & tools
lore
#0 lore raw

cover mender updates

From: Adam Duskett <[email protected]>

Some small mender updates in this patch set.

- host-pkgconf is required, as mender uses it to find openssl.
- Fix the version string showing up as "unknown"
- Install the dbus authentication file if dbus is selected.

I would add mender-connect, but I don't want to add the package under my name in the developers file. :)

Adam

Adam Duskett (4):
package/mender/mender.mk: use MENDER_PKGDIR variable package/mender/mender.mk: fix linker version argument package/mender: bump version to 2.5.0
package/mender: install dbus authentication file if dbus is selected

 package/mender/mender.hash | 13 ++++++++-----
 package/mender/mender.mk   | 21 +++++++++++++++------
 2 files changed, 23 insertions(+), 11 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/4 package/mender/mender.mk: use MENDER_PKGDIR variable

From: Adam Duskett <[email protected]>

Currently there is a mix of calls to package/mender and $(MENDER_PKGDIR) in the mender.mk file. Standardize the calls to only $(MENDER_PKGDIR).

---
 package/mender/mender.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/mender/mender.mk +3 -3
index bb37f2d8ed..3e82f556fb 100644
@@ -62,10 +62,10 @@ define MENDER_INSTALL_CONFIG_FILES
 			$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-$(f)
 	)
 
-	$(INSTALL) -D -m 0755 package/mender/artifact_info \
+	$(INSTALL) -D -m 0755 $(MENDER_PKGDIR)/artifact_info \
 			$(TARGET_DIR)/etc/mender/artifact_info
 
-	$(INSTALL) -D -m 0755 package/mender/device_type \
+	$(INSTALL) -D -m 0755 $(MENDER_PKGDIR)/device_type \
 			$(TARGET_DIR)/etc/mender/device_type
 
 	mkdir -p $(TARGET_DIR)/var/lib
@@ -84,7 +84,7 @@ define MENDER_INSTALL_INIT_SYSTEMD
 endef
 
 define MENDER_INSTALL_INIT_SYSV
-	$(INSTALL) -D -m 755 package/mender/S42mender \
+	$(INSTALL) -D -m 755 $(MENDER_PKGDIR)/S42mender \
 		$(TARGET_DIR)/etc/init.d/S42mender
 endef
 
Signature · 1 line
2.25.1
#2 lore raw

PATCH 1/4 package/mender/mender.mk: use MENDER_PKGDIR variable

Quoted 9 lines · On Sat, 20 Mar 2021 15:28:32 -0700 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

Currently there is a mix of calls to package/mender and $(MENDER_PKGDIR) in the mender.mk file. Standardize the calls to only $(MENDER_PKGDIR).

---
 package/mender/mender.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/4 package/mender/mender.mk: use MENDER_PKGDIR variable

In reply to aduskett at gmail.com
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"aduskett" == aduskett <[email protected]> writes:

From: Adam Duskett <[email protected]>
Currently there is a mix of calls to package/mender and $(MENDER_PKGDIR) in the mender.mk file. Standardize the calls to only $(MENDER_PKGDIR).

Committed to 2020.11.x and 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 2/4 package/mender/mender.mk: fix linker version argument

In reply to aduskett at gmail.com

From: Adam Duskett <[email protected]>

The current linker flag "-X main.Version=$(MENDER_VERSION)" no longer points to the correct location, which results in "version: unknown" when runnning "mender -version." Update the linker flag to point to the correct location.

---
 package/mender/mender.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/mender/mender.mk +1 -1
index 3e82f556fb..16d7178a6b 100644
@@ -37,7 +37,7 @@ MENDER_LICENSE_FILES = \
 
 MENDER_DEPENDENCIES = openssl xz
 
-MENDER_LDFLAGS = -X main.Version=$(MENDER_VERSION)
+MENDER_LDFLAGS = -X github.com/mendersoftware/mender/conf.Version=$(MENDER_VERSION)
 
 MENDER_UPDATE_MODULES_FILES = \
 	directory \
Signature · 1 line
2.25.1
#5 lore raw

PATCH 2/4 package/mender/mender.mk: fix linker version argument

Quoted 10 lines · On Sat, 20 Mar 2021 15:28:33 -0700 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

The current linker flag "-X main.Version=$(MENDER_VERSION)" no longer points to the correct location, which results in "version: unknown" when runnning "mender -version." Update the linker flag to point to the correct location.

---
 package/mender/mender.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

PATCH 2/4 package/mender/mender.mk: fix linker version argument

In reply to aduskett at gmail.com
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"aduskett" == aduskett <[email protected]> writes:

From: Adam Duskett <[email protected]>
The current linker flag "-X main.Version=$(MENDER_VERSION)" no longer points to the correct location, which results in "version: unknown" when runnning "mender -version." Update the linker flag to point to the correct location.

Committed to 2020.11.x and 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 3/4 package/mender: bump version to 2.5.0

In reply to aduskett at gmail.com

From: Adam Duskett <[email protected]>

Other changes:
- Add host-pkgconf as a dependency. It's used to find OpenSSL.
- Set new license hashes.

---
 package/mender/mender.hash | 13 ++++++++-----
 package/mender/mender.mk   |  4 ++--
 2 files changed, 10 insertions(+), 7 deletions(-)
package/mender/mender.hash +8 -5
index 43bb92d6ed..52e321f7e7 100644
@@ -1,31 +1,33 @@
 # Locally computed:
-sha256  ff9dccef31b0c6c1710ee767f8f05bc8038034e50968b207ee1a09a10f801ab4  2.4.2.tar.gz
+sha256  339bf97b3680315baf93143745b14b8638c5402094f94a4cc5a6ea63a2568da8  2.5.0.tar.gz
 
 # Vendor licenses
 # Generated with sed '/^[A-Za-z0-9_]/s/^/sha256  /' LIC_FILES_CHKSUM.sha256
 
 # Apache-2.0 license.
 sha256  b4acfcfa2a0ba1a8c82ec3965fbcee886cff8394ca4214e0ddac0a36beb1e05a  LICENSE
-sha256  32714818ad6f98ee0185a52e23a475d89122e3efd2b2c26c733781c28e798c99  vendor/github.com/mendersoftware/mendertesting/LICENSE
 sha256  32714818ad6f98ee0185a52e23a475d89122e3efd2b2c26c733781c28e798c99  vendor/github.com/mendersoftware/mender-artifact/LICENSE
 sha256  73ba74dfaa520b49a401b5d21459a8523a146f3b7518a833eea5efa85130bf68  vendor/github.com/mendersoftware/openssl/LICENSE
+sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  vendor/github.com/minio/sha256-simd/LICENSE
+sha256  f4a394d9345ba64dd2796dc552c31af99c4b686a46c0eeda6538038732f771a9  vendor/github.com/mendersoftware/progressbar/LICENSE
 #
 # BSD 2 Clause license.
 sha256  8d427fd87bc9579ea368fde3d49f9ca22eac857f91a9dec7e3004bdfab7dee86  vendor/github.com/pkg/errors/LICENSE
+sha256  e4646a82a976369d7ae8f6ed5c11d35dc0af18433a8ccc24c85b459ad8b95128  vendor/github.com/godbus/dbus/LICENSE
 #
 # BSD 3 Clause license.
+sha256  16f848582e4b276a7392cd34496b7a33d6f65c0e190c163ff3a056a7c61219ce  vendor/github.com/klauspost/compress/LICENSE
 sha256  2eb550be6801c1ea434feba53bf6d12e7c71c90253e0a9de4a4f46cf88b56477  vendor/github.com/pmezard/go-difflib/LICENSE
 sha256  2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067  vendor/golang.org/x/crypto/LICENSE
 sha256  2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067  vendor/golang.org/x/sys/LICENSE
-sha256  2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067  vendor/golang.org/x/net/LICENSE
 sha256  0634b008cee55ca01f0888d2f5aba2d34e66c3f52c31a4e16a5d5d33d0c2a03e  vendor/github.com/bmatsuo/lmdb-go/LICENSE.md
-sha256  2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067  vendor/golang.org/x/text/LICENSE
 sha256  87640bc4df2ceb1559f268a3db1ba859ab780f7ba5b1b4545173d4680a3d918b  vendor/github.com/remyoudompheng/go-liblzma/LICENSE
 #
 # ISC license.
 sha256  1b93a317849ee09d3d7e4f1d20c2b78ddb230b4becb12d7c224c927b9d470251  vendor/github.com/davecgh/go-spew/LICENSE
 #
 # MIT license.
+sha256  6d2de1cde19c4d2bd8bcd9aaa1d581f4cfa3db9cf71896140330eaa2f2687685  vendor/github.com/klauspost/pgzip/LICENSE
 sha256  51a0c9ec7f8b7634181b8d4c03e5b5d204ac21d6e72f46c313973424664b2e6b  vendor/github.com/sirupsen/logrus/LICENSE
 sha256  f8e536c1c7b695810427095dc85f5f80d44ff7c10535e8a9486cf393e2599189  vendor/github.com/stretchr/testify/LICENSE
 sha256  ffa15bdce332058a03a1d923910864fb6e58bf6df66a0e3914284725b327183e  vendor/github.com/ungerik/go-sysfs/LICENSE
@@ -33,9 +35,10 @@ sha256  da277af11b85227490377fbcac6afccc68be560c4fff36ac05ca62de55345fd7  vendor
 sha256  b2663894033a05fd80261176cd8da1d72546e25842d5c1abcc852ca23b6b61b0  vendor/github.com/stretchr/objx/LICENSE
 sha256  95b8ef9c4137a8f75ddd3101ffdc4cfd594fa875b261697b68baddc16b0e537c  vendor/github.com/konsorten/go-windows-terminal-sequences/LICENSE
 sha256  d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b  vendor/gopkg.in/yaml.v3/LICENSE
+sha256  08eab1118c80885fa1fa6a6dd7303f65a379fcb3733e063d20d1bbc2c76e6fa1  vendor/github.com/mattn/go-isatty/LICENSE
 #
 # OpenLDAP Public License
 sha256  310fe25c858a9515fc8c8d7d1f24a67c9496f84a91e0a0e41ea9975b1371e569  vendor/github.com/bmatsuo/lmdb-go/LICENSE.mdb.md
 
 # sha256 of all the vendor licenses combined
-sha256  d872f963cdd188b384eb673bf11002e4afb94830710f420a3f3d322695801847  LIC_FILES_CHKSUM.sha256
+sha256  76417c090c1a53d6fb1409998346e59e43f13139732a46dfc8732e0b4aebba2b  LIC_FILES_CHKSUM.sha256
package/mender/mender.mk +2 -2
index 16d7178a6b..a5b5654ff9 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MENDER_VERSION = 2.4.2
+MENDER_VERSION = 2.5.0
 MENDER_SITE = https://github.com/mendersoftware/mender/archive
 MENDER_SOURCE = $(MENDER_VERSION).tar.gz
 MENDER_LICENSE = Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MIT, OLDAP-2.8
@@ -35,7 +35,7 @@ MENDER_LICENSE_FILES = \
 	vendor/gopkg.in/yaml.v3/LICENSE \
 	vendor/github.com/bmatsuo/lmdb-go/LICENSE.mdb.md
 
-MENDER_DEPENDENCIES = openssl xz
+MENDER_DEPENDENCIES = host-pkgconf openssl xz
 
 MENDER_LDFLAGS = -X github.com/mendersoftware/mender/conf.Version=$(MENDER_VERSION)
 
Signature · 1 line
2.25.1
#8 lore raw

PATCH 3/4 package/mender: bump version to 2.5.0

Quoted 11 lines · On Sat, 20 Mar 2021 15:28:34 -0700 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

Other changes:
- Add host-pkgconf as a dependency. It's used to find OpenSSL.
- Set new license hashes.

---
 package/mender/mender.hash | 13 ++++++++-----
 package/mender/mender.mk   |  4 ++--
 2 files changed, 10 insertions(+), 7 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#9 lore raw

PATCH 4/4 package/mender: install dbus authentication file if dbus is selected

In reply to aduskett at gmail.com

From: Adam Duskett <[email protected]>

While not a requirement to run mender itself, the mender-connect package requires this file to be installed to talk to mender.

---
 package/mender/mender.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/mender/mender.mk +9 -0
index a5b5654ff9..fc077c6fa2 100644
@@ -78,6 +78,15 @@ endef
 
 MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_CONFIG_FILES
 
+ifeq ($(BR2_PACKAGE_DBUS),y)
+MENDER_DEPENDENCIES += dbus
+define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+	$(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
+		      $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf
+endef
+MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+endif
+
 define MENDER_INSTALL_INIT_SYSTEMD
 	$(INSTALL) -D -m 0644 $(MENDER_PKGDIR)/mender-client.service \
 		$(TARGET_DIR)/usr/lib/systemd/system/mender-client.service
Signature · 1 line
2.25.1
#10 lore raw

PATCH 4/4 package/mender: install dbus authentication file if dbus is selected

Hello Adam,

package/mender/mender.mk endef · line 82

Quoted 2 lines · On Sat, 20 Mar 2021 15:28:35 -0700 aduskett at gmail.com wrote:
package/mender/mender.mk +2 -0
+ifeq ($(BR2_PACKAGE_DBUS),y)
+MENDER_DEPENDENCIES += dbus

Do we really need DBus to be built/installed before ? It seems like the hook below only installs an extra DBus configuration file.

package/mender/mender.mk endef · line 88

Quoted 6 lines
package/mender/mender.mk +6 -0
+define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+	$(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
+		      $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf
+endef
+MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+endif

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#11 lore raw

PATCH 4/4 package/mender: install dbus authentication file if dbus is selected

Hello Thomas!

Quoted 12 lines · Thomas Petazzoni

Hello Adam,

package/mender/mender.mk endef · line 82

Quoted 2 lines · On Sat, 20 Mar 2021 15:28:35 -0700 aduskett at gmail.com wrote:
package/mender/mender.mk +2 -0
+ifeq ($(BR2_PACKAGE_DBUS),y)
+MENDER_DEPENDENCIES += dbus

Do we really need DBus to be built/installed before ? It seems like the hook below only installs an extra DBus configuration file.

It isn't actually. I can resubmit the patch with just the $(INSTALL) if you want me to!

Adam

Quoted 14 lines

package/mender/mender.mk endef · line 88

Quoted 6 lines
package/mender/mender.mk +6 -0
+define MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+     $(INSTALL) -D -m 0755 $(@D)/support/dbus/io.mender.AuthenticationManager.conf \
+                   $(TARGET_DIR)/etc/dbus-1/system.d/io.mender.AuthenticationManager.conf
+endef
+MENDER_POST_INSTALL_TARGET_HOOKS += MENDER_INSTALL_DBUS_AUTHENTICATION_MANAGER_CONF
+endif

Thanks!

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

#12 lore raw

PATCH 4/4 package/mender: install dbus authentication file if dbus is selected

Quoted 5 lines · On Tue, 30 Mar 2021 17:09:30 -0700 Adam Duskett <[email protected]> wrote:
Quoted 3 lines

Do we really need DBus to be built/installed before ? It seems like the hook below only installs an extra DBus configuration file.

It isn't actually. I can resubmit the patch with just the $(INSTALL) if you want me to!

Thanks for the confirmation, I have applied the patch after dropping the dbus dependency. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#13 lore raw

PATCH 4/4 package/mender: install dbus authentication file if dbus is selected

In reply to aduskett at gmail.com
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"aduskett" == aduskett <[email protected]> writes:

From: Adam Duskett <[email protected]>
While not a requirement to run mender itself, the mender-connect package requires this file to be installed to talk to mender.

Committed to 2020.11.x and 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard