[jhalfs] branch trunk updated: BLFS: set CMAKE_ALWAYS_INSTALL if porg is used
"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Tue, 28 Jan 2025 14:19:10 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <173807395080.25190.872018517322148491@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository jhalfs.
The following commit(s) were added to refs/heads/trunk by this push:
new cc7928c BLFS: set CMAKE_ALWAYS_INSTALL if porg is used
cc7928c is described below
commit cc7928cb407c805dc0273f92a260ab897705e57e
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