Ticket #1747: 0001-replace-zipinfo-with-bsdunzip.patch

File 0001-replace-zipinfo-with-bsdunzip.patch, 820 bytes (added by Pierre Labastie, 3 days ago)

patch to replace zipinfo with bsdtar

  • BLFS/xsl/scripts.xsl

    From 379488a5a3300dfbd9fe2b1899f17b3226a841f6 Mon Sep 17 00:00:00 2001
    From: Zhang Wen <zhw2101024@gmail.com>
    Date: Sun, 16 Feb 2025 00:56:35 +0800
    Subject: [PATCH] replace zipinfo with bsdunzip
    
    ---
     BLFS/xsl/scripts.xsl | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl
    index 0bf4348..fadeac9 100644
    a b case $PACKAGE in  
    349349     JH_UNPACKDIR=`head -n1 unpacked | cut  -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
    350350     ;;
    351351  *.zip)
    352      zipinfo -1 $SRC_DIR/$PACKAGE &gt; unpacked
     352     bsdtar --list -f $SRC_DIR/$PACKAGE &gt; unpacked
    353353     JH_UNPACKDIR="$(sed 's@/.*@@' unpacked | uniq )"
    354354     if test $(wc -w &lt;&lt;&lt; $JH_UNPACKDIR) -eq 1; then
    355355       unzip $SRC_DIR/$PACKAGE