FS#37707 - [libcanberra] 40-libcanberra-gtk-module script fails if errexit and nounset are set

Attached to Project: Arch Linux
Opened by Victor Engmark (l0b0) - Saturday, 09 November 2013, 08:47 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 17 February 2015, 09:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The current version of libcanberra.xinit doesn't check whether variables are undefined (as opposed to just empty), and so fails with the following script:

$ cat ~/.xinitrc
set -o errexit -o nounset

if [ -d /etc/X11/xinit/xinitrc.d ]
then
for path in /etc/X11/xinit/xinitrc.d/*
do
[ -x "$path" ] && . "$path"
done
unset path
fi

exec awesome

Additional info:
$ pacman --query libcanberra
libcanberra 0.30-4

Patch <https://github.com/l0b0/packages/commit/689cea5761354137b2908024d56bc28123f792db> attached.
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 17 February 2015, 09:02 GMT
Reason for closing:  Fixed
Comment by Dave Reisner (falconindy) - Saturday, 09 November 2013, 15:35 GMT
Seems "strangely" similar to  FS#37540 ... I wonder how many of these you're going to file...
Comment by Victor Engmark (l0b0) - Sunday, 10 November 2013, 23:02 GMT
Is this not considered a bug, then? The patch is simple and makes the code more portable.

Loading...