[ptxdist] [PATCH 2/2] strongswan: remove staging

2018-05-29 Thread Bruno Thomsen
strongswan now compiles with gcc 7.3.1 from OSELAS.Toolchain 2018.02.0. Signed-off-by: Bruno Thomsen --- rules/strongswan.in | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rules/strongswan.in b/rules/strongswan.in index f7ed103e2..e45a95f74 100644 --- a/rules

Re: [ptxdist] Runtime issue with busybox init using OSELAS.Toolchain() 2018.02.0

2018-05-03 Thread Bruno Thomsen
Hi Jürgen, > Did you copy this toolchain from a different host? Yes, it's build in another Jenkins pipeline. > How does "ls -l /sysroot-*/lib/libm*" looks like? -rwxr-xr-x. 1 bth bth 2386164 May 2 13:44

[ptxdist] Runtime issue with busybox init using OSELAS.Toolchain() 2018.02.0

2018-05-03 Thread Bruno Thomsen
Hi, I am build a firmware based on ptxdist-2017.10.0 on Fedora 28 and after upgrading from OSELAS.Toolchain() 2016.06.1 to 2018.02.0 I ran into an issue with busybox init that caused a kernel panic due to a missing shared lib (libm.so.6). Kernel trace: [1.882403] VFS: Mounted root (ext4

[ptxdist] [PATCH] rootfs: add wheel group

2019-08-22 Thread Bruno Thomsen
Allow administrative access to device using sudo. Signed-off-by: Bruno Thomsen --- projectroot/etc/group | 1 + 1 file changed, 1 insertion(+) diff --git a/projectroot/etc/group b/projectroot/etc/group index 3e4a4be39..ad02970de 100644 --- a/projectroot/etc/group +++ b/projectroot/etc/group

Re: [ptxdist] [ANNOUNCE] PTXdist 2019.07.0 released

2019-07-18 Thread Bruno Thomsen
Hi, > I'm happy to announce that I've just released ptxdist-2019.07.0. > > This release contains several bigger changes. I have discovered a bug in ptxdist-2019.07.0 when running it in docker. As this always starts without a ~/.ptxdist directory and therefore no old ptxdistrc-.xx

[ptxdist] [PATCH v2] u-boot: use https as download url

2019-10-31 Thread Bruno Thomsen
Switch download url from ftp to https. This improves security and seems to avoid local connection issues. Signed-off-by: Bruno Thomsen --- rules/u-boot.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/u-boot.make b/rules/u-boot.make index b6e65a95a..739913bda

[ptxdist] [PATCH] u-boot: generate default environment image

2019-10-31 Thread Bruno Thomsen
Can be used during manufacturing to avoid bootloader console usage and speed up first boot. Signed-off-by: Bruno Thomsen --- platforms/u-boot.in | 28 rules/u-boot.make | 11 +++ 2 files changed, 39 insertions(+) diff --git a/platforms/u-boot.in b

[ptxdist] [PATCH] u-boot-tools: use https as download url

2019-10-31 Thread Bruno Thomsen
Switch download url from ftp to https. This improves security and seems to avoid local connection issues. Signed-off-by: Bruno Thomsen --- rules/u-boot-tools.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/u-boot-tools.make b/rules/u-boot-tools.make index

[ptxdist] [PATCH v2] u-boot: generate environment image

2019-11-13 Thread Bruno Thomsen
-default-env.img Signed-off-by: Bruno Thomsen Tested-by: Alexander Dahl --- v2: - remove HOST_U_BOOT_TOOLS dependency - configurable default env image name - add custom env image generation option - move all options to sub menu platforms/u-boot.in | 64

Re: [ptxdist] [PATCH v2] u-boot: generate environment image

2019-11-18 Thread Bruno Thomsen
Hi Den man. 18. nov. 2019 kl. 09.43 skrev Denis OSTERLAND : > > Hi, > > Am Freitag, den 15.11.2019, 14:59 +0100 schrieb Michael Olbrich: > > On Wed, Nov 13, 2019 at 06:05:59PM +0100, Bruno Thomsen wrote: > ... > > > +config U_BOOT_DEFAULT_ENV_IMAGE_FILE > > >

Re: [ptxdist] [PATCH] u-boot: generate default environment image

2019-11-12 Thread Bruno Thomsen
Hi Thanks for review and test everybody. Den fre. 8. nov. 2019 kl. 18.47 skrev Michael Olbrich : > > Hmm, u-boot builds it's own mkenvimage, right? Why not use that one and > avoid the extra dependency? You are right, I just assumed it was for target architecture. Den ons. 6. nov. 2019 kl.

[ptxdist] [PATCH v4] u-boot: generate environment image

2019-11-22 Thread Bruno Thomsen
from an user provided config file with one 'var=value' per line format. Input config file name is configurable. Cc: Denis OSTERLAND Cc: Alexander Dahl Signed-off-by: Bruno Thomsen --- v4: - u-boot version limitation help. - env image size is now Kconfig hex input - custom env source file is now

Re: [ptxdist] [PATCH v3] u-boot: generate environment image

2019-11-22 Thread Bruno Thomsen
Ups, version 4 was send before I saw your email. > > ifdef PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE > > U_BOOT_CUSTOM_ENV_SRC := $(call ptx/in-platformconfigdir, \ > > $(PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_SOURCE)) > > You need the remove_quotes here for PTXCONF_U_BOOT_CUSTOM_ENV_IMAGE_SOURCE. > Other

Re: [ptxdist] [PATCH v3] u-boot: generate environment image

2019-11-22 Thread Bruno Thomsen
Hi Alexander, > thanks for your effort. I guess some folks have custom rules for generating > env images, so do we. It's good to have a common approach for ordinary use > cases to prevent reinventing the wheel. I have some remarks however, see > below. ;-) Thanks for review. We just realized

Re: [ptxdist] [PATCH] u-boot: bugfix: trigger recompile on Kconfig changes

2019-12-08 Thread Bruno Thomsen
Hi Michael Den lør. 7. dec. 2019 kl. 13.27 skrev Michael Olbrich : > > On Fri, Dec 06, 2019 at 07:02:44PM +0100, Bruno Thomsen wrote: > > When using the modern Kconfig as config system, changes to > > the config file did not trigger a rebuild of the image. > >

Re: [ptxdist] [PATCH] u-boot: bugfix: trigger recompile on Kconfig changes

2019-12-10 Thread Bruno Thomsen
> > With which ptxdist version? I cannot reproduce this with master. > > Changes to the config file change the u-boot.*.cfghash and trigger the > > rebuild. > > I am using ptxdist-2019.10.1 with u-boot rule from master on a Fedora > 30 host and OSELAS.Toolchain-2018.12.0. Just forget about the

Re: [ptxdist] [PATCH v3 2/3] tpm2-tools: version bump 3.1.4 -> 4.1

2019-12-17 Thread Bruno Thomsen
Hi Bastian, Den fre. 29. nov. 2019 kl. 12.52 skrev Bastian Krause : > -TPM2_TOOLS_VERSION := 3.1.4 > -TPM2_TOOLS_MD5 := 61b4a382d24c950148a3f5fe41ac2306 > +TPM2_TOOLS_VERSION := 4.1 I just tested your version bump and found that our build still need a

[ptxdist] [PATCH] u-boot: bugfix: trigger recompile on Kconfig changes

2019-12-06 Thread Bruno Thomsen
When using the modern Kconfig as config system, changes to the config file did not trigger a rebuild of the image. Steps to reproduce: $ ptxdist targetinstall u-boot $ ptxdist menuconfig u-boot $ ptxdist targetinstall u-boot Signed-off-by: Bruno Thomsen --- rules/u-boot.make | 1 + 1

[ptxdist] ptxdist: support podman

2019-10-15 Thread Bruno Thomsen
Hi I am currently migrating our containerized CI pipelines from docker (moby) to podman as it's more secure[1]. But ptxdist refuse to run as "root", but in reality it's running with less privileges then the user that started it. ptxdist: error: refusing to run PTXdist as root Is it possible to

Re: [ptxdist] [PATCH 2/2] u-boot: use HTTPS from upstream gitlab server

2019-10-29 Thread Bruno Thomsen
Hi Den tor. 24. okt. 2019 kl. 11.53 skrev Michael Olbrich : > > On Wed, Oct 23, 2019 at 07:50:11PM +0200, Bruno Thomsen wrote: > > Old FTP server has been down for quite a while, so > > switching to secure download from git server. > > It works here. Maybe you have some

[ptxdist] [PATCH 1/2] sudo: fix missing runtime libraries

2019-10-23 Thread Bruno Thomsen
libraries: libubsan.so.1: cannot open shared object file: No such file or directory Signed-off-by: Bruno Thomsen --- rules/sudo.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/sudo.make b/rules/sudo.make index a7fa0ad4a..985ab8768 100644 --- a/rules/sudo.make +++ b

[ptxdist] [PATCH 2/2] u-boot: use HTTPS from upstream gitlab server

2019-10-23 Thread Bruno Thomsen
Old FTP server has been down for quite a while, so switching to secure download from git server. Change in patch series directory name: u-boot-2019.10 -> u-boot-v2019.10 Signed-off-by: Bruno Thomsen --- rules/u-boot.make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

Re: [ptxdist] [PATCH] sudo: version bump 1.8.22 -> 1.8.28

2019-10-23 Thread Bruno Thomsen
Hi Roland > Subject: [ptxdist] [PATCH] sudo: version bump 1.8.22 -> 1.8.28 > > Pin down more configure options, and update the license MD5, which added > some more file headers of files under ISC license, reformatted the > existing license file headers, and bumped the copyright date to 2019.

Re: [ptxdist] [PATCH 2/2] u-boot: Build out-of-tree

2019-11-19 Thread Bruno Thomsen
Hi, Den tir. 19. nov. 2019 kl. 14.41 skrev Alexander Dahl : > > Like barebox and kernel, u-boot can be built out-of-tree, only few > modifications are necessary. This is especially nice when working in the > source tree U-Boot is built from. > > Cc: Bruno Thomsen > Cc: Deni

[ptxdist] [PATCH v3] u-boot: generate environment image

2019-11-19 Thread Bruno Thomsen
from an user provided config file with one 'var=value' per line format. Input config file name is configurable. Cc: Denis OSTERLAND Cc: Alexander Dahl Signed-off-by: Bruno Thomsen --- v3: - remove multiple env images support - use static image names - rebase patches on top of: u-boot: Build out

Re: [ptxdist] [PATCH v2] strongswan: Version bump 5.6.1 -> 5.8.1

2019-11-19 Thread Bruno Thomsen
stall all compiled plugins. > > Option to enable strongswan service if systemd is used. > > Option to set sysconfdir. Default /etc. > > Signed-off-by: Lars Pedersen Systemd service and swanctl seems to work fine in version 2

Re: [ptxdist] [PATCH v5 1/2] u-boot: generate environment image

2019-11-26 Thread Bruno Thomsen
Hi Alexander, Thanks for your continued review and test. Den tir. 26. nov. 2019 kl. 09.09 skrev Alexander Dahl : > thanks for your continued work on this. Overall this one looks good to me now, > only some typos in commit message and help text left, but that's no blocker > for me (see below for

Re: [ptxdist] [PATCH v4] u-boot: generate environment image

2019-11-25 Thread Bruno Thomsen
Hi Denis, Den man. 25. nov. 2019 kl. 09.44 skrev Denis OSTERLAND : > > +choice > > + prompt "Generate environment image" > > + default U_BOOT_NONE_ENV_IMAGE > > + help > > + U-Boot from version 2018.03 support out-of-tree environment > > + image generation. > > + > >

[ptxdist] [PATCH v5 1/2] u-boot: generate environment image

2019-11-25 Thread Bruno Thomsen
from an user provided config file with one 'var=value' per line format. Input config file name is configurable. Cc: Denis OSTERLAND Cc: Alexander Dahl Signed-off-by: Bruno Thomsen --- v5: - split imx dtb image cleanup into bugfix patch - removed remove quotes in statedir - remove quetes

[ptxdist] [PATCH v5 2/2] u-boot: bugfix: missing imx dtb image clean

2019-11-25 Thread Bruno Thomsen
Fixes: 58c48f349901 ("u-boot: Add u-boot-dtb.imx install option") Cc: Denis OSTERLAND Cc: Alexander Dahl Signed-off-by: Bruno Thomsen --- v5: - moved bugfix to seperate patch v4-v1: - patch did not exist rules/u-boot.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[ptxdist] [PATCH] host-libcap: always build a dynamically linked exectables

2019-11-25 Thread Bruno Thomsen
. Related: eda8ef326785 ("libcap: always build a dynamically linked exectables") Signed-off-by: Bruno Thomsen --- rules/host-libcap.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/host-libcap.make b/rules/host-libcap.make index 5407efd01..61df84778 100644 -

Re: [ptxdist] [PATCH v2] zstd: new package

2020-02-20 Thread Bruno Thomsen
Hi Den tor. 20. feb. 2020 kl. 12.20 skrev Philipp Zabel : > +# > > +# Target-Install > +# > > + > +$(STATEDIR)/zstd.targetinstall: > +

Re: [ptxdist] [PATCH] sqlite: enable foreign keys by default

2020-02-21 Thread Bruno Thomsen
Hi Michael Den fre. 21. feb. 2020 kl. 08.23 skrev Michael Olbrich : > > On Sat, Feb 15, 2020 at 01:52:05PM +0100, Bruno Thomsen wrote: > > Support for foreign_keys pragma was already enabled at > > compile-time, but it was not enabled by default on new > > database

Re: [ptxdist] [PATCH v3 2/3] tpm2-tools: version bump 3.1.4 -> 4.1

2020-01-07 Thread Bruno Thomsen
Hi Bastian, Den man. 6. jan. 2020 kl. 15.41 skrev Bastian Krause : > > >>> TPM2_TOOLS_CFLAGS := \ > >>> -fPIC > >>> > >>> > >>> I don't know if this is the correct fix or something else is the root > >>> cause. > >> > >> Looks okay to me. Let's wait what Michael has to say about it. > > > >

[ptxdist] [PATCH] tpm2-tools: add PIC flag to CFLAGS

2020-01-07 Thread Bruno Thomsen
: error: Cannot enable -shared, consider configuring with --disable-hardening Cc: Bastian Krause Signed-off-by: Bruno Thomsen --- rules/tpm2-tools.make | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/tpm2-tools.make b/rules/tpm2-tools.make index 9fbb0cbc7..ead881ffb 100644 --- a/rules

[ptxdist] [PATCH] dropbear: enable/disable sha1 include key exchange algorithms

2020-04-03 Thread Bruno Thomsen
When enabling or disabling sha1 integrity also keep or remove key exhange algorithms that rely on sha1. group14_sha1 - 2048 bit, sha1 group1 - 1024 bit, sha1 Signed-off-by: Bruno Thomsen --- rules/dropbear.make | 4 1 file changed, 4 insertions(+) diff --git a/rules/dropbear.make b/rules

Re: [ptxdist] [PATCH 2/2] php5: move away from staging

2020-04-29 Thread Bruno Thomsen
> menuconfig PHP5 > @@ -19,10 +17,6 @@ menuconfig PHP5 > select SQLITE if PHP5_EXT_SQLITE3 > select ZLIB if PHP5_EXT_ZLIB > select OPENSSL if PHP5_EXT_OPENSSL > - help > - STAGING: remove in ptxdist-2021.05.0 > - Old

[ptxdist] [PATCH 1/2] php5: version bump to 5.6.40

2020-04-29 Thread Bruno Thomsen
compiled binary cannot run on host arch. This has an open upstream php bug[3]. New configuration parameters are default disabled. [1] https://www.php.net/ChangeLog-5.php [2] https://www.php.net/manual/en/book.fileinfo.php [3] https://bugs.php.net/bug.php?id=69132 Signed-off-by: Bruno Thomsen

[ptxdist] [PATCH 2/2] php5: move away from staging

2020-04-29 Thread Bruno Thomsen
This reverts commit 5f0f21033a19780828e8052724e893f129552116. php5 has been updated to 5.6.40 so known CVEs has been resolved and allows a little extra php7 migration time. Signed-off-by: Bruno Thomsen --- rules/cups.in | 1 - rules/lighttpd.in | 1 - rules/php5.in | 8 +--- 3

Re: [ptxdist] [PATCH 2/2] php5: move away from staging

2020-05-12 Thread Bruno Thomsen
Den tor. 7. maj 2020 kl. 10.06 skrev Michael Olbrich : > > > - help > > > - STAGING: remove in ptxdist-2021.05.0 > > > - Old version that need to be updated. Fails to build with gcc >= > > > 9.x on > > > - on some architectures (AArch64). > > > > Forgot to add that

Re: [ptxdist] [PATCH v2] modemmanager: config: allow arbitrary AT commands via DBus

2020-07-17 Thread Bruno Thomsen
Den tor. 16. jul. 2020 kl. 18.10 skrev Michael Olbrich : > > On Fri, Jul 10, 2020 at 05:55:53PM +0200, Bruno Thomsen wrote: > > This feature is useful when needing to approve a device > > under RED directive for the EU market where it's required > > to use the same firmware

Re: [ptxdist] [PATCH 3/5] host-squashfs-tools: add support for zstd contitional

2020-07-17 Thread Bruno Thomsen
Den fre. 17. jul. 2020 kl. 08.35 skrev Michael Olbrich : > > On Thu, Jul 16, 2020 at 07:38:03PM +0200, Bruno Thomsen wrote: > > Only enable host zstd package dependency when needed, > > so it doesn't build unnecessary packages. > > > > > > -HOST_SQUASHFS_TOOLS_

Re: [ptxdist] Chrony has NTP capability disabled by default, why ?

2020-07-22 Thread Bruno Thomsen
Den tir. 21. jul. 2020 kl. 17.57 skrev Mircea Ciocan : > > Dear ptxdist developers (and especially Michael O.), > > we've had a head scratching session today, we've tried to use chrony as > a NTP server and for a number of hours was failing miserably, until > we've discovered that by default the

[ptxdist] [PATCH v2 1/6] chrony: version bump 3.3 -> 3.5

2020-07-29 Thread Bruno Thomsen
Always enable ntp support as it does not require extra dependencies. Updated project URL in package help as sunsite.dk has been renamed to dotsrc.org and have shutdown the general project hosting part. Signed-off-by: Bruno Thomsen --- Changes since version 1: - Fix typo in subject line

[ptxdist] [PATCH v2 6/6] chrony: advanced monitoring command option

2020-07-29 Thread Bruno Thomsen
When you need to dig deep into NTP sync status. Signed-off-by: Bruno Thomsen --- Changes since version 1: - Fixed yoda style subject line. - Replace ptx/ifdef with ptx/endis for explicit options. This outputs unrecognized options, but we still get expected result. Unrecognized option

[ptxdist] [PATCH v2 4/6] passwd/group: added chrony UID/GID

2020-07-29 Thread Bruno Thomsen
Added chrony user id (UID) to /etc/passwd and chrony group id (GID) to /etc/group based on IDs from Fedora. Signed-off-by: Bruno Thomsen --- No changes since version 1. projectroot/etc/group | 1 + projectroot/etc/passwd | 1 + 2 files changed, 2 insertions(+) diff --git a/projectroot/etc

[ptxdist] [PATCH v2 2/6] chrony: nettle authentication support

2020-07-29 Thread Bruno Thomsen
Use nettle crypto lib for stronger time packet authentication support. Signed-off-by: Bruno Thomsen --- Changes since version 1: - Replace ptx/ifdef with ptx/endis and ptx/wwo for explicit options. This outputs unrecognized options, but we still get expected result. Unrecognized option

[ptxdist] [PATCH v2 5/6] chrony: run as chrony user option

2020-07-29 Thread Bruno Thomsen
Default chrony service run as root and that is not best practice as it's doing network communication. Signed-off-by: Bruno Thomsen --- No changes since version 1. rules/chrony.in | 7 +++ rules/chrony.make | 1 + 2 files changed, 8 insertions(+) diff --git a/rules/chrony.in b/rules

[ptxdist] [PATCH v2 3/6] chrony: systemd unit option

2020-07-29 Thread Bruno Thomsen
Include examples/chronyd.service from package in projectroot so install_alternativ statment works. Signed-off-by: Bruno Thomsen --- Changes since version 1: - Fix install_alternative statement for service file. - Added chrony-3.5/examples/chronyd.service to projectroot. .../usr/lib/systemd

Re: [ptxdist] [PATCH] rc-once: make sure data makes it to the medium

2020-08-10 Thread Bruno Thomsen
Den man. 10. aug. 2020 kl. 15.59 skrev Robert Schwebel : > > On Mon, Aug 10, 2020 at 03:46:15PM +0200, Uwe Kleine-König wrote: > > > umount() { > > > + # make sure rc-once generated data makes it to the medium > > > + sync > > > if ! mount_root_restore; then > > > # remounting

Re: [ptxdist] [PATCH] systemd: version bump 245.6 -> 246

2020-07-31 Thread Bruno Thomsen
Den tor. 30. jul. 2020 kl. 22.59 skrev Robert Schwebel : > > A new systemd version is out. > > * There is a new config otpion for zstd compression for the journal. > * Several new and obsolete meson options have been adapted. > * As systemd-initctl is only installed if sysvinit support is enabled

[ptxdist] [PATCH v3 2/7] chrony: nettle authentication support

2020-07-31 Thread Bruno Thomsen
Use nettle crypto lib for stronger time packet authentication support. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Go back to version 1 of patch. Changes since version 1: - Replace ptx/ifdef with ptx/endis and ptx/wwo for explicit options. This outputs unrecognized options

[ptxdist] [PATCH v3 7/7] chrony: make unrecognized configure options fatal

2020-07-31 Thread Bruno Thomsen
Add a little help for package maintainers to highlight possible future issues. Signed-off-by: Bruno Thomsen --- New in version 3: - package patch: make the 'Unrecognized option' a fatal configure error. - Michael feel free to drop this if I misunderstood how to do it :) ...ke-unrecognized

[ptxdist] [PATCH v3 5/7] chrony: run chronyd as chrony user

2020-07-31 Thread Bruno Thomsen
Running service as non-root limits system exposure and it's considered best practice when doing network communication. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Always run chrony daemon as chrony user. No changes since version 1. rules/chrony.make | 1 + 1 file changed, 1

[ptxdist] [PATCH v3 6/7] chrony: advanced monitoring command option

2020-07-31 Thread Bruno Thomsen
When you need to dig deep into NTP sync status. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Revert to ptx/ifdef from version 1 of patch. - Minor help text update. Changes since version 1: - Fixed yoda style subject line. - Replace ptx/ifdef with ptx/endis for explicit options

Re: [ptxdist] [PATCH v2 1/6] chrony: version bump 3.3 -> 3.5

2020-07-31 Thread Bruno Thomsen
Hi Michael Thanks for review, and sorry for the mailing list spam. I have collected replies from multiple mails in this. Den tor. 30. jul. 2020 kl. 12.09 skrev Michael Olbrich : > > On Wed, Jul 29, 2020 at 09:29:23PM +0200, Bruno Thomsen wrote: > > Changes since version 1: &g

[ptxdist] [PATCH v3 1/7] chrony: version bump 3.3 -> 3.5

2020-07-31 Thread Bruno Thomsen
unrecognized options and only add used options: localstatedir, prefix and sysconfdir. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Add configure script note. - Removed --enabled-ntp. - Replaced CROSS_AUTOCONF_USR as it adds 3 unrecognized options and only add used options. Changes

[ptxdist] [PATCH v3 3/7] chrony: systemd unit option

2020-07-31 Thread Bruno Thomsen
Install examples/chronyd.service from package as starting point, it works great, otherwise use install_alternative. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Remove chronyd.service from projectroot - Install chronyd.service in install stage. Changes since version 1: - Fix

[ptxdist] [PATCH v3 4/7] passwd/group: added chrony UID/GID

2020-07-31 Thread Bruno Thomsen
Added chrony user id (UID) to /etc/passwd and chrony group id (GID) to /etc/group using next available numbers. Signed-off-by: Bruno Thomsen --- Changes since version 2: - Changed UID/GID to (value on line above)++ - Updated User ID Info field from daemon name to package name. No changes since

[ptxdist] [PATCH] chrony: add seccomp sandbox option

2020-07-31 Thread Bruno Thomsen
This adds a little extra security by using seccomp. Signed-off-by: Bruno Thomsen --- Note: this patch requires my chrony patch series version 3 before apply. rules/chrony.in | 8 rules/chrony.make | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rules

[ptxdist] [PATCH] modemmanager: config: allow arbitrary AT commands via DBus

2020-07-09 Thread Bruno Thomsen
-by: Bruno Thomsen --- rules/modemmanager.in | 5 + rules/modemmanager.make | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rules/modemmanager.in b/rules/modemmanager.in index 50f2d9c6a..20da8d5fd 100644 --- a/rules/modemmanager.in +++ b/rules/modemmanager.in @@ -24,4

Re: [ptxdist] [PATCH] bugfix: kernel: install modules with 755 permission

2020-07-07 Thread Bruno Thomsen
Den man. 6. jul. 2020 kl. 18.56 skrev Michael Olbrich : > > On Mon, Jul 06, 2020 at 05:24:41PM +0200, Bruno Thomsen wrote: > > Added install_copy fixes errors like this: > > > > Incompatible ownership or permissions for > > '/usr/lib/modules/5.6.13-gb44726ddbb7c'

Re: [ptxdist] [PATCH] bugfix: kernel: install modules with 755 permission

2020-07-07 Thread Bruno Thomsen
Den tir. 7. jul. 2020 kl. 12.06 skrev Michael Olbrich : > > > Hmmm, you're running ptxdist with a 0002 umask, right?[1] > > > > Yes, I am running ptxdist with 0002 umask as a user. > > > > On Fedora users run with 0002 umask and root runs with 0022 umask, > > but ptxdist does not support building

Re: [ptxdist] Clash between busybox bc and GNU bc

2020-07-06 Thread Bruno Thomsen
> compiling a a firmware with the latest (2020.07.0) ptxdist I've got the > following package clash error: > >  * check_data_file_clashes: Package busybox wants to install file >./platform-MCIMX6ULL-EVK/build-target/image-root-tgz/usr/bin/bc > But that file is already provided by package 

[ptxdist] [PATCH] bugfix: kernel: install modules with 755 permission

2020-07-06 Thread Bruno Thomsen
this error: Collected errors: * check_data_file_clashes: Package usr-rootfs wants to install file ../platform-x/build-target/image-root-tgz/lib But that path is currently a directory * opkg_solver_install: Cannot install package usr-rootfs. Signed-off-by: Bruno Thomsen --- rules

Re: [ptxdist] [PATCH] modemmanager: config: allow arbitrary AT commands via DBus

2020-07-10 Thread Bruno Thomsen
Den fre. 10. jul. 2020 kl. 11.19 skrev Roland Hieber : > > On Thu, Jul 09, 2020 at 05:31:07PM +0200, Bruno Thomsen wrote: > > > > +config MODEMMANAGER_ALLOW_DBUS_AT_CMDS > > + bool > > + depends on SYSTEMD > > Should this be a DBUS instead of a SYSTEM

[ptxdist] [PATCH v2] modemmanager: config: allow arbitrary AT commands via DBus

2020-07-10 Thread Bruno Thomsen
-by: Bruno Thomsen --- v1-v2: rhi: use select DBUS dependency. rules/modemmanager.in | 5 + rules/modemmanager.make | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rules/modemmanager.in b/rules/modemmanager.in index 50f2d9c6a..179932835 100644 --- a/rules/modemmanager.in

[ptxdist] [PATCH 1/3] gettext: version bump 0.19.8.1 -> 0.20.2

2020-07-14 Thread Bruno Thomsen
Configuration parameters removed: --disable-native-java --with-included-glib --with-included-libcroco Configuration parameters added: --enable-cross-guesses --enable-namespacing License hash updated since urls has been updated from http to https. Signed-off-by: Bruno Thomsen --- rules

[ptxdist] [PATCH 2/3] gettext: cli/lib install options

2020-07-14 Thread Bruno Thomsen
This users to deselect parts not needed, e.g. if you only need envsubst tool. Fixed runtime issue with xgettext missing libtextstyle. Signed-off-by: Bruno Thomsen --- rules/gettext.in | 13 + rules/gettext.make | 7 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff

Re: [ptxdist] Hard-coded directory permissions

2020-06-10 Thread Bruno Thomsen
> From: ptxdist on behalf of Nico Lastzka > > Sent: Wednesday, June 10, 2020 11:35 > To: ptxdist@pengutronix.de > Subject: [ptxdist] Hard-coded directory permissions > > Hi, > > I ran into a problem with the latest ptxdist 2020.06 when trying to install > an ssh key to >

[ptxdist] [PATCH 4/6] passwd/group: added chrony UID/GID

2020-07-24 Thread Bruno Thomsen
Added chrony user id (UID) to /etc/passwd and chrony group id (GID) to /etc/group based on IDs from Fedora. Signed-off-by: Bruno Thomsen --- projectroot/etc/group | 1 + projectroot/etc/passwd | 1 + 2 files changed, 2 insertions(+) diff --git a/projectroot/etc/group b/projectroot/etc/group

[ptxdist] [PATCH 5/6] chrony: run as chrony user option

2020-07-24 Thread Bruno Thomsen
Default chrony service run as root and that is not best practice as it's doing network communication. Signed-off-by: Bruno Thomsen --- rules/chrony.in | 7 +++ rules/chrony.make | 1 + 2 files changed, 8 insertions(+) diff --git a/rules/chrony.in b/rules/chrony.in index 525be2681

[ptxdist] [PATCH 2/6] chrony: nettle authentication support

2020-07-24 Thread Bruno Thomsen
Use nettle crypto lib for stronger time packet authentication support. Signed-off-by: Bruno Thomsen --- rules/chrony.in | 8 rules/chrony.make | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/rules/chrony.in b/rules/chrony.in index ccdcb71d0..9eac48971 100644

[ptxdist] [PATCH v3 2/5] host-squashfs-tools: add support for zstd contitional

2020-07-24 Thread Bruno Thomsen
Only enable host zstd package dependency when needed, so it doesn't build unnecessary packages. Signed-off-by: Bruno Thomsen --- Changes since version 2: Moved from 0003 to 0002. Added HOST_SQUASHFS_TOOLS_ZSTD_SUPPORT config. Changes since version 1: Removed all /usr/local paths changes

[ptxdist] [PATCH v3 1/5] host-zstd: new package

2020-07-24 Thread Bruno Thomsen
This package can be used by squashfs-tools. Signed-off-by: Bruno Thomsen --- No changes since version 2. Changes since version 1: Replaced HOST_CMAKE_USR with HOST_CMAKE_OPT rules/host-zstd.in | 6 ++ rules/host-zstd.make | 42 ++ 2 files changed

[ptxdist] [PATCH v3 3/5] image-root-squashfs: add zstd compression option

2020-07-24 Thread Bruno Thomsen
Set block size and compression level parameters for optimal result by default. BLOCK_SIZE="1M" EXTRA_ARGS="-Xcompression-level 22" It's still very fast on an ordinary laptop. Signed-off-by: Bruno Thomsen --- Changes since version 2: Moved from

[ptxdist] [PATCH v3 4/5] host-squashfs-tools: conditional select lzo and xz dependencies

2020-07-24 Thread Bruno Thomsen
Only select host lzo and host xz packages when needed to speed up complete build time and avoid unnecessary dependencies. Update image-root-squashfs Kconfig dependency selection. Signed-off-by: Bruno Thomsen --- Changes since version 2: Select HOST_SQUASHFS_TOOLS_LZO_SUPPORT config. Select

[ptxdist] [PATCH 6/6] chrony: advanced command monitoring option

2020-07-24 Thread Bruno Thomsen
When you need to dig deep into NTP sync status. Signed-off-by: Bruno Thomsen --- rules/chrony.in | 7 +++ rules/chrony.make | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rules/chrony.in b/rules/chrony.in index 6a4f12de0..ad9baa2bf 100644 --- a/rules/chrony.in

[ptxdist] [PATCH 3/6] chrony: systemd unit option

2020-07-24 Thread Bruno Thomsen
Signed-off-by: Bruno Thomsen --- rules/chrony.in | 7 +++ rules/chrony.make | 8 2 files changed, 15 insertions(+) diff --git a/rules/chrony.in b/rules/chrony.in index 9eac48971..525be2681 100644 --- a/rules/chrony.in +++ b/rules/chrony.in @@ -95,6 +95,13 @@ endif config

[ptxdist] [PATCH 1/6] chrony: verion bump 3.3 -> 3.5

2020-07-24 Thread Bruno Thomsen
Always enable ntp support as it does not require extra dependencies. Signed-off-by: Bruno Thomsen --- rules/chrony.make | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rules/chrony.make b/rules/chrony.make index 61fe4a7fd..3b7456618 100644 --- a/rules/chrony.make +++ b

[ptxdist] [PATCH v3 5/5] host-squashfs-tools: fix lz4 compression option

2020-07-24 Thread Bruno Thomsen
Conditional select host-lz4 package if lz4 compressions is used by image-root-squashfs and enable support in package. Signed-off-by: Bruno Thomsen --- Changes since version 2: Select HOST_SQUASHFS_TOOLS_LZ4_SUPPORT config. Added HOST_SQUASHFS_TOOLS_LZ4_SUPPORT config. No changes since version 1

Re: [ptxdist] [PATCH 2/3] gettext: cli/lib install options

2020-07-16 Thread Bruno Thomsen
Den tir. 14. jul. 2020 kl. 18.54 skrev Bruno Thomsen : > > This users to deselect parts not needed, e.g. if you > only need envsubst tool. Typo in commit message. This allows users to deselect parts... > Fixed runtime issue with xgettext missing libtextstyle. > > Signed-off

[ptxdist] [PATCH 4/5] host-squashfs-tools: conditional select lzo and xz dependencies

2020-07-16 Thread Bruno Thomsen
Only select host lzo and host xz packages when needed to speed up complete build time and avoid unnecessary dependencies. Signed-off-by: Bruno Thomsen --- rules/host-squashfs-tools.in | 4 ++-- rules/host-squashfs-tools.make | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff

[ptxdist] [PATCH 2/5] image-root-squashfs: add zstd compression option

2020-07-16 Thread Bruno Thomsen
Set block size and compression level parameters for optimal result by default. BLOCK_SIZE="1M" EXTRA_ARGS="-Xcompression-level 22" It's still very fast on an ordinary laptop. Signed-off-by: Bruno Thomsen --- platforms/image-root-squashfs.in | 11 ++- 1 file ch

[ptxdist] [PATCH 3/5] host-squashfs-tools: add support for zstd contitional

2020-07-16 Thread Bruno Thomsen
Only enable host zstd package dependency when needed, so it doesn't build unnecessary packages. Signed-off-by: Bruno Thomsen --- rules/host-squashfs-tools.in | 1 + rules/host-squashfs-tools.make | 12 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/rules/host

[ptxdist] [PATCH] squashfs-tools: add zstd compression support

2020-07-16 Thread Bruno Thomsen
ZSTD_LIBZSTD is needed runtime and ZSTD is needed compile time. Kconfig options has been separated into build and install options, so it's easier to extend with more e.g. compression types. Signed-off-by: Bruno Thomsen --- rules/squashfs-tools.in | 10 ++ rules/squashfs-tools.make

[ptxdist] [PATCH v2] sqlite: config: enable foreign keys by default

2020-07-16 Thread Bruno Thomsen
Support for foreign_keys pragma is already enabled at compile time. This allows turning on the feature by default on new database connections. Signed-off-by: Bruno Thomsen --- Changes since version 1: - Make parameter a config option. rules/sqlite.in | 8 rules/sqlite.make | 1 + 2

[ptxdist] [PATCH 5/5] host-squashfs-tools: fix lz4 compression option

2020-07-16 Thread Bruno Thomsen
Conditional select host-lz4 package if lz4 compressions is used by image-root-squashfs and enable support in package. Signed-off-by: Bruno Thomsen --- rules/host-squashfs-tools.in | 1 + rules/host-squashfs-tools.make | 1 + 2 files changed, 2 insertions(+) diff --git a/rules/host-squashfs

[ptxdist] [PATCH 1/5] host-zstd: new package

2020-07-16 Thread Bruno Thomsen
This package can be used by squashfs-tools. Signed-off-by: Bruno Thomsen --- rules/host-zstd.in | 6 ++ rules/host-zstd.make | 42 ++ 2 files changed, 48 insertions(+) create mode 100644 rules/host-zstd.in create mode 100644 rules/host-zstd.make

Re: [ptxdist] [PATCH 3/6] chrony: systemd unit option

2020-07-27 Thread Bruno Thomsen
Den fre. 24. jul. 2020 kl. 17.48 skrev Bruno Thomsen : > > Signed-off-by: Bruno Thomsen > --- > rules/chrony.in | 7 +++ > rules/chrony.make | 8 > 2 files changed, 15 insertions(+) > +ifdef PTXCONF_CHRONY_SYSTEMD_UNIT > + @$(call install_alterna

[ptxdist] [PATCH v2 1/5] host-zstd: new package

2020-07-20 Thread Bruno Thomsen
This package can be used by squashfs-tools. Signed-off-by: Bruno Thomsen --- Changes since version 1: Replaced HOST_CMAKE_USR with HOST_CMAKE_OPT rules/host-zstd.in | 6 ++ rules/host-zstd.make | 42 ++ 2 files changed, 48 insertions(+) create

[ptxdist] [PATCH v2 3/5] host-squashfs-tools: add support for zstd contitional

2020-07-20 Thread Bruno Thomsen
Only enable host zstd package dependency when needed, so it doesn't build unnecessary packages. Signed-off-by: Bruno Thomsen --- Changes since version 1: Removed all /usr/local paths changes in HOST_SQUASHFS_TOOLS_MAKE_ENV. This looks cleaner :) rules/host-squashfs-tools.in | 1 + rules/host

[ptxdist] [PATCH v2 2/5] image-root-squashfs: add zstd compression option

2020-07-20 Thread Bruno Thomsen
Set block size and compression level parameters for optimal result by default. BLOCK_SIZE="1M" EXTRA_ARGS="-Xcompression-level 22" It's still very fast on an ordinary laptop. Signed-off-by: Bruno Thomsen --- No changes since version 1. platforms/image-root-squashfs.in

[ptxdist] [PATCH v2 5/5] host-squashfs-tools: fix lz4 compression option

2020-07-20 Thread Bruno Thomsen
Conditional select host-lz4 package if lz4 compressions is used by image-root-squashfs and enable support in package. Signed-off-by: Bruno Thomsen --- No changes since version 1. rules/host-squashfs-tools.in | 1 + rules/host-squashfs-tools.make | 1 + 2 files changed, 2 insertions(+) diff

[ptxdist] [PATCH v2 4/5] host-squashfs-tools: conditional select lzo and xz dependencies

2020-07-20 Thread Bruno Thomsen
Only select host lzo and host xz packages when needed to speed up complete build time and avoid unnecessary dependencies. Signed-off-by: Bruno Thomsen --- No changes since version 1. rules/host-squashfs-tools.in | 4 ++-- rules/host-squashfs-tools.make | 4 ++-- 2 files changed, 4 insertions

[ptxdist] [PATCH v3] modemmanager: config: allow arbitrary AT command via DBus

2020-07-20 Thread Bruno Thomsen
-by: Bruno Thomsen --- Since version 2: mol: DBUS is only a runtime dependency. Since version 1: rhi: use select DBUS dependency. rules/modemmanager.in | 5 + rules/modemmanager.make | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rules/modemmanager.in b/rules

[ptxdist] [PATCH] mmc-utils: version bump b4fe0c8c0e57 -> 73d6c59af8d1

2021-01-11 Thread Bruno Thomsen
upstream in patch: bd23a79e34ec "fix GCC7 build by refactoring trimming routines" Signed-off-by: Bruno Thomsen --- ...rncpy-with-memmove-on-overlapping-me.patch | 34 --- .../mmc-utils-2018-03-27-gb4fe0c8c0e57/series | 4 --- rules/mmc-utils.make |

[ptxdist] [PATCH] tpm2-abrmd.service: remove obsolete StandardOutput parameter

2021-01-11 Thread Bruno Thomsen
-by: Bruno Thomsen --- projectroot/usr/lib/systemd/system/tpm2-abrmd.service | 1 - 1 file changed, 1 deletion(-) diff --git a/projectroot/usr/lib/systemd/system/tpm2-abrmd.service b/projectroot/usr/lib/systemd/system/tpm2-abrmd.service index 5cccace95..2cb923439 100644 --- a/projectroot/usr/lib

Re: [ptxdist] Chrony package option --without-tomcrypt makes chronyc unusable

2021-06-16 Thread Bruno Thomsen
Den ons. 16. jun. 2021 kl. 12.26 skrev Michael Olbrich : > > Hi, > > I don't use chrony myself, so I can just look at the build-system. > > On Tue, Jun 15, 2021 at 11:55:47AM +0200, Mircea Ciocan wrote: > > unless I'm doing something very wrong, the "out of the box" chrony package > > does not

[ptxdist] [PATCH 0/7] OSELAS improve host package help text

2021-06-19 Thread Bruno Thomsen
When build fails during OSELAS.Toolchain compile there are currently help text for required host package on Debian based development systems (DEB based) like Ubuntu. This patch series adds package names for Fedora systems (RPM based) like CentOS Steam or Red Hat Enterprise Linux. Bruno Thomsen (7

<    1   2   3   4   >