i would like to report it but I wanted to gather opinions on the
matter of FreeBSD-set-src being marked as vital first
i would like to report it but I wanted to gather opinions on theall sets are marked as vital to avoid issues with pkg autoremove, and i
matter of FreeBSD-set-src being marked as vital first
pkg would autoremove the FreeBSD-set-src package or it's dependencies
if it isn't marked as vital?
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
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
polyduekes@proton.me wrote in eReF1RJQrzi3aUqlXyr4rF3hFr32l2FlccEUOMfp9_Adpl7eQSPpfqTSUzdxzMGSs793h4IYqBSk5LdqVlr6t3_GNiBYlWZMwsmd-oTMD0Q=@proton.me:if a user wants to keep just the src-sys package they can simply remove the set and just pkg install the src-sys package, i am aware this isn't applicable to other sets but it quite fits for the src set
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 theythe src package seems to be a nice addition for an user that installs freebsd with pkgbase and chooses to install the src tree as well, so it would be nice if it is possible to keep it only when the user chooses to :)
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.
you are right, sorry for the false assumption, guess the two issues i mentioned are on me thensecond 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.
On Friday, October 17th, 2025 at 12:52 PM, Lexi Winter ivy@freebsd.org wr=ote:
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.=20
if a user wants to keep just the src-sys package they can simply
remove the set and just pkg install the src-sys package, i am aware
this isn't applicable to other sets but it quite fits for the src set
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=20
marking them as vital.
the src package seems to be a nice addition for an user that installs
freebsd with pkgbase and chooses to install the src tree as well, so
it would be nice if it is possible to keep it only when the user
chooses to :)
polyduekes@proton.me wrote in cFqshZqdn372Bs2hGoWll9uJQq2SJ_a4Lkxo24L90lpLasbUPVdK2QoIqNxfm1m9M6uFQo-udJpatkshM1gO9BsSnf88trbgn29FrPry_Vw=@proton.me:
On Friday, October 17th, 2025 at 12:52 PM, Lexi Winter ivy@freebsd.org wrote:
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.
if a user wants to keep just the src-sys package they can simply
remove the set and just pkg install the src-sys package, i am aware
this isn't applicable to other sets but it quite fits for the src set
yes, this is the correct way to approach this for any set.
although instead of using pkg install, you can just use pkg set -A0 to
mark the package as not autoinstalled.
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.
the src package seems to be a nice addition for an user that installs freebsd with pkgbase and chooses to install the src tree as well, so
it would be nice if it is possible to keep it only when the user
chooses to :)
i don't follow what you mean here. you just described the steps tosorry, i misunderstood "this is a reason to remove the src packages" statement, when i saw that i thought that you meant that reason deems to remove the src packages from the freebsd-base repo instead of removal from the user's system since at the time i wrote that i was considering that the src packages are autoinstalled
remove FreeBSD-set-src earlier in your email. what else is needed
here?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 12:23:00 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
2 files (2,024K bytes) |
| Messages: | 183,176 |
| Posted today: | 1 |