dpkg-shlibdeps --version or --help broken on mantic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Confirmed
|
Undecided
|
Unassigned | ||
dpkg (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
After the recent update of ubuntu:rolling to point to mantic we noticed that one of our package scripts that relies on checking the version of dpkg-shlibdeps failed with the following error message:
`error: cannot read debian/control: No such file or directory`
It worked (and still works) on ubuntu:lunar.
The issue can be reproduced with the following Dockerfile:
```
ARG variant
FROM ubuntu:${variant}
RUN apt-get update && apt-get install -y --no-install-
RUN dpkg-shlibdeps --version
```
And then the following succeeds:
```
docker build --build-arg variant=
```
While the following fails with the above mentioned error:
```
docker build --build-arg variant=
```
Running the mantic version with a perl debugger shows that the following line which is added in the mantic version is the cause:
```
my $control = Dpkg::Control:
```
Edit: This behavior was observed for linux/amd64, linux/arm/v7 and linux/arm64/v8 images if that is relevant.
tags: | added: docker |
description: | updated |
Changed in dpkg (Ubuntu): | |
status: | New → Triaged |
I can reproduce and confirm the issue