FreeBSD Bugzilla – Attachment 169600 Details for
Bug 208994
archivers/paq is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
set correct filename for patch and thus fix build
patch.txt (text/plain), 4.62 KB, created by
Anton Saietskii
on 2016-04-23 14:35:28 UTC
(
hide
)
Description:
set correct filename for patch and thus fix build
Filename:
MIME Type:
Creator:
Anton Saietskii
Created:
2016-04-23 14:35:28 UTC
Size:
4.62 KB
patch
obsolete
>Index: /usr/ports/archivers/paq/files/patch-zpsfx.cpp >=================================================================== >--- /usr/ports/archivers/paq/files/patch-zpsfx.cpp (revision 0) >+++ /usr/ports/archivers/paq/files/patch-zpsfx.cpp (working copy) >@@ -0,0 +1,77 @@ >+--- zpsfx.cpp.orig 2012-04-09 04:01:23.000000000 -0400 >++++ zpsfx.cpp 2012-04-09 04:02:25.000000000 -0400 >+@@ -16,19 +16,38 @@ >+ the executable smaller. -DNDEBUG turns off run time checks. >+ To convert a ZPAQ archive to a self extracting archive: >+ >++On Windows: >++ >+ copy/b zpsfx.exe+zpsfx.tag+archive.zpaq archive.exe >+ >++On FreeBSD(the choice of archive name is discretionary): >++ >++ cat zpsfx zpsfx.tag archive.zpaq > archive.sfx >++ >+ zpsfx.tag is a 13 byte file used to mark the start of the compressed data >+ that is appended. Alternatively, zpaq with the "t" modifier will append >+ the same tag ("a" appends). >+ >++On Windows: >++ >+ copy zpsfx.exe archive.exe >+ zpaq ta archive.exe files... >+ >++On FreeBSD: >++ >++ cp zpsfx archive.sfx >++ zpaq ta archive.sfx files... >++ >+ To extract: >+ >++On Windows: >++ >+ archive.exe >+ >++On FreeBSD: >++ >++ archive.sfx >++ >+ The program reads itself and decompresses the appended archive. >+ You must enter the .exe extension as shown. If the file is not in >+ the current folder then you need to specify the path. The PATH environment >+@@ -44,7 +63,11 @@ >+ #include <stdio.h> >+ #include <stdlib.h> >+ #include <string> >++#ifdef unix >++#include <sys/stat.h> >++#else >+ #include <windows.h> >++#endif >+ >+ // An error handler is required as shown in this example. libzpaq will >+ // call it with an English language message in case of a fatal error. >+@@ -96,7 +119,11 @@ >+ >+ // Return '/' in Linux or '\' in Windows >+ char slash() { >++#ifdef unix >++ return '/'; >++#else >+ return '\\'; >++#endif >+ } >+ >+ // Create directories as needed. For example if path="/tmp/foo/bar" >+@@ -106,7 +133,11 @@ >+ for (int i=0; i<path.size(); ++i) { >+ if (path[i]=='\\' || path[i]=='/') { >+ path[i]=0; >++#ifdef unix >++ int ok=!mkdir(path.c_str(), 0777); >++#else >+ int ok=CreateDirectory(path.c_str(), 0); >++#endif >+ path[i]=slash(); >+ } >+ } > >Property changes on: /usr/ports/archivers/paq/files/patch-zpsfx.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: /usr/ports/archivers/paq/files/patch_zpsfx.cpp >=================================================================== >--- /usr/ports/archivers/paq/files/patch_zpsfx.cpp (revision 413799) >+++ /usr/ports/archivers/paq/files/patch_zpsfx.cpp (working copy) >@@ -1,77 +0,0 @@ >---- zpsfx.cpp.orig 2012-04-09 04:01:23.000000000 -0400 >-+++ zpsfx.cpp 2012-04-09 04:02:25.000000000 -0400 >-@@ -16,19 +16,38 @@ >- the executable smaller. -DNDEBUG turns off run time checks. >- To convert a ZPAQ archive to a self extracting archive: >- >-+On Windows: >-+ >- copy/b zpsfx.exe+zpsfx.tag+archive.zpaq archive.exe >- >-+On FreeBSD(the choice of archive name is discretionary): >-+ >-+ cat zpsfx zpsfx.tag archive.zpaq > archive.sfx >-+ >- zpsfx.tag is a 13 byte file used to mark the start of the compressed data >- that is appended. Alternatively, zpaq with the "t" modifier will append >- the same tag ("a" appends). >- >-+On Windows: >-+ >- copy zpsfx.exe archive.exe >- zpaq ta archive.exe files... >- >-+On FreeBSD: >-+ >-+ cp zpsfx archive.sfx >-+ zpaq ta archive.sfx files... >-+ >- To extract: >- >-+On Windows: >-+ >- archive.exe >- >-+On FreeBSD: >-+ >-+ archive.sfx >-+ >- The program reads itself and decompresses the appended archive. >- You must enter the .exe extension as shown. If the file is not in >- the current folder then you need to specify the path. The PATH environment >-@@ -44,7 +63,11 @@ >- #include <stdio.h> >- #include <stdlib.h> >- #include <string> >-+#ifdef unix >-+#include <sys/stat.h> >-+#else >- #include <windows.h> >-+#endif >- >- // An error handler is required as shown in this example. libzpaq will >- // call it with an English language message in case of a fatal error. >-@@ -96,7 +119,11 @@ >- >- // Return '/' in Linux or '\' in Windows >- char slash() { >-+#ifdef unix >-+ return '/'; >-+#else >- return '\\'; >-+#endif >- } >- >- // Create directories as needed. For example if path="/tmp/foo/bar" >-@@ -106,7 +133,11 @@ >- for (int i=0; i<path.size(); ++i) { >- if (path[i]=='\\' || path[i]=='/') { >- path[i]=0; >-+#ifdef unix >-+ int ok=!mkdir(path.c_str(), 0777); >-+#else >- int ok=CreateDirectory(path.c_str(), 0); >-+#endif >- path[i]=slash(); >- } >- }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208994
:
169600
|
169954