From a93089145c5a8dd6c724d7d5ce69702bbf750899 Mon Sep 17 00:00:00 2001 From: naddy Date: Mon, 19 Apr 2010 20:23:00 +0000 Subject: * Do not mark as broken on sparc64. * Fix the build framework so it can successfully #define a wrapper for stat() on those systems where namei() behaves strangely--independent of architecture. --- archivers/gcpio/Makefile | 8 +------- archivers/gcpio/files/patch-src_filetypes.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 archivers/gcpio/files/patch-src_filetypes.h (limited to 'archivers') diff --git a/archivers/gcpio/Makefile b/archivers/gcpio/Makefile index 4ce10671c5b7..282c828c76e1 100644 --- a/archivers/gcpio/Makefile +++ b/archivers/gcpio/Makefile @@ -37,10 +37,4 @@ MAN1= gcpio.1 regression-test: build @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check -.include - -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64: invalid use of stat macro -.endif - -.include +.include diff --git a/archivers/gcpio/files/patch-src_filetypes.h b/archivers/gcpio/files/patch-src_filetypes.h new file mode 100644 index 000000000000..baa94df2d128 --- /dev/null +++ b/archivers/gcpio/files/patch-src_filetypes.h @@ -0,0 +1,12 @@ +--- src/filetypes.h.orig 2010-04-19 22:01:16.000000000 +0200 ++++ src/filetypes.h 2010-04-19 22:04:16.000000000 +0200 +@@ -81,5 +81,9 @@ + #ifndef S_ISLNK + #define lstat stat + #endif ++#ifndef lstat + int lstat (); ++#endif ++#ifndef stat + int stat (); ++#endif -- cgit