public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* Is it safe to remove debconf cache files in isar system
@ 2021-12-16  7:47 Venkata.Pyla
  2021-12-17 16:56 ` Anton Mikanovich
  2022-02-14 19:35 ` Venkata.Pyla
  0 siblings, 2 replies; 4+ messages in thread
From: Venkata.Pyla @ 2021-12-16  7:47 UTC (permalink / raw)
  To: isar-users; +Cc: henning.schild, jan.kiszka, dinesh.kumar, kazuhiro3.hayashi

Hi,

I am working to fix some reproducible build failures in isar system, as part of this I wanted to know some ideas to fix it.

I am checking the reproducible failures as below:
 $ cd isar
 $ . isar-init-build-env build1 && bitbake mc:qemuamd64-buster-tgz:isar-image-base
 $ . isar-init-build-env build2 && bitbake mc:qemuamd64-buster-tgz:isar-image-base
 $ mkdir -p rootfs1 rootfs2
 $ tar -xzvf ./build1/tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-qemuamd64.tar.gz -C ./rootfs1/
 $ tar -xzvf ./build2/tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-qemuamd64.tar.gz -C ./rootfs2/
 $ rsync -nrclv ./rootfs1/ ./rootfs2/ > difference.txt

Below is one reproducible problem I picked:
In debconf db file the contents were different after two subsequent builds,

Part of the debconf db file where the difference is found (/var/cache/debconf/config.dat)
Build1:
Name: ucf/changeprompt
Template: ucf/changeprompt
Value: keep_current
Owners: ucf
Variables:
 BASENAME = locale.nopurge
 FILE = /etc/locale.nopurge
 NEW = /etc/locale.nopurge.29308

Build2:
Name: ucf/changeprompt
Template: ucf/changeprompt
Value: keep_current
Owners: ucf
Variables:
 BASENAME = locale.nopurge
 FILE = /etc/locale.nopurge
 NEW = /etc/locale.nopurge.19132

The probable solution I am thinking of is:
1. remove the debconf cache files (rm -f /var/cache/debconf/*)
2. Fix the debconf in such a way it generates same package configuration on every build

The first solution is easy, but I am worried if those package configuration files maybe required in future when the package is updating
The second solution would need more investigation at debconf package side. 

Any ideas or suggestion would be very grateful.

Thanks,
Venkata.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it safe to remove debconf cache files in isar system
  2021-12-16  7:47 Is it safe to remove debconf cache files in isar system Venkata.Pyla
@ 2021-12-17 16:56 ` Anton Mikanovich
  2022-02-14 19:35 ` Venkata.Pyla
  1 sibling, 0 replies; 4+ messages in thread
From: Anton Mikanovich @ 2021-12-17 16:56 UTC (permalink / raw)
  To: Venkata.Pyla, isar-users
  Cc: henning.schild, jan.kiszka, dinesh.kumar, kazuhiro3.hayashi,
	Baurzhan Ismagulov

16.12.2021 10:47, Venkata.Pyla@toshiba-tsip.com wrote:
> Hi,
>
> I am working to fix some reproducible build failures in isar system, as part of this I wanted to know some ideas to fix it.
>
> I am checking the reproducible failures as below:
>   $ cd isar
>   $ . isar-init-build-env build1 && bitbake mc:qemuamd64-buster-tgz:isar-image-base
>   $ . isar-init-build-env build2 && bitbake mc:qemuamd64-buster-tgz:isar-image-base
>   $ mkdir -p rootfs1 rootfs2
>   $ tar -xzvf ./build1/tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-qemuamd64.tar.gz -C ./rootfs1/
>   $ tar -xzvf ./build2/tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-qemuamd64.tar.gz -C ./rootfs2/
>   $ rsync -nrclv ./rootfs1/ ./rootfs2/ > difference.txt
>
> Below is one reproducible problem I picked:
> In debconf db file the contents were different after two subsequent builds,
>
> Part of the debconf db file where the difference is found (/var/cache/debconf/config.dat)
> Build1:
> Name: ucf/changeprompt
> Template: ucf/changeprompt
> Value: keep_current
> Owners: ucf
> Variables:
>   BASENAME = locale.nopurge
>   FILE = /etc/locale.nopurge
>   NEW = /etc/locale.nopurge.29308
>
> Build2:
> Name: ucf/changeprompt
> Template: ucf/changeprompt
> Value: keep_current
> Owners: ucf
> Variables:
>   BASENAME = locale.nopurge
>   FILE = /etc/locale.nopurge
>   NEW = /etc/locale.nopurge.19132
>
> The probable solution I am thinking of is:
> 1. remove the debconf cache files (rm -f /var/cache/debconf/*)
> 2. Fix the debconf in such a way it generates same package configuration on every build
>
> The first solution is easy, but I am worried if those package configuration files maybe required in future when the package is updating
> The second solution would need more investigation at debconf package side.
>
> Any ideas or suggestion would be very grateful.
>
> Thanks,
> Venkata.
>
Because both questions are not really Isar-related, but more 
Debian-related, maybe it's better to duplicate them on 
debian-user@lists.debian.org ?

-- 
Anton Mikanovich
Promwad Ltd.
External service provider of ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn, Germany
+49 (89) 122 67 24-0
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Is it safe to remove debconf cache files in isar system
  2021-12-16  7:47 Is it safe to remove debconf cache files in isar system Venkata.Pyla
  2021-12-17 16:56 ` Anton Mikanovich
@ 2022-02-14 19:35 ` Venkata.Pyla
  2022-02-15 16:13   ` Baurzhan Ismagulov
  1 sibling, 1 reply; 4+ messages in thread
From: Venkata.Pyla @ 2022-02-14 19:35 UTC (permalink / raw)
  To: cip-dev
  Cc: henning.schild, jan.kiszka, dinesh.kumar, kazuhiro3.hayashi, isar-users

Hi,

Resending this question in cip-dev mailing list

Thanks,
Venkata.

>-----Original Message-----
>From: pyla venkata(TSIP)
>Sent: 16 December 2021 13:17
>To: isar-users@googlegroups.com
>Cc: henning.schild@siemens.com; Jan Kiszka <jan.kiszka@siemens.com>; dinesh
>kumar(TSIP) <dinesh.kumar@toshiba-tsip.com>; hayashi kazuhiro(林 和宏
>□SWC◯ACT) <kazuhiro3.hayashi@toshiba.co.jp>
>Subject: Is it safe to remove debconf cache files in isar system
>
>Hi,
>
>I am working to fix some reproducible build failures in isar system, as part of
>this I wanted to know some ideas to fix it.
>
>I am checking the reproducible failures as below:
> $ cd isar
> $ . isar-init-build-env build1 && bitbake mc:qemuamd64-buster-tgz:isar-image-
>base
> $ . isar-init-build-env build2 && bitbake mc:qemuamd64-buster-tgz:isar-image-
>base
> $ mkdir -p rootfs1 rootfs2
> $ tar -xzvf ./build1/tmp/deploy/images/qemuamd64/isar-image-base-debian-
>buster-qemuamd64.tar.gz -C ./rootfs1/  $ tar -xzvf
>./build2/tmp/deploy/images/qemuamd64/isar-image-base-debian-buster-
>qemuamd64.tar.gz -C ./rootfs2/  $ rsync -nrclv ./rootfs1/ ./rootfs2/ >
>difference.txt
>
>Below is one reproducible problem I picked:
>In debconf db file the contents were different after two subsequent builds,
>
>Part of the debconf db file where the difference is found
>(/var/cache/debconf/config.dat)
>Build1:
>Name: ucf/changeprompt
>Template: ucf/changeprompt
>Value: keep_current
>Owners: ucf
>Variables:
> BASENAME = locale.nopurge
> FILE = /etc/locale.nopurge
> NEW = /etc/locale.nopurge.29308
>
>Build2:
>Name: ucf/changeprompt
>Template: ucf/changeprompt
>Value: keep_current
>Owners: ucf
>Variables:
> BASENAME = locale.nopurge
> FILE = /etc/locale.nopurge
> NEW = /etc/locale.nopurge.19132
>
>The probable solution I am thinking of is:
>1. remove the debconf cache files (rm -f /var/cache/debconf/*)
>2. Fix the debconf in such a way it generates same package configuration on every build
>
>The first solution is easy, but I am worried if those package configuration files
>maybe required in future when the package is updating The second solution
>would need more investigation at debconf package side.
>
>Any ideas or suggestion would be very grateful.
>
>Thanks,
>Venkata.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is it safe to remove debconf cache files in isar system
  2022-02-14 19:35 ` Venkata.Pyla
@ 2022-02-15 16:13   ` Baurzhan Ismagulov
  0 siblings, 0 replies; 4+ messages in thread
From: Baurzhan Ismagulov @ 2022-02-15 16:13 UTC (permalink / raw)
  To: isar-users

On Mon, Feb 14, 2022 at 07:35:19PM +0000, Venkata.Pyla@toshiba-tsip.com wrote:
> >I am working to fix some reproducible build failures in isar system, as part of
> >this I wanted to know some ideas to fix it.
...
> >Part of the debconf db file where the difference is found
> >(/var/cache/debconf/config.dat)
> >Build1:
...
> > NEW = /etc/locale.nopurge.29308
> >
> >Build2:
...
> > NEW = /etc/locale.nopurge.19132
> >
> >The probable solution I am thinking of is:
> >1. remove the debconf cache files (rm -f /var/cache/debconf/*)
> >2. Fix the debconf in such a way it generates same package configuration on every build

For (1), https://debiananwenderhandbuch.de/debconf.html suggests that those may
be deleted, but questions would be asked during later package updates. If this
is important, maybe it could be workarounded by unattended installation.

(2) would be for sure a better approach. Debian does have a reproducible build
group and might be interested in that. That said, till now I've seen the effort
directed at reproducible packages, not a reproducible installation.

I think debconf people are the best who could answer this. If you don't like
debian-user, you may want to ask at
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/reproducible-builds .

With kind regards,
Baurzhan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-15 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16  7:47 Is it safe to remove debconf cache files in isar system Venkata.Pyla
2021-12-17 16:56 ` Anton Mikanovich
2022-02-14 19:35 ` Venkata.Pyla
2022-02-15 16:13   ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox