🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Johannes Schauer Marin Rodrigues Wed, 07 Oct 2026 10:40
Bug#951107: Enable backports by default?
#27
Author: 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==--
Bug#951107: Enable backports by default?
#108
Author: Johannes Schauer Marin Rodrigues
Date: Thu, 08 Oct 2026 04:30
49 lines
4193 bytes
--===============5967886023038529763==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Quoting Trent W. Buck (2026-10-08 06:12:54)
> For the record,
>=20
> Your points are all reasonable, and I am OK with this outcome.  Thanks for
> taking the time to reason it out clearly.

Thank you! Then also "for the record" :) I am glad you are posting bug repo=
rts
like this because they confront me with a different perspective and having =
to
spell out *why* things are as they are forces one to re-evaluate whether th=
ey
are a good idea or not. And sometimes this means that things are getting
changed. Not all the time (not this time for example) but at the very least,
this bug and my arguments are publicly recorded and now others can read them
and challenge me on my points in the future.

Thanks!

cheers, josch
--===============5967886023038529763==
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+EFAmrHG0UACgkQ8sulx4+9
g+HdPxAAgJLY0mUMdOLo6RhVVJ0GsNmRSJwu5HXCzvXVX/7Sy/PSAlaKzNowwoty
zqx26CkQ1FlpU/BPKlQmBDzvGQYGtBVMs5tTeZkhxXbgK4gpyzykqPv7lIs2cNbg
o5bEAlFr4GAzt1kOS5qb8PHjratRVfamrF0oLdBLhqW/wZayz92d7hpaGcWMBWHX
0heQ7XyffOChLEpRnoxNXlGs/ao67a7TCyJBoJQ7aLufZsvBkTWnmxGoX2i0p3BQ
ej+dQRjCKIkt5JJnHR+EQAEId4bTLYkq02jSIM1hevpn+XQlfM7abd6EmSi6onoz
zaiEsQzf+qxkCb3BK79UrieotysOX+cSqj64SPJDKfFXnG4uG8/guWYimz8OwXjR
c5MFEjnkANHCsBr/6xjyOawgmVFtfUm2B+51MH+GbhIRXA7t6SSXqa5IbuZRqqgR
m41MYGjvjWdchARcKCQQr/x2v5DsHeS2B7UFoDFi6xu9aW0mO+4NOAkibOHHLdzS
UejqoR5znKKOFHkE++l9nnbZ57svxflbgohPiIj78Ch3QTFz5HLrVnJf7Yjce0Yp
csYt4OCu0gLMzcROiDaBsvnlNXxR5xMxoLi835M268wu0+tKQueZF5NlRsKSJdEZ
WQxhsdWpPrLdDgMdBSrIJurEQkHsBBQuxUf7dCCPn5kQEcXyoXM=
=0aMf
-----END PGP SIGNATURE-----

--===============5967886023038529763==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads