Changeset dc7fd7b for BLFS/xsl


Ignore:
Timestamp:
01/12/2018 07:04:19 PM (6 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
2e1c1c3
Parents:
5637b53
Message:

Add .la file removal to LFS and BLFS scripts

Location:
BLFS/xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen_config.xsl

    r5637b53 rdc7fd7b  
    6969                where wrapInstall is used to set up a LD_PRELOAD library (for
    7070                example using porg), and packInstall makes the package tarball
     71
     72config  DEL_LA_FILES
     73        bool "Remove libtool .la files after package installation"
     74        default y
     75        help
     76                This option should be active on any system mixing libtool
     77                and meson build systems. ImageMagick .la files are preserved.
    7178</xsl:text>
    7279  </xsl:template>
  • BLFS/xsl/scripts.xsl

    r5637b53 rdc7fd7b  
    2626  <xsl:param name="wrap-install" select="'n'"/>
    2727
     28  <!-- Remove libtool .la files -->
     29  <xsl:param name="del-la-files" select="'y'"/>
     30
    2831  <!-- Build as user (y) or as root (n)? -->
    2932  <xsl:param name="sudo" select="'y'"/>
    3033
     34<!-- simple instructions for removing .la files. -->
     35  <xsl:variable name="la-files-instr">
     36
     37for libdir in /lib /usr/lib $(find /opt -name lib); do
     38  find $libdir -name \*.la ! -path \*ImageMagick\* -delete
     39done
     40
     41</xsl:variable>
    3142  <xsl:template match="/">
    3243    <xsl:apply-templates select="//sect1"/>
     
    432443          <xsl:apply-templates mode="root"/>
    433444          <xsl:if test="not(following-sibling::screen[1][@role='root'])">
     445            <xsl:if test="$del-la-files = 'y' and
     446                          ancestor::sect2[@role='installation']">
     447              <xsl:call-template name="output-root">
     448                <xsl:with-param name="out-string" select="$la-files-instr"/>
     449              </xsl:call-template>
     450            </xsl:if>
    434451            <xsl:if test="$wrap-install = 'y' and
    435452                          ancestor::sect2[@role='installation']">
Note: See TracChangeset for help on using the changeset viewer.