pkgsrc/archivers/upx/patches/patch-ab
rodent e057c12c24 Updated to latest release, 3.91. Minor whitespace fixes in the Makefile.
Use BUILD_DIRS and MAKE_ENV instead of writing do-install phase manually.
Add sparc{,64} support to package. Fixes build on OpenBSD/sparc64 at least.
Defuzz patches. From NEWS:

==================================================================
User visible changes for UPX
==================================================================

Changes in 3.91 (30 Sep 2013):
  * Added experimental support for Windows 64-bit PE files, based on
    work by Stefan Widmann. Please use for testing only!
  * bug fixes

==================================================================

Changes in 3.09 (18 Feb 2013):
  * New option --preserve-build-id for GNU ELF.
  * Allow for code signing and LC_UUID on Mac OS X executables.
  * Allow non-contiguous LC_SEGMENTs and 0==.vmsize for Mach-O.
  * Allow zero-filled final page in PackUnix::canUnpack().
  * bug fixes
2014-05-26 01:30:39 +00:00

33 lines
1.1 KiB
Text

$NetBSD: patch-ab,v 1.5 2014/05/26 01:30:39 rodent Exp $
Add sparc{,64} support.
--- src/miniacc.h.orig 2013-09-30 15:51:00.000000000 +0000
+++ src/miniacc.h
@@ -914,6 +914,9 @@
#elif defined(__sparc__) || defined(__sparc) || defined(__sparcv8)
# define ACC_ARCH_SPARC 1
# define ACC_INFO_ARCH "sparc"
+#elif defined(__sparc64__)
+# define ACC_ARCH_SPARC64 1
+# define ACC_INFO_ARCH "sparc64"
#elif defined(__SPU__)
# define ACC_ARCH_SPU 1
# define ACC_INFO_ARCH "spu"
@@ -2005,6 +2008,8 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEO
# define ACC_ABI_BIG_ENDIAN 1
#elif 1 && (ACC_ARCH_MIPS) && defined(__MIPSEL__) && !defined(__MIPSEB__)
# define ACC_ABI_LITTLE_ENDIAN 1
+#elif (ACC_ARCH_SPARC || ACC_ARCH_SPARC64)
+# define ACC_ABI_BIG_ENDIAN 1
#endif
#endif
#if (ACC_ABI_BIG_ENDIAN) && (ACC_ABI_LITTLE_ENDIAN)
@@ -2623,7 +2628,6 @@ ACC_COMPILE_TIME_ASSERT_HEADER(sizeof(ac
#define HAVE_FCNTL_H 1
#define HAVE_FLOAT_H 1
#define HAVE_LIMITS_H 1
-#define HAVE_MALLOC_H 1
#define HAVE_MEMORY_H 1
#define HAVE_SETJMP_H 1
#define HAVE_SIGNAL_H 1