Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275295 - app-arch/cpio-2.x fails on non-GNU compilers
Summary: app-arch/cpio-2.x fails on non-GNU compilers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-24 15:11 UTC by Stuart Shelton
Modified: 2010-07-09 20:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-06-24 15:11:31 UTC
app-arch/cpio-2.10 requires the following patch:

--- src/cpiohdr.h.dist  2009-06-24 15:41:26.983725240 +0100
+++ src/cpiohdr.h       2009-06-24 15:41:59.753567720 +0100
@@ -24,6 +24,8 @@
 
 #ifdef HAVE_ATTRIB_PACKED
 #define ATTRIB_PACKED __attribute__((packed))
+#else
+#define ATTRIB_PACKED
 #endif
 
 #ifdef HAVE_PRAGMA_PACK

... to build successfully on (non-GNU) compilers where HAVE_ATTRIB_PACKED is not defined.  Otherwise, the compiler barfs when ATTRIB_PACKED appears.

The cpio test-suite passes for the binary built with this change.
Comment 1 Fabian Groffen gentoo-dev 2009-06-28 11:25:21 UTC
patch applied, thanks
Comment 2 Stuart Shelton 2010-05-25 09:33:45 UTC
This patch is also needed with cpio-2.11 :(
Comment 3 Fabian Groffen gentoo-dev 2010-07-09 20:23:52 UTC
please report it upstream, it seems rather trivial to me, meaning next releases could just compile out of the box for IRIX.