Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 264130 | Differences between
and this patch

Collapse All | Expand All

(-)a/eapi-differences.tex (+4 lines)
Lines 142-147 Controllable compression & \compactfeatureref{controllable-compress} & Link Here
142
\t{default} function & \compactfeatureref{default-func} &
142
\t{default} function & \compactfeatureref{default-func} &
143
    No & No & Yes & Yes & Yes \\
143
    No & No & Yes & Yes & Yes \\
144
144
145
File mtimes preserved & \compactfeatureref{mtime-preserve} &
146
    Undefined & Undefined & Undefined & Yes & Yes \\
147
145
\end{longtable}
148
\end{longtable}
146
\end{landscape}
149
\end{landscape}
147
150
Lines 184-189 EAPI 2 is EAPI 1 with the following changes: Link Here
184
187
185
EAPI 3 is EAPI 2 with the following changes:
188
EAPI 3 is EAPI 2 with the following changes:
186
\begin{compactitem}
189
\begin{compactitem}
190
\item File modification times are preserved, \featureref{mtime-preserve}.
187
\item (to be completed)
191
\item (to be completed)
188
\end{compactitem}
192
\end{compactitem}
189
193
(-)a/merge.tex (-3 / +41 lines)
Lines 60-67 as follows: Link Here
60
    set*id bit set.
60
    set*id bit set.
61
\end{compactitem}
61
\end{compactitem}
62
62
63
On SELinux systems, the SELinux context must also be preserved. Other file attributes, including
63
On SELinux systems, the SELinux context must also be preserved. Other
64
modification time, may be discarded.
64
file attributes may be discarded.
65
66
\subsection{File modification times}
67
68
\featurelabel{mtime-preserve}
69
In EAPIs listed in table~\ref{tab:mtime-preserve}, the package manager
70
must preserve modification times of regular files. This includes files
71
being compressed before merging. Exceptions to this are files newly
72
created by the package manager and binary object files being stripped
73
of symbols.
74
75
When preserving, the seconds part of every regular file's mtime must
76
be preserved exactly. The sub-second part must either be set to zero,
77
or set to the greatest value supported by the operating system and
78
filesystem that is not greater than the sub-second part of the
79
original time.
80
81
For any given destination filesystem, the package manager must ensure
82
that for any two preserved files $a$, $b$ in that filesystem the
83
relation $\mbox{mtime}(a) \leq \mbox{mtime}(b)$ still holds, if it
84
held under the original image directory.
85
86
In other EAPIs, the behaviour with respect to file modification times
87
is undefined.
88
89
\begin{centertable}{Preservation of file modification times (mtimes)}
90
    \label{tab:mtime-preserve}
91
    \begin{tabular}{ l l }
92
        \toprule
93
            \multicolumn{1}{c}{\textbf{EAPI}} &
94
            \multicolumn{1}{c}{\textbf{mtimes preserved?}} \\
95
            \midrule
96
    \t{0} & Undefined \\
97
    \t{1} & Undefined \\
98
    \t{2} & Undefined \\
99
    \t{3} & Yes \\
100
    \t{4} & Yes \\
101
    \bottomrule
102
    \end{tabular}
103
\end{centertable}
65
104
66
\subsection{Configuration File Protection}
105
\subsection{Configuration File Protection}
67
\label{sec:config-protect}
106
\label{sec:config-protect}
68
- 

Return to bug 264130