Version 9.38.1 - bug 145 "p7zip crashes while moving memory in MoveItems Version 9.38 - patch 23 fixes "7z with unicode file name with surrogate pair is not handled well in Linux" - bug 139 "password from commanline is visible in processes list" Now the characters of the password are replaced with *. - From Windows version of 7-zip - bug138 If you extract the password with # program crashes 7z now supports long password in RAR 3 and 4.diff -r1.57 -r1.58 pkgsrc/archivers/p7zip/Makefile
(adam)
@@ -1,88 +1,87 @@ | @@ -1,88 +1,87 @@ | |||
1 | # $NetBSD: Makefile,v 1.57 2014/12/01 12:43:43 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.58 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= p7zip_9.20.1_src_all | 3 | DISTNAME= p7zip_9.38.1_src_all | |
4 | PKGNAME= p7zip-9.20.1 | 4 | PKGNAME= p7zip-9.38.1 | |
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= archivers | 5 | CATEGORIES= archivers | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
9 | 8 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://p7zip.sourceforge.net/ | 10 | HOMEPAGE= http://p7zip.sourceforge.net/ | |
12 | COMMENT= File archiver with high compression | 11 | COMMENT= File archiver with high compression | |
13 | LICENSE= gnu-lgpl-v2.1 AND unrar-license | 12 | LICENSE= gnu-lgpl-v2.1 AND unrar-license | |
14 | 13 | |||
15 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
16 | USE_TOOLS+= gmake | 15 | USE_TOOLS+= gmake | |
17 | MAKE_FILE= makefile | 16 | MAKE_FILE= makefile | |
18 | MAKE_JOBS_SAFE= no # missing header when compiling sfx | 17 | MAKE_JOBS_SAFE= no # missing header when compiling sfx | |
19 | NO_CONFIGURE= yes | 18 | NO_CONFIGURE= yes | |
20 | PTHREAD_OPTS+= require | 19 | PTHREAD_OPTS+= require | |
21 | PLIST_VARS= dll | 20 | PLIST_VARS= dll | |
22 | 21 | |||
23 | # compiles, but does not recognize any archives as supported | 22 | # compiles, but does not recognize any archives as supported | |
24 | DYNAMIC_7Z= YES | 23 | DYNAMIC_7Z?= NO | |
25 | .if !empty(DYNAMIC_7Z:MYES) | 24 | .if !empty(DYNAMIC_7Z:MYES) | |
26 | BUILD_TARGET= all2 | 25 | BUILD_TARGET= all2 | |
27 | PLIST.dll= yes | 26 | PLIST.dll= yes | |
28 | CFLAGS+= -fPIC | 27 | CFLAGS+= -fPIC | |
29 | .endif | 28 | .endif | |
30 | 29 | |||
31 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/-/_/} | 30 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/-/_/} | |
32 | 31 | |||
33 | GCC_REQD+= 3.0 | 32 | GCC_REQD+= 3.0 | |
34 | 33 | |||
35 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | 34 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | |
36 | .if !empty(DYNAMIC_7Z:MYES) | 35 | .if !empty(DYNAMIC_7Z:MYES) | |
37 | INSTALLATION_DIRS+= lib/7z | 36 | INSTALLATION_DIRS+= lib/7z | |
38 | INSTALLATION_DIRS+= lib/7z/Codecs | 37 | INSTALLATION_DIRS+= lib/7z/Codecs | |
39 | INSTALLATION_DIRS+= lib/7z/Formats | 38 | INSTALLATION_DIRS+= lib/7z/Formats | |
40 | .endif | 39 | .endif | |
41 | INSTALLATION_DIRS+= share/doc/p7zip | 40 | INSTALLATION_DIRS+= share/doc/p7zip | |
42 | INSTALLATION_DIRS+= share/doc/p7zip/commands | 41 | INSTALLATION_DIRS+= share/doc/p7zip/commands | |
43 | INSTALLATION_DIRS+= share/doc/p7zip/switches | 42 | INSTALLATION_DIRS+= share/doc/p7zip/switches | |
44 | 43 | |||
45 | SUBST_CLASSES+= lib | 44 | SUBST_CLASSES+= lib | |
46 | SUBST_FILES.lib+= CPP/7zip/UI/Common/LoadCodecs.cpp | 45 | SUBST_FILES.lib+= CPP/7zip/UI/Common/LoadCodecs.cpp | |
47 | SUBST_SED.lib+= -e "s,getenv(.P7ZIP_HOME_DIR.),\"${PREFIX}/lib/\"," | 46 | SUBST_SED.lib+= -e "s,getenv(.P7ZIP_HOME_DIR.),\"${PREFIX}/lib/\"," | |
48 | SUBST_STAGE.lib= post-patch | 47 | SUBST_STAGE.lib= post-patch | |
49 | 48 | |||
50 | .include "../../mk/dlopen.buildlink3.mk" | 49 | .include "../../mk/dlopen.buildlink3.mk" | |
51 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*} | 50 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} | |
52 | 51 | |||
53 | .include "../../mk/endian.mk" | 52 | .include "../../mk/endian.mk" | |
54 | 53 | |||
55 | .if !empty(MACHINE_ENDIAN:Mbig) | 54 | .if !empty(MACHINE_ENDIAN:Mbig) | |
56 | CFLAGS+= -DBIG_ENDIAN | 55 | CFLAGS+= -DBIG_ENDIAN | |
57 | .else | 56 | .else | |
58 | CFLAGS+= -DLITTLE_ENDIAN | 57 | CFLAGS+= -DLITTLE_ENDIAN | |
59 | .endif | 58 | .endif | |
60 | 59 | |||
61 | do-install: | 60 | do-install: | |
62 | ${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${DESTDIR}${PREFIX}/bin | 61 | ${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${DESTDIR}${PREFIX}/bin | |
63 | .if !empty(DYNAMIC_7Z:MYES) | 62 | .if !empty(DYNAMIC_7Z:MYES) | |
64 | ${INSTALL_LIB} ${WRKSRC}/bin/7z.so ${DESTDIR}${PREFIX}/lib/ | 63 | ${INSTALL_LIB} ${WRKSRC}/bin/7z.so ${DESTDIR}${PREFIX}/lib/ | |
65 | ${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${DESTDIR}${PREFIX}/lib/7z | 64 | ${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${DESTDIR}${PREFIX}/lib/7z | |
66 | ln -f -s ${PREFIX}/lib/7z/7z ${DESTDIR}${PREFIX}/bin | 65 | ln -f -s ${PREFIX}/lib/7z/7z ${DESTDIR}${PREFIX}/bin | |
67 | ${INSTALL_LIB} ${WRKSRC}/bin/Codecs/* \ | 66 | ${INSTALL_LIB} ${WRKSRC}/bin/Codecs/* \ | |
68 | ${DESTDIR}${PREFIX}/lib/7z/Codecs | 67 | ${DESTDIR}${PREFIX}/lib/7z/Codecs | |
69 | .else | 68 | .else | |
70 | ln -f -s 7za ${DESTDIR}${PREFIX}/bin/7z | 69 | ln -f -s 7za ${DESTDIR}${PREFIX}/bin/7z | |
71 | .endif | 70 | .endif | |
72 | ${INSTALL_DATA} ${WRKSRC}/README \ | 71 | ${INSTALL_DATA} ${WRKSRC}/README \ | |
73 | ${DESTDIR}${PREFIX}/share/doc/p7zip | 72 | ${DESTDIR}${PREFIX}/share/doc/p7zip | |
74 | ${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/*.* \ | 73 | ${INSTALL_DATA} ${WRKSRC}/DOC/MANUAL/*.* \ | |
75 | ${DESTDIR}${PREFIX}/share/doc/p7zip | 74 | ${DESTDIR}${PREFIX}/share/doc/p7zip | |
76 | ${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/commands/*.* \ | 75 | ${INSTALL_DATA} ${WRKSRC}/DOC/MANUAL/commands/*.* \ | |
77 | ${DESTDIR}${PREFIX}/share/doc/p7zip/commands | 76 | ${DESTDIR}${PREFIX}/share/doc/p7zip/commands | |
78 | ${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/switches/*.* \ | 77 | ${INSTALL_DATA} ${WRKSRC}/DOC/MANUAL/switches/*.* \ | |
79 | ${DESTDIR}${PREFIX}/share/doc/p7zip/switches | 78 | ${DESTDIR}${PREFIX}/share/doc/p7zip/switches | |
80 | ${INSTALL_MAN} ${WRKSRC}/man1/7z.1 \ | 79 | ${INSTALL_MAN} ${WRKSRC}/man1/7z.1 \ | |
81 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 80 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
82 | ${INSTALL_MAN} ${WRKSRC}/man1/7za.1 \ | 81 | ${INSTALL_MAN} ${WRKSRC}/man1/7za.1 \ | |
83 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 82 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
84 | ${INSTALL_MAN} ${WRKSRC}/man1/7zr.1 \ | 83 | ${INSTALL_MAN} ${WRKSRC}/man1/7zr.1 \ | |
85 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 84 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
86 | 85 | |||
87 | .include "../../mk/pthread.buildlink3.mk" | 86 | .include "../../mk/pthread.buildlink3.mk" | |
88 | .include "../../mk/bsd.pkg.mk" | 87 | .include "../../mk/bsd.pkg.mk" |
@@ -1,49 +1,58 @@ | @@ -1,49 +1,58 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.18 2013/10/04 21:51:57 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.19 2015/06/02 14:53:10 adam Exp $ | |
2 | bin/7z | 2 | bin/7z | |
3 | bin/7za | 3 | bin/7za | |
4 | ${PLIST.dll}lib/7z.so | 4 | ${PLIST.dll}lib/7z.so | |
5 | ${PLIST.dll}lib/7z/7z | 5 | ${PLIST.dll}lib/7z/7z | |
6 | ${PLIST.dll}lib/7z/Codecs/Rar29.so | 6 | ${PLIST.dll}lib/7z/Codecs/Rar29.so | |
7 | man/man1/7z.1 | 7 | man/man1/7z.1 | |
8 | man/man1/7za.1 | 8 | man/man1/7za.1 | |
9 | man/man1/7zr.1 | 9 | man/man1/7zr.1 | |
10 | share/doc/p7zip/README | 10 | share/doc/p7zip/README | |
11 | share/doc/p7zip/commands/add.htm | 11 | share/doc/p7zip/commands/add.htm | |
12 | share/doc/p7zip/commands/bench.htm | 12 | share/doc/p7zip/commands/bench.htm | |
13 | share/doc/p7zip/commands/delete.htm | 13 | share/doc/p7zip/commands/delete.htm | |
14 | share/doc/p7zip/commands/extract.htm | 14 | share/doc/p7zip/commands/extract.htm | |
15 | share/doc/p7zip/commands/extract_full.htm | 15 | share/doc/p7zip/commands/extract_full.htm | |
16 | share/doc/p7zip/commands/hash.htm | |||
16 | share/doc/p7zip/commands/index.htm | 17 | share/doc/p7zip/commands/index.htm | |
17 | share/doc/p7zip/commands/list.htm | 18 | share/doc/p7zip/commands/list.htm | |
19 | share/doc/p7zip/commands/rename.htm | |||
18 | share/doc/p7zip/commands/style.css | 20 | share/doc/p7zip/commands/style.css | |
19 | share/doc/p7zip/commands/test.htm | 21 | share/doc/p7zip/commands/test.htm | |
20 | share/doc/p7zip/commands/update.htm | 22 | share/doc/p7zip/commands/update.htm | |
21 | share/doc/p7zip/exit_codes.htm | 23 | share/doc/p7zip/exit_codes.htm | |
22 | share/doc/p7zip/index.htm | 24 | share/doc/p7zip/index.htm | |
23 | share/doc/p7zip/style.css | 25 | share/doc/p7zip/style.css | |
24 | share/doc/p7zip/switches/ar_exclude.htm | 26 | share/doc/p7zip/switches/ar_exclude.htm | |
25 | share/doc/p7zip/switches/ar_include.htm | 27 | share/doc/p7zip/switches/ar_include.htm | |
26 | share/doc/p7zip/switches/ar_no.htm | 28 | share/doc/p7zip/switches/ar_no.htm | |
27 | share/doc/p7zip/switches/charset.htm | 29 | share/doc/p7zip/switches/charset.htm | |
28 | share/doc/p7zip/switches/exclude.htm | 30 | share/doc/p7zip/switches/exclude.htm | |
29 | share/doc/p7zip/switches/include.htm | 31 | share/doc/p7zip/switches/include.htm | |
30 | share/doc/p7zip/switches/index.htm | 32 | share/doc/p7zip/switches/index.htm | |
31 | share/doc/p7zip/switches/large_pages.htm | 33 | share/doc/p7zip/switches/large_pages.htm | |
32 | share/doc/p7zip/switches/list_tech.htm | 34 | share/doc/p7zip/switches/list_tech.htm | |
33 | share/doc/p7zip/switches/method.htm | 35 | share/doc/p7zip/switches/method.htm | |
34 | share/doc/p7zip/switches/output_dir.htm | 36 | share/doc/p7zip/switches/output_dir.htm | |
35 | share/doc/p7zip/switches/overwrite.htm | 37 | share/doc/p7zip/switches/overwrite.htm | |
36 | share/doc/p7zip/switches/password.htm | 38 | share/doc/p7zip/switches/password.htm | |
37 | share/doc/p7zip/switches/recurse.htm | 39 | share/doc/p7zip/switches/recurse.htm | |
40 | share/doc/p7zip/switches/sa.htm | |||
41 | share/doc/p7zip/switches/scrc.htm | |||
42 | share/doc/p7zip/switches/sdel.htm | |||
38 | share/doc/p7zip/switches/sfx.htm | 43 | share/doc/p7zip/switches/sfx.htm | |
44 | share/doc/p7zip/switches/sni.htm | |||
45 | share/doc/p7zip/switches/sns.htm | |||
46 | share/doc/p7zip/switches/spf.htm | |||
39 | share/doc/p7zip/switches/ssc.htm | 47 | share/doc/p7zip/switches/ssc.htm | |
40 | share/doc/p7zip/switches/stdin.htm | 48 | share/doc/p7zip/switches/stdin.htm | |
41 | share/doc/p7zip/switches/stdout.htm | 49 | share/doc/p7zip/switches/stdout.htm | |
50 | share/doc/p7zip/switches/stl.htm | |||
42 | share/doc/p7zip/switches/stop_switch.htm | 51 | share/doc/p7zip/switches/stop_switch.htm | |
43 | share/doc/p7zip/switches/style.css | 52 | share/doc/p7zip/switches/style.css | |
44 | share/doc/p7zip/switches/type.htm | 53 | share/doc/p7zip/switches/type.htm | |
45 | share/doc/p7zip/switches/update.htm | 54 | share/doc/p7zip/switches/update.htm | |
46 | share/doc/p7zip/switches/volume.htm | 55 | share/doc/p7zip/switches/volume.htm | |
47 | share/doc/p7zip/switches/working_dir.htm | 56 | share/doc/p7zip/switches/working_dir.htm | |
48 | share/doc/p7zip/switches/yes.htm | 57 | share/doc/p7zip/switches/yes.htm | |
49 | share/doc/p7zip/syntax.htm | 58 | share/doc/p7zip/syntax.htm |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.42 2014/12/01 12:43:07 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.43 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (p7zip_9.20.1_src_all.tar.bz2) = 1cd567e043ee054bf08244ce15f32cb3258306b7 | 3 | SHA1 (p7zip_9.38.1_src_all.tar.bz2) = 6b1eccf272d8b141a94758f80727ae633568ba69 | |
4 | RMD160 (p7zip_9.20.1_src_all.tar.bz2) = c3ff2dd12459282b46d9a68ab4af7800ff46039f | 4 | RMD160 (p7zip_9.38.1_src_all.tar.bz2) = df76939ed67f3835fe4f8e92f2fec1ab4e4328c6 | |
5 | Size (p7zip_9.20.1_src_all.tar.bz2) = 3835235 bytes | 5 | Size (p7zip_9.38.1_src_all.tar.bz2) = 3917925 bytes | |
6 | SHA1 (patch-CPP_Windows_DLL.cpp) = 212140b873058eb838a1eb97befebb90512cd7e4 | 6 | SHA1 (patch-CPP_Windows_DLL.cpp) = 12fb3f3cf4d32b8848f741dde6bcb0e56a9c6745 | |
7 | SHA1 (patch-aa) = 6031e4a571c890b6620627989d056ba606c2e0ca | 7 | SHA1 (patch-aa) = 91917c8cfc9638444a32924570067a4298c82105 | |
8 | SHA1 (patch-ab) = a9bd9ab50f6c2d5964de9b2c4e5d9d75e3c29b79 | 8 | SHA1 (patch-ab) = c680fb037b9ef5e19e4c8dc71dd710598277a61b | |
9 | SHA1 (patch-ac) = f5f0acd488a7c524b692b5660042baa79f9937ce | 9 | SHA1 (patch-ac) = 245f93d2a250b0e2f17e7828a82787ac05652800 |
@@ -1,51 +1,51 @@ | @@ -1,51 +1,51 @@ | |||
1 | $NetBSD: patch-CPP_Windows_DLL.cpp,v 1.1 2014/12/01 12:43:07 wiz Exp $ | 1 | $NetBSD: patch-CPP_Windows_DLL.cpp,v 1.2 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | Adapt for pkgsrc on OS X. | 3 | Adapt for pkgsrc on OS X. | |
4 | 4 | |||
5 | --- CPP/Windows/DLL.cpp.orig 2010-02-28 12:44:52.000000000 +0000 | 5 | --- CPP/Windows/DLL.cpp.orig 2011-07-09 16:25:31.000000000 +0000 | |
6 | +++ CPP/Windows/DLL.cpp | 6 | +++ CPP/Windows/DLL.cpp | |
7 | @@ -2,7 +2,7 @@ | 7 | @@ -2,7 +2,7 @@ | |
8 | 8 | |||
9 | #include "StdAfx.h" | 9 | #include "StdAfx.h" | |
10 | 10 | |||
11 | -#ifdef __APPLE_CC__ | 11 | -#ifdef __APPLE_CC__ | |
12 | +#if defined(USE_APPLE_BUNDLE) | 12 | +#if defined(USE_APPLE_BUNDLE) | |
13 | #include <mach-o/dyld.h> | 13 | #include <mach-o/dyld.h> | |
14 | #elif ENV_BEOS | 14 | #elif ENV_BEOS | |
15 | #include <kernel/image.h> | 15 | #include <kernel/image.h> | |
16 | @@ -39,7 +39,7 @@ TRACEN((printf("CLibrary::Free(%p)\n",(v | 16 | @@ -34,7 +34,7 @@ TRACEN((printf("CLibrary::Free(this=%p,% | |
17 | if (_module == 0) | 17 | if (_module == 0) | |
18 | return true; | 18 | return true; | |
19 | 19 | |||
20 | -#ifdef __APPLE_CC__ | 20 | -#ifdef __APPLE_CC__ | |
21 | +#if defined(USE_APPLE_BUNDLE) | 21 | +#if defined(USE_APPLE_BUNDLE) | |
22 | int ret = NSUnLinkModule ((NSModule)_module, 0); | 22 | int ret = NSUnLinkModule ((NSModule)_module, 0); | |
23 | #elif ENV_BEOS | 23 | #elif ENV_BEOS | |
24 | int ret = unload_add_on((image_id)_module); | 24 | int ret = unload_add_on((image_id)_module); | |
25 | @@ -57,7 +57,7 @@ static FARPROC local_GetProcAddress(HMOD | 25 | @@ -52,7 +52,7 @@ static FARPROC local_GetProcAddress(HMOD | |
26 | void *ptr = 0; | 26 | void *ptr = 0; | |
27 | TRACEN((printf("local_GetProcAddress(%p,%s)\n",(void *)module,lpProcName))) | 27 | TRACEN((printf("local_GetProcAddress(%p,%s)\n",(void *)module,lpProcName))) | |
28 | if (module) { | 28 | if (module) { | |
29 | -#ifdef __APPLE_CC__ | 29 | -#ifdef __APPLE_CC__ | |
30 | +#if defined(USE_APPLE_BUNDLE) | 30 | +#if defined(USE_APPLE_BUNDLE) | |
31 | char name[MAX_PATHNAME_LEN]; | 31 | char name[MAX_PATHNAME_LEN]; | |
32 | snprintf(name,sizeof(name),"_%s",lpProcName); | 32 | snprintf(name,sizeof(name),"_%s",lpProcName); | |
33 | name[sizeof(name)-1] = 0; | 33 | name[sizeof(name)-1] = 0; | |
34 | @@ -115,7 +115,7 @@ bool CLibrary::Load(LPCTSTR lpLibFileNam | 34 | @@ -103,7 +103,7 @@ bool CLibrary::Load(LPCTSTR lpLibFileNam | |
35 | 35 | |||
36 | TRACEN((printf("CLibrary::Load(%ls) => %s\n",lpLibFileName,name))) | 36 | TRACEN((printf("CLibrary::Load(this=%p,%ls) => %s\n",(void *)this,lpLibFileName,name))) | |
37 | 37 | |||
38 | -#ifdef __APPLE_CC__ | 38 | -#ifdef __APPLE_CC__ | |
39 | +#if defined(USE_APPLE_BUNDLE) | 39 | +#if defined(USE_APPLE_BUNDLE) | |
40 | NSObjectFileImage image; | 40 | NSObjectFileImage image; | |
41 | NSObjectFileImageReturnCode nsret; | 41 | NSObjectFileImageReturnCode nsret; | |
42 | 42 | |||
43 | @@ -173,7 +173,7 @@ TRACEN((printf("load_add_on(%s)=%d\n",p. | 43 | @@ -161,7 +161,7 @@ TRACEN((printf("load_add_on(%s)=%d\n",p. | |
44 | if (fctTest) fctTest(); | 44 | if (fctTest) fctTest(); | |
45 | 45 | |||
46 | } else { | 46 | } else { | |
47 | -#ifdef __APPLE_CC__ | 47 | -#ifdef __APPLE_CC__ | |
48 | +#if defined(USE_APPLE_BUNDLE) | 48 | +#if defined(USE_APPLE_BUNDLE) | |
49 | NSLinkEditErrors c; | 49 | NSLinkEditErrors c; | |
50 | int num_err; | 50 | int num_err; | |
51 | const char *file,*err; | 51 | const char *file,*err; |
@@ -1,32 +1,30 @@ | @@ -1,32 +1,30 @@ | |||
1 | $NetBSD: patch-aa,v 1.19 2014/04/26 01:16:54 dsainty Exp $ | 1 | $NetBSD: patch-aa,v 1.20 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | --- makefile.machine.orig 2010-05-30 08:33:48.000000000 +0000 | 3 | --- makefile.machine.orig 2015-02-25 20:12:06.000000000 +0000 | |
4 | +++ makefile.machine | 4 | +++ makefile.machine | |
5 | @@ -2,20 +2,20 @@ | 5 | @@ -2,20 +2,18 @@ | |
6 | # makefile for Linux (x86, PPC, alpha ...) | 6 | # makefile for Linux (x86, PPC, alpha ...) | |
7 | # | 7 | # | |
8 | 8 | |||
9 | -OPTFLAGS=-O | 9 | -OPTFLAGS=-O | |
10 | +OPTFLAGS= | 10 | +OPTFLAGS= | |
11 | 11 | |||
12 | -ALLFLAGS=${OPTFLAGS} -pipe -s \ | 12 | -ALLFLAGS=${OPTFLAGS} -pipe -s \ | |
13 | +ALLFLAGS=${OPTFLAGS} -Wall \ | 13 | +ALLFLAGS=${OPTFLAGS} -Wall \ | |
14 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ | 14 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ | |
15 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ | 15 | -DNDEBUG -D_REENTRANT -DENV_UNIX \ | |
16 | -D_7ZIP_LARGE_PAGES \ | 16 | -D_7ZIP_LARGE_PAGES \ | |
17 | $(LOCAL_FLAGS) | 17 | $(LOCAL_FLAGS) | |
18 | 18 | |||
19 | -CXX=g++ $(ALLFLAGS) | 19 | -CXX=g++ | |
20 | -CC=gcc $(ALLFLAGS) | 20 | -CC=gcc | |
21 | -CC_SHARED=-fPIC | 21 | -CC_SHARED=-fPIC | |
22 | -LINK_SHARED=-fPIC -shared | 22 | -LINK_SHARED=-fPIC -shared | |
23 | +CXX+=$(ALLFLAGS) | |||
24 | +CC+=$(ALLFLAGS) | |||
25 | +CC_SHARED= | 23 | +CC_SHARED= | |
26 | +LINK_SHARED=-shared | 24 | +LINK_SHARED=-shared | |
27 | 25 | |||
28 | -LOCAL_LIBS=-lpthread | 26 | -LOCAL_LIBS=-lpthread | |
29 | +LOCAL_LIBS=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | 27 | +LOCAL_LIBS=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} | |
30 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl | 28 | LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl | |
31 | 29 | |||
32 | OBJ_CRC32=$(OBJ_CRC32_C) | 30 | OBJ_CRC32=$(OBJ_CRC32_C) |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-ab,v 1.11 2011/03/14 12:36:43 adam Exp $ | 1 | $NetBSD: patch-ab,v 1.12 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | --- CPP/Windows/FileFind.cpp.orig 2009-06-03 19:40:16.000000000 +0200 | 3 | --- CPP/Windows/FileFind.cpp.orig 2009-06-03 19:40:16.000000000 +0200 | |
4 | +++ CPP/Windows/FileFind.cpp | 4 | +++ CPP/Windows/FileFind.cpp | |
5 | @@ -311,7 +311,8 @@ bool CFindFile::FindFirst(LPCSTR wildcar | 5 | @@ -350,7 +350,8 @@ bool CFindFile::FindFirst(LPCSTR wildcar | |
6 | } | 6 | } | |
7 | 7 | |||
8 | TRACEN((printf("CFindFile::FindFirst : closedir-2(dirp=%p)\n",_dirp))) | 8 | TRACEN((printf("CFindFile::FindFirst : closedir-2(dirp=%p)\n",_dirp))) | |
9 | - closedir(_dirp); | 9 | - closedir(_dirp); | |
10 | + if (_dirp) | 10 | + if (_dirp) | |
11 | + closedir(_dirp); | 11 | + closedir(_dirp); | |
12 | _dirp = 0; | 12 | _dirp = 0; | |
13 | SetLastError( ERROR_NO_MORE_FILES ); | 13 | SetLastError( ERROR_NO_MORE_FILES ); | |
14 | return false; | 14 | return false; |
@@ -1,19 +1,21 @@ | @@ -1,19 +1,21 @@ | |||
1 | $NetBSD: patch-ac,v 1.7 2010/06/16 08:30:09 adam Exp $ | 1 | $NetBSD: patch-ac,v 1.8 2015/06/02 14:53:10 adam Exp $ | |
2 | 2 | |||
3 | --- makefile.glb.orig 2009-07-03 20:44:21.000000000 +0000 | 3 | --- makefile.glb.orig 2015-02-19 14:56:02.000000000 +0000 | |
4 | +++ makefile.glb | 4 | +++ makefile.glb | |
5 | @@ -1,12 +1,12 @@ | 5 | @@ -1,14 +1,14 @@ | |
6 | 6 | |||
7 | RM=rm -f | 7 | RM=rm -f | |
8 | ||||
8 | -CFLAGS=-c -I. \ | 9 | -CFLAGS=-c -I. \ | |
9 | +CFLAGS+=-c -I. \ | 10 | +CFLAGS+=-c -I. \ | |
10 | -I../../../../C \ | 11 | -I../../../../C \ | |
11 | -I../../../myWindows \ | 12 | -I../../../myWindows \ | |
12 | -I../../../include_windows \ | 13 | -I../../../include_windows \ | |
13 | -I../../.. | 14 | -I../../.. \ | |
15 | $(ALLFLAGS) $(ALLFLAGS_C) | |||
14 | 16 | |||
15 | -CXXFLAGS=-c -I. \ | 17 | -CXXFLAGS=-c -I. \ | |
16 | +CXXFLAGS+=-c -I. \ | 18 | +CXXFLAGS+=-c -I. \ | |
17 | -I../../../myWindows \ | 19 | -I../../../myWindows \ | |
18 | -I../../../ \ | 20 | -I../../../ \ | |
19 | -I../../../include_windows | 21 | -I../../../include_windows \ |