Re: [ALFS Trac] #1740: Warn about tarball name vs. extracted directory name mismatch

"ALFS Trac" ([email protected] via alfs-discuss Mailing List) <[email protected]> Wed, 22 Jan 2025 14:23:27 -0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
#1740: Warn about tarball name vs. extracted directory name mismatch
-------------------------+-------------------------
 Reporter:  xry111       |       Owner:  alfs-log@…
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  jhalfs       |     Version:  GIT
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-------------------------
Comment (by Pierre Labastie):

 We could try to catch such mismatches when running the scriptlet, because
 we extract the variable PKGDIR from the tarball (tar -t), and we have
 VERSION from the version entity in the book (through sect1info), so that
 we could add a test like:
 {{{
 if [ ${PKGDIR%$VERSION} = $PKGDIR ]; then <exit on error>; fi
 }}}
 But the risk of false positives (versions of the form xx.yy.zz and
 directory of the form package-xxyyzz for example) is much greater than the
 risk of mismatches, since now the only things that are hosted on anduin
 are the systemd manual pages and udev-lfs. But for those, the mismatch
 would be immediately apparent because the instructions in the book would
 immediately fail.

 So I'm inclined to close as wontfix. But leaving open now for
 discussion...
-- 
Ticket URL: <https://wiki.linuxfromscratch.org/alfs /ticket/1740#comment:2>
ALFS Trac <https://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page