lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6a3ce531-d863-40f2-9fe5-ac6fa3c3fb6a@w6rz.net>
Date: Wed, 27 Nov 2024 04:17:03 -0800
From: Ron Economos <re@...z.net>
To: Frank Wunderlich <frank-w@...lic-files.de>, masahiroy@...nel.org
Cc: nicolas@...sle.eu, nathan@...nel.org, linux-kbuild@...r.kernel.org,
 linux-kernel@...r.kernel.org
Subject: Re: Aw: Re: Aw: Re: build issue in builddeb (dpkg-checkbuilddeps:
 error: Unmet build dependencies: libssl-dev) in 6.12

On 11/27/24 02:21, Frank Wunderlich wrote:
> &gt; Gesendet: Mittwoch, 27. November 2024 um 10:10
> &gt; Von: "Ron Economos" <re@...z.net>
> &gt; An: "Frank Wunderlich" <frank-w@...lic-files.de>, masahiroy@...nel.org
> &gt; CC: nicolas@...sle.eu, nathan@...nel.org, linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
> &gt; Betreff: Re: Aw: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12
> &gt;
> &gt; On 11/26/24 09:12, Frank Wunderlich wrote:
> &gt; &gt; &gt; Gesendet: Donnerstag, 21. November 2024 um 23:09
> &gt; &gt; &gt; Von: "Masahiro Yamada" <masahiroy@...nel.org>
> &gt; &gt; &gt; An: "Frank Wunderlich" <frank-w@...lic-files.de>
> &gt; &gt; &gt; CC: re@...z.net, nicolas@...sle.eu, nathan@...nel.org, linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
> &gt; &gt; &gt; Betreff: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12
> &gt; &gt; &gt;
> &gt; &gt; &gt; On Fri, Nov 22, 2024 at 2:09 AM Frank Wunderlich
> &gt; &gt; &gt; <frank-w@...lic-files.de> wrote:
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; Hi,
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; i noticed this issue with debian package build-system in final 6.12.
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; LOCALVERSION=-main board=bpi-r2 ARCH=arm CROSS_COMPILE=ccache arm-linux-gnueabihf-
> &gt; &gt; &gt; &gt; make[1]: Entering directory '/media/data_ext/git/kernel/build'
> &gt; &gt; &gt; &gt;   GEN     debian
> &gt; &gt; &gt; &gt; dpkg-buildpackage --build=binary --no-pre-clean --unsigned-changes -R'make -f debian/rules' -j1 -a$(cat debian/arch)
> &gt; &gt; &gt; &gt; dpkg-buildpackage: info: source package linux-upstream
> &gt; &gt; &gt; &gt; dpkg-buildpackage: info: source version 6.12.0-00061-g837897c10f69-3
> &gt; &gt; &gt; &gt; dpkg-buildpackage: info: source distribution noble
> &gt; &gt; &gt; &gt; dpkg-buildpackage: info: source changed by frank <frank@...nk-u24>
> &gt; &gt; &gt; &gt; dpkg-buildpackage: info: host architecture armhf
> &gt; &gt; &gt; &gt;  dpkg-source --before-build .
> &gt; &gt; &gt; &gt; dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev
> &gt; &gt; &gt;
> &gt; &gt; &gt; This error message means, you need to install "libssl-dev:armhf"
> &gt; &gt; &gt;
> &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
> &gt; &gt; &gt; &gt; dpkg-buildpackage: warning: (Use -d flag to override.)
> &gt; &gt; &gt; &gt; make[3]: *** [/media/data_ext/git/kernel/BPI-R2-4.14/scripts/Makefile.package:126: bindeb-pkg] Error 3
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; it was ok in at least rc1 and libssl-dev is installed
> &gt; &gt; &gt;
> &gt; &gt; &gt;
> &gt; &gt; &gt; Presumably, you already installed libssl-dev for your build machine
> &gt; &gt; &gt; (i.e. "libssl-dev:amd64" if your build machine is x86_64).
> &gt; &gt; &gt;
> &gt; &gt; &gt; But, you have not installed "libssl-dev" for the architecture
> &gt; &gt; &gt; your are building for (i.e, "libssl-dev:armhf")
> &gt; &gt;
> &gt; &gt; Hi
> &gt; &gt;
> &gt; &gt; thank you for answer, why is this lib required for the arch? it makes my pipeline very complex
> &gt; &gt; just to add the repos for the arch...seems the lib is not yet used, only checked if installed.
> &gt; &gt;
> &gt; &gt; looks like ubuntu 24 seems to have changed the sources.list for apt, so there is no single-line to
> &gt; &gt; be added
> &gt; &gt;
> &gt; &gt; this is the default apt-source in ubuntu 24:
> &gt; &gt;
> &gt; &gt; $ cat /etc/apt/sources.list.d/ubuntu.sources
> &gt; &gt; Types: deb
> &gt; &gt; URIs: http://de.archive.ubuntu.com/ubuntu/
> &gt; &gt; Suites: noble noble-updates noble-backports
> &gt; &gt; Components: main restricted universe multiverse
> &gt; &gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
> &gt; &gt;
> &gt; &gt; Types: deb
> &gt; &gt; URIs: http://security.ubuntu.com/ubuntu/
> &gt; &gt; Suites: noble-security
> &gt; &gt; Components: main restricted universe multiverse
> &gt; &gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
> &gt; &gt;
> &gt; &gt; if i just add the arches
> &gt; &gt;
> &gt; &gt; sudo dpkg --add-architecture armhf
> &gt; &gt; sudo dpkg --add-architecture arm64
> &gt; &gt;
> &gt; &gt; apt seems to add the repos on update, but i still cannot install the packages
> &gt; &gt;
> &gt; &gt; $ LANG=C sudo apt install libssl-dev:armhf
> &gt; &gt; Reading package lists... Done
> &gt; &gt; Building dependency tree... Done
> &gt; &gt; Reading state information... Done
> &gt; &gt; E: Unable to locate package libssl-dev:armhf
> &gt; &gt;
> &gt; &gt; $ LANG=C sudo apt install libssl-dev:arm64
> &gt; &gt; Reading package lists... Done
> &gt; &gt; Building dependency tree... Done
> &gt; &gt; Reading state information... Done
> &gt; &gt; E: Unable to locate package libssl-dev:arm64
> &gt; &gt;
> &gt; &gt; if i revert the commit below, my build is successful without installing the lib.
> &gt; &gt;
> &gt; &gt; afaik the -dev are source-packages (headers) which should be architecture independ, or am i missing something?
> &gt; &gt;
> &gt; &gt; regards Frank
> &gt; &gt;
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; basicly i use this command after setting crosscompiler
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make bindeb-pkg
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; if i Revert "kbuild: deb-pkg: add pkg.linux-upstream.nokernelheaders build profile"
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; i can compile again..any idea why this happens? my build-system is ubuntu 24.4 and github actions with ubuntu-latest.
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; https://github.com/frank-w/BPI-Router-Linux/actions/runs/11955322294/job/33327423877
> &gt; &gt; &gt; &gt;
> &gt; &gt; &gt; &gt; regards Frank</frank@...nk-u24>
> &gt; &gt; &gt;
> &gt; &gt; &gt;
> &gt; &gt; &gt;
> &gt; &gt; &gt; --
> &gt; &gt; &gt; Best Regards
> &gt; &gt; &gt; Masahiro Yamada
> &gt;
> &gt; Here's what worked for me in /etc/apt/sources.list.d/ubuntu.sources for
> &gt; 24.04.
> &gt;
> &gt; Types: deb
> &gt; URIs: http://ports.ubuntu.com/ubuntu-ports
> &gt; Suites: noble noble-updates noble-backports
> &gt; Components: main universe restricted multiverse
> &gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
> &gt; Architectures: riscv64
> &gt;
> thx for ubuntu 24 i have it done similar (took the whole day to get both systems to the point apt-sources to be added the right way), had to modify the ubuntu.sources to add the arch for host system (amd64) and add additional file with ports.ubuntu.com for the crosscompile-target (armhf/arm64)
>
> https://github.com/frank-w/BPI-Router-Linux/actions/runs/12047237222/job/33589357798#step:6:1
>
> tried most time to get current ubuntu-latest for github actions running which is still ubuntu-22.04, but ran into installing issues where libssl3 cannot be installed for the desired arch...if i add it manually it depends on libc for the arch and so on...
>
> example for ubuntu-latest / ubuntu-22.04
> https://github.com/frank-w/BPI-Router-Linux/actions/runs/12038757178/job/33565113600
>
> https://github.com/frank-w/BPI-Router-Linux/actions/runs/12038757178/workflow#L56
>
> &gt; The library is used here:
> &gt;
> &gt; https://github.com/torvalds/linux/blob/master/scripts/sign-file.c#L25
> &gt;
> &gt; That file is now cross-compiled.
>
> but why needs signing-file to be crosscompiled? the target files (kernel and maybe the deb-file) have to be crosscompiled, but imho
> not tools for signing them. After building kernel for target-arch and creating deb isn't it possible to sign it using a amd64 (host
> arch) openssl binary? the openssl-binary does not land on target-platform...only used as part of build-chain, or am i wrong?
>
> btw. not sure why my webmailer creates html-tags in plaintext-mails...have reported it to the vendor, but not got any response yet, so
> sorry for that (have replaced quote-chars manually, hope they stay as single chars and not reconverted to entities).
>
> regards Frank
> </frank-w@...lic-files.de></frank-w@...lic-files.de></masahiroy@...nel.org></frank-w@...lic-files.de></re@...z.net>

sign-file is a target executable. When you install the 
linux-headers-6.12.0xxx_arch.deb, it ends up in 
/usr/src/linux-headers-6.12.0/scripts on the target.

That's what this change is all about. In the past, the executables in 
/usr/src/linux-headers-xxx/scripts were being compiled for x86, not the 
target architecture.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ