From owner-freebsd-questions@freebsd.org Fri Jan 22 08:27:13 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 542434EDA38 for ; Fri, 22 Jan 2021 08:27:13 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DMXS02CJlz4Y4P for ; Fri, 22 Jan 2021 08:27:12 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from fwd37.aul.t-online.de (fwd37.aul.t-online.de [172.20.27.137]) by mailout05.t-online.de (Postfix) with SMTP id E1A6D422A83C; Fri, 22 Jan 2021 09:27:09 +0100 (CET) Received: from esprimo.local (SyJv56ZSohgRr7qz2JIuLNZGjyseWW13h5+9WcUUk1b2hh6k0OSFuB1H325oimJgxi@[217.226.184.156]) by fwd37.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1l2rmf-4UbqGO0; Fri, 22 Jan 2021 09:27:09 +0100 Received: by esprimo.local (Postfix, from userid 1001) id 107D23800D; Fri, 22 Jan 2021 09:27:09 +0100 (CET) Date: Fri, 22 Jan 2021 09:27:09 +0100 From: Christoph Brinkhaus To: Gary Aitken Cc: FreeBSD Mailing List Subject: Re: tweaking a port (build issue) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ID: SyJv56ZSohgRr7qz2JIuLNZGjyseWW13h5+9WcUUk1b2hh6k0OSFuB1H325oimJgxi X-TOI-EXPURGATEID: 150726::1611304029-0000D445-0B8F2405/0/0 CLEAN NORMAL X-TOI-MSGID: 92ca8cab-059d-4e67-a09b-552b4bb80f5b X-Rspamd-Queue-Id: 4DMXS02CJlz4Y4P X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of c.brinkhaus@t-online.de has no SPF policy when checking 194.25.134.82) smtp.mailfrom=c.brinkhaus@t-online.de X-Spamd-Result: default: False [-0.49 / 15.00]; RWL_MAILSPIKE_GOOD(0.00)[194.25.134.82:from]; FREEMAIL_FROM(0.00)[t-online.de]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[217.226.184.156:received]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[t-online.de]; RBL_DBL_DONT_QUERY_IPS(0.00)[194.25.134.82:from]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[t-online.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_SHORT(0.11)[0.113]; SPAMHAUS_ZRD(0.00)[194.25.134.82:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[194.25.134.82:from]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_NOT_FQDN(0.50)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2021 08:27:13 -0000 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"