Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 239472
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ferris McCormick <fmccor@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
zziplib-0.13.49-aligned-access.patch zziplib-0.13.49-aligned-access.patch patch Friedrich Oslage 2008-10-03 21:36 0000 3.44 KB Details | Diff
zziplib-0.13.49-aligned-access.patch zziplib-0.13.49-aligned-access.patch patch Friedrich Oslage 2008-11-17 19:12 0000 1.25 KB Details | Diff
zziplib-0.13.50.patch alternative patch for 0.13.50 patch Friedrich Oslage 2008-12-31 18:01 0000 3.29 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 239472 depends on: Show dependency tree
Bug 239472 blocks: 237202
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-10-03 19:37 0000
dev-libs/zziplib-0.13.49 [-r1] are currently marked -sparc.  Building them with
FEATURES=test generates a bus error (use of misaligned data item) about here
(zip.c + 290)
trailer->zz_entries = zzip_disk_trailer_localentries (orig);
according to gdb.

Program being tested is lt-zziptest  (It works out to 

Now, the real program for this, zzcat, does work, so the problem might be in
the tests themselves, but it's hard to say.

Unfortunately, this problem is holding up sparc for texlive keywording, because
texlive needs luatex, and luatex wants zziplib.  If the problem is in the test
drivers and not in the actual installed package, we can live with that, but
then the tests should be fixed at some point.  I'll investigate as time permits
because of the texlive (luatex) issues.

------- Comment #1 From Friedrich Oslage 2008-10-03 21:36:41 0000 -------
Created an attachment (id=167114) [details]
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 #2 From SpanKY 2008-10-26 04:50:00 0000 -------
(From update of attachment 167114 [details])
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.

------- Comment #3 From Friedrich Oslage 2008-11-17 19:12:03 0000 -------
Created an attachment (id=172106) [details]
zziplib-0.13.49-aligned-access.patch

Right, here's the revised patch, works fine.

------- Comment #4 From SpanKY 2008-11-17 20:26:31 0000 -------
once that patch gets cleaned up, feel free to commit it

http://dev.gentoo.org/~vapier/clean-patches

------- Comment #5 From Friedrich Oslage 2008-11-17 22:39:11 0000 -------
done

------- Comment #6 From SpanKY 2008-11-17 22:56:57 0000 -------
looks good, thanks

------- Comment #7 From Friedrich Oslage 2008-12-31 18:01:07 0000 -------
Created an attachment (id=176962) [details]
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 :)

------- Comment #8 From SpanKY 2008-12-31 22:44:13 0000 -------
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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug