Gives package-installs-apt-sources lintian error

Bug #1869867 reported by Iain Lane
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Medium
Unassigned
oem-qemu-meta (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

The oem packages trigger the "E: package-installs-apt-sources" lintian error. It's deliberate we install apt sources though, so this should be overridden I think.

Revision history for this message
Iain Lane (laney) wrote :

$4, wondering if you can take a look at this please?

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

As mentioned by Laney on IRC, might be a good thing to include that in the OEM MIR template: https://wiki.ubuntu.com/MIRTeam/Exceptions/OEM

Changed in oem-priority:
assignee: nobody → Shih-Yuan Lee (fourdollars)
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

E: oem-qemu-meta: package-installs-apt-sources etc/apt/sources.list.d/oem-qemu-meta.list
N:
N: Debian packages should not install files under /etc/apt/sources.list.d/
N: or install an /etc/apt/sources.list file.
N:
N: Package sources are under the control of the local administrator and
N: packages should not override local administrator choices.
N:
N: Packages whose names end in -apt-source or -archive-keyring are
N: permitted to install such files.
N:
N: Refer to the sources.list(5) manual page for details.
N:
N: Severity: serious, Certainty: possible
N:
N: Check: files, Type: binary, udeb
N:

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

How about using the debdiff to solve the problem of oem-qemu-meta in Ubuntu focal archive?

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "oem-qemu-meta_20.04~ubuntu4.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
Changed in oem-qemu-meta (Ubuntu):
importance: Undecided → Medium
Changed in oem-somerville-three-eyed-raven-meta (Ubuntu):
importance: Undecided → Medium
Changed in oem-priority:
importance: Undecided → Medium
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Hmmmm, it looks like I still get the lintian error:

E: oem-qemu-meta: package-installs-apt-sources etc/apt/sources.list.d/oem-qemu-meta.list

can you check again please?

If you can't get this to work, it'd be OK to document on the wiki page I think.

Changed in oem-qemu-meta (Ubuntu):
assignee: nobody → Shih-Yuan Lee (fourdollars)
Changed in oem-somerville-three-eyed-raven-meta (Ubuntu):
assignee: nobody → Shih-Yuan Lee (fourdollars)
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

/usr/share/lintian/profiles/debian/ftp-master-auto-reject.profile of lintian 2.62.0 on focal has included package-installs-apt-sources so it is not overridable.

Changed in oem-priority:
assignee: Shih-Yuan Lee (fourdollars) → nobody
Changed in oem-qemu-meta (Ubuntu):
assignee: Shih-Yuan Lee (fourdollars) → nobody
Changed in oem-somerville-three-eyed-raven-meta (Ubuntu):
assignee: Shih-Yuan Lee (fourdollars) → nobody
Mathew Hodson (mhodson)
tags: added: packaging
Revision history for this message
Bin Li (binli) wrote :

@4$,

If we want fix it, we should rename oem-qemu-meta to oem-qemu-meta-apt-source. Should we fix it or document it at wiki page? Thanks!

https://lintian.debian.org/tags/package-installs-apt-sources.html

 E package-installs-apt-sources

Debian packages should not install files under /etc/apt/sources.list.d/ or install an /etc/apt/sources.list file.

Package sources are under the control of the local administrator and packages should not override local administrator choices.

Packages whose names end in -apt-source or -archive-keyring are permitted to install such files.

Revision history for this message
Bin Li (binli) wrote :

Or oem-qemu-meta depend on oem-qemu-apt-source to install the sources.list file.

Revision history for this message
Iain Lane (laney) wrote :

Please don't rename the binary packages. The way we implemented updating looks at packages matching "oem-*-meta" so we'd have to update that if we change it.

Honestly I think it's fine to ignore this particular one.

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

@laney,

We want to deploy CI/CD for the meta packages.
It is annoying to see https://lintian.debian.org/tags/package-installs-apt-sources.html breaking the lintian test.
I support the idea of comment #12.
Could we make oem-qemu-meta depend on oem-qemu-apt-source to install the sources.list file to fix this problem?

Revision history for this message
Simon Quigley (tsimonq2) wrote :

(With my ~ubuntu-sponsors hat on, unsubscribing since there is nothing to sponsor.)

Rex Tsai (chihchun)
tags: added: oem-priority
Revision history for this message
Iain Lane (laney) wrote : Re: [Bug 1869867] Re: Gives package-installs-apt-sources lintian error

On Wed, Jul 15, 2020 at 08:19:28AM -0000, Shih-Yuan Lee wrote:
> We want to deploy CI/CD for the meta packages.
> It is annoying to see https://lintian.debian.org/tags/package-installs-apt-sources.html breaking the lintian test.
> I support the idea of comment #12.
> Could we make oem-qemu-meta depend on oem-qemu-apt-source to install the sources.list file to fix this problem?

I'd rather not please. I think it needlessly increases the size of the
apt indexes for everybody, and we should just make our tooling ignore
the lintian tag. It's a shame it can't be overridden - if you want to
take that up with Lintian upstream that would be OK.

Cheers,

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Changed in oem-qemu-meta (Ubuntu):
status: New → Won't Fix
Changed in oem-somerville-three-eyed-raven-meta (Ubuntu):
status: New → Won't Fix
Mathew Hodson (mhodson)
no longer affects: oem-somerville-three-eyed-raven-meta (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.