Date: Sun, 5 Jul 2020 14:36:32 +0000 From: Brandon helsley <brandon.helsley@hotmail.com> To: Jonathan Chen <jonc@chen.org.nz> Cc: freebsd-ports <freebsd-ports@freebsd.org> Subject: RE: Porting Practice Message-ID: <CY4PR19MB0104D0CDAB5D776F79636DAAF9680@CY4PR19MB0104.namprd19.prod.outlook.com> In-Reply-To: <CAJuc1zPnNTzjBZnt4FtugLUE7mK-baZbhyj0sByRMVo4zA5x5Q@mail.gmail.com> References: <CY4PR19MB0104E2513B1A1B57CE4CFB22F9680@CY4PR19MB0104.namprd19.prod.outlook.com>, <CAJuc1zPnNTzjBZnt4FtugLUE7mK-baZbhyj0sByRMVo4zA5x5Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In general: 1. extract the original sources elsewhere 2. hack it to compile 3. compare the hacks against the original sources again to generate diffs. 4. put the diffs into the files/ directory of the port 5. Tweak the Makefile for all targets (fetch, extract, build, stage, etc) Im not sure what "original sources" means or "hack it to compile". Really w= ould you please go into more detail about the first three steps and explain= the targets in step five? I understood your first message well and can get= the nvidia-settings.patch placed in /tmp/ but before that step when I am s= upposed to... get the port working in my working directory I get stuck. ________________________________________ From: Jonathan Chen [jonc@chen.org.nz] Sent: Saturday, July 4, 2020 7:07 PM To: Brandon helsley Cc: freebsd-ports Subject: Re: Porting Practice On Sun, 5 Jul 2020 at 12:47, Brandon helsley <brandon.helsley@hotmail.com> wrote: > > I have gotten a couple of emails from portscout about ports that need upd= ated and maintained. Before I go about updating and maintaining these ports= I wanted to do some practice on a couple that I use like x11/nvidia-settin= gs. I have recieved alot of help on the forums and from the documentation, = but i'm still at a loss as to how the diff process works. [...] This is my personal workflow: 1. Take a simple copy of the port into my working directory 2. Get the port working in my working directory. 3. cd my-working-directory 4. diff -ruN /usr/ports/x11/nvidia-settings . > /tmp/nvidia-settings.patch 5. submit patch onto bugs.freebsd.org Hope that helps. -- Jonathan Chen <jonc@chen.org.nz>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CY4PR19MB0104D0CDAB5D776F79636DAAF9680>