| Newsgroups |
gmane.linux.lfs.automated |
| Message-ID |
<CAB=uRVwYsXGNyt9GvgbsHswx3rWDw6E8sqzFPmuBaitxReQpLg@mail.gmail.com> |
On Mon, Dec 30, 2024 at 9:17 AM jeremy wiig <[email protected]> wrote:
>
>
> On Mon, Dec 30, 2024 at 8:55 AM Pierre Labastie <
> [email protected]> wrote:
>
>> Le lundi 30 décembre 2024 à 08:09 -0700, jeremy wiig a écrit :
>> > Hello all,
>> >
>> > Building LFS 12.2 SYSV with package management selected is failing at
>> > 874-udev because the following install line is not being prepended
>> > with $PKG_DEST by the lfs.xsl:
>> >
>> > install -vm755 -d {/usr/lib,/etc}/udev/{hwdb.d,rules.d,network}
>> >
>> > I haven't dug too far into the stylesheet yet but highly suspect the
>> > curly braces are the issue.
>>
>> Yes they are. The stylesheet only looks for '>/' and ' /' and replace
>> them respectively with '>$PKG_DEST/' and ' $PKG_DEST/'. This is a case
>> where having some tag to distinguish what should be prepended with
>> PKG_DEST instead of just letting the stylesheet guessing would be
>> beneficial. But up to now, there was not a consensus to make any
>> modification to the book for package management...
>>
>> Maybe adding ' {/' to the patterns that should include $PKG_DEST could
>> solve the issue...
>>
>> Pierre
>> --
>>
>>
> I have a patch for the stylesheet that fixed the udev script by matching
> on {/, haven't done any testing yet as i'm away from my build machine, but
> i'll upload it here shortly.
>
diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl
index a29919c..372c18c 100644
--- a/LFS/lfs.xsl
+++ b/LFS/lfs.xsl
@@ -1037,9 +1037,16 @@ LOGLEVEL="</xsl:text>
<xsl:with-param name="outputstring"
select="substring-after($outputstring,'>/')"/>
</xsl:call-template>
</xsl:when>
- <xsl:when test="contains($outputstring,' /')">
+ <xsl:when test="contains($outputstring,' {/')">
+ <xsl:value-of select="substring-before($outputstring,' {/')"/>
+ <xsl:text> $PKG_DEST{/</xsl:text>
+ <xsl:call-template name="outputpkgdest">
+ <xsl:with-param name="outputstring"
select="substring-after($outputstring,' {/')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="contains($outputstring,' /')">
<xsl:value-of select="substring-before($outputstring,' /')"/>
- <xsl:text> $PKG_DEST/</xsl:text>
+ <xsl:text> $PKG_DEST/</xsl:text>
<xsl:call-template name="outputpkgdest">
<xsl:with-param name="outputstring"
select="substring-after($outputstring,' /')"/>
</xsl:call-template>
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page