-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
remove endianness macro, fixes #6105 #6149
remove endianness macro, fixes #6105 #6149
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.1-maint #6149 +/- ##
==========================================
Coverage 80.00% 80.00%
==========================================
Files 27 27
Lines 10479 10479
Branches 2146 2146
==========================================
Hits 8384 8384
Misses 1575 1575
Partials 520 520 Continue to review full report at Codecov.
|
This broke 1.1.18 on OpenBSD/sparc64, both 7.2-release and 7.2-CURRENT:
Initialising a repository shows a message (unclear whether this is a warning, an error or perhaps an expected message):
Accessing it then fails:
Purging any local borg state (or trying a fresh OpenBSD installation) yields the same error:
Trying to push into this repository via 1.2.2 is equally effected. Reverting https://github.com/borgbackup/borg/pull/6149.patch on top of a pristine 1.1.18 build fixes it:
|
@klemensn so that platform is big-endian? |
Yes. |
about borg 1.1.x: it is pretty much out of maintenance, 1.1.18 was the last release. about borg 1.2.x: msgpack is not bundled any more (and thus not built as part of the borg build process), but just listed as requirement, so pip will install it. so, if you can reproduce the problem with a borg 1.2.x installation, that means that the msgpack python package is broken (like it is not being built correctly on sparc64) and a bug or better a PR should be filed there. |
a general issue with BE platforms is the lack of testing infrastructure: I don't have any, so I can't test this. ideally, there would be a vagrant box that could be used for testing (within a VM), but I don't know of any. |
@klemensn btw, my change here was only reflecting that change: https://github.com/msgpack/msgpack-python/pull/495/files |
https://github.com/msgpack/msgpack-python/pull/513/files this is a more recent change, check it. Notably that change is not in a msgpack release as of today. |
Good to know, thanks.
I noticed that 1.1.x bundles msgpack while 1.2.x uses the system version, like the OpenBSD port does.
The latest borgbackup-1.2.2p1 and borgbackup-1.1.18p1 packages on OpenBSD/sparc64 fail equally. Just as an additional data point: OpenBSD packages the latest msgpack-python as py3-msgpack-1.0.4p1v0 and its regression tests all pass: |
@klemensn can you uninstall the current msgpack you use with borg 1.2 and then:
after that, install borg 1.2 and try it again (hopefully it take that msgpack and does not install a release over it) would that be the same as the "1.0.4p1v0" you use? |
Thanks, I'll simply pull the upstream patches into the proper OpenBSD net/py-msgpack port/package and see if that fixes borg 1.2.2. |
btw, borg checks the msgpack version and only accepts known-good versions (1.0.4 should be ok, but anything higher needs a change in borg also). |
Yes, but cherry-picking such upstream commits into the port/package won't change its version (unless I crank more than what's known as |
ok, good. btw, if you like, make a PR against borg 1.1-maint with whatever fix you find. likely there won't be another borg 1.1.x release, but at least the branch then has all the patches some other BE user might need. |
Applying https://github.com/msgpack/msgpack-python/pull/513.patch to net/py-msgpack and making sysutils/borgbackup/1.2 requiring that specific fixed py3-msgpack version fixes it. So nothing to do for borgbackup 1.2.x. msgpack-python could roll another release with this fix and should probably expand their regression tests to cover this. I'll take care of the OpenBSD ports, fixed binary packages should roll out soon. |
Since reverting this PR fixes things on OpenBSD, I'm inclined to do just that for our port and call it a day. (after ensuring that other big-endian as well as little-endian architectures still work).
I'll leave that to someone with enough time and energy to extract a proper fix out of this revert. |
I don't think a revert of that changeset would be the right change for borg 1.1.x, considering that this changeset was done for a reason. But rather the later change from msgpack master should be applied to the msgpack code we have bundled in borg 1.1.x: https://patch-diff.githubusercontent.com/raw/msgpack/msgpack-python/pull/513.patch |
Right, that should also work. |
Fixed by #7181 in 1.1-maint. The fix for borg 1.2 and 2.0 will come automatically via a not-yet released msgpack-python 1.0.5. |
Or you apply it to OS packages: |
thanks to everybody who helped with this, esp. @th0ma7 and @methane.