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] [thread-next>] [day] [month] [year] [list]
Message-ID: <e55645d9-6e50-4b1b-b413-6a0f5acb6095@w6rz.net>
Date: Wed, 27 Nov 2024 01:10:05 -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: build issue in builddeb (dpkg-checkbuilddeps: error:
 Unmet build dependencies: libssl-dev) in 6.12

On 11/26/24 09:12, Frank Wunderlich wrote:
> &gt; Gesendet: Donnerstag, 21. November 2024 um 23:09
> &gt; Von: "Masahiro Yamada" <masahiroy@...nel.org>
> &gt; An: "Frank Wunderlich" <frank-w@...lic-files.de>
> &gt; CC: re@...z.net, nicolas@...sle.eu, nathan@...nel.org, linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
> &gt; Betreff: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12
> &gt;
> &gt; On Fri, Nov 22, 2024 at 2:09 AM Frank Wunderlich
> &gt; <frank-w@...lic-files.de> wrote:
> &gt; &gt;
> &gt; &gt; Hi,
> &gt; &gt;
> &gt; &gt; i noticed this issue with debian package build-system in final 6.12.
> &gt; &gt;
> &gt; &gt; LOCALVERSION=-main board=bpi-r2 ARCH=arm CROSS_COMPILE=ccache arm-linux-gnueabihf-
> &gt; &gt; make[1]: Entering directory '/media/data_ext/git/kernel/build'
> &gt; &gt;   GEN     debian
> &gt; &gt; dpkg-buildpackage --build=binary --no-pre-clean --unsigned-changes -R'make -f debian/rules' -j1 -a$(cat debian/arch)
> &gt; &gt; dpkg-buildpackage: info: source package linux-upstream
> &gt; &gt; dpkg-buildpackage: info: source version 6.12.0-00061-g837897c10f69-3
> &gt; &gt; dpkg-buildpackage: info: source distribution noble
> &gt; &gt; dpkg-buildpackage: info: source changed by frank <frank@...nk-u24>
> &gt; &gt; dpkg-buildpackage: info: host architecture armhf
> &gt; &gt;  dpkg-source --before-build .
> &gt; &gt; dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev
> &gt;
> &gt; This error message means, you need to install "libssl-dev:armhf"
> &gt;
> &gt;
> &gt; &gt; dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
> &gt; &gt; dpkg-buildpackage: warning: (Use -d flag to override.)
> &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; it was ok in at least rc1 and libssl-dev is installed
> &gt;
> &gt;
> &gt; Presumably, you already installed libssl-dev for your build machine
> &gt; (i.e. "libssl-dev:amd64" if your build machine is x86_64).
> &gt;
> &gt; But, you have not installed "libssl-dev" for the architecture
> &gt; your are building for (i.e, "libssl-dev:armhf")
>
> Hi
>
> thank you for answer, why is this lib required for the arch? it makes my pipeline very complex
> just to add the repos for the arch...seems the lib is not yet used, only checked if installed.
>
> looks like ubuntu 24 seems to have changed the sources.list for apt, so there is no single-line to
> be added
>
> this is the default apt-source in ubuntu 24:
>
> $ cat /etc/apt/sources.list.d/ubuntu.sources
> Types: deb
> URIs: http://de.archive.ubuntu.com/ubuntu/
> Suites: noble noble-updates noble-backports
> Components: main restricted universe multiverse
> Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
>
> Types: deb
> URIs: http://security.ubuntu.com/ubuntu/
> Suites: noble-security
> Components: main restricted universe multiverse
> Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
>
> if i just add the arches
>
> sudo dpkg --add-architecture armhf
> sudo dpkg --add-architecture arm64
>
> apt seems to add the repos on update, but i still cannot install the packages
>
> $ LANG=C sudo apt install libssl-dev:armhf
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> E: Unable to locate package libssl-dev:armhf
>
> $ LANG=C sudo apt install libssl-dev:arm64
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> E: Unable to locate package libssl-dev:arm64
>
> if i revert the commit below, my build is successful without installing the lib.
>
> afaik the -dev are source-packages (headers) which should be architecture independ, or am i missing something?
>
> regards Frank
>
> &gt; &gt;
> &gt; &gt; basicly i use this command after setting crosscompiler
> &gt; &gt;
> &gt; &gt; LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make bindeb-pkg
> &gt; &gt;
> &gt; &gt; if i Revert "kbuild: deb-pkg: add pkg.linux-upstream.nokernelheaders build profile"
> &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; https://github.com/frank-w/BPI-Router-Linux/actions/runs/11955322294/job/33327423877
> &gt; &gt;
> &gt; &gt; regards Frank</frank@...nk-u24>
> &gt;
> &gt;
> &gt;
> &gt; --
> &gt; Best Regards
> &gt; Masahiro Yamada
> &gt; </frank-w@...lic-files.de></frank-w@...lic-files.de></masahiroy@...nel.org>

Here's what worked for me in /etc/apt/sources.list.d/ubuntu.sources for 
24.04.

Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Architectures: riscv64

The library is used here:

https://github.com/torvalds/linux/blob/master/scripts/sign-file.c#L25

That file is now cross-compiled.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ