Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH v2] pkg-mgr-commands: Add --build and --target to econf (retroactively)
Date: Sat, 17 Feb 2018 21:25:57
Message-Id: 20180217212543.25232-1-mgorny@gentoo.org
1 Amend the econf parameter list with --build and --target options
2 corresponding to CBUILD and CTARGET variables respectively. They are
3 useful for cross-compilation purposes (whose support is improved
4 in EAPI 7), and all three package managers have been passing them dating
5 back at least to 2005 and/or their inception appropriately.
6 ---
7 appendices.tex | 6 ++++++
8 pkg-mgr-commands.tex | 5 +++++
9 2 files changed, 11 insertions(+)
10
11 diff --git a/appendices.tex b/appendices.tex
12 index 434aa3f..e9e0fd5 100644
13 --- a/appendices.tex
14 +++ b/appendices.tex
15 @@ -110,6 +110,12 @@ all-of, any-of, exactly-one-of, at-most-one-of and use-conditional groups with z
16 However, such empty groups were neither supported by all package managers nor used in ebuilds.
17 They were dropped from the specification in October 2017.
18
19 +\subsection{-{}-build and -{}-target econf parameters}
20 +The \t{econf} command (see section~\ref{sec:build-commands}) has been amended to include two
21 +additional configure options: --build and --target. Originally those options were not included
22 +in the PMS, even though Portage has been passing them before 2005 already; they are also passed
23 +by Paludis and pkgcore.
24 +
25 % vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en :
26
27 %%% Local Variables:
28 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
29 index 9a80370..f57e645 100644
30 --- a/pkg-mgr-commands.tex
31 +++ b/pkg-mgr-commands.tex
32 @@ -233,6 +233,7 @@ Ebuilds must not run any of these commands once the current phase function has r
33 \end{centertable}
34
35 \subsection{Build commands}
36 +\label{sec:build-commands}
37 These commands are used during the \t{src_configure}, \t{src_compile}, and \t{src_install}
38 phases to run the package's build commands. Ebuilds must not run any of these commands once the
39 current phase function has returned.
40 @@ -258,7 +259,11 @@ current phase function has returned.
41 \item -{}-htmldir must be \t{\$\{EPREFIX\}/usr/share/doc/\$\{PF\}/html}, if the EAPI is listed
42 in table~\ref{tab:econf-options-table} as using it. This option will only be passed if the
43 string \t{-{}-htmldir} occurs in the output of \t{configure -{}-help}.
44 + \item -{}-build must be the value of the \t{CBUILD} environment variable. This option will only
45 + be passed if the \t{CBUILD} variable is set to a non-empty value.
46 \item -{}-host must be the value of the \t{CHOST} environment variable.
47 + \item -{}-target must be the value of the \t{CTARGET} environment variable. This option will only
48 + be passed if the \t{CTARGET} variable is set to a non-empty value.
49 \item -{}-libdir must be set according to Algorithm~\ref{alg:econf-libdir}.
50 \item -{}-disable-dependency-tracking, if the EAPI is listed in
51 table~\ref{tab:econf-options-table} as using it. This option will only be passed if the
52 --
53 2.16.1

Replies