Commit graph

5 commits

Author SHA1 Message Date
Đoàn Trần Công Danh
c1fa95a097 common: fix exit status of uname wrapper 2021-01-25 09:00:04 +07:00
Đoàn Trần Công Danh
447bae0d3e uname.sh: fix cross uname -m when XBPS_ARCH is reseted
From commit cf6e6f14d3, (wrappers/uname: report correct machine type
on ethereal, 2020-02-10).

Some template use `env -i` to reset environment variable for building
host's binary file, thus the wrapped `uname -m` reports empty strings.

Fix it by falling back to the value reported by `/usr/bin/uname -m`.
We don't expect people cross-compile from i686-ethereal-chroot on top
of x86_64 machine, it was expected to use for travis to native compile
i686 only.
2020-03-24 03:59:36 +01:00
Đoàn Trần Công Danh
cf6e6f14d3 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.
2020-02-11 08:56:25 +01:00
Enno Boland
b12013870d common/wrappers/uname.sh: return with correct exit code. 2016-03-03 12:05:28 +01:00
Enno Boland
5a2a63645f common/wrappers: add date and uname wrappers.
uname:
  overwrites the hostname in command uname with the string 'void'.
date:
  uses the timestamp read from SOURCE_DATE_EPOCH as date.
2016-03-03 11:34:07 +01:00