Date: Mon, 21 Oct 2019 18:21:19 -0500 From: Clay Daniels <clay.daniels.jr@gmail.com> To: Yasuhiro KIMURA <yasu@utahime.org>, freebsd-questions@freebsd.org Subject: Re: How to apply a patch to a port Message-ID: <9ac08912-0415-0830-9381-6df157fe6ab1@gmail.com> In-Reply-To: <20191022.053926.1076439053946694541.yasu@utahime.org> References: <CAGLDxTW8VCjfKGAEp9b1gn_==XsxRjSizvRbiw%2BTkzRgt49hDA@mail.gmail.com> <20191022.053926.1076439053946694541.yasu@utahime.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/21/19 3:39 PM, Yasuhiro KIMURA wrote: > Assuming that you don't set WRKDIRPREFIX in /etc/make.conf, take > following steps. No, make.conf does not yet exist. > 1. cd /usr/ports/graphics/drm-current-kmod OK, but should my patch file be here, or do I need to make a /files subdirectory and put it there? > 2. make patch > 3. cd work/kms-drm-2d2852e > 4. patch -p 0 -s -i /path/to/patch/patch-linuxkpi_gplv2_src_linux__page.c > (You may need to change '-p 0' to '-p 1' or '-p 2' or ...) > 5. cd ../.. > 6. make makepatch > 7. make clean > > Then new patch file is created under files subdirectory. Then change back to main port directory & run make install (clean) for the whole port, right? I have just now re-installed a fresh FreeBSD installation. I'm going to wait until I figure out this /files subdirectory. I'm not comfortable with having to create it. Just to look at another port I intend to install later, located at /usr/ports/security/gnupg, it already has a files directory. Thanks > > --- > Yasuhiro KIMURA > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ac08912-0415-0830-9381-6df157fe6ab1>