commit: 544d28de1b799ffe839bd6d7b5bc15b4d8e5970d Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Apr 29 14:33:48 2023 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Thu May 4 18:39:57 2023 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=544d28de
pkg-mgr-commands.tex: Drop CONF_LIBDIR* and DEFAULT_ABI The CONF_LIBDIR variable was used exclusively in the 2004.3 profile (i.e. it was no longer defined in 2005.0). Portage support for CONF_LIBDIR was added by this commit: https://gitweb.gentoo.org/archive/proj/portage-cvs.git/commit/?id=ecc2faaa00b1e6250129267ba873bedd2121eac5 Note that neither the ABI nor the LIBDIR_${ABI} variable existed at the time. The CONF_LIBDIR_OVERRIDE and DEFAULT_ABI variables were never implemented in the dolib* and einstall commands in Portage. With the three variables dropped, the algorithm is identical to the logic used for get_libdir(). Therefore drop alg:ebuild-libdir and refer to alg:get-libdir instead. Bug: https://bugs.gentoo.org/267159 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> pkg-mgr-commands.tex | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 4fac077..b6113f6 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -430,7 +430,7 @@ commands once the current phase function has returned. table~\ref{tab:offset-env-vars-table}, hence EAPIs lacking offset-prefix support should use \t{D} instead of \t{ED} in the command given in listing~\ref{lst:einstall}. Variable \t{libdir} is an auxiliary local variable whose value is determined by - algorithm~\ref{alg:ebuild-libdir}. + algorithm~\ref{alg:get-libdir}. \begin{listing}[H] \caption{\t{einstall} command} \label{lst:einstall} @@ -554,7 +554,7 @@ the current phase function has returned. EAPI dependent as per section~\ref{sec:failure-behaviour}. \item[dolib.a] For each argument, installs it into the appropriate library subdirectory under - \t{DESTTREE}, as determined by algorithm~\ref{alg:ebuild-libdir}. Files are installed with file + \t{DESTTREE}, as determined by algorithm~\ref{alg:get-libdir}. Files are installed with file mode \t{0644}. Any symlinks are installed into the same directory as relative links to their original target. Failure behaviour is EAPI dependent as per section~\ref{sec:failure-behaviour}. @@ -565,28 +565,6 @@ the current phase function has returned. in table~\ref{tab:banned-commands-table}, this command is banned as per section~\ref{sec:banned-commands}. -\begin{algorithm} -\caption{Determining the library directory} \label{alg:ebuild-libdir} -\begin{algorithmic}[1] -\IF{CONF_LIBDIR_OVERRIDE is set in the environment} - \STATE return CONF_LIBDIR_OVERRIDE -\ENDIF -\IF{CONF_LIBDIR is set in the environment} - \STATE let LIBDIR_default=CONF_LIBDIR -\ELSE - \STATE let LIBDIR_default=``lib'' -\ENDIF -\IF{ABI is set in the environment} - \STATE let abi=ABI -\ELSIF{DEFAULT_ABI is set in the environment} - \STATE let abi=DEFAULT_ABI -\ELSE - \STATE let abi=``default'' -\ENDIF -\STATE return the value of LIBDIR_\$abi -\end{algorithmic} -\end{algorithm} - \item[doman] Installs the given man pages into the appropriate subdirectory of \t{/usr/share/man} depending upon its apparent section suffix (e.\,g.\ \t{foo.1} goes to \t{/usr/share/man/man1/foo.1}) with file mode \t{0644}. @@ -1273,7 +1251,7 @@ has returned. supporting \t{get_libdir}. \begin{algorithm} -\caption{\t{get_libdir} logic} \label{alg:get-libdir} +\caption{Library directory logic} \label{alg:get-libdir} \begin{algorithmic}[1] \STATE let libdir=\t{lib} \IF{the ABI environment variable is set} @@ -1282,7 +1260,7 @@ has returned. \STATE let libdir=the value of the variable named by libvar \ENDIF \ENDIF -\STATE print the value of libdir +\RETURN the value of libdir \end{algorithmic} \end{algorithm}