tweaking a port (build issue)

Polytropon freebsd at edvax.de
Sat Jan 23 04:48:52 UTC 2021


On Fri, 22 Jan 2021 20:28:35 -0700, Gary Aitken wrote:
> [...]
> On 1/21/21 10:23 PM, Polytropon wrote:
> 
> > You probably don't need to invoke pkg manually. The "deinstall"
> > target should do that, as it did in ye olden times.
> 
> Thanks
> 
> > After making a code change, try this:
> >> 	# cd /usr/ports/cad/freecad
> > 	# make deinstall		<--- remove installed program
> > 	# make clean			<--- remove compiler cruft
> > 	# make				<--- build everything new
> > 	# make reinstall		<--- (re)install program
> > 
> > This should work as expected even in the modern pkg times. :-)
> 
> Nope.  The make clean deletes the work subtree, and the changes, so you're
> back where you started.

Yes, sorry, recognized too late. The recommendations about the
"make patch" approach is fully correct. After a "make clean",
the soruce tree will be re-extracted and the existing patches
will be applied when "make" is run. So code changes should be
part of _that_ step. Local patches will not be subject to the
"make clean" step, if I remember correctly.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list