<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e819237c338c35f77d8d752eba2cabca5e038e8a">https://github.com/macports/macports-ports/commit/e819237c338c35f77d8d752eba2cabca5e038e8a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new e819237 testdisk: update for libewf 20171104
</span>e819237 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e819237c338c35f77d8d752eba2cabca5e038e8a
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Thu Oct 4 09:34:48 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> testdisk: update for libewf 20171104
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes https://trac.macports.org/ticket/57225
</span>---
sysutils/testdisk/Portfile | 4 +++
.../testdisk/files/patch-testdisk-new-libewf.diff | 29 ++++++++++++++++++++++
2 files changed, 33 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/testdisk/Portfile b/sysutils/testdisk/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b45e00f..c5bdfe3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/testdisk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/testdisk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name testdisk
version 7.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories sysutils
platforms darwin
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,6 +30,9 @@ depends_lib port:libcomerr \
</span> # e2fsprogs is not universal
universal_variant no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# libewf 2017 API changed slightly. Testdisk has not yet been updated for this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-testdisk-new-libewf.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_bzip2 yes
homepage http://www.cgsecurity.org/wiki/TestDisk
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/testdisk/files/patch-testdisk-new-libewf.diff b/sysutils/testdisk/files/patch-testdisk-new-libewf.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f374d02
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/testdisk/files/patch-testdisk-new-libewf.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/ewf.c.orig 2018-10-04 09:27:09.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/ewf.c 2018-10-04 09:27:48.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -72,6 +72,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "log.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "hdaccess.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define LIBEWF_OPEN_READ_WRITE (LIBEWF_ACCESS_FLAG_READ|LIBEWF_ACCESS_FLAG_WRITE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern const arch_fnct_t arch_none;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static const char *fewf_description(disk_t *disk);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -406,7 +408,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct info_fewf_struct *data=(struct info_fewf_struct *)disk->data;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int64_t taille;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined( HAVE_LIBEWF_V2_API )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- taille = libewf_handle_read_random(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ taille = libewf_handle_read_buffer_at_offset(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ data->handle,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ buffer,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ count,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -437,7 +439,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct info_fewf_struct *data=(struct info_fewf_struct *)disk->data;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int64_t taille;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined( HAVE_LIBEWF_V2_API )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- taille = libewf_handle_write_random(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ taille = libewf_handle_write_buffer_at_offset(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ data->handle,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ buffer,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ count,
</span></pre><pre style='margin:0'>
</pre>