Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-6 commit in: /
Date: Sun, 30 Aug 2015 19:03:54
Message-Id: 1440961053.b2663cfc3bc21e1a4e206d20f45b634801a0ec98.ulm@gentoo
1 commit: b2663cfc3bc21e1a4e206d20f45b634801a0ec98
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 16 19:06:08 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 18:57:33 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=b2663cfc
7
8 EAPI 6: unpack supports absolute and relative paths.
9
10 See bug 483244.
11
12 eapi-differences.tex | 4 ++++
13 pkg-mgr-commands.tex | 26 +++++++++++++++++++++++---
14 2 files changed, 27 insertions(+), 3 deletions(-)
15
16 diff --git a/eapi-differences.tex b/eapi-differences.tex
17 index 6002785..27c1ee6 100644
18 --- a/eapi-differences.tex
19 +++ b/eapi-differences.tex
20 @@ -219,6 +219,9 @@ Controllable compression & \compactfeatureref{docompress} &
21 \t{in\_iuse} & \compactfeatureref{in-iuse} &
22 No & No & No & No & Yes \\
23
24 +\t{unpack} absolute paths & \compactfeatureref{unpack-absolute} &
25 + No & No & No & No & Yes \\
26 +
27 \t{unpack} support for \t{xz}? & \compactfeatureref{unpack-extensions} &
28 No & Yes & Yes & Yes & Yes \\
29
30 @@ -341,6 +344,7 @@ EAPI 6 is EAPI 5 with the following changes:
31 \item \t{eapply\_user} support, \featureref{eapply-user}.
32 \item \t{econf} adds \t{-{}-docdir} and \t{-{}-htmldir}, \featureref{econf-options}.
33 \item \t{in\_iuse} support, \featureref{in-iuse}.
34 +\item \t{unpack} supports absolute and relative paths, \featureref{unpack-absolute}.
35 \end{compactitem}
36
37 \ChangeWhenAddingAnEAPI{6}
38
39 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
40 index bcbfeb8..bb58c0f 100644
41 --- a/pkg-mgr-commands.tex
42 +++ b/pkg-mgr-commands.tex
43 @@ -806,9 +806,15 @@ has returned.
44 the current working directory itself) have permissions \t{a+r,u+w,go-w} and that all directories
45 under the current working directory additionally have permissions \t{a+x}.
46
47 - All arguments to \t{unpack} must be either a filename without path, in which case \t{unpack}
48 - looks in \t{DISTDIR} for the file, or start with the string \t{./}, in which case \t{unpack}
49 - uses the argument as a path relative to the working directory.
50 + Arguments to \t{unpack} are interpreted as follows:
51 + \begin{itemize}
52 + \item A filename without path (i.\,e., not containing any slash) is looked up in \t{DISTDIR}.
53 + \item An argument starting with the string \t{./} is a path relative to the working directory.
54 + \item \featurelabel{unpack-absolute} Otherwise, for EAPIs listed in
55 + table~\ref{tab:unpack-behaviour} as supporting absolute and relative paths, the argument is
56 + interpreted as a literal path (absolute, or relative to the working directory); for EAPIs
57 + listed as \e{not} supporting such paths, \t{unpack} shall abort the build process.
58 + \end{itemize}
59
60 Any unrecognised file format shall be skipped silently. If unpacking a supported file format
61 fails, \t{unpack} shall abort the build process.
62 @@ -844,6 +850,20 @@ has returned.
63 being in the system set or via dependencies.
64
65 \ChangeWhenAddingAnEAPI{6}
66 + \begin{centertable}{\t{unpack} behaviour for EAPIs}
67 + \label{tab:unpack-behaviour}
68 + \begin{tabular}{ l l }
69 + \toprule
70 + \multicolumn{1}{c}{\textbf{EAPI}} &
71 + \multicolumn{1}{c}{\textbf{Supports absolute and relative paths?}} \\
72 + \midrule
73 + 0, 1, 2, 3, 4, 5 & No \\
74 + 6 & Yes \\
75 + \bottomrule
76 + \end{tabular}
77 + \end{centertable}
78 +
79 + \ChangeWhenAddingAnEAPI{6}
80 \begin{centertable}{\t{unpack} extensions for EAPIs}
81 \label{tab:unpack-extensions-table}
82 \begin{tabular}{ l l }