Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2021 06:23:37 +0100
From:      Polytropon <freebsd@edvax.de>
To:        freebsd@dreamchaser.org
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: tweaking a port (build issue)
Message-ID:  <20210122062337.77ebb9e6.freebsd@edvax.de>
In-Reply-To: <cc70bdb2-e96c-2d68-5ce2-c9915d9c1b74@dreamchaser.org>
References:  <cc70bdb2-e96c-2d68-5ce2-c9915d9c1b74@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Jan 2021 17:17:15 -0700, Gary Aitken wrote:
> I'm trying to tweak a port (cad/freecad) and am having an issue getting the
> build to work.
> 
> I modified a file in the /usr/ports/cad/freecad directory tree
>    work/FreeCAD-0.18.4/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
> and did:
>    pkg deinstall
>    make build
>    make install
>    pkg deinstall
>   modify something else
>    make build
>      doesn't look like anything changed.
> 
> Apparently I'm using some old forgotten lore which is wrong... clues?

You probably don't need to invoke pkg manually. The "deinstall"
target should do that, as it did in ye olden times. 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. :-)



-- 
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?20210122062337.77ebb9e6.freebsd>