From: Rob Browning <rlb@defaultvalue.org>
To: "Vagrant Cascadian" <vagrant@debian.org>,
"Ludovic Courtès" <ludo@gnu.org>,
guix-devel@gnu.org
Cc: Simon Josefsson <simon@josefsson.org>
Subject: Re: Shepherd in Debian
Date: Mon, 30 Dec 2024 12:25:34 -0600 [thread overview]
Message-ID: <87y0zxc9k1.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <87ttamjhm8.fsf@wireframe>
Vagrant Cascadian <vagrant@debian.org> writes:
> To avoid noise like that, it may require rebuilding the package, and the
> usual detection mechanisms in Debian for things that require rebuilds
> (e.g. ABI bumps in C libraries) do not appear to trigger in any way with
> guile packages.
While I haven't thought hard about this with respect to Guile yet, and
even ignoring anything involving per-architecture binary ABIs
(i.e. per-arch shared libs), I suspect the problem is "reasonably
difficult", (though note that I'm mostly speaking here from a Debian
perspective, and based on similar experiences with Emacs), and I would
be very happy to be wrong.
One option, of course, is to just omit .go files from "add on" (Guile
dependent) packages, and let autocompilation (per user) handle
everything. This is expensive (and who cleans up, when?), but
side-steps a lot of other issues.
For Guile at least, you could also ship a full set of .go files in each
package (i.e. all four size and endianness combinations) with the
attendant size increases, but I believe this may be insufficient, even
if you were to include the "go-ABI" in the package dependencies (which
would require either versioned Guile packages per go-ABI change[1], or
"flag days" in unstable whenever the go-ABI changes).
It may be insufficient unless every add-on package carefully versions
its Scheme API, and remembers to include relevant changes to any of its
public macros as part of of that API, because of course macro changes
could require rebuilding all of the package's reverse dependencies.
Alternately, instead of shipping go files, you could decide to just
build/rebuild/remove them during package installation/removal for the
installed Guile versions (guile-X.Ys), and Debian's Emacs policy tries
to for emacsen, but that's also fraught (in Debian at least), given what
the install/remove/upgrade maintainer script invocations allow[2].
A potential additional problem this approach creates is that you might
want have just one "add on" package, say guile-foo, work with multiple
Guile versions (guile-3.1, guile-3.2, etc. as Emacs policy does), but
then guile-foo *and* all of its guile-related reverse dependencies need
to be rebuilt/removed for a given Guile "flavor" opportunistically,
whenever any guile-X.Y is installed/upgraded/removed.
And *that* raises the bar substantially (again in Debian, at least),
because of [2] coupled with the fact that you might need to run the
rebuilds/removals in proper inter-package dependency order (unless
upstream has sufficient built-in tooling for that) outside the normal
apt/dpkg process.
And since any given apt/dpkg run could be installing or removing various
things, including guile-X.Y flavors in the same run with add-on package
(e.g. guile-foo) installs/removals/upgrades, "it's complicated".
[1] ...which Debian already has via the guile-X.Y versioning, *if* Guile
never changes the ABI in a Z version.
[2] The current Emacs policy is broken, and coming up with a fix has
been difficult. The problem arose when we realized that (roughly)
the only places *Debian* policy says you can count on your
dependencies being available/ready are in your "postinst configure
..." and your "postinst triggered ..." (and it appears that
triggers don't promise any ordering wrt deps). So, for example, you
can't rely on anything outside your package or the Debian base tools
(perl-base, ...) to clean up (in the preinst/prerm/postrm).
Debian's current Emacs policy, had assumed (and requires) add-on
packages to depend on and make calls to emacsen-common package tools
from their prerm, for example, and that can (and as we saw, does)
just break sometimes when emacsen-common, dependency or not, isn't
properly installed.
> There was a big change in Debian recently where guile was downgraded
> from 3.10.x back to 3.9.x. That was a little bit exciting.
Right, we had do do that because 3.0.10 was just broken on 32-bit
architectures. I'm hoping we'll have a 3.0.11 we can move to for
trixie.
Thanks, and I hope I'm just wrong somehow regarding the complexity here.
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
prev parent reply other threads:[~2024-12-30 18:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 16:10 Shepherd in Debian Simon Josefsson via Development of GNU Guix and the GNU System distribution.
2024-12-12 17:25 ` Tobias Alexandra Platen
2024-12-15 0:01 ` Ludovic Courtès
2024-12-15 1:06 ` Simon Josefsson via Development of GNU Guix and the GNU System distribution.
2024-12-29 21:37 ` Vagrant Cascadian
2024-12-29 22:41 ` Simon Josefsson via Development of GNU Guix and the GNU System distribution.
2024-12-30 12:04 ` Pjotr Prins
2024-12-30 18:31 ` Rob Browning
2024-12-31 12:30 ` Simon Josefsson via Development of GNU Guix and the GNU System distribution.
2024-12-30 18:25 ` Rob Browning [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y0zxc9k1.fsf@trouble.defaultvalue.org \
--to=rlb@defaultvalue.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
--cc=simon@josefsson.org \
--cc=vagrant@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).