Summary: | dev-libs/zziplib-0.13.49 [-r1] generates Bus error on sparc, blocking texlive upgrade. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ferris McCormick (RETIRED) <fmccor> |
Component: | Current packages | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mr_bones_, sparc, tex |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | Sparc | ||
OS: | Linux | ||
URL: | https://sourceforge.net/tracker/index.php?func=detail&aid=2479788&group_id=6389&atid=306389 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 371525, 237202 | ||
Attachments: |
zziplib-0.13.49-aligned-access.patch
zziplib-0.13.49-aligned-access.patch alternative patch for 0.13.50 |
Description
Ferris McCormick (RETIRED)
2008-10-03 19:37:06 UTC
Created attachment 167114 [details, diff]
zziplib-0.13.49-aligned-access.patch
They somehow managed to cast their pointers in a way to break glibc'd bswap_{16,32,64} functions. Fortunately they also provided their own byte swapping functions that do work.
The attached patch works fine for me but I'm unsure what impact it would have on other big-endian arches.
Btw. the tests fail if MAKEOPTS = 3 so the ebuild should probably do emake -j1 check.
Comment on attachment 167114 [details, diff]
zziplib-0.13.49-aligned-access.patch
the code you're changing isnt sparc specific, and really you only need to change the one location in the header file. a simple '&& !defined(__sparc__)'. please test that and post a new patch.
Created attachment 172106 [details, diff]
zziplib-0.13.49-aligned-access.patch
Right, here's the revised patch, works fine.
once that patch gets cleaned up, feel free to commit it http://dev.gentoo.org/~vapier/clean-patches done looks good, thanks Created attachment 176962 [details, diff]
alternative patch for 0.13.50
FYI I investigated ZZIP_HAVE_ALIGNED_ACCESS_REQUIRED in 0.13.50, it fixes fetch.h but not fetch.c.
I attached a patch to change 0.13.50 to do it the way upstream wants to do it. Both this one and the existing zziplib-0.13.50-sparc-aligned-access.patch are fine so use whatever you prefer :)
thanks, ive merged your patch and posted it upstream http://sources.gentoo.org/dev-libs/zziplib/zziplib-0.13.50.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/dev-libs/zziplib/files/zziplib-0.13.50-sparc-aligned-access.patch?r1=1.1&r2=1.2 |