Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276951 - sys-fs/squashfs-tools-4.0 fails to compile on uclibc
Summary: sys-fs/squashfs-tools-4.0 fails to compile on uclibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 16:32 UTC by Ed Wildgoose
Modified: 2009-12-07 23:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated squashfs-tools-4 ebuild (squashfs-tools-4.0-r1.ebuild,1.11 KB, text/plain)
2009-07-07 16:33 UTC, Ed Wildgoose
Details
Patch to compile correctly under uclibc (and glibc) (squashfs-tools-4.0-nprocs.patch,472 bytes, patch)
2009-07-07 16:34 UTC, Ed Wildgoose
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2009-07-07 16:32:45 UTC
Back in squashfs-3.3 there was a patch to replace the use of get_nprocs with a sysconf call instead.  This patch seems to have got dropped in the move to squashfs-4 and this fails on uclibc with an "undefined reference" error

I have attached an updated ebuild and patch file which implements a similar patch as was presumably acceptable for squashfs-3.3 - can someone please confirm if it's correct? It seems to use all 4 processors for me?

Tested on x86_64 using glibc and in a x86 chroot using uclibc



Reproducible: Always

Steps to Reproduce:
Comment 1 Ed Wildgoose 2009-07-07 16:33:33 UTC
Created attachment 197100 [details]
Updated squashfs-tools-4 ebuild
Comment 2 Ed Wildgoose 2009-07-07 16:34:05 UTC
Created attachment 197102 [details, diff]
Patch to compile correctly under uclibc (and glibc)
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-07-08 03:58:43 UTC
Has this patch been submitted upstream?
Comment 4 Ed Wildgoose 2009-07-08 07:18:15 UTC
Just done it now
Comment 5 SpanKY gentoo-dev 2009-12-07 23:02:05 UTC
ive fixed this in the tree with a sed, thanks