<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/86310cfff25add9f384f44e928b720b568b96d67">https://github.com/macports/macports-ports/commit/86310cfff25add9f384f44e928b720b568b96d67</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 86310cfff25add9f384f44e928b720b568b96d67
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jan 20 02:51:24 2017 -0600
<span style='display:block; white-space:pre;color:#404040;'> dwarf: Fix build failures
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also add modeline and tweak long description.
</span>---
sysutils/dwarf/Portfile | 25 ++++++++++++++++---
sysutils/dwarf/files/readline-6.3.patch | 11 +++++++++
sysutils/dwarf/files/return-types.patch | 43 ++++++++++++++++++++++++++++++++
sysutils/dwarf/files/stdint.patch | 44 +++++++++++++++++++++++++++++++++
4 files changed, 119 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/dwarf/Portfile b/sysutils/dwarf/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1d401e3..e02644c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/dwarf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/dwarf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,3 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> PortSystem 1.0
name dwarf
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +10,7 @@ platforms darwin
</span> maintainers gmail.com:fernando.iazeolla
description a little and powerful object file manipulation tool
long_description dwarf-ng is a powerful object file manipulation tools in \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- the spirit of gdb. with dwarf-ng you can read and edit \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the spirit of gdb. With dwarf-ng you can read and edit \
</span> all the file's section headers as well as the raw data. \
With dwarf-ng you can create and customize new file's \
header and it can be used as a compiler back-end to \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,7 +18,7 @@ long_description dwarf-ng is a powerful object file manipulation tools in \
</span> to inject easily new headers and pieces of code/data \
into the file. dwarf-ng currently handles Raw, ELF \
(Elf32, Elf64), PE (Portable executables PE32, PE+) and \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- Mach-O (OS X executables 32&64bit) files format. In the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Mach-O (macOS executables) files formats. In the \
</span> future new files type will be added.
homepage http://github.com/elboza/dwarf-ng/
master_sites http://download.savannah.gnu.org/releases/dwarf-ng \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,6 +28,21 @@ checksums md5 c67148b14cec1712732e0aa30e478726 \
</span> sha1 19a69424bd208741a325a4fc0e791a516c3bc8bc \
rmd160 255040679c50046e6c1ecf5f3c806c886b3db573
<span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+autoreconf.cmd ./autogen.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib port:readline
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:flex \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:bison
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:autoconf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:automake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:bison \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:flex \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libtool
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/src/libdwarf/stdint.h ${worksrcpath}/src/libdwarf/dw_stdint.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles stdint.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ readline-6.3.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return-types.patch
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/dwarf/files/readline-6.3.patch b/sysutils/dwarf/files/readline-6.3.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f8f713b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/dwarf/files/readline-6.3.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cmdline/dw_readline_completion.c.orig 2017-01-20 02:42:05.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cmdline/dw_readline_completion.c 2017-01-20 02:44:27.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,7 +32,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void initialize_readline()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rl_readline_name="dwarf";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- rl_attempted_completion_function=(CPPFunction *)dwarf_completion;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ rl_attempted_completion_function=(rl_completion_func_t *)dwarf_completion;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rl_completer_word_break_characters = " \t\n\"\\'<=;+*/%^~#{}(),.->$@";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rl_completion_append_character = ' ';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/dwarf/files/return-types.patch b/sysutils/dwarf/files/return-types.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..fcd8b87
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/dwarf/files/return-types.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,43 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/elboza/dwarf-ng/issues/2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/dw_pe_utils.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/dw_pe_utils.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -572,7 +572,7 @@ off_t get_pe_offset2(int sect,int num,int endoffset)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ off_t offs;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char ss[15];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(!fc_ptr) return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(!fc_ptr) return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ maxsect=get_max_pesect();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mz=(_IMAGE_DOS_HEADER*)fc_ptr->faddr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ peoff=get_data32(mz->e_lfanew);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/dw_switchers.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/dw_switchers.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -155,7 +155,7 @@ struct _var* get_s_val(struct _structvar *ptr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void set_s_val(struct _structvar *ptr,struct _var *val)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(!fc_ptr) {printf("unknown file.\n"); return NULL;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(!fc_ptr) {printf("unknown file.\n"); return;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch(fc_ptr->file_type){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case FT_ELF:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elf_set_s_val(ptr,val);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/libdwarf.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/libdwarf.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -335,7 +335,7 @@ int growth(off_t len)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ off_t offset;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int n;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *x;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(!fc_ptr) {printf("no file opened!\n");return;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(!fc_ptr) {printf("no file opened!\n");return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(!fc_ptr->can_grow) {printf("this file cannot change its size\n"); return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(!fc_ptr->fd) {printf("no file opened!\n");return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ x=(char*)malloc(len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -357,7 +357,7 @@ int shrink(off_t len)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ off_t offset,new_offset;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int n;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(!fc_ptr) {printf("no file opened!\n");return;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(!fc_ptr) {printf("no file opened!\n");return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(!fc_ptr->can_grow) {printf("this file cannot change its size\n"); return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(!fc_ptr->fd) {warn("no file opened!\n");return false;}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ offset=lseek(fc_ptr->fd,(off_t)0,SEEK_END);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/dwarf/files/stdint.patch b/sysutils/dwarf/files/stdint.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7bd4a09
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/dwarf/files/stdint.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,44 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/cmdline/dw_readline_completion.c.orig 2011-01-22 07:43:18.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/cmdline/dw_readline_completion.c 2017-01-20 02:36:45.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,7 +26,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include<stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include<readline/readline.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include<readline/history.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include"../libdwarf/stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include"../libdwarf/dw_stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include"dw_readline_completion.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void initialize_readline()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/Makefile.am.orig 2011-01-22 08:45:39.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/Makefile.am 2017-01-20 02:37:42.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,7 +25,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macho.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pe.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mzexe.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- stdint.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ dw_stdint.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dw_switchers.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dw_switchers.c\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dw_elf_utils.h\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/libdwarf.h.orig 2011-01-22 07:43:18.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/libdwarf.h 2017-01-20 02:36:26.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22,7 +22,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include<sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "../../config.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include"stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include"dw_stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include"utils.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include"vars.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include"elf.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libdwarf/utils.h.orig 2011-01-22 07:43:18.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libdwarf/utils.h 2017-01-20 02:36:15.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,7 +20,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef DW_UTILS_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DW_UTILS_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include"stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include"dw_stdint.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef enum {bitNULL,bit8,bit16,bit32,bit64,bit128} filebitclass;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DUMP_SIZE 128
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DUMP_MAX_LINE 16
</span></pre><pre style='margin:0'>
</pre>