From: "Nguyễn Gia Phong via Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: "Distopico" <distopico@riseup.net>, <guix-devel@gnu.org>
Subject: Re: Pinned/fixed versions should be a requirement
Date: Wed, 27 Sep 2023 16:51:04 +0900 [thread overview]
Message-ID: <CVTJAA9TY8HU.19TCUS3GZRIKW@guix> (raw)
In-Reply-To: <87h6o9pbbv.fsf@riseup.net>
[-- Attachment #1: Type: text/plain, Size: 2843 bytes --]
The dependency graph visualization has been discussed
by others more knowledgable of the Guix ecosystem than me,
so I'll focus on titled topic.
On 2023-09-04 at 21:59-05:00, Distopico wrote:
> `rust-my-lib-1`, where "1" refers to the semver "1.x" of the package,
> e.g., "1.0.32", and `rust-foo` depends on `rust-my-lib == 1.0.32`.
> However, in some other package got updated to "1.0.34" so `rust-foo`
> will break.
>
> [...] It makes it more likely that if a dependency changes,
> many packages will need to be updated/rebuilt due to that change.
This is not a bug but a feature, so that a fix can be rolled out
simutaneously to many if not all programs. Recall the OpenSSL
incidents, and more recently, libwebp.
IMHO as software integrator, distribution maintainers
should provide feedback to upstream to relax version pinning,
preferably with patches. I know first-hand this is not easy,
but otherwise we might as well just tell users to directly
invoke e.g. Cargo, since packaging without system-wide
integration is just extra hassle without any of the security benefits.
In the alternative world where dependencies are pinned,
distros can also patch each vulnerable version, but delaying
efforts until emergency is hardly wise.
On 2023-09-04 at 21:59-05:00, Distopico wrote:
> Over time, it becomes more vulnerable to libraries/packages breaking.
I'd like to add that this is not wall clock time, but labor time.
This would not be an issue if Guix has enough contributors
(and maintainers to actually apply to patches) to perform integration,
as discussed in the parallel thread.
On 2023-09-04 at 21:59-05:00, Distopico wrote:
> It makes reproducible software more challenging,
> as "1.x" can encompass many versions.
FMIIW, but the Guix way of reproducibility expects
both channel version and derivation name[, version].
With free software philosophy in mind, reproducibility
is not so beneficial without the ease of modification,
which in this context includes changing dependency[ version].
I'm speaking as someone primarily using Nix and seek Guix
for correctness, e.g. not making it impossible to patch
a Go library system-wide.
On 2023-09-04 at 21:59-05:00, Distopico wrote:
> For these reasons, I believe that pinned versions should be a
> requirement in libraries, always specifying the exact dependency, for
> example, `rust-serde-json-1.0.98`.
>
> This brings the following benefits:
>
> - Fewer packages will be prone to rebuilding
> when changing the definition of a library.
> - Reduced likelihood of libraries/packages breaking.
> - Easier maintenance of packages and libraries
> without fear of breaking others or having to update many.
I'd like to point out these exact benefits could be achieved
by distributing binary built by upstream.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 248 bytes --]
prev parent reply other threads:[~2023-09-27 7:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 2:59 Pinned/fixed versions should be a requirement Distopico
2023-09-05 17:15 ` wolf
2023-09-07 12:39 ` Pinned " Simon Tournier
2023-09-07 15:35 ` Distopico
2023-09-09 10:39 ` Simon Tournier
2023-09-09 22:50 ` Pinned/fixed " Attila Lendvai
2023-09-09 23:30 ` Liliana Marie Prikler
2023-09-10 1:37 ` Distopico
2023-09-10 5:51 ` Liliana Marie Prikler
2023-09-27 7:51 ` Nguyễn Gia Phong via Development of GNU Guix and the GNU System distribution. [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=CVTJAA9TY8HU.19TCUS3GZRIKW@guix \
--to=guix-devel@gnu.org \
--cc=cnx@loang.net \
--cc=distopico@riseup.net \
/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).