🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #27

Bug#951107: Enable backports by default?

#27
From: Johannes Schauer Marin Rodrigues
Date: Wed, 07 Oct 2026 10:40
175 lines
8904 bytes
--===============2743369304683929553==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Control: tag -1 + wontfix

Hi,

six years later, we hope that I'm smarter today when it comes to reasoning
about software architecture and interface design than I was back then.

TLDR: I think this is a bad idea.

Quoting Trent W. Buck (2020-02-11 10:11:18)
> [This is more a brainstorm than a "finished" bug report.
> I hope it's still useful!]

Yes. Others with the same idea can now read the arguments you and I made in
this bug.

> I'd rather have mmdebstrap take care of it for me (less code for me).

The problem with "less code for me" is, that it is less code for you and
probably only for you. When developing mmdebstrap I have to have all kinds =
of
use-cases in mind and adding options which are too specific is a bad idea. I
wrote a longer message about that topic here:
https://gitlab.mister-muffin.de/josch/mmdebstrap/issues/26#issuecomment-751

> I can get close with
>=20
>     mmdebstrap --components=3Dmain,contrib,non-free buster
>=20
> I think the only differences are missing backports and proposed-updates.
> I don't REALLY need proposed-updates, but I rely heavily on backports,
> for things like smartmontools and linux-image-amd64.
> It's also useful for debhelper &c.

I don't doubt that it's useful. I also often use backports.

> I thought about asking for something like --enable-backports.
> Then it occurred to me that backports Release already has
>=20
>     NotAutomatic: yes
>     ButAutomaticUpgrades: yes
>=20
> So, is it reasonable for mmdebstrap to ALWAYS enable backports for suites=
 that have it?
> You're already always including volatile ($suite-updates).

Yes, because that's a frequent wishlist feature for debootstrap but deboots=
trap
cannot do it because it's limited to a single mirror.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D762222

> One potential gotcha is, I think, it takes a few weeks for foo-backports =
to appear when foo changes from testing to stable.
> We don't want to break "mmdebstrap stable" during that period!
>=20
> It will also make mmdebstrap slightly slower[3] for everyone.

Yes, any such option would also need a --disable-backports variant and it w=
ould
be necessary to think about which default to pick.

Here is my take on the topic: I'm against adding backports by default and I=
'm
against a --enable-backports option.

mmdebstrap includes security mirrors by default when creating a chroot of a
stable distro. I think this makes sense because it's a frequently requested
feature for debootstrap and because I believe that security fixes should be=
 the
default and not a nice extra. To disable this automatism, you just supply
https://deb.debian.org/debian as the mirror.

I think backports are different. Backports are not enabled by default when
installing a new Debian installation for a reason. If they were, we could
re-open this discussion because then expectations are different. If you want
backports, the user should educate themselves about the drawbacks of enabli=
ng
them and then take the necessary steps to enable them.

Why no --enable-backports option. For once, it would be very distro specifi=
c.
Not every distro has this concept. Furthermore, we already have hooks to en=
able
backports so any such option would only be useful if we argue that mmdebstr=
ap
is run from the command line by hand. But this is not the case in your
situation. You are scripting it and thus there is no downside for you when =
you
run your scripts. Your scripts are doing the work. You don't type more.

Any option you add has to be maintained forever because people will start
relying on it and then you can never remove it. We have to be very careful =
with
which option we add because of feature creep (see the link to the mmdebstrap
upstream issue #26 above).

> [0] in ansible's yaml/jinja2 markup (sorry it's a bit messy),

Good, so you can script around this. We would have a different conversation=
 if
you wanted mmdebstrap to do this when running mmdebstrap by hand from the
command line. When you run mmdebstrap as part of a script, then it is much =
less
of a problem if you have to encode your specific requirements in that scrip=
t.

If we were talking about an option like --enable-backports for those who run
this from the command line by hand, we would have to consider different
trade-offs.

> [3] Oops, can't feed a .sources format, so I'll just extract what mmdebst=
rap wrote itself...
>=20
>         # mmdebstrap buster --variant=3Dextract --include=3Dnetbase - >/d=
ev/null - < /etc/apt/sources.list.d/debian.sources
>         E: Type 'Types:' is not known on line 10 in source list /tmp/mmde=
bstrap.v2GZdxqlM9/etc/apt/sources.list
>=20
>         # mmdebstrap buster --variant=3Dextract --include=3Dnetbase | tar=
 xv --strip-components=3D3 ./etc/apt/sources.list
>         I: creating tarball...
>         ./etc/apt/sources.list
>=20
>         # cat sources.list
>         deb http://deb.debian.org/debian buster main
>         deb http://deb.debian.org/debian buster-updates main
>         deb http://security.debian.org/debian-security buster/updates main
>=20
>     Looks like it makes "apt update" about 10% slower (0.5s) with cold ca=
che.

Not everybody has internet as fast as yours. For me, just downloading the
Packages file for bookworm-backports takes 1.5 seconds. If 10% is 0.5 secon=
ds,
then it seems you can run mmdebstrap in 5 seconds which brings me to the ne=
xt
points:

Not everybody has a computer as fast as yours. For me, running the mmdebstr=
ap
invocation above but for bookworm takes 17 seconds. Adding backports adds
another 3 seconds to that.

Thanks!

cheers, josch
--===============2743369304683929553==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrGHtoACgkQ8sulx4+9
g+Gv/w//ZmaQQ4lpeplXlRLxiyiELkAXHQGWu9A8Rxm72lVclMV4Wc8mYYK9cK4q
oTSl4qrkGXnEUbjKmfWePzz8ncayhxcjCI6YYvm2ySxSwzzyAWBjfN0qnMT/PoZo
/GaoHqEpMw4wE83TPnHz8KuEL6UQknY1KrLBY182pk3t9kdfvNiYAG9MwidnIMb9
uZsA54dPjPZX2yNk9FdGoJcG6WR0YsiBG09XqS8sal6mxCTstIkOUPyVxbqlq+lP
viNSaH5L333+fR5vE7s9HlYcIrTbJDJ14u+urcORWPn1i1FPx6RlkewOeWz24x68
xK7/5jF1Cft/ANri+UPYG3n4HDz08Zs+DA1wr+cJjPZ5AeGtSdL5hDwfABbhdCqe
FFqxZ5smnCkVs3PjsbMH4yCIzy16zOklT/e87qzrOXQ0kDPYbZekByaMIEOtWIkY
X6zI9Xyh1ncaKYh+vLHPiJ2rfKE+rNlIJFhySMZzDE9yTP7lp5qr6Di2Y1XBHa9V
HGkgBfzNLJb1TkuT2UWmEeQ4BYPoLp54Q0FY9fMq7S8mJeGs1ahBu82ldNBKXb4V
LooM9cC7w5py/nCUTzdjzldMo/w0d7BCOuL93nTR2L1KhS9kfc7o0ZhAh/iBgX75
O6IC10Se9y9Zc0m5w+AN4jJDr5w/cN2ZlWpRwtYH3NfBOh1r2Wc=
=eX2W
-----END PGP SIGNATURE-----

--===============2743369304683929553==--
Technical Details
Message-ID: <NLxe1-43RP-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <zyzS1-6W1-5@gated-at.bofh.it> <zyzS1-6W1-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#951107: Enable backports by default?
Date: Wed, 07 Oct 2026 12:40:01 +0200
Message-ID: <NLxe1-43RP-7@gated-at.bofh.it>
References: <zyzS1-6W1-5@gated-at.bofh.it> <zyzS1-6W1-5@gated-at.bofh.it>
X-Original-To: 951107@bugs.debian.org, Trent W. Buck <trentbuck@gmail.com>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct  7 10:31:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Johannes Schauer Marin Rodrigues <josch@debian.org>, 951107@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: josch@debian.org
X-Debian-Pr-Message: followup 951107
X-Debian-Pr-Package: mmdebstrap
X-Debian-Pr-Source: mmdebstrap
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============2743369304683929553=="
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: alot/0.0.0
X-Debian-User: josch
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995513
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 175
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 07 Oct 2026 12:28:46 +0200
X-Original-Message-ID: <179136892681.21057.6253882670898612252@localhost>
X-Original-References: <158141227844.12528.1814067556483798497.reportbug@goll.lan> <158141227844.12528.1814067556483798497.reportbug@goll.lan>