Summary: | Build of lcms2art on big endian fails | ||
---|---|---|---|
Product: | MuPDF | Reporter: | M.J.G. <mjg> |
Component: | mupdf | Assignee: | Robin Watts <robin.watts> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
Patch
Big endian FTBFS fix for lcms2 2.10art |
Description
M.J.G.
2018-06-03 18:01:02 UTC
Created attachment 19916 [details] Big endian FTBFS fix for lcms2 2.10art Here is an updated patch to make your fork of lcms2 build from source on big endian architectures. See e.g.: https://koji.fedoraproject.org/koji/taskinfo?taskID=52714864 The issue is still the same (passing the context down for thread safety; on BigEndian byteReverse is not a no-op ...), the changed patch simply adapts to a name change (compared to the previous patch). Not sure if this should be Michael or someone else, but assigning it to him so he can hunt for someone else to pass it to. I think this falls under the area of Robin and or Chris. I will push it to Robin. (In reply to M.J.G. from comment #1) > The issue is still the same (passing the context down for thread safety; on > BigEndian byteReverse is not a no-op ...), the changed patch simply adapts > to a name change (compared to the previous patch). Regardless of endianness byteReverse doesn't need a ContextID. So... what's the point of passing it there? We know this builds/runs on sparc, which is big endian, so I think we need to know more. Like some errors from the build, please? (In reply to Robin Watts from comment #4) > (In reply to M.J.G. from comment #1) > > The issue is still the same (passing the context down for thread safety; on > > BigEndian byteReverse is not a no-op ...), the changed patch simply adapts > > to a name change (compared to the previous patch). > > Regardless of endianness byteReverse doesn't need a ContextID. So... what's > the point of passing it there? The mentinoned commit 0dc1153 introduced the context argument to many functions, in particular it changed the call signature of _cmsAdjustEndianess32() and most call sites calling that function. It did not change the call within byteReverse(), and this mattered only if CMS_USE_BIG_ENDIAN is defined because otherwise byteReverse() was defined to be a noop. That's what necessitated my original patch - because otherwise mupdf back then did not build on big endian. c9f2256 ("Remove ContextID from _cmsAdjustEndianess calls.", 2018-10-13) removed the ContextID argument from those calls. When that commit landed in the lcms2mt which mupdf bundles, mupdf with that lcms2mt and my first patch did not build any more. Since I overlooked c9f2256 at that time I simply adjusted my patch, thus passing down ContextID unnecessarily in that callchain. I just checked: the mupdf package which I maintain in Fedora builds without the patch on all architectures now. So, while this was a bug back when reported it has been fixed through c9f2256 and can be closed now. Thanks for letting us know! |