From owner-svn-doc-all@freebsd.org Thu Jan 25 16:21:43 2018 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C0B9EBD0D2; Thu, 25 Jan 2018 16:21:43 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48B9B84BE1; Thu, 25 Jan 2018 16:21:43 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 43AD57360; Thu, 25 Jan 2018 16:21:43 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0PGLhsr041949; Thu, 25 Jan 2018 16:21:43 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0PGLhWX041948; Thu, 25 Jan 2018 16:21:43 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201801251621.w0PGLhWX041948@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 25 Jan 2018 16:21:43 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51395 - head/en_US.ISO8859-1/books/porters-handbook/slow-porting X-SVN-Group: doc-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/porters-handbook/slow-porting X-SVN-Commit-Revision: 51395 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 16:21:43 -0000 Author: mat Date: Thu Jan 25 16:21:42 2018 New Revision: 51395 URL: https://svnweb.freebsd.org/changeset/doc/51395 Log: Add an example about how to use EXTRA_PATCHES with a directory. Sponsored by: Absolight Modified: head/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml Thu Jan 25 14:31:08 2018 (r51394) +++ head/en_US.ISO8859-1/books/porters-handbook/slow-porting/chapter.xml Thu Jan 25 16:21:42 2018 (r51395) @@ -492,6 +492,34 @@ BAR_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-bar.c \ ${PATCHDIR}/extra-patch-bar.h + + Using <varname>EXTRA_PATCHES</varname> With a + Directory + + Sometime, there are many patches that are needed for a + feature, in this case, it is possible to point + EXTRA_PATCHES to a directory, and it will + automatically apply all files named + patch-* in + it. + + Create a subdirectory in + ${PATCHDIR}, and move the patches in + it. For example: + + &prompt.user; ls -l files/foo-patches +-rw-r--r-- 1 root wheel 350 Jan 16 01:27 patch-Makefile.in +-rw-r--r-- 1 root wheel 3084 Jan 18 15:37 patch-configure + + Then add this to the Makefile: + + OPTIONS_DEFINE= FOO +FOO_EXTRA_PATCHES= ${PATCHDIR}/foo-patches + + The framework will then use all the files named + patch-* in + that directory. +