* [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created.
@ 2019-10-01 9:47 Ulrich Müller
2019-10-01 19:35 ` James Le Cuirot
2019-10-07 12:55 ` Ulrich Mueller
0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Müller @ 2019-10-01 9:47 UTC (permalink / raw
To: gentoo-pms
[-- Attachment #1: Type: text/plain, Size: 3072 bytes --]
With the -r option, it was unspecified what the mode of any created
directories is. Clarify that doins -r will create them as if dodir was
called (i.e., respect diropts), and that dodoc -r will create them as
if plain install -d was used.
For doins, this agrees with package manager implementations.
For dodoc, this agrees with historic Paludis behaviour. Portage
behaviour has changed in the past, when dodoc was changed from a
standalone helper to reusing parts of doins. Usage in the Gentoo
repository indicates that no ebuilds call diropts specifically for
installing of documentation. However, for several ebuilds dodoc -r is
affected by diropts called previously for another directory, which
looks like an unwanted side effect.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
pkg-mgr-commands.tex | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index 9aacc70..00ae3a7 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -448,7 +448,8 @@ the current phase function has returned.
directory \t{/usr/share/doc/\$\{PF\}/}. For EAPIs listed in table~\ref{tab:dodoc-table}
as supporting \t{-r}, if the first argument is \t{-r}, any subsequent arguments that are
directories are installed recursively to the appropriate location; in any other case, it is
- an error for a directory to be specified. Failure behaviour is EAPI dependent as per
+ an error for a directory to be specified. Any directories that don't already exist are created
+ using \t{install -d} with no additional options. Failure behaviour is EAPI dependent as per
section~\ref{sec:failure-behaviour}.
\item[doenvd] Installs the given environment files into \t{/etc/env.d/}, by default with file mode
@@ -509,10 +510,10 @@ the current phase function has returned.
\item[doins] \featurelabel{doins} Takes one or more files as arguments and installs them into
\t{INSDESTTREE}, by default with file mode \t{0644}, or with the \t{install} options set by
the most recent \t{insopts} call. If the first argument is \t{-r}, then operates recursively,
- descending into any directories given. For EAPIs listed in table~\ref{tab:doins-table},
- \t{doins} must install symlinks as symlinks; for other EAPIs, behaviour is undefined if any
- symlink is encountered. Failure behaviour is EAPI dependent as per
- section~\ref{sec:failure-behaviour}.
+ descending into any directories given. Any directories are created as if \t{dodir} was called.
+ For EAPIs listed in table~\ref{tab:doins-table}, \t{doins} must install symlinks as symlinks;
+ for other EAPIs, behaviour is undefined if any symlink is encountered. Failure behaviour is
+ EAPI dependent as per section~\ref{sec:failure-behaviour}.
\item[dolib.a] For each argument, installs it into the appropriate library subdirectory under
\t{DESTTREE}, as determined by algorithm~\ref{alg:ebuild-libdir}. Files are installed with file
--
2.23.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created.
2019-10-01 9:47 [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created Ulrich Müller
@ 2019-10-01 19:35 ` James Le Cuirot
2019-10-07 12:55 ` Ulrich Mueller
1 sibling, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2019-10-01 19:35 UTC (permalink / raw
To: gentoo-pms
[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]
On Tue, 1 Oct 2019 11:47:08 +0200
Ulrich Müller <ulm@gentoo.org> wrote:
> With the -r option, it was unspecified what the mode of any created
> directories is. Clarify that doins -r will create them as if dodir was
> called (i.e., respect diropts), and that dodoc -r will create them as
> if plain install -d was used.
>
> For doins, this agrees with package manager implementations.
>
> For dodoc, this agrees with historic Paludis behaviour. Portage
> behaviour has changed in the past, when dodoc was changed from a
> standalone helper to reusing parts of doins. Usage in the Gentoo
> repository indicates that no ebuilds call diropts specifically for
> installing of documentation. However, for several ebuilds dodoc -r is
> affected by diropts called previously for another directory, which
> looks like an unwanted side effect.
>
> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
> ---
> pkg-mgr-commands.tex | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
LGTM!
--
James Le Cuirot (chewi)
Gentoo Linux Developer
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created.
2019-10-01 9:47 [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created Ulrich Müller
2019-10-01 19:35 ` James Le Cuirot
@ 2019-10-07 12:55 ` Ulrich Mueller
1 sibling, 0 replies; 3+ messages in thread
From: Ulrich Mueller @ 2019-10-07 12:55 UTC (permalink / raw
To: Ulrich Müller; +Cc: gentoo-pms
Pushed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-07 12:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-01 9:47 [gentoo-pms] [PATCH] doins, dodoc: Clarify how directories are created Ulrich Müller
2019-10-01 19:35 ` James Le Cuirot
2019-10-07 12:55 ` Ulrich Mueller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox