Add patches/patch-openjpeg_libopenjpeg_opj_malloc_h

To avoid following problem:
  | gcc .. (omitted).. g -o ./sobin/gsc ./psi/dxmainc.c \
  | -L./sobin -Wl,-R/usr/pkg/lib -lgs
  | ./sobin/libgs.so: undefined reference to `memalign'

Update TODO
  - Testing above patch
  - Mac OS X has problem now
This commit is contained in:
Makoto Fujiwara 2012-04-18 15:28:46 +00:00 committed by Thomas Klausner
parent 9571767223
commit e49e93fdf4
3 changed files with 27 additions and 3 deletions

View file

@ -1,5 +1,9 @@
$NetBSD: TODO,v 1.3 2012/03/31 12:21:22 makoto Exp $
- Review patches/patch-af carefully
$NetBSD: TODO,v 1.4 2012/04/18 15:28:46 makoto Exp $
- Review patches/patch-af carefully for Darwin
(Actually Mac OS X has problem making libgs.9.05.dynlib)
- Build on DragonFly BSD is not tested
for the patch-openjpeg_libopenjpeg_opj_malloc_h
- pdftoraster seems gone compared to 9.0.4, (with cups only)
-${PLIST.cups}libexec/cups/filter/pdftoraster

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.10 2012/04/02 00:24:47 makoto Exp $
$NetBSD: distinfo,v 1.11 2012/04/18 15:28:46 makoto Exp $
SHA1 (ghostscript-9.05.tar.bz2) = 1a54a846e90ae95b5307f4f0459d044b9597d8cf
RMD160 (ghostscript-9.05.tar.bz2) = 27935f60083b788b2793b19ee42f3663082ba084
@ -14,3 +14,4 @@ SHA1 (patch-base_unix-gcc.mak) = 61da47ef24eeb975df28ad2063a3a1235fcd7885
SHA1 (patch-be) = fde64bd096a6e6f94005c8352a6295df06c19bae
SHA1 (patch-bf) = 8d6c232221f76fa9fb7110b8b01ae8baf1ac15a9
SHA1 (patch-freetype_include_freetype_internal_t1types.h) = 2f56641fb51555b83fd313534bd618764365aee0
SHA1 (patch-openjpeg_libopenjpeg_opj_malloc_h) = 383db0c5909b9d7b33f8da341d82159dbf8594b5

View file

@ -0,0 +1,19 @@
$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.1 2012/04/18 15:28:47 makoto Exp $
To avoid following problem:
| gcc .. (omitted).. g -o ./sobin/gsc ./psi/dxmainc.c \
| -L./sobin -Wl,-R/usr/pkg/lib -lgs
| ./sobin/libgs.so: undefined reference to `memalign'
| gmake[2]: *** [sobin/gsc] Error 1
--- openjpeg/libopenjpeg/opj_malloc.h.orig 2012-04-18 22:36:57.000000000 +0900
+++ openjpeg/libopenjpeg/opj_malloc.h 2012-04-18 22:54:13.000000000 +0900
@@ -84,7 +84,7 @@
#if defined(__sun)
#define HAVE_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
- #elif !defined(__amd64__) && !defined(__APPLE__)
+ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__DragonFly__)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif