Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various layer and test fixes for C++ client #2001

Merged
merged 36 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c30f7fc
feat: add recipe for Application Updates Module
tranchitella Sep 24, 2023
1a7fe87
Merge pull request #1979 from tranchitella/men-6084
tranchitella Sep 26, 2023
f5e94ac
chore: bump pytest-html from 3.2.0 to 4.0.2 in /tests/acceptance
dependabot[bot] Oct 1, 2023
012034d
chore: bump pytest from 7.4.0 to 7.4.2 in /tests/acceptance
dependabot[bot] Oct 1, 2023
c022e9c
chore: bump filelock from 3.12.3 to 3.12.4 in /tests/acceptance
dependabot[bot] Oct 1, 2023
b0b5005
Merge pull request #1983 from lluiscampos/dependaoct
lluiscampos Oct 2, 2023
0d0334b
chore: bump urllib3 from 1.26.16 to 1.26.17 in /tests/acceptance
dependabot[bot] Oct 3, 2023
fb61bae
Merge pull request #1984 from mendersoftware/dependabot/pip/tests/acc…
lluiscampos Oct 3, 2023
d61e802
chore: bump urllib3 from 1.26.17 to 1.26.18 in /tests/acceptance
dependabot[bot] Oct 18, 2023
b486c30
Merge pull request #1985 from mendersoftware/dependabot/pip/tests/acc…
dependabot[bot] Oct 18, 2023
bf95b11
fix: remove splash IMAGE_FEATURE from demo layer
TheYoctoJester Oct 18, 2023
02c621a
fix: move test specific settings from demo layer to tests
TheYoctoJester Oct 18, 2023
dd0f848
Merge pull request #1986 from TheYoctoJester/clean-demo-layer
kacf Oct 19, 2023
e941de6
fix: mv image files instead of install, to avoid corrupting the image.
hacpa Oct 26, 2023
c5c88f4
chore: Add recipes for release Mender 3.6.3
tranchitella Oct 31, 2023
d49835c
Merge pull request #1993 from tranchitella/mender-connect-2.1.1
tranchitella Nov 1, 2023
eef66ef
Merge pull request #1992 from hacpa/mv_images
kacf Nov 1, 2023
8bc1d9f
chore: bump pytest from 7.4.2 to 7.4.3 in /tests/acceptance
dependabot[bot] Nov 1, 2023
3ebf2e8
chore: bump filelock from 3.12.4 to 3.13.1 in /tests/acceptance
dependabot[bot] Nov 1, 2023
988158a
Merge pull request #1999 from lluiscampos/nov-test-dependencies
lluiscampos Nov 3, 2023
da030e0
Merge remote-tracking branch 'origin/master' into feature-c++-client
kacf Nov 10, 2023
911ea43
refac: Standardize on new names that follow the C++ client rewrite.
kacf Nov 3, 2023
3356b3a
chore: Fix incorrect `SRC_URI` for mender client.
kacf Nov 3, 2023
188dfad
chore: Make it possible to use non-master branch names with git recipe.
kacf Nov 7, 2023
bef3d60
chore: Make sure we add to dependencies, not replace.
kacf Nov 7, 2023
46fc563
refac(mender-client): Split C++ and Golang recipes completely.
kacf Nov 7, 2023
0d8bafb
chore: Add several missing paths to mender-config's files.
kacf Nov 7, 2023
a5e1f5e
test(dbus): Adapt to new client binary and service names.
kacf Nov 8, 2023
d86afc2
chore: Remove old and obsolete feature names.
kacf Nov 10, 2023
ded8670
chore: Remove unnecessary package config.
kacf Nov 10, 2023
5fa77fa
chore: Switch ca-certificates dependency to `RRECOMMENDS`.
kacf Nov 10, 2023
5b459ef
chore: Remove outdated component selection snippets.
kacf Nov 10, 2023
92b7432
test: Remove syslog test.
kacf Nov 15, 2023
270dfdb
chore: Make sure mender-server-certificate is depended upon correctly.
kacf Nov 20, 2023
a4e565f
chore: Install all update modules and make dependent on `PACKAGECONFIG`.
kacf Nov 21, 2023
e0d565a
test: Adapt test_update_modules.py to new C++ client.
kacf Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion LIC_FILES_CHKSUM.sha256
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
52b2497ce07650b825015e80ca7a5d40c360c04c530234ca6d950b0f98bca23a LICENSE
b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 meta-mender-core/recipes-mender/mender-client-migrate-configuration/files/LICENSE
b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 meta-mender-core/recipes-mender/mender-migrate-configuration/files/LICENSE
b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 meta-mender-core/recipes-mender/mender-wait-for-timesync/files/LICENSE
beb140be4cd64599bedc691a55b2729c9cc611a4b9d6ec44e01270105daf18a2 meta-mender-core/recipes-core/lsb-ld/files/LICENSE
ceb1b36ff073bd13d9806d4615b931707768ca9023805620acc32dd1cfc2f680 meta-mender-demo/recipes-mender/boot-script/files/LICENSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit mender-licensing

inherit systemd

RDEPENDS:${PN} = "bash mender-client (>= 2.5) lmdb"
RDEPENDS:${PN} = "bash mender-auth lmdb"

FILES:${PN} = " \
${bindir}/mender-monitord \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FILES:${PN}:append:mender-systemd = " \
${systemd_system_unitdir}/mender-gateway.service \
"

FILES:${PN}:append:mender-client-install = " \
FILES:${PN}:append:mender-update-install = " \
${datadir}/mender/inventory/mender-inventory-mender-gateway \
"

Expand Down Expand Up @@ -47,7 +47,7 @@ do_install:append:mender-systemd() {
install -m 644 ${S}/support/mender-gateway.service ${D}${systemd_unitdir}/system/mender-gateway.service
}

do_install:append:mender-client-install() {
do_install:append:mender-update-install() {
install -d -m 755 ${D}${datadir}/mender/inventory/
install -m 775 ${S}/support/mender-inventory-mender-gateway ${D}${datadir}/mender/inventory/mender-inventory-mender-gateway
}
3 changes: 2 additions & 1 deletion meta-mender-core/classes/mender-bootimg.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ IMAGE_CMD:bootimg() {
$label_flag "${MENDER_BOOT_PART_LABEL}" \
${MENDER_BOOT_PART_FSOPTS}
fi
install -m 0644 "${WORKDIR}/boot.${MENDER_BOOT_PART_FSTYPE_TO_GEN}" "${IMGDEPLOYDIR}/${IMAGE_NAME}.bootimg"
chmod 0644 "${WORKDIR}/boot.${MENDER_BOOT_PART_FSTYPE_TO_GEN}"
mv "${WORKDIR}/boot.${MENDER_BOOT_PART_FSTYPE_TO_GEN}" "${IMGDEPLOYDIR}/${IMAGE_NAME}.bootimg"
fi
}

Expand Down
6 changes: 4 additions & 2 deletions meta-mender-core/classes/mender-dataimg.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ IMAGE_CMD:dataimg() {
sload.f2fs -f "${_MENDER_ROOTFS_COPY}" "${WORKDIR}/data.${MENDER_DATA_PART_FSTYPE_TO_GEN}"
fi

install -m 0644 "${WORKDIR}/data.${MENDER_DATA_PART_FSTYPE_TO_GEN}" "${IMGDEPLOYDIR}/${IMAGE_NAME}.dataimg"
chmod 0644 "${WORKDIR}/data.${MENDER_DATA_PART_FSTYPE_TO_GEN}"
mv "${WORKDIR}/data.${MENDER_DATA_PART_FSTYPE_TO_GEN}" "${IMGDEPLOYDIR}/${IMAGE_NAME}.dataimg"
}
IMAGE_CMD:dataimg:mender-image-ubi() {
mkfs.ubifs -o "${WORKDIR}/data.ubifs" -r "${_MENDER_ROOTFS_COPY}" ${MKUBIFS_ARGS}
install -m 0644 "${WORKDIR}/data.ubifs" "${IMGDEPLOYDIR}/${IMAGE_NAME}.dataimg"
chmod 0644 "${WORKDIR}/data.ubifs"
mv "${WORKDIR}/data.ubifs" "${IMGDEPLOYDIR}/${IMAGE_NAME}.dataimg"
}

# We need the data contents intact.
Expand Down
3 changes: 2 additions & 1 deletion meta-mender-core/classes/mender-full-bios.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ inherit mender-setup

MENDER_FEATURES_ENABLE:append = " \
mender-image \
mender-client-install \
mender-auth-install \
mender-update-install \
mender-systemd \
"

Expand Down
3 changes: 2 additions & 1 deletion meta-mender-core/classes/mender-full-ubi.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
MENDER_FEATURES_ENABLE:append = " \
mender-image \
mender-image-ubi \
mender-client-install \
mender-auth-install \
mender-update-install \
mender-systemd \
mender-ubi \
mender-uboot \
Expand Down
3 changes: 2 additions & 1 deletion meta-mender-core/classes/mender-full.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ MENDER_FEATURES_ENABLE:append = " \
${_MENDER_BOOTLOADER_DEFAULT} \
mender-image \
${_MENDER_IMAGE_TYPE_DEFAULT} \
mender-client-install \
mender-auth-install \
mender-update-install \
mender-systemd \
${_MENDER_GROWFS_DATA_DEFAULT} \
"
Expand Down
3 changes: 0 additions & 3 deletions meta-mender-core/classes/mender-install-ubi.bbclass

This file was deleted.

3 changes: 0 additions & 3 deletions meta-mender-core/classes/mender-install.bbclass

This file was deleted.

9 changes: 6 additions & 3 deletions meta-mender-core/classes/mender-maybe-setup.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ python() {
# Enabled by GRUB/systemd-boot to extend UEFI overlay recipes.
'mender-efi-boot',

# Install of Mender, with the minimum components. This includes no
# references to specific partition layouts.
'mender-client-install',
# Install of mender-auth, with the minimum components.
'mender-auth-install',

# Install of mender-update, with the minimum components. This includes
# no references to specific partition layouts.
'mender-update-install',

# Include components for Mender-partitioned images. This will create
# files that rely on the Mender partition layout.
Expand Down
3 changes: 1 addition & 2 deletions meta-mender-core/classes/mender-setup.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ MENDER_DATA_PART_LABEL ??= "data"

# --------------------------- END OF CONFIGURATION -----------------------------

IMAGE_INSTALL:append = " mender-client"
PREFERRED_PROVIDER_virtual/mender-client ?= "mender"
IMAGE_INSTALL:append = " mender-update"
IMAGE_CLASSES += "mender-part-images mender-ubimg mender-artifactimg mender-dataimg mender-bootimg mender-datatar"

# Originally defined in bitbake.conf. We define them here so that images with
Expand Down
4 changes: 2 additions & 2 deletions meta-mender-core/conf/mender-vars.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"of regular expressions, each value is checked for",
"existence in the variable in current build",
"For example: we can issue a warning if user does",
"not include mender-uboot and mender-client-install",
"not include mender-uboot and mender-update-install",
"if we give the following definition below:",
"'MENDER_FEATURES_ENABLE': ['mender-uboot', 'mender-client-install']",
"'MENDER_FEATURES_ENABLE': ['mender-uboot', 'mender-update-install']",
"(using single quote (') for double quote in the above string)"],
"MENDER_ARTIFACT_EXTRA_ARGS": "",
"MENDER_ARTIFACT_NAME": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
require mender-artifact.inc

################################################################################
#-------------------------------------------------------------------------------
# THINGS TO CONSIDER FOR EACH RELEASE:
# - SRC_URI (particularly "branch")
# - SRCREV
# - DEFAULT_PREFERENCE
#-------------------------------------------------------------------------------

SRC_URI = "git://github.com/mendersoftware/mender-artifact.git;protocol=https;branch=3.10.x"

# Tag: 3.10.2
SRCREV = "d0da1c0c3668ec5c0735599c624399aa330b368e"

# Enable this in Betas, and in branches that cannot carry this major version as
# default.
# Downprioritize this recipe in version selections.
# DEFAULT_PREFERENCE = "-1"

################################################################################

# DO NOT change the checksum here without make sure that ALL licenses (including
# dependencies) are included in the LICENSE variable below. Note that for
# releases, we must check the LIC_FILES_CHKSUM.sha256 file, not the LICENSE
# file.
LICENSE = "Apache-2.0 & BSD-2-Clause & BSD-3-Clause & ISC & MIT"

LIC_FILES_CHKSUM = " \
file://src/github.com/mendersoftware/mender-artifact/LICENSE;md5=b4b4cfdaea6d61aa5793b92efd42e081 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/minio/sha256-simd/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mendersoftware/progressbar/LICENSE;md5=dcac2e5bf81a6fe99b034aaaaf1b2019 \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/genproto/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/grpc/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/appengine/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/cloud.google.com/go/kms/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/cloud.google.com/go/iam/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/cloud.google.com/go/compute/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/go.opencensus.io/LICENSE;md5=175792518e4ac015ab6696d16c4f607e \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/golang/groupcache/LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5 \
file://src/github.com/mendersoftware/mender-artifact/vendor/gopkg.in/square/go-jose.v2/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/oklog/run/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mendersoftware/openssl/LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/googleapis/enterprise-certificate-proxy/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/pkg/errors/LICENSE;md5=6fe682a02df52c6653f33bd0f7126b5a \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/pmezard/go-difflib/LICENSE;md5=e9a2ebb8de779a07500ddecca806145e \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/sys/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/remyoudompheng/go-liblzma/LICENSE;md5=344ad0e1a666fa2b8eccea6b1b742e42 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/klauspost/compress/LICENSE;md5=d0fd9ebda39468b51ff4539c9fbb13a8 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/russross/blackfriday/v2/LICENSE.txt;md5=ecf8a8a60560c35a862a4a545f2db1b3 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/google/go-cmp/LICENSE;md5=4ac66f7dea41d8d116cb7fb28aeff2ab \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/net/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/oauth2/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/text/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/crypto/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/time/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/api/LICENSE;md5=a651bb3d8b1c412632e28823bb432b40 \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/api/internal/third_party/uritemplates/LICENSE;md5=4ee4feb2b545c2231749e5c54ace343e \
file://src/github.com/mendersoftware/mender-artifact/vendor/google.golang.org/protobuf/LICENSE;md5=02d4002e9171d41a8fad93aa7faf3956 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/golang/protobuf/LICENSE;md5=939cce1ec101726fa754e698ac871622 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/googleapis/gax-go/v2/LICENSE;md5=0dd48ae8103725bd7b401261520cdfbb \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/crypto/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/golang.org/x/time/LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/golang/snappy/LICENSE;md5=b8b79c7d4cda128290b98c6a21f9aac6 \
file://src/github.com/mendersoftware/mender-artifact/vendor/gopkg.in/square/go-jose.v2/json/LICENSE;md5=591778525c869cdde0ab5a1bf283cd81 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/pierrec/lz4/LICENSE;md5=09ece85f3c312a63b522bfc6ebd44943 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/klauspost/compress/internal/snapref/LICENSE;md5=b8b79c7d4cda128290b98c6a21f9aac6 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/davecgh/go-spew/LICENSE;md5=c06795ed54b2a35ebeeb543cd3a73e56 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/stretchr/testify/LICENSE;md5=188f01994659f3c0d310612333d2a26f \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/urfave/cli/LICENSE;md5=75d9e324acacf92aca82397b81c225b0 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/sirupsen/logrus/LICENSE;md5=8dadfef729c08ec4e631c4f6fc5d43a0 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/klauspost/pgzip/LICENSE;md5=a6862811c790a468c5d82d68e717c154 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md;md5=80794f9009df723bbc6fe19234c9f517 \
file://src/github.com/mendersoftware/mender-artifact/vendor/gopkg.in/yaml.v3/LICENSE;md5=3c91c17266710e16afdbb2b6d15c761c \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mattn/go-isatty/LICENSE;md5=f509beadd5a11227c27b5d2ad6c9f2c6 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/klauspost/cpuid/v2/LICENSE;md5=00d6f962401947482d082858f7ba2ff3 \
file://src/github.com/mendersoftware/mender-artifact/vendor/go.uber.org/atomic/LICENSE.txt;md5=1caee86519456feda989f8a838102b50 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mitchellh/go-homedir/LICENSE;md5=3f7765c3d4f58e1f84c4313cecf0f5bd \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mitchellh/go-testing-interface/LICENSE;md5=96ada10a9e51c98c4656f2cede08c673 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mitchellh/mapstructure/LICENSE;md5=3f7765c3d4f58e1f84c4313cecf0f5bd \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mitchellh/copystructure/LICENSE;md5=56da355a12d4821cda57b8f23ec34bc4 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mitchellh/reflectwalk/LICENSE;md5=3f7765c3d4f58e1f84c4313cecf0f5bd \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/ryanuber/go-glob/LICENSE;md5=d2c81b3028eb947731a58fb068c7dff4 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/mattn/go-colorable/LICENSE;md5=24ce168f90aec2456a73de1839037245 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/fatih/color/LICENSE.md;md5=316e6d590bdcde7993fb175662c0dd5a \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/armon/go-radix/LICENSE;md5=cb04212e101fbbd028f325e04ad45778 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/armon/go-metrics/LICENSE;md5=d2d77030c0183e3d1e66d26dc1f243be \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/cenkalti/backoff/v3/LICENSE;md5=1571d94433e3f3aa05267efd4dbea68b \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-hclog/LICENSE;md5=ec7f605b74b9ad03347d0a93a5cc7eb8 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/klauspost/compress/zstd/internal/xxhash/LICENSE.txt;md5=802da049c92a99b4387d3f3d91b00fa9 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-secure-stdlib/strutil/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-secure-stdlib/parseutil/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/errwrap/LICENSE;md5=b278a92d2c1509760384428817710378 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/hcl/LICENSE;md5=b278a92d2c1509760384428817710378 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-cleanhttp/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-version/LICENSE;md5=b278a92d2c1509760384428817710378 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-rootcerts/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-retryablehttp/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-uuid/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-plugin/LICENSE;md5=d44fdeb607e2d2614db9464dbedd4094 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-sockaddr/LICENSE;md5=9741c346eef56131163e13b9db1241b3 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/vault/sdk/LICENSE;md5=bffc21c92b5f3adcbbb06f8e0067e786 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/vault/api/LICENSE;md5=bffc21c92b5f3adcbbb06f8e0067e786 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/yamux/LICENSE;md5=2dd1a9ecf92cd5617f128808f9b85b44 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-immutable-radix/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-multierror/LICENSE;md5=d44fdeb607e2d2614db9464dbedd4094 \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/golang-lru/LICENSE;md5=f27a50d2e878867827842f2c60e30bfc \
file://src/github.com/mendersoftware/mender-artifact/vendor/github.com/hashicorp/go-secure-stdlib/mlock/LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea \
"

DEPENDS += "xz openssl"
RDEPENDS:${PN} = "openssl"
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def mender_branch_from_preferred_version(d):
# If the preferred version is some kind of version, use the branch name
# for that one (1.0.x style).
return match.group(0) + "x"
elif version.endswith("-git%"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: When are we unifying this functionality somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My "unification muscle" twitched a bit as well. I don't promise to do it now, but let me try and see if it causes problems.

Copy link
Member Author

@kacf kacf Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah! There is a SHA in there which is specific to each recipe. It can be unified, but I'm leaving it alone for now. A task for another day.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least we tried :)

return version[0:-len("-git%")]
else:
# Else return master as branch.
return "master"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
example:

```
cp mender-client_1.2.1.bb mender-client_1.2.2.bb
cp mender_4.0.0.bb mender_4.0.1.bb
```

2. Edit the `branch` setting in the `SRC_URI` variable in the name, setting it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Mender persistent data dir
After=data.mount
Before=mender-client.service
Before=mender-client.service mender-authd.service mender-updated.service
ConditionPathExists=!/data/mender

[Service]
Expand All @@ -11,4 +11,4 @@ Group=root
ExecStart=/bin/mkdir -p -m 0700 /data/mender

[Install]
WantedBy=mender-client.service
WantedBy=mender-client.service mender-authd.service mender-updated.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ConditionPathExists=/etc/machine-id
Type=oneshot
User=root
Group=root
ExecStart=/usr/bin/mender-client-set-systemd-machine-id.sh
ExecStart=/usr/bin/mender-set-systemd-machine-id.sh

[Install]
WantedBy=mender-client.service
WantedBy=mender-client.service mender-updated.service