Hi,

We seem to have quite a few bashisms
(http://mywiki.wooledge.org/Bashism ) in Mer RPM scriptlets (like
%post, %pre) etc. This may cause a problem if we ever switched to dash
being /bin/sh (mer bug 26)

I've run them through with checkbashisms.pl
(https://lists.ubuntu.com/archives/ubuntu-motu/2008-April/003724.html
) and submitted a bunch of bugs at
https://bugs.merproject.org/showdependencytree.cgi?id=26&hide_resolved=1

If anyone wants to take on any of these they're more than welcome -
it's a nice junior job.

Some of the issues may be caused centrally, by a bad spectacle
template, in which case we should fix spectacle. Some might even be in
our RPM configuration (%install_info). An example from spectacle's
spec/spec.tmpl:

## -DesktopDB
#if $extra.DesktopDB
update-desktop-database %{_datadir}/applications &> /dev/null || :
#end if

Which is a bashism. When we've fixed spectacle we then need to re-run
specify on each of the yaml-using packages.

BR
Carsten Munk


Reply via email to