Code review comment for ppa-dev-tools:packaging-debian

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Tuesday, September 27 2022, Bryce Harrington wrote:

> In particular one issue I'm scratching my head over is when running `debuild` I see lintian errors like these::
>
> dpkg-buildpackage: info: full upload; Debian-native package (full source is included)
> Now running lintian ppa-dev-tools_0.2.0~focal3_amd64.changes ...
> E: ppa-dev-tools: bad-owner-for-doc-file usr/share/doc/ppa-dev-tools/ root/0 != root/root (or 0/0)
> E: ppa-dev-tools: bad-owner-for-doc-file usr/share/doc/ppa-dev-tools/changelog.gz root/0 != root/root (or 0/0)
> E: ppa-dev-tools: bad-owner-for-doc-file usr/share/doc/ppa-dev-tools/copyright root/0 != root/root (or 0/0)
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/bin/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/bin/ppa 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/python3/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/python3/dist-packages/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/python3/dist-packages/ppa/ 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/python3/dist-packages/ppa/__init__.py 0/1001
> E: ppa-dev-tools: wrong-file-owner-uid-or-gid usr/lib/python3/dist-packages/ppa/_version.py 0/1001
> ...

Wild guess here, but maybe you're doing the build inside a container
where your $USER doesn't exist, but where you've mounted your $HOME (or
some of its subdirectories) in order to have access to your project.
Since this directory is externally owned by your $USER, and since $USER
doesn't exist in the container, you end up with files owned by the 1001
UID.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

« Back to merge proposal