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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To freswa (frederik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Yuri Cherio (cherio) - Wednesday, 09 November 2022, 19:17 GMT
Just in case I am including the result of compatibility test below.
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 ...)'
Comment by freswa (frederik) - Wednesday, 09 November 2022, 20:09 GMT

Loading...