Gentoo Archives: gentoo-commits

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