-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: fix 32bit builds #157
*: fix 32bit builds #157
Conversation
7e0ca46
to
ee719d9
Compare
80f787e ("*: replace syscall with unix") did not correctly replace the usage of (*syscall.Stat_t).[AM]tim.Unix() in tests, which resulted in 32-bit builds failing in OBS because we run those tests in a %check section. We need to add CI testing to make sure that we don't miss stuff like this in the future. Fixes: 80f787e ("*: replace syscall with unix") Signed-off-by: Aleksa Sarai <asarai@suse.de>
ee719d9
to
0b1aa9b
Compare
Sorry I missed this in #141. I've added some checks to CI to avoid this happening in the future. |
9e7410b
to
53ecd84
Compare
This also adds a local-validate-build target which validates that the project can be built (including the tests), which is then run as part of our CI. Signed-off-by: Aleksa Sarai <asarai@suse.de>
53ecd84
to
d043ade
Compare
LGTM. |
@cyphar I am surprised this fixes the mentioned issue as |
@vrothberg On 32-bit systems, That was the original reason I used |
If you're wondering about what will happen in 2038 to Go programs that use |
Ha, I should have been more careful as I was aware of the casts, but found accessing the members more explicit. Thanks for the fix and the explanation 👍 |
80f787e ("*: replace syscall with unix") did not correctly replace
the usage of (*syscall.Stat_t).[AM]tim.Unix() in tests, which resulted
in 32-bit builds failing in OBS because we run those tests in a %check
section. We need to add CI testing to make sure that we don't miss stuff
like this in the future.
Fixes: 80f787e ("*: replace syscall with unix")
Signed-off-by: Aleksa Sarai asarai@suse.de