#1065463 debootstrap can deal with native dpkg file replacement feature

#1065463#5
Date:
2024-03-05 00:36:59 UTC
From:
To:
Dear Maintainer,

As mentioned here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065394#28
For the moment on Mar/5/2024 in the Debian Sid repository, libuuid1
"Provides:
libuuid1t64 (= 2.39.3-9)", and an exact version of libuuid1t64 which
is not in repos. libuuid1 and libuuid1t64 have "Replaces:" on each other
already.
debootstrap should be able to solve the libuuid1t64 dependency by
installing libuuid1 only.
Otherwise now if the following command is run:
$ sudo debootstrap --verbose --arch=amd64 sid sid-chroot
The debootstrap will fail at this:
====================
I: Extracting libunistring5...
I: Extracting libuuid1...
I: Extracting libuuid1t64...
E: Tried to extract package, but tar failed. Exit...
====================
and the log shows:
$ tail sid-chroot/debootstrap/debootstrap.log
Saving to:
‘sid-chroot//var/cache/apt/archives/partial/zlib1g_1%3a1.3.dfsg-3.1_amd64.deb’

      0K .......... .......... .......... .......... .......... 58%  845K 0s
     50K .......... .......... .......... .....                100%
2.39M=0.07s

2024-03-03 10:33:06 (1.13 MB/s) -
‘sid-chroot//var/cache/apt/archives/partial/zlib1g_1%3a1.3.dfsg-3.1_amd64.deb’
saved [87580/87580]

tar: ./usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0: Cannot open: File exists
tar: ./usr/lib/x86_64-linux-gnu/libuuid.so.1: Cannot create symlink to
‘libuuid.so.1.3.0’: File exists
tar: Exiting with failure status due to previous errors

#1065463#10
Date:
2024-03-05 05:52:29 UTC
From:
To:
05.03.2024 03:36, Steven Shiau :

I think we should not add complexity to debootstrap just to be able to perform a
transition like this once in 20+ years.

/mjt

#1065463#15
Date:
2024-03-05 05:52:29 UTC
From:
To:
05.03.2024 03:36, Steven Shiau :

I think we should not add complexity to debootstrap just to be able to perform a
transition like this once in 20+ years.

/mjt

#1065463#20
Date:
2024-03-05 11:25:10 UTC
From:
To:
just in case you are not aware, bootstrapping using either mmdebstrap or
cdebootstrap works atm. mmdebstrap is faster and mostly a drop-in replacement.
(same applies to cdebootstrap but its less faster :)

daily tests are available at:

https://jenkins.debian.net/job/reproducible_debootstrap_unstable/
https://jenkins.debian.net/job/reproducible_cdebootstrap_unstable/
https://jenkins.debian.net/job/reproducible_mmdebstrap_unstable/

#1065463#25
Date:
2024-03-14 02:52:02 UTC
From:
To:
Hi Holger,
Great. Thanks for this useful info.
We have patched Debian live-build and created a merger request to
support mmdebostrap:
https://salsa.debian.org/live-team/live-build/-/merge_requests/343

Steven