Closed schlatterbeck closed 8 months ago
I'm building a kernel package using the deb-pkg target in the mainline kernel ...
But Elbe complains (in log.txt when downloading files after failed build): [ERROR]No sources for package 'linux-upstream-6.1.42+-1': No source found for linux-upstream_6.1.42+-1
It is known that the deb-pkg target in mainline Linux does not produce proper Debian packages. This should be fixed in mainline Linux.
It looks like it is searching for the orig.tar.gz with the '-1' in the name. Unfortunately the default when building a kernel package using the mainline deb-pkg target does not include '-1'.
It is correct that the '-1' is not in the orig name. The problem is the debianization from the deb-pkg target.
On Tue, Aug 01, 2023 at 05:41:03AM -0700, John Ogness wrote:
I'm building a kernel package using the deb-pkg target in the mainline kernel ...
But Elbe complains (in log.txt when downloading files after failed build): [ERROR]No sources for package 'linux-upstream-6.1.42+-1': No source found for linux-upstream_6.1.42+-1
It is known that the deb-pkg target in mainline Linux does not produce proper Debian packages. This should be fixed in mainline Linux.
Hmm, I've traced today all the debian-repo format and the parsing in Elbe and it seems it should be compatible. Elbe should correctly parse the 'Files' section in the Sources. And the filename appears correctly there.
But it seems that Elbe doesn't recognize my Repo as having sources. In /var/cache/elbe/[uid]/chroot/etc/apt/sources.list in the elbe VM I have:
deb-src [trusted=yes] http://bee.priv.zoo/debian bookworm main deb [trusted=yes arch=armhf] http://bee.priv.zoo/debian bookworm main deb [trusted=yes] http://bee.priv.zoo/debian bookworm-updates main deb [trusted=yes] http://cat.priv.zoo:9999/debian-dist bookworm main
where the bee.priv.zoo urls are my local debian repo (also listed as
primary_host in the
The entry for cat.priv.zoo:9999 in the xml is
Maybe I need to add something there so that the sources are also used? Note that the sources work for that repo, when I add this manually to sources.list I can successfully download sources.
So it seems to be a problem of the configuration of the sources not the file names, at least downloading the sources is not tried at all currently.
Maybe I'm missing something in the elbe config (but I think this used to work in an older version, or missing sources did not fail the build previously)
Thanks Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: www.runtux.com Reichergasse 131, A-3411 Weidling email: @.***
The source repositories must be specified. See https://github.com/Linutronix/elbe/blob/master/examples/armhf-ubuntu.xml#L23 as an example.
I've now added the source repos to my XML spec and it works as expected: I get a successful build.
But: Specifying the same URL twice, first in the <binary>
and then in the <source>
tag seems redundant.
Is it possible that previous version of ELBE used the URL in <binary>
as the default also for <source>
?
Also why is it guessing the source URL correctly for the <primary_host>
in section <mirror>
but not for the other URLs???
At least with the previous configuration, the build was not failing with older versions of ELBE (probably as far back as debian old-old-stable aka buster), so either the missing source for the kernel was ignored (and the build succeeded anyway) or the source URL was guessed somehow.
I think we can close this after some clarifications, I really want to find out why this worked previously. And at least the kernel's deb-pkg target is not in error.
I'm building a kernel package using the deb-pkg target in the mainline kernel (in fact 6.1.42 from Greg KH's stable series with a set of my own patches, that's where the '+' in the version comes from). This is put into my own debian-dist.
This produces
And for the sources:
Note the missing '-1' in the orig.tar.gz
All binary packages have a header line
Source: linux-upstream
And the 'Sources' file in the debian mirror has
But Elbe complains (in log.txt when downloading files after failed build): [ERROR]No sources for package 'linux-upstream-6.1.42+-1': No source found for linux-upstream_6.1.42+-1
It looks like it is searching for the orig.tar.gz with the '-1' in the name. Unfortunately the default when building a kernel package using the mainline deb-pkg target does not include '-1'. So Elbe probably should properly use the 'Files' entry in the Sources file when considering source files.
If the '-1' is not the reason for that error message, please let me know how I can diagnose this.