[jhalfs] 05/09: BLFS: set CMAKE_ALWAYS_INSTALL if porg is used
"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 31 Jan 2025 10:13:14 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch plabs/check-version in repository jhalfs. commit 547df1dfcd97405cabda9850eb8c83bdb66fea01 Author: Pierre Labastie <[email protected]> AuthorDate: Tue Jan 28 15:10:44 2025 +0100 BLFS: set CMAKE_ALWAYS_INSTALL if porg is used cmake does not reinstall files that are already installed and not modified. So not all the files are logged by porg, and the package information is not accurate. The variable CMAKE_ALWAYS_INSTALL has to be set in the environment to force cmake to install all the files. We set it even if cmake is not used, which of course does nothing. But detecting whther a package uses cmake, although doable, is cumbersome... Fixes #1719 --- BLFS/xsl/scripts.xsl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index b5a6fa5..2b88d2b 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -225,6 +225,16 @@ export JH_KEEP_FILES="</xsl:text> <xsl:text>unset MAKELEVEL unset MAKE_TERMOUT unset MAKE_TERMERR +</xsl:text> +<!-- cmake does not reinstall files that are already present and unchanged. + this is not a problem in a DESTDIR install (hopefully DESTDIR is + empty). But it may be a problem with porg. In this case + CMAKE_INSTALL_ALWAYS has to be set in the environment.--> + <xsl:if test="$wrap-install='y'"> + <xsl:text># needed for cmake to overwrite existing files +export CMAKE_INSTALL_ALWAYS=1 +</xsl:text> + </xsl:if> <!-- When installing several packages, and profile or profile.d has been modified by a previous package, we need to ensure that the updated profile is used. -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page