docbook fails to build with jhalfs

Zhang Wen ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <CAKjfnjqTkK5ZGGKhU=YTJB=85vT9u8w++7a4YyiZxw2ovncdWQ@mail.gmail.com>
docbook-xml contains one directory ent and various files in the source
file, which be treated as containing top directory by accident.
The following patch work for me and can be cleanly applied to the trunk branch:

--- a/BLFS/xsl/scripts.xsl
+++ b/BLFS/xsl/scripts.xsl
@@ -1188,8 +1188,8 @@ case $PACKAGE in
      JH_UNPACKDIR=`head -n1 unpacked | cut  -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
      ;;
   *.zip)
-     python3 -m zipfile -l $SRC_DIR/$PACKAGE &gt; unpacked
-     JH_UNPACKDIR="$(sed -n 's@/.*@@p' unpacked | uniq )"
+     python3 -m zipfile -l $SRC_DIR/$PACKAGE|sed '1d' &gt; unpacked
+     JH_UNPACKDIR="$(sed 's@/.*@@p' unpacked | uniq )"
      if test $(wc -w &lt;&lt;&lt; $JH_UNPACKDIR) -eq 1; then
        python3 -m zipfile -e $SRC_DIR/$PACKAGE .
      else

-- 
Key fingerprint:
419F 72F3 F3A9 36EE 1B72  B00B C1C3 4BD4 FDA3 362F

-- 
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.