commit:     62ba262306fc4fc2eade40854c629c9b1786c3bb
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 20 18:16:12 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Dec  2 19:05:24 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=62ba2623

EAPI 9 no longer rewrites absolute symlinks

Bug: https://bugs.gentoo.org/934514
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eapi-differences.tex |  4 ++++
 merge.tex            | 20 ++++++++++++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/eapi-differences.tex b/eapi-differences.tex
index 99a3526..f07d0b4 100644
--- a/eapi-differences.tex
+++ b/eapi-differences.tex
@@ -195,6 +195,9 @@ Controllable stripping & \compactfeatureref{dostrip} &
 \t{edo} & \compactfeatureref{edo} &
     No & No & No & Yes \\
 
+Absolute symlink rewriting & \compactfeatureref{symlink-rewrite} &
+    Yes & Yes & Yes & No \\
+
 \end{longtable}
 
 \chapter{Differences between EAPIs}
@@ -388,6 +391,7 @@ EAPI 9 is EAPI 8 with the following changes:
 \item \t{pipestatus}, \featureref{pipestatus}.
 \item \t{ver_replacing}, \featureref{ver-replacing}.
 \item \t{edo}, \featureref{edo}.
+\item Absolute symlinks no longer rewritten, \featureref{symlink-rewrite}.
 \end{compactitem}
 
 \ChangeWhenAddingAnEAPI{9}

diff --git a/merge.tex b/merge.tex
index 27b0ba8..f588d54 100644
--- a/merge.tex
+++ b/merge.tex
@@ -138,8 +138,24 @@ Ebuilds must not attempt to merge a symlink on top of a 
directory.
 
 \subsection{Rewriting}
 
-Any absolute symlink whose link starts with \t{D} must be rewritten with the 
leading \t{D} removed.
-The package manager should issue a notice when doing this.
+\featurelabel{symlink-rewrite} In EAPIs listed in 
table~\ref{tab:symlink-rewrite} as rewriting
+symlinks, any absolute symlink whose link target starts with \t{D} must be 
rewritten with the
+leading \t{D} removed. The package manager should issue a notice when 
encountering such a symlink.
+In all other EAPIs, symlinks must be merged with their targets unmodified.
+
+\ChangeWhenAddingAnEAPI{9}
+\begin{centertable}{Rewriting of absolute symlinks in EAPIs}
+    \label{tab:symlink-rewrite}
+    \begin{tabular}{ll}
+      \toprule
+      \multicolumn{1}{c}{\textbf{EAPI}} &
+      \multicolumn{1}{c}{\textbf{Rewrite symlinks?}} \\
+      \midrule
+      0, 1, 2, 3, 4, 5, 6, 7, 8 & Yes \\
+      9                         & No  \\
+      \bottomrule
+    \end{tabular}
+\end{centertable}
 
 \section{Hard links}
 

Reply via email to