Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2025 17:50:02 -0800
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Florian Walpen <dev@submerge.ch>
Cc:        bob prohaska <fbsd@www.zefox.net>, freebsd-current@freebsd.org, Warner Losh <imp@bsdimp.com>
Subject:   Re: /usr/src and /usr/ports not git directories ?
Message-ID:  <Z5GgSiETH9rwsMT6@cell.glebi.us>
In-Reply-To: <2019698.n1Ql7ez4OO@x230>
References:  <Z4vk3009iSwuzG4K@www.zefox.net> <Z4__B0EQM-ce0qPE@cell.glebi.us> <2019698.n1Ql7ez4OO@x230>

next in thread | previous in thread | raw e-mail | index | archive | help
   Florian,

On Thu, Jan 23, 2025 at 01:03:14AM +0100, Florian Walpen wrote:
F> > I have already once tried this statement at a smaller audience - a
F> > Russian-speaking telegram channel.  One meaningful feedback I got
F> > is that people may occasionally build stuff from ports and also
F> > some ports (e.g. drm-kmod, lsof) need /usr/src.  So in my opinion
F> > these sources as is are useful for a very minor group of people,
F> > those who aren't really developers/hackers, but for some reason
F> > are not fully satisfied with binary packages.
F> 
F> please don't underestimate the impact of this. Up until very recently, it was 
F> absolutely mandatory to build the drm-*-kmod from ports, because the pre-built 
F> packages were tied to the release version of the builders. Unless you were 
F> willing to update your machine exactly at the same time as the builders, you'd 
F> be greeted with kernel panics if you didn't build from ports. Means this 
F> "minor group" is probably the majority of GUI users.
F> Also the src tree has to be installed in every poudriere jail, which can 
F> multiply the increase of used disk space in some cases.

I'm running CURRENT on my laptop, so I use drm-*-kmod, and most of the time
packages work for me.  When they don't work, yep, I need to rebuild them
with up-do-date /usr/src, but this is process of tracking CURRENT!

I believe same can happen with a STABLE, if somebody is not very careful
with merging their changes.  In that case you would also need to rebuild,
but you would also need to _update_ first. How do you update bare /usr/src?

I can't understand why would you need to rebuild anything if you are
running RELEASE and packages? If that ever happened, this is definitely
fault of either someone's merge to stable, or maintainers of drm-kmod.
But this can't be taken as a good reason to have those stub sources.

F> It's not exactly clear to me what problem you want to solve? As a developer or 
F> someone doing src builds, updates are coming through git and packaging is not 
F> that relevant. Sure a one-liner would be nice. IIRC DragonflyBSD had those in a 
F> Makefile, that was quite convenient. Does installing the src tree as a git repo 
F> have any tangible benefits over that?

The problem in my view is that we ship something that is useless in vast
majority of the cases.  In majority of the cases work starts with:

rm -rf src && git checkout ...

For those, who not yet learned that this is the normal beginning of work,
the mere existense of the directory is misleading.

-- 
Gleb Smirnoff



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