Bug#947244: shouldn't include Architectures in sources file by default

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#947244: shouldn't include Architectures in sources file by default

Christoph Berg-2
Package: extrepo
Version: 0.6
Severity: normal

Hi,

I just enabled the postgresql repo here:

Holen:10 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main Sources [42,7 kB]
Holen:11 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [147 kB]
Holen:12 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main ppc64el Packages [146 kB]

I am on amd64, the ppc64el Packages file isn't useful.

$ cat /etc/apt/sources.list.d/extrepo_postgresql.sources
Components: main
Types: deb deb-src
Suites: bullseye-pgdg
Uris: http://apt.postgresql.org/pub/repos/apt
Architectures: amd64 ppc64el
Signed-By: /var/lib/extrepo/keys/postgresql.asc

Please don't include the Architectures line here, it should only be
added by the user if they want to *exclude* some architectures
otherwise enabled via dpkg `--add-architecture`. Perhaps adding the
list as a comment makes sense.

(On a similar ticket, should "deb-src" be include by default? At least
a switch to configure that at "enable" time would be nice.)

Christoph

Reply | Threaded
Open this post in threaded view
|

Bug#947244: shouldn't include Architectures in sources file by default

Wouter Verhelst
So.

On Mon, Dec 23, 2019 at 02:00:18PM +0100, Christoph Berg wrote:
> Hi,
>
> I just enabled the postgresql repo here:
>
> Holen:10 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main Sources [42,7 kB]
> Holen:11 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [147 kB]
> Holen:12 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main ppc64el Packages [146 kB]
>
> I am on amd64, the ppc64el Packages file isn't useful.

Oh, damn; I was under the impression that other architectures would only
be downloaded if you've run 'dpkg --add-architecture <target>'. That's
not the case apparently, then.

> $ cat /etc/apt/sources.list.d/extrepo_postgresql.sources
> Components: main
> Types: deb deb-src
> Suites: bullseye-pgdg
> Uris: http://apt.postgresql.org/pub/repos/apt
> Architectures: amd64 ppc64el
> Signed-By: /var/lib/extrepo/keys/postgresql.asc
>
> Please don't include the Architectures line here, it should only be
> added by the user if they want to *exclude* some architectures
> otherwise enabled via dpkg `--add-architecture`. Perhaps adding the
> list as a comment makes sense.
>
> (On a similar ticket, should "deb-src" be include by default? At least
> a switch to configure that at "enable" time would be nice.)

I think it should. It doesn't hurt?

--
To the thief who stole my anti-depressants: I hope you're happy

  -- seen somewhere on the Internet on a photo of a billboard

Reply | Threaded
Open this post in threaded view
|

Bug#947244: shouldn't include Architectures in sources file by default

Christoph Berg-2
Re: Wouter Verhelst 2020-01-23 <[hidden email]>
> > (On a similar ticket, should "deb-src" be include by default? At least
> > a switch to configure that at "enable" time would be nice.)
>
> I think it should. It doesn't hurt?

Sometimes I try getting rid of extra things to download when there's a
lot of repositories activated so "apt update" doesn't take ages.

It's probably a good default, but as said, a switch would be nice.

Christoph