mbox series

[v2,0/5] More kbuild improvements, single-build source packages, cross profile fix

Message ID cover.1715771298.git.jan.kiszka@siemens.com
Headers show
Series More kbuild improvements, single-build source packages, cross profile fix | expand

Message

Jan Kiszka May 15, 2024, 11:08 a.m. UTC
This depends on [1] and replaces [2].

Jan

[1] https://patchwork.isar-build.org/project/isar/list/?series=1184
[2] https://patchwork.isar-build.org/project/isar/list/?series=1171

Jan Kiszka (5):
  dpkg-base: Fix enabling of cross build profile
  linux-custom: Model cross-built kbuild package separately
  linux-custom: Resolve native source package differences
  dpkg: Retrieve Debian source name from variable
  dpkg-source: Build source package only once

 meta/classes/dpkg-base.bbclass                |  2 +-
 meta/classes/dpkg-source.bbclass              | 60 ++++++++++++++++---
 meta/classes/dpkg.bbclass                     |  3 +-
 .../linux/files/debian/control.tmpl           | 12 +++-
 .../linux/files/debian/isar/common.tmpl       |  2 +
 .../linux/files/debian/isar/install.tmpl      |  6 +-
 meta/recipes-kernel/linux/linux-custom.inc    |  8 +--
 7 files changed, 77 insertions(+), 16 deletions(-)

Comments

Jan Kiszka May 16, 2024, 4:37 p.m. UTC | #1
On 15.05.24 19:40, 'Jan Kiszka' via isar-users wrote:
> On 15.05.24 15:47, Koch, Stefan (DI PA DCP R&D 3) wrote:
>> Since applying this series, I get this build error:
>>
>> ERROR: linux-audis-kbuildtarget-5.10.209-audis-rtp-r0 do_dpkg_build:
>> ExecutionError('/home/z003jsce/kbuildboards/build/tmp/work/audis-
>> bullseye-latest-arm64/linux-audis-kbuildtarget/5.10.209-audis-rtp-
>> r0/temp/run.dpkg_runbuild.77935', 1, None, None)
>> ERROR: Logfile of failure stored in:
>> /home/z003jsce/kbuildboards/build/tmp/work/audis-bullseye-latest-
>> arm64/linux-audis-kbuildtarget/5.10.209-audis-rtp-
>> r0/temp/log.do_dpkg_build.77935
>> Log data follows:
>> | DEBUG: Executing python function sstate_task_prefunc
>> | DEBUG: Python function sstate_task_prefunc finished
>> | DEBUG: Executing python function do_dpkg_build
>> | DEBUG: Executing shell function dpkg_schroot_create_configs
>> | Creating /etc/schroot/chroot.d/isar-builder-cbda93bb-87d8-4b8d-ae73-
>> 2495897f4aaf-77935
>> | DEBUG: Shell function dpkg_schroot_create_configs finished
>> | DEBUG: Executing shell function dpkg_runbuild
>> | WARNING: Export of 'CCACHE_UMASK=000' detected, please migrate to
>> templates
>> | dpkg-parsechangelog: error: cannot open file
>> /home/z003jsce/kbuildboards/build/debian/changelog: No such file or
>> directory
>> | E: Could not parse
>> /home/z003jsce/kbuildboards/build/debian/changelog:
>> | WARNING: exit code 1 from a shell command.
>> | DEBUG: Executing shell function schroot_delete_configs
>> | Removing /etc/schroot/isar-builder-cbda93bb-87d8-4b8d-ae73-
>> 2495897f4aaf-77935
>> | Removing /etc/schroot/chroot.d/isar-builder-cbda93bb-87d8-4b8d-ae73-
>> 2495897f4aaf-77935
>> | DEBUG: Shell function schroot_delete_configs finished
>> | DEBUG: Python function do_dpkg_build finished
>> ERROR: Task
>> (virtual:kbuildtarget:/home/z003jsce/kbuildboards/build/../audis-
>> isar/recipes-kernel/linux/linux-audis.bb:do_dpkg_build) failed with
>> exit code '1'
>> NOTE: Tasks Summary: Attempted 97 tasks of which 0 didn't need to be
>> rerun and 1 failed.
>>
> 
> Can you find a reproduction path with upstream? Or identify the required
> modification for it to trigger this? I suspect some downstream kernel
> recipe bits play an central role because we no longer run
> dpkg-parsechangelog in upstream do_dpkg_build.
> 

Were you able to clarify what is needed to trigger this? As this series
fixes the remaining issues of the kbuild changes (to my best knowledge),
it would be good to have them ready ASAP.

Jan
Koch, Stefan May 17, 2024, 9:03 a.m. UTC | #2
On Thu, 2024-05-16 at 18:37 +0200, Jan Kiszka wrote:
> On 15.05.24 19:40, 'Jan Kiszka' via isar-users wrote:
> > On 15.05.24 15:47, Koch, Stefan (DI PA DCP R&D 3) wrote:
> > > Since applying this series, I get this build error:
> > > 
> > > ERROR: linux-audis-kbuildtarget-5.10.209-audis-rtp-r0
> > > do_dpkg_build:
> > > ExecutionError('/home/z003jsce/kbuildboards/build/tmp/work/audis-
> > > bullseye-latest-arm64/linux-audis-kbuildtarget/5.10.209-audis-
> > > rtp-
> > > r0/temp/run.dpkg_runbuild.77935', 1, None, None)
> > > ERROR: Logfile of failure stored in:
> > > /home/z003jsce/kbuildboards/build/tmp/work/audis-bullseye-latest-
> > > arm64/linux-audis-kbuildtarget/5.10.209-audis-rtp-
> > > r0/temp/log.do_dpkg_build.77935
> > > Log data follows:
> > > > DEBUG: Executing python function sstate_task_prefunc
> > > > DEBUG: Python function sstate_task_prefunc finished
> > > > DEBUG: Executing python function do_dpkg_build
> > > > DEBUG: Executing shell function dpkg_schroot_create_configs
> > > > Creating /etc/schroot/chroot.d/isar-builder-cbda93bb-87d8-4b8d-
> > > > ae73-
> > > 2495897f4aaf-77935
> > > > DEBUG: Shell function dpkg_schroot_create_configs finished
> > > > DEBUG: Executing shell function dpkg_runbuild
> > > > WARNING: Export of 'CCACHE_UMASK=000' detected, please migrate
> > > > to
> > > templates
> > > > dpkg-parsechangelog: error: cannot open file
> > > /home/z003jsce/kbuildboards/build/debian/changelog: No such file
> > > or
> > > directory
> > > > E: Could not parse
> > > /home/z003jsce/kbuildboards/build/debian/changelog:
> > > > WARNING: exit code 1 from a shell command.
> > > > DEBUG: Executing shell function schroot_delete_configs
> > > > Removing /etc/schroot/isar-builder-cbda93bb-87d8-4b8d-ae73-
> > > 2495897f4aaf-77935
> > > > Removing /etc/schroot/chroot.d/isar-builder-cbda93bb-87d8-4b8d-
> > > > ae73-
> > > 2495897f4aaf-77935
> > > > DEBUG: Shell function schroot_delete_configs finished
> > > > DEBUG: Python function do_dpkg_build finished
> > > ERROR: Task
> > > (virtual:kbuildtarget:/home/z003jsce/kbuildboards/build/../audis-
> > > isar/recipes-kernel/linux/linux-audis.bb:do_dpkg_build) failed
> > > with
> > > exit code '1'
> > > NOTE: Tasks Summary: Attempted 97 tasks of which 0 didn't need to
> > > be
> > > rerun and 1 failed.
> > > 
> > 
> > Can you find a reproduction path with upstream? Or identify the
> > required
> > modification for it to trigger this? I suspect some downstream
> > kernel
> > recipe bits play an central role because we no longer run
> > dpkg-parsechangelog in upstream do_dpkg_build.
> > 
> 
> Were you able to clarify what is needed to trigger this? As this
> series
> fixes the remaining issues of the kbuild changes (to my best
> knowledge),
> it would be good to have them ready ASAP.
> 

The issue seems to come only with commit:
dpkg-source: Build source package only once

But it still needs deeper investigation.


> Jan
>