Page MenuHomePhabricator

debian-glue lintian fails with: changes: bad-distribution-in-changes-file jessie-wikimedia
Closed, ResolvedPublic

Description

Since I overhauled the way lintian runs on CI, we are struct with a lintian error related to jessie-wikimedia being a bad distribution. Previously we ran lintian on the build host which has a lintian configuration to accept those distributions names. The change I made yesterday is to run lintian inside the build environment and the configuration is thus missing.

All the magic to setup a lintian vendor profile has been made via https://gerrit.wikimedia.org/r/#/c/297765/

Namely we need in the build environment:

/etc/lintianrc
LINTIAN_PROFILE = wikimedia

Recursively copyor bind mount the directory tree at /usr/share/lintian/vendors/wikimedia.

Event Timeline

Change 408522 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] debian-glue: use lintian wikimedia profile

https://gerrit.wikimedia.org/r/408522

Change 408522 merged by jenkins-bot:
[integration/config@master] debian-glue: use lintian wikimedia profile

https://gerrit.wikimedia.org/r/408522

hashar claimed this task.

That was an incomplete implementation of running lintian inside the build environment (T186494). Solved by bind mounting the lintian "wikimedia" profile and passing "--profile wikimedia" to the lintian command.

Thanks to @akosiaris and @KartikMistry :]