#2504 closed defect
configure fixes for Solaris compatibility
Reported by: | SF/lblume | Owned by: | sev- |
---|---|---|---|
Priority: | low | Component: | Port: Solaris |
Version: | Keywords: | ||
Cc: | Game: |
Description
There are two trivial bugs that prevent configure to work out on the bugs on Solaris: - use of "export PATH", unsupported by Solaris' old /bin/sh - parameter of tail, which seems to be GNU-specific
I corrected the first, and changed the tail parameter to something which is OK by XPG4, so must be supported on any Unix (tested on Solaris and Ubuntu).
See the small attached patch, done on today's CVS.
Ticket imported from: #1436165. Ticket imported from: bugs/2504.
Attachments (2)
Change History (14)
comment:1 by , 19 years ago
Priority: | normal → low |
---|
by , 19 years ago
Attachment: | scummvm_configure.patch added |
---|
comment:5 by , 19 years ago
Owner: | set to |
---|---|
Status: | new → closed |
comment:6 by , 19 years ago
Actually, while "tail -1l" is accepted, it is an obsolescent form (see also <http:// www.opengroup.org/onlinepubs/007908799/xcu/tail.html>). On my system (Mac OS X), tail does work, but generates a warning about this outdated parameter form.
The POSIX standard has required the -n form for quite some form. What Solaris version are you using? I am surprised that it is not compliant in this regard...
comment:7 by , 19 years ago
Keywords: | script removed |
---|---|
Status: | closed → new |
by , 19 years ago
Attachment: | scummvm_configure_tail.patch added |
---|
Configure patch to use XPG4 tail on Solaris
comment:8 by , 19 years ago
It's the latest, Solaris 10 U1.
The problem is that Solaris has separate binaries for XPG4 (and now XPG6) compliant tools. Those in /usr/bin are keeping the Solaris backward compatibility. Those in /usr/xpg4/bin and /usr/xpg6/bin are standard-compliant, but they're not in the PATH by default.
So to use the current form, the script would need to use the standard version on Solaris only.
See my proposal in the new patch attached.
comment:9 by , 19 years ago
Status: | new → closed |
---|
comment:11 by , 6 years ago
Component: | → Ports |
---|
comment:12 by , 6 years ago
Component: | Ports → Port: Solaris |
---|
/bin/sh, tail & config.guess Solaris compatibility