[jhalfs] 06/09: BLFS tools: Source /etc/profile in scripts

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
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 trunk
in repository jhalfs.

commit b0965faf0d0170ea095c18b6a91013e6de226c32
Author: Pierre Labastie <[email protected]>
AuthorDate: Mon Nov 8 09:55:46 2021 +0100

    BLFS tools: Source /etc/profile in scripts
    
    Since this is not done anymore in envars.conf...
---
 BLFS/xsl/scripts.xsl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
index 45acb3e..4b98fbc 100644
--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -217,6 +217,10 @@ export JH_KEEP_FILES="</xsl:text>
 <!-- Unsetting MAKELEVEL is needed for some packages which assume that
      their top level Makefile is at level zero -->
      <xsl:text>unset MAKELEVEL
+<!-- 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.
+-->if [ -r /etc/profile ]; then source /etc/profile; fi
 # End of environment</xsl:text>
 
       <xsl:choose>

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.