-
Notifications
You must be signed in to change notification settings - Fork 376
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
Reproducibility fixes #932
base: develop
Are you sure you want to change the base?
Conversation
Please rebase against latest develop branch, github deprecated and removed macos-10.15 builders that we were still using, so macOS builds were not tested. Changes look good to me, if it doesn't break mac builds then it should be good for merging. |
The month may be rendered for the locale of the build environment. https://reproducible-builds.org/docs/locales/
Bash supports == comparison, but other /bin/sh implementations may not.
Filipe Coelho ***@***.***> writes:
Please rebase against latest develop branch,
Done.
github deprecated and removed macos-10.15 builders that we were still using, so macOS builds were not tested.
Changes look good to me, if it doesn't break mac builds then it should be good for merging.
Does MacOS 10.15 use BSD `date` or GNU Coreutils' `date`? Based on
these two resources, it looks like they may have switched to Coreutils:
https://www.unix.com/man-page/osx/1/date/
http://www.polarhome.com/service/man/?qf=DATE&tf=2&of=MacOSX&sf=1
If it's still BSD date, then I'll need to sacrifice a bit of readability
for compatibility. On that note, do you prefer best practises from a
GNU perspective, or maximum BSD compatibility by default? MacOS aside,
the changes proposed in this PR are slightly not BSD-ready.
Thanks!
|
jack2 is supported on macOS and FreeBSD, so it needs to work on those. @0EVSG do you have |
There's |
0EVSG ***@***.***> writes:
There's `date -u` but no `date --utc` - it may be possible to install gnu utils from ports, didn't check.
It's not best practises for GNU systems, but I'm guessing FreeBSD ports
would rather s/--utc/-u/ than install GNU Coreutils.
Thus I've pushed an additional commit to accommodate this case. Maybe
it will make a future where MacOS has man pages for jack2 slightly more
likely to happen ;)
|
That seems fine, even on macOS
@dvzrv as last check, since you handled the man page stuff before, do you see any potential issues with these changes? |
Thanks! |
I believe BSD style date also has a different invocation for using SOURCE_DATE_EPOCH. https://reproducible-builds.org/docs/source-date-epoch/ has an example that should work with at least GNU date and BSD date:
|
@vagrantc you're right, there's no If I read correctly, we only hit this code when Still, it might be easier to do this in a portable fashion right now, than to deal with possible fallout in the future. |
Hello,
I'm a member of the Debian Multimedia Team, and we've recently applied these reproducibility fixes. Thanks to @vagrantc
I hope that you'll consider applying them to your tree as well.
Regards,
Nicholas