Gentoo Archives: gentoo-portage-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] doins: Fix directory install options when called as dodoc.
Date: Wed, 02 Oct 2019 10:20:06
Message-Id: w6gr23vih4n.fsf@kph.uni-mainz.de
1 PMS does not mention that diropts should be respected when dodoc -r
2 creates directories recursively. This is consistent with the behaviour
3 for regular files, where insopts isn't respected either.
4
5 A parallel patch for further clarification of the PMS wording has been
6 sent to the gentoo-pms mailing list for review.
7
8 Signed-off-by: Ulrich Müller <ulm@g.o>
9 ---
10 bin/ebuild-helpers/doins | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13 diff --git a/bin/ebuild-helpers/doins b/bin/ebuild-helpers/doins
14 index fb5fc7c7c..24fe48121 100755
15 --- a/bin/ebuild-helpers/doins
16 +++ b/bin/ebuild-helpers/doins
17 @@ -1,5 +1,5 @@
18 #!/bin/bash
19 -# Copyright 1999-2018 Gentoo Foundation
20 +# Copyright 1999-2019 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1
24 @@ -15,6 +15,7 @@ if [[ ${helper} == dodoc ]] ; then
25 exit 0
26 fi
27 export INSOPTIONS=-m0644
28 + export DIROPTIONS=""
29 export _E_INSDESTTREE_=usr/share/doc/${PF}/${_E_DOCDESTTREE_}
30 else
31 if ! ___eapi_has_DESTTREE_INSDESTTREE; then
32 --
33 2.23.0

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies