wrappers/uname: report correct machine type on ethereal
We're using Ethereal chroot style on Travis CI. In that chroot style, `uname -m` reports x86_64 even if we're bootstrapped with i686 systems. Some i686 build that employ `uname -m` is failing on Travis CI, e.g: https://travis-ci.org/void-linux/void-packages/jobs/648010517#L5787 Change `uname` output to make Travis Output meaningful for i686.
This commit is contained in:
parent
72c8566e57
commit
cf6e6f14d3
|
@ -2,5 +2,8 @@
|
|||
|
||||
uname=$(/usr/bin/uname $@)
|
||||
rv=$?
|
||||
echo "$uname" | sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/"
|
||||
echo "$uname" |
|
||||
sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
|
||||
sed "s/$(/usr/bin/uname -m)/${XBPS_ARCH%-musl}/"
|
||||
|
||||
exit $rv
|
||||
|
|
Loading…
Reference in New Issue