[59074] trunk/dports/archivers/upx
jmr at macports.org
jmr at macports.org
Fri Oct 9 03:55:28 PDT 2009
Revision: 59074
http://trac.macports.org/changeset/59074
Author: jmr at macports.org
Date: 2009-10-09 03:55:24 -0700 (Fri, 09 Oct 2009)
Log Message:
-----------
upx: add bugfix from maintainer (#21944)
Modified Paths:
--------------
trunk/dports/archivers/upx/Portfile
Added Paths:
-----------
trunk/dports/archivers/upx/files/
trunk/dports/archivers/upx/files/patch-p_mach.cpp
Modified: trunk/dports/archivers/upx/Portfile
===================================================================
--- trunk/dports/archivers/upx/Portfile 2009-10-09 07:54:00 UTC (rev 59073)
+++ trunk/dports/archivers/upx/Portfile 2009-10-09 10:55:24 UTC (rev 59074)
@@ -20,6 +20,8 @@
sha1 76e509efb52e1b891e929601f7cb8acbe349445e \
rmd160 066103c97aa3a624af2903f3e23fb0fe952bffb7
+patchfiles patch-p_mach.cpp
+
universal_variant no
use_configure no
build.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
Added: trunk/dports/archivers/upx/files/patch-p_mach.cpp
===================================================================
--- trunk/dports/archivers/upx/files/patch-p_mach.cpp (rev 0)
+++ trunk/dports/archivers/upx/files/patch-p_mach.cpp 2009-10-09 10:55:24 UTC (rev 59074)
@@ -0,0 +1,34 @@
+--- src/p_mach.cpp Sun Sep 27 20:08:49 2009 +0200
++++ src/p_mach.cpp Thu Oct 08 12:53:02 2009 -0700
+@@ -1170,6 +1170,7 @@
+
+ ph.u_file_size = fat_head.arch[j].size;
+ fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size);
++ fi->seek(0, SEEK_SET);
+ switch (fat_head.arch[j].cputype) {
+ case PackMachFat::CPU_TYPE_I386: {
+ typedef N_Mach::Mach_header<MachClass_LE32::MachITypes> Mach_header;
+@@ -1237,6 +1238,7 @@
+
+ ph.u_file_size = fat_head.arch[j].size;
+ fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size);
++ fi->seek(0, SEEK_SET);
+ switch (fat_head.arch[j].cputype) {
+ case PackMachFat::CPU_TYPE_I386: {
+ N_Mach::Mach_header<MachClass_LE32::MachITypes> hdr;
+@@ -1294,6 +1296,7 @@
+ }
+ for (unsigned j=0; j < fat_head.fat.nfat_arch; ++j) {
+ fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size);
++ fi->seek(0, SEEK_SET);
+ switch (arch[j].cputype) {
+ default: return false;
+ case PackMachFat::CPU_TYPE_I386: {
+@@ -1335,6 +1338,7 @@
+ }
+ for (unsigned j=0; j < fat_head.fat.nfat_arch; ++j) {
+ fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size);
++ fi->seek(0, SEEK_SET);
+ switch (arch[j].cputype) {
+ default: return false;
+ case PackMachFat::CPU_TYPE_I386: {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091009/97d84c45/attachment.html>
More information about the macports-changes
mailing list