[OE-core] [PATCH v2] classes: Move package RDEPENDS processing out of debian.bbclass

2023-11-03 Thread Sergey Zhmylev
From: Sergei Zhmylev INHERIT_DIRSTO by default includes debian.bbclass which in turn properly establishes dependencies between package management tasks and build process. Debian class also unconditionally renames several packages in a Debian way. In order to allow disabling of such renaming

[OE-core] [PATCH] classes: Move package RDEPENDS processing out of debian.bbclass

2023-11-03 Thread Sergey Zhmylev
From: Sergei Zhmylev INHERIT_DIRSTO by default includes debian.bbclass which in turn properly establishes dependencies between package management tasks and build process. Debian class also unconditionally renames several packages in a Debian way. In order to allow disabling of such renaming

[OE-core] [PATCH] wic: add support for proper kernel name to bootimg-pcbios

2023-04-17 Thread Sergey Zhmylev
From: Sergei Zhmylev Use appropriate kernel image name instead of hard-coded vmlinuz for bootimg-pcbios plugin. Signed-off-by: Sergei Zhmylev --- scripts/lib/wic/plugins/source/bootimg-pcbios.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [OE-core] [PATCH] meson: use TRANSLATED_TARGET_ARCH in cross builds

2023-01-19 Thread Sergey Zhmylev
Accidentally I've sent an incomplete patch, please ignore. Sergei On Thu, 2023-01-19 at 15:10 +0300, Sergey Zhmylev wrote: > From: Sergei Zhmylev > > TARGET_ARCH for most of x86_64 machines sets additional > -march parameter in meson configuration, which is not supported &g

[OE-core] [PATCH] meson: use TRANSLATED_TARGET_ARCH in cross builds

2023-01-19 Thread Sergey Zhmylev
From: Sergei Zhmylev TARGET_ARCH for most of x86_64 machines sets additional -march parameter in meson configuration, which is not supported during build and several meson recipes fail. The patch makes meson.bbclass use TRANSLATED_TARGET_ARCH instead of TARGET_ARCH in order to properly set

Re: [OE-core] [PATCH] package_rpm: allow arch overriding

2023-01-13 Thread Sergey Zhmylev
> > What is the use-case for this level of control then, and why would it > be specific to RPM? > Despite Alexander's words about this document, most of (I suppose, actually all) wide-used rpm-based distros use the same well-known rpm packages naming convention: red hat, opensuse, centos,

Re: [OE-core] [PATCH] package_rpm: allow arch overriding

2023-01-13 Thread Sergey Zhmylev
> One more thing I want to mention is that if you want to align the > architectures so that you can install RPMs from Fedora, RHEL or any > other RPM-based binary distro, don't. It's not going to work at all, > or will cause you lots of pain and suffering. We use rpm for its > packaging and

Re: [OE-core] [PATCH] package_rpm: allow arch overriding

2023-01-13 Thread Sergey Zhmylev
Alexander Kanavin wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Fri, 13 Jan 2023 at 09:25, Sergey Zhmylev > wrote: > > > > Exactly! Even more: when I build for "genericx86_64", I get mix of > > packages with architecture one of: "x86_

Re: [OE-core] [PATCH] package_rpm: allow arch overriding

2023-01-13 Thread Sergey Zhmylev
t wishes, Sergei Zhmylev Engineering consultant OS development department On Thu, 2023-01-12 at 22:32 +, Richard Purdie wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Fri, 2023-01-13 at 00:33 +0300, Sergey Zhmylev wrote: > > From: Sergei Zhmylev >

[OE-core] [PATCH] package_rpm: allow arch overriding

2023-01-12 Thread Sergey Zhmylev
From: Sergei Zhmylev Currently arch is being calculated from either MACHINE_ARCH or TUNE_PKGARCH. Some recipes do override PACKAGE_ARCH intentionally. This commit makes possible to override ARCH for RPM packages separately in order to simplify common rpm naming conformance. Signed-off-by:

[OE-core] [PATCH] oeqa/qemurunner: implement vmdk images support

2022-11-18 Thread Sergey Zhmylev
From: Sergei Zhmylev Qemurunner should not pass rootfs to runqemu in case rootfs is not a filesystem itself. Some images could be built into some disk format like vmdk and this commit makes qemurunner handle such images properly. Signed-off-by: Sergei Zhmylev ---

Re: [OE-core] [PATCH] wic: implement bootloader --password

2022-11-15 Thread Sergey Zhmylev
ovided through command line? > > Alex > > On Tue, 15 Nov 2022 at 15:40, Sergey Zhmylev > wrote: > > > > From: Sergei Zhmylev > > > > Currently the only way to specify a password for bootloader > > is to supply a complete user-defined bootloade

[OE-core] [PATCH] wic: implement bootloader --password

2022-11-15 Thread Sergey Zhmylev
From: Sergei Zhmylev Currently the only way to specify a password for bootloader is to supply a complete user-defined bootloader config file to the build process. This patch introduces a --password paramenter in order to simplify bootloaders hardening. Signed-off-by: Sergei Zhmylev ---

[OE-core] [PATCH v3] wic: make ext2/3/4 images reproducible

2022-11-07 Thread Sergey Zhmylev
From: Sergei Zhmylev Ext2/3/4 FS contains not only mtime, but also ctime, atime and crtime. Currently, all the files are being added into the rootfs image using mkfs -d functionality which affects all the timestamps excluding mtime. This patch ensures these timestamps inside the FS image equal

Re: [OE-core] [PATCH v2] wic: make ext2/3/4 images reproducible

2022-11-07 Thread Sergey Zhmylev
о от внешнего адресата!» > > Since this is v2, and v1 was controversial, it is good practice to > document the differences with v1. > > Alex > > On Mon, 7 Nov 2022 at 14:54, Sergey Zhmylev > wrote: > > > > From: Sergei Zhmylev > > > > Ext2/3/4 FS

[OE-core] [PATCH v2] wic: make ext2/3/4 images reproducible

2022-11-07 Thread Sergey Zhmylev
From: Sergei Zhmylev Ext2/3/4 FS contains not only mtime, but also ctime, atime and crtime. Currently, all the files are being added into the rootfs image using mkfs -d functionality which affects all the timestamps excluding mtime. This patch ensures all the timestamps inside the FS image equal

Re: [OE-core] [PATCH] wic: make ext2/3/4 images reproducible

2022-11-04 Thread Sergey Zhmylev
Zhmylev Engineering consultant OS development department On Fri, 2022-11-04 at 11:16 +0000, Sergey Zhmylev wrote: > On Thu, 2022-11-03 at 21:51 +, Richard Purdie wrote: > > > > On Thu, 2022-11-03 at 18:53 +, Sergey Zhmylev wrote: > > > Hi Richard, > > > > >

Re: [OE-core] [PATCH] wic: make ext2/3/4 images reproducible

2022-11-04 Thread Sergey Zhmylev
On Thu, 2022-11-03 at 21:51 +, Richard Purdie wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Thu, 2022-11-03 at 18:53 +0000, Sergey Zhmylev wrote: > > Hi Richard, > > > > Thank you for the comment! > > Well, the environment described in repro

Re: [OE-core] [PATCH] wic: make ext2/3/4 images reproducible

2022-11-03 Thread Sergey Zhmylev
Zhmylev Engineering consultant OS development department В Чт, 03/11/2022 в 16:05 +, Richard Purdie пишет: On Thu, 2022-11-03 at 18:26 +0300, Sergey Zhmylev wrote: From: Sergei Zhmylev mailto:s.zhmy...@yadro.com>> Ext2/3/4 FS contains not only mtime, but also ctime, atime and

[OE-core] [PATCH] wic: make ext2/3/4 images reproducible

2022-11-03 Thread Sergey Zhmylev
From: Sergei Zhmylev Ext2/3/4 FS contains not only mtime, but also ctime, atime and crtime. Currently, all the files are being added into the rootfs image using mkfs -d functionality which affects all the timestamps excluding mtime. This patch ensures all the timestamps inside the FS image equal

Re: [OE-core] [PATCH] wic: swap partitions are not added to fstab

2022-10-28 Thread Sergey Zhmylev
The commit you're reffering to is absent: https://git.yoctoproject.org/poky/commit/?id=7aa678ce804c21dc1dc51b9be442671bc33c4041 It does not exist either in poky-contrib and on github. BTW I've sent you the snippet from systemd build which shows that swap partition is still being used despite

Re: [OE-core] [PATCH] wic: swap partitions are not added to fstab

2022-10-28 Thread Sergey Zhmylev
Hi Ciaran, Thank you for the patch! What for do you need swap in fstab? It works perfectly out of the box without fstab entry: root@genericx86-64:~# grep swap /etc/fstab root@genericx86-64:~# cat /proc/swaps Filename

[OE-core] [PATCH v3] wic: honor the SOURCE_DATE_EPOCH in case of updated fstab

2022-10-21 Thread Sergey Zhmylev
From: Sergei Zhmylev In case user requested to build a binary repeatable package, it's required to honor the SOURCE_DATE_EPOCH environment variable. So forcefully set mtime inside all the routines which modify fstab in case it is updated. Signed-off-by: Sergei Zhmylev ---

[OE-core] [PATCH v2] wic: honor the SOURCE_DATE_EPOCH in case of updated fstab

2022-10-13 Thread Sergey Zhmylev
From: Sergei Zhmylev In case user requested to build a binary repeatable package, it's required to honor the SOURCE_DATE_EPOCH environment variable. So forcefully set mtime inside all the routines which modify fstab in case it is updated. Signed-off-by: Sergei Zhmylev ---

[OE-core] [PATCH] wic: implement binary repeatable disk identifiers

2022-10-13 Thread Sergey Zhmylev
From: Sergei Zhmylev When SOURCE_DATE_EPOCH variable is set, binary repeatable build is expected. This commit implements reproducable disk identifiers in such a case using its value as a Random seed. Signed-off-by: Sergei Zhmylev --- scripts/lib/wic/plugins/imager/direct.py | 5 - 1 file

[OE-core] [PATCH] wic: honor the SOURCE_DATE_EPOCH in case of updated fstab

2022-10-12 Thread Sergey Zhmylev
From: Sergei Zhmylev In case user requested to build a binary repeatable package, it's required to honor the SOURCE_DATE_EPOCH environment variable. So forcefully set mtime inside all the routines which modify fstab in case it is updated. Signed-off-by: Sergei Zhmylev ---