Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2025 08:22:19 +0100
From:      Lexi Winter <ivy@freebsd.org>
To:        polyduekes@proton.me
Cc:        freebsd-pkg@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: FreeBSD-set-src package is marked as vital?
Message-ID:  <aPHuq4CuIARvPIW5@amaryllis.le-fay.org>
In-Reply-To: <eReF1RJQrzi3aUqlXyr4rF3hFr32l2FlccEUOMfp9_Adpl7eQSPpfqTSUzdxzMGSs793h4IYqBSk5LdqVlr6t3_GNiBYlWZMwsmd-oTMD0Q=@proton.me>
References:  <r7s0bLsnWCeP_xv9zRrY4PNimBTjAxqB14OkelBdzc-rwkr_ty_PSp4GZzecQ83978u3lnffNbZoMC-vUn2o0U-MeerMr8UQdZSXzr7cs3Q=@proton.me> <5d1e6469-bf34-4407-a84f-c46bdb827312@gmail.com> <PVQdhBX2BCzNWF3IiOwspzh178rPQoj8flgVfbYQJzba9AfvuuFRKqYbj1R3gvOc8TjCCx0N5xTSt0jBVLXDCTZr0s_uGxWHD7-i7bLZuKI=@proton.me> <aPHfsPYaIpYLBAib@amaryllis.le-fay.org> <eReF1RJQrzi3aUqlXyr4rF3hFr32l2FlccEUOMfp9_Adpl7eQSPpfqTSUzdxzMGSs793h4IYqBSk5LdqVlr6t3_GNiBYlWZMwsmd-oTMD0Q=@proton.me>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
polyduekes@proton.me wrote in <eReF1RJQrzi3aUqlXyr4rF3hFr32l2FlccEUOMfp9_Adpl7eQSPpfqTSUzdxzMGSs793h4IYqBSk5LdqVlr6t3_GNiBYlWZMwsmd-oTMD0Q=@proton.me>:
> pkg would autoremove the FreeBSD-set-src package or it's dependencies
> if it isn't marked as vital?

the issue is that if you remove "src", intending to keep "src-sys", pkg
will also remove "set-src", then since src-sys was autoinstalled as a
dependency of set-src, a later "pkg autoremove" will remove src-sys,
something the user probably didn't expect.

the vital flag is intended as a safeguard to make people aware they
might not want to do this.

(i am not entirely convinced this actually fixes the problem, but the
consensus was fairly strongly in favour of this.)

> i can think of two reasons as to why it shouldn't be marked as vital,
> first is that anyone who has deliberately git cloned the base src tree
> and deliberately modified it wouldn't want their modifications to get
> overwritten anytime and the FreeBSD-src and related packages obviously
> overwrite any change anytime they(the packages of FreeBSD-set-src) get
> upgraded

this is a reason to remove the src packages, not a reason to stop
marking them as vital.

> second is that not everyone needs or wants a copy of src tree on their
> system by default which i assume they will get when they use pkgbase
> to install freebsd since it's marked as vital

no, they won't: vital doesn't cause it to be automatically installed.
if you have it installed, it's because you (or some tool, perhaps)
opted to install it.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaPHuqwAKCRD1nT63mIK/
YCAFAQCix1X+Ge8Fqtfq99REMVv2lAM1M0K5opOHm9dgL0ZJ7AD9GiUc/ZK6Gdeg
b49ICRixUX+idXpc4gPiMrR2o4bduQY=
=5I0W
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aPHuq4CuIARvPIW5>