mbox series

[0/1] Fix deb-src caching issue

Message ID 20250310115149.1977443-1-srinuvasan.a@siemens.com
Headers show
Series Fix deb-src caching issue | expand

Message

srinuvasan.a March 10, 2025, 11:51 a.m. UTC
From: srinuvasan <srinuvasan.a@siemens.com>

Dear isar-user,

When we enabled the deb-src caching during base-apt creation, we noticed a few deb-src packages missing in the pool.

Missing deb-src packages categorized in the below stages:

	1. bootstrap related deb-src packages

	2. imager related deb-src packages

	3. image rootfs related deb-src packages

	
This regression we found after mmdebstrap migration, this issue addressed in the
below patch series, for more details, please refer to [1].
but here we use the /var/log/dpkg.log file to ensure the parsing of deb (from /var/cache/apt/archive)
is installed or not.

By default, mmdebstrap deletes the /va/log/dpkg.log file and we enabled that option in [1], but
our images are becoming longer reproducible.
Meanwhile, Cedric proposed one change to remove excessive calls to dpkg-deb in debsrc_download,
refer [2].

Here he completely rid of the checking status in /var/log/dpkg.log file and introduced the ftp-aptarchive
to scan all the deb packages and download the src against them, i feel it is more robust and works for
all the stages.

With his patch i validated the deb-src caching, now we can able to download the src packages for bootstrap
and image related packages only missing part here is imager related packages, this one is addressed with a refactor
of my patch 2/3 in [1].

Validated for amd64 and armf, it seems deb-src caching working fine and able to see all the deb-src packages.

I hope the combination of Cedric changes [2] and mine is the better solution for this deb-src caching issue. 

[1]: https://groups.google.com/g/isar-users/c/8QstIaudyts
[2]: https://groups.google.com/g/isar-users/c/OwrSBmCPe0Y

Note: [PATCH 1/1] image: move deb-src-caching functionality after image creation heavily depend on [2].

srinuvasan (1):
  image: move deb-src-caching functionality after image creation

 meta/classes/image.bbclass  | 8 +++++++-
 meta/classes/rootfs.bbclass | 3 ++-
 2 files changed, 9 insertions(+), 2 deletions(-)