Date: Sat, 23 Jan 2021 05:48:38 +0100 From: Polytropon <freebsd@edvax.de> To: freebsd@dreamchaser.org Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org>, Christoph Brinkhaus <c.brinkhaus@t-online.de>, Polytropon <freebsd@edvax.de> Subject: Re: tweaking a port (build issue) Message-ID: <20210123054838.225ed76f.freebsd@edvax.de> In-Reply-To: <9c72d8fa-e60b-9953-0002-a61e012a1870@dreamchaser.org> References: <cc70bdb2-e96c-2d68-5ce2-c9915d9c1b74@dreamchaser.org> <YAqMXSdQA800qcDh@esprimo> <9c72d8fa-e60b-9953-0002-a61e012a1870@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210123054838.225ed76f.freebsd>