[MPlayer-users] Solaris 10: /bin/sh != /bin/bash, and more
Thomas Maier-Komor
thomas at maier-komor.de
Tue May 19 01:42:46 CEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everybody,
I'm trying to compile the latest git clone of module mt.
There is one issue that keeps reoccurring (with other free software,
too). As development is mostly done on systems where /bin/sh is a link
to /bin/bash most developers don't realize the subtle differences
between /bin/sh and /bin/bash. In consequence .sh scripts that have a
#!/bin/sh as a headline fail on systems where /bin/sh is the old bourne
shell and not a bash.
A very simple solution to this issue is to replace #!/bin/sh with
#!/bin/bash. Then the scripts work reliable across all systems with a
bash, and won't fail with syntax errors.
This has absolutely no negative impact on systems like Linux or *BSD. So
PLEASE commit this change.
Second ./configure is using GNU grep syntax without checking if the
available grep is a GNU grep. This can easily be verified by testing the
return status of "grep --version". GNU grep returns 0 while the
traditional grep will return non-zero exit status. GNU grep is named (as
on many other systems that don't default to GNU tools) 'ggrep'.
Next, Solaris has a number of different versions of 'tail'. The tail in
/usr/bin is incompatible to GNU tail. In /usr/xpg4/bin is a compatible
version, concerning the -n syntax. This can be resolved by a
knowledgeable user, but many may overlook this.
I'm running:
% head -1 /etc/release
Solaris 10 5/09 s10s_u7wos_08 SPARC
% uname -a
SunOS azalin 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-2500
These are only minor issues. But it would be great if these minor
changes could be integrated into mplayer...
If you are interested in more feedback concerning portability, I'd be
glad to supply it.
Cheers,
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoR8nYACgkQ6U+hp8PKQZL7iACbBx3QVsZWOfrnjDddWtaIGXkS
5ngAoM7mXhjCKSL1h6BOP1Otr8C/wEQX
=y4LV
-----END PGP SIGNATURE-----
More information about the MPlayer-users
mailing list