FS#76502 - [libtool] libtool and libtoolize POSIX compatibility issue
Attached to Project:
Arch Linux
Opened by Yuri Cherio (cherio) - Wednesday, 09 November 2022, 18:29 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
Opened by Yuri Cherio (cherio) - Wednesday, 09 November 2022, 18:29 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
|
Details
Description:
"/usr/bin/libtool" script declares itself as a POSIX compatible shell script with shebang "#!/bin/sh", however it fails the "checkbashisms" compatibility test. I am simply reporting it because I had to examine my system shell scripts for POSIX compatibility (as outlined here: https://wiki.archlinux.org/title/Dash#Identifying_bashisms) and encountered this issue. Additional info: * package version: 2.4.7-5 |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:14 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/libtool/issues/1
Saturday, 25 November 2023, 20:14 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/libtool/issues/1
My guess, it may include false positives
$ checkbashisms -l /usr/bin/libtool /usr/bin/libtoolize
/usr/bin/libtool:1098:1: warning: possible bashism; $BASH_SOMETHING
/usr/bin/libtool:1102:1: warning: possible bashism; $BASH_SOMETHING
/usr/bin/libtool:1469:1: warning: possible bashism; $RANDOM
/usr/bin/libtool:1741:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtool:1742:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtool:1746:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtool:1758:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtool:5467:1: warning: possible bashism; should be '.', not 'source'
/usr/bin/libtool:10097:1: warning: possible bashism; shopt
/usr/bin/libtool:10100:1: warning: possible bashism; shopt
/usr/bin/libtoolize:573:1: warning: possible bashism; $BASH_SOMETHING
/usr/bin/libtoolize:577:1: warning: possible bashism; $BASH_SOMETHING
/usr/bin/libtoolize:944:1: warning: possible bashism; $RANDOM
/usr/bin/libtoolize:1216:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtoolize:1217:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtoolize:1221:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
/usr/bin/libtoolize:1233:1: warning: possible bashism; 'printf -v var ...' should be var='$(printf ...)'
See also:
https://www.mail-archive.com/bug-libtool%40gnu.org/msg01265.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570719