From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1274642-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7320B1382C5 for <garchives@archives.gentoo.org>; Sun, 25 Apr 2021 03:39:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0A1DE07F9; Sun, 25 Apr 2021 03:39:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75C24E07F9 for <gentoo-commits@lists.gentoo.org>; Sun, 25 Apr 2021 03:39:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72573340D58 for <gentoo-commits@lists.gentoo.org>; Sun, 25 Apr 2021 03:39:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2BC56702 for <gentoo-commits@lists.gentoo.org>; Sun, 25 Apr 2021 03:39:24 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org> Message-ID: <1619321911.f737795e9da830d543a424ab7e74b2151e58fca8.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: man/ X-VCS-Repository: proj/portage X-VCS-Files: man/portage.5 X-VCS-Directories: man/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: f737795e9da830d543a424ab7e74b2151e58fca8 X-VCS-Branch: master Date: Sun, 25 Apr 2021 03:39:24 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b20c27c-6072-4303-9c04-a5ac5b0db1b6 X-Archives-Hash: b0ec8620b698ddd9566ee0f1efa3d4ad commit: f737795e9da830d543a424ab7e74b2151e58fca8 Author: Nekun <nekokun <AT> firemail <DOT> cc> AuthorDate: Sun Apr 11 01:23:26 2021 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Apr 25 03:38:31 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f737795e man/portage.5: Add userpatch documentation Bug: https://bugs.gentoo.org/698244 Signed-off-by: Nekun <nekokun <AT> firemail.cc> Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> man/portage.5 | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/man/portage.5 b/man/portage.5 index 247ec5ab0..50f20454c 100644 --- a/man/portage.5 +++ b/man/portage.5 @@ -1,4 +1,4 @@ -.TH "PORTAGE" "5" "Mar 2021" "Portage VERSION" "Portage" +.TH "PORTAGE" "5" "Apr 2021" "Portage VERSION" "Portage" .SH NAME portage \- the heart of Gentoo .SH "DESCRIPTION" @@ -78,6 +78,9 @@ site-specific overrides of \fB/etc/portage/make.profile/\fR .BR /etc/portage/sets/ user\-defined package sets .TP +.BR /etc/portage/patches/ +user\-provided patches to packages +.TP .BR /var/db/repos/gentoo/ .nf sets.conf @@ -1375,6 +1378,34 @@ Also see \fB/var/lib/portage/world_sets\fR and the \fBemerge\fR(1) \fB\-\-list\-sets\fR option. .RE .TP +.BR /etc/portage/patches/ +.RS +In this directory patches to the package source tree can be created. +For each package, patches are taken from these subdirectories in the +following order: +.nr step 1 1 +.IP \n[step]. 3 +/etc/portage/patches/${CATEGORY}/${P}\-${PR}[:${SLOT}] +.IP \n+[step]. +/etc/portage/patches/${CATEGORY}/${P}[:${SLOT}] +.IP \n+[step]. +/etc/portage/patches/${CATEGORY}/${PN}[:${SLOT}] +.RE 2 + +Patches from more-specific directories overrides patches from less-specific, +i.e. if patches with the same name coexist in different directories matches +same package, only patch from directory matches the first matching pattern +will be applied. Patches for each package are applied in the POSIX +lexicographic order. Patch file name must end in ".patch" or, for +\fBEAPI\fR >= \fB6\fR, in ".diff". + +If package ebuild uses \fBEAPI\fR <= \fB5\fR, it must explicitly invoke +\fBepatch_user\fR or inherit \fBepatch.eclass\fR(5) and rely on default +\fBsrc_prepare\fR for apply patches. Otherwise, patches are silently +ignored. If package ebuild uses \fBEAPI\fR >= \fB6\fR, applying user +patches is mandatory. +.RE +.TP .BR /var/db/repos/gentoo/ .RS .TP