<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fb18fcf763933c89bd1cd3cdc9763a4ad980a3e6">https://github.com/macports/macports-ports/commit/fb18fcf763933c89bd1cd3cdc9763a4ad980a3e6</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 fb18fcf7639 pv: Update to 1.8.5
</span>fb18fcf7639 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fb18fcf763933c89bd1cd3cdc9763a4ad980a3e6
</span>Author: Keto <therealketo@gmail.com>
AuthorDate: Fri Apr 19 15:18:00 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> pv: Update to 1.8.5
</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/68824
</span>---
sysutils/pv/Portfile | 52 +++++++---------------
.../pv/files/fix-modifiers-direct-io-test.diff | 46 +++++++++++++++++++
sysutils/pv/files/src_pv_display.c.patch | 12 -----
3 files changed, 62 insertions(+), 48 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/pv/Portfile b/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5218a77d185..d4cff167100 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,15 +2,14 @@
</span>
PortSystem 1.0
PortGroup muniversal 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup codeberg 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup a-j-wood pv 1.7.24 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+codeberg.setup a-j-wood pv 1.8.5 v
</span>
revision 0
categories sysutils
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers {eborisch @eborisch} openmaintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license artistic-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</span>
description monitor the progress of data through a pipe
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,43 +20,24 @@ long_description pv - Pipe Viewer - is a terminal-based tool for monitoring \
</span> through, how long it has taken, how near to completion it \
is, and an estimate of how long it will be until completion.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.ivarch.com/programs/pv.shtml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.ivarch.com/programs/pv.shtml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${codeberg.homepage}/releases/download/v${version}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 116119 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 da9786dd633225ec0323c25a073eb7c05eaf6159 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 bb7394a6c3a8240c3dafa8507c2e74df7164260854b0ddec89e1b2d2b8bce5e1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 8ff4da8318795e8fcfc9a474fb9c9c0d8988aef8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d22948d06be06a5be37336318de540a2215be10ab0163f8cd23a20149647b780 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 327072
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --mandir=${prefix}/share/man \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --infodir=${prefix}/share/info
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles fix-modifiers-direct-io-test.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:gettext
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append port:autoconf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gettext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:gettext-runtime
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.major} < 10 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 10} {
</span> # Attempt to still work on *old* systems by redefining *stat to *stat64
configure.cppflags-append -Dfstat=fstat64 -Dlstat=lstat64 -Dstat=stat64
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles src_pv_display.c.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E {s^[[:<:]]cksum[[:>:]] ("[^"]+"|-) \| awk[^)]+^md5 -q \1^g} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/tests/Modifiers_-_--direct-io.sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace {s/-q -/-q/} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/tests/Modifiers_-_--direct-io.sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} './generate.sh'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/doc/COPYING \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/doc/NEWS.md \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/README.md \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/pv/files/fix-modifiers-direct-io-test.diff b/sysutils/pv/files/fix-modifiers-direct-io-test.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..80fab75531d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/pv/files/fix-modifiers-direct-io-test.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,46 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff -urN a/tests/Modifiers_-_--direct-io.test b/tests/Modifiers_-_--direct-io.test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/tests/Modifiers_-_--direct-io.test 2023-09-13 04:47:44.000000000 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/tests/Modifiers_-_--direct-io.test 2024-04-19 18:09:03.000000000 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,12 +11,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # generate some data
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dd if=/dev/urandom of="${workFile1}" bs=1024 count=2560 2>/dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-inputChecksum=$(cksum "${workFile1}" | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++inputChecksum=$(md5 -q "${workFile1}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | md5 -q)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # read through pv and test afterwards
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${testSubject}" -q "${workFile1}" > "${workFile2}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++outputChecksum=$(md5 -q "${workFile2}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! test "${inputChecksum}" = "${outputChecksum}"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "checksum mismatched even without \"--direct-io\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,7 +26,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Same again but with "--direct-io"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${testSubject}" -K -q "${workFile1}" > "${workFile2}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++outputChecksum=$(md5 -q "${workFile2}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! test "${inputChecksum}" = "${outputChecksum}"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "checksum mismatched with \"--direct-io\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -35,7 +35,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Now with "--direct-io" and "--rate-limit"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${testSubject}" -K -L 800K -q "${workFile1}" > "${workFile2}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++outputChecksum=$(md5 -q "${workFile2}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! test "${inputChecksum}" = "${outputChecksum}"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "checksum mismatched with \"--direct-io\" + \"--rate-limit\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,7 +44,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Now with "--direct-io" on the same file twice
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${testSubject}" -K -q "${workFile1}" "${workFile1}" > "${workFile2}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++outputChecksum=$(md5 -q "${workFile2}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ! test "${doubleInputChecksum}" = "${outputChecksum}"; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "checksum mismatched with \"--direct-io\" on two files"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/pv/files/src_pv_display.c.patch b/sysutils/pv/files/src_pv_display.c.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 1132ef0bf49..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/pv/files/src_pv_display.c.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,12 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/pv/display.c.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/pv/display.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -23,9 +23,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <termios.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#ifdef GWINSZ_IN_SYS_IOCTL
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <sys/ioctl.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /*
</span></pre><pre style='margin:0'>
</pre>