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

Revision history for this message
Bryce Harrington (bryce) 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.

Interesting guess, but weirdly it seems the situation is the opposite. I'm doing the devel and packaging in my regular focal desktop ($USER set properly and all) but getting these E's. However, if I do exactly the same but in a jammy or focal LXC container it works fine, no lint E's.

Since I plan to do the official packaging in LXC containers anyway, I guess that's my solution.

« Back to merge proposal