tweaking a port (build issue)
Christoph Brinkhaus
c.brinkhaus at t-online.de
Fri Jan 22 08:27:13 UTC 2021
Am Thu, Jan 21, 2021 at 05:17:15PM -0700 schrieb Gary Aitken:
Hi Gary,
> 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?
It is very likely that you change has been overwritten. To preserve
the change it should be the best practice to follow the porters
handbook.
After make extract copy the orininal file to
ViewProviderSketch.cpp.orig. Then modify the cpp file.
cd to /usr/ports/cad/freecad and run make makepatch.
Now a patch-ViewProviderSketch.cpp or so should have been generated in
/usr/ports/cad/freecad/files. May be the path to the file is added to
the name after the patch-. make makepatch takes are for the proper
file name.
Coming from a clean port by running make clean make patch modifies
the original cpp file according to your modifications. If you just
call make build the other make targets as fetch, extract and patch are
called before running the build.
I backup the files directory before the procedure somewhere else.
Just in case make makepatch clean the existing patches in case there
are no *.orig files of already existing files to be patched after
make extract by make patch.
If things are unclear please have a look at
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
Kind regards,
Christoph
> Thanks,
>
> Gary
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list