Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 212930 Details for
Bug 264130
PMS should require that file mtimes are preserved on merge
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch for PMS.
0001-Preserve-modification-times-of-regular-files-in-EAPI.patch (text/plain), 3.65 KB, created by
Ulrich Müller
on 2009-12-13 22:41:28 UTC
(
hide
)
Description:
Updated patch for PMS.
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2009-12-13 22:41:28 UTC
Size:
3.65 KB
patch
obsolete
>From 4f7eb41e02ad5b649c9775a7c1ad6f7cade72581 Mon Sep 17 00:00:00 2001 >From: Ulrich Mueller <ulm@gentoo.org> >Date: Sun, 13 Dec 2009 23:35:24 +0100 >Subject: [PATCH] Preserve modification times of regular files in EAPI 3. > See bug 264130 and council meetings of 2009-10-12 and 2009-12-07. > > >Signed-off-by: Ulrich Mueller <ulm@gentoo.org> >--- > eapi-differences.tex | 4 +++ > merge.tex | 60 ++++++++++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 62 insertions(+), 2 deletions(-) > >diff --git a/eapi-differences.tex b/eapi-differences.tex >index e73f96d..55f3741 100644 >--- a/eapi-differences.tex >+++ b/eapi-differences.tex >@@ -261,6 +261,9 @@ Controllable compression & \compactfeatureref{controllable-compress} & No & No & > \t{default} function & \compactfeatureref{default-func} & No & No & > \IFANYKDEBUILDELSE{\IFKDEBUILDCOLOUR{No} &}{} Yes & Yes & Yes \\ > >+File mtimes preserved & \compactfeatureref{mtime-preserve} & Undefined & Undefined & >+ \IFANYKDEBUILDELSE{\IFKDEBUILDCOLOUR{Undefined} &}{} Undefined & Yes & Yes \\ >+ > \end{longtable} > \end{landscape} > >@@ -327,6 +330,7 @@ EAPI 2 is EAPI 1 with the following changes: > > EAPI 3 is EAPI 2 with the following changes: > \begin{compactitem} >+\item File modification times are preserved, \featureref{mtime-preserve}. > \item (to be completed) > \end{compactitem} > >diff --git a/merge.tex b/merge.tex >index 91db3fb..d4a35ff 100644 >--- a/merge.tex >+++ b/merge.tex >@@ -60,9 +60,64 @@ as follows: > set*id bit set. > \end{compactitem} > >-On SELinux systems, the SELinux context must also be preserved. Other file attributes, including >-modification time, may be discarded. >+On SELinux systems, the SELinux context must also be preserved. Other >+file attributes may be discarded. >+ >+\subsection{File modification times} >+ >+\featurelabel{mtime-preserve} >+In EAPIs listed in table~\ref{tab:mtime-preserve}, the package manager >+must preserve modification times of regular files. This includes files >+being compressed before merging. Exceptions to this are files newly >+created by the package manager and binary object files being stripped >+of symbols. >+ >+When preserving, the seconds part of every regular file's mtime must >+be preserved exactly. The sub-second part must either be set to zero, >+or set to the greatest value supported by the operating system and >+filesystem that is not greater than the original time. >+ >+For any given destination filesystem, the package manager must ensure >+that there are no two preserved files $a$, $b$ in that filesystem such >+that the comparison $\mbox{mtime}(a) \leq \mbox{mtime}(b)$ does not >+give the same result as the same comparison would have given under the >+original image directory. >+ >+In other EAPIs, the behaviour with respect to file modification times >+is undefined. >+ >+\begin{centertable}{Preservation of file modification times (mtimes)} >+ \label{tab:mtime-preserve} >+\IFKDEBUILDELSE >+{ >+ \begin{tabular}{ l l } >+ \toprule >+ \multicolumn{1}{c}{\textbf{EAPI}} & >+ \multicolumn{1}{c}{\textbf{mtimes preserved?}} \\ >+ \midrule >+ \t{0} & Undefined \\ >+ \t{1} & Undefined \\ >+ \t{kdebuild-1} & Undefined \\ >+ \t{2} & Undefined \\ >+ \t{3} & Yes \\ >+ \t{4} & Yes \\ >+ \bottomrule >+ \end{tabular} >+}{ >+ \begin{tabular}{ l l } >+ \toprule >+ \multicolumn{1}{c}{\textbf{EAPI}} & >+ \multicolumn{1}{c}{\textbf{mtimes preserved?}} \\ >+ \midrule >+ \t{0} & Undefined \\ >+ \t{1} & Undefined \\ >+ \t{2} & Undefined \\ >+ \t{3} & Yes \\ >+ \t{4} & Yes \\ >+ \bottomrule >+ \end{tabular} >+} >+\end{centertable} > > \subsection{Configuration File Protection} > \label{sec:config-protect} >-- >1.6.5.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264130
:
206929
|
212677
|
212678
|
212680
|
212928
|
212930
|
213015
|
215997