Monday, November 02, 2026

Re: net/socat 1.8.1.3

On 02.11.2026 14:12, Stuart Henderson wrote: > > - shells/bash is a RUNDEP now > > yes, socat-chain.sh does actually need it (the other scripts installed > to the path look like they'd be happy with ksh) > > > + socat -u - \\ > > + \.RS > > +-\fBFILE:/usr/bin/squid.exe,seek=0x00074420\fP > > ++\fBFILE:/${LOCALBASE}/bin/squid.exe,seek=0x00074420\fP > > It doesn't make sense to patch this, see the text below: > > > +-the executable /usr/bin/squid\&.exe at offset 0x00074420 (this was a real world patch > > - to make the squid executable from Cygwin run under Windows, actual per May 2004)\&. > > .. > > > .PP -/usr/bin/socat -+${LOCALBASE}/bin/socat > > ++/${LOCALBASE}/bin/socat .br -/usr/bin/filan -+${LOCALBASE}/bin/filan > > ++/${LOCALBASE}/bin/filan .br -/usr/bin/procan > > -+${LOCALBASE}/bin/procan > > ++/${LOCALBASE}/bin/procan > > this results in a doubled / bah...thanks for spotting > > --- patches/patch-doc_socat_html 11 Mar 2022 19:47:34 -0000 1.4 > > +++ patches/patch-doc_socat_html 2 Nov 2026 13:21:54 -0000 > > maybe just @comment the html-formatted manpage and drop the patch? As there's also css and other html for documentation, imo we should let the html manpage > > +bin/socat-broker.sh > > +bin/socat-chain.sh > > +bin/socat-mux.sh > ... > > +share/examples/socat/socat-broker.sh > > +share/examples/socat/socat-chain.sh > > +share/examples/socat/socat-mux.sh > > i'd @comment rather than duplicate > > > share/examples/socat/socat_buildscript_for_android.sh > > share/examples/socat/test.sh > > these were already there, but useless to install, so i'd @comment too Updated diff below: Index: Makefile =================================================================== RCS file: /cvs/ports/net/socat/Makefile,v retrieving revision 1.25 diff -u -p -r1.25 Makefile --- Makefile 27 Sep 2023 14:18:33 -0000 1.25 +++ Makefile 2 Nov 2026 15:04:13 -0000 @@ -1,6 +1,6 @@ COMMENT= relay for bidirectional data transfer -DISTNAME= socat-1.7.4.1 +DISTNAME= socat-1.8.1.3 CATEGORIES= net HOMEPAGE= http://www.dest-unreach.org/socat/ @@ -14,10 +14,7 @@ SITES= ${HOMEPAGE}/download/ WANTLIB= c readline crypto util ssl -TEST_DEPENDS= shells/bash - -do-test: - cd ${WRKSRC} && ${SETENV} bash test.sh +RUN_DEPENDS= shells/bash CONFIGURE_STYLE=gnu @@ -29,7 +26,7 @@ pre-build: post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/socat -.for file in FAQ README SECURITY doc/xio.help doc/*.html doc/dest-unreach.css +.for file in FAQ README SECURITY doc/*.html doc/dest-unreach.css ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/socat .endfor ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/socat Index: distinfo =================================================================== RCS file: /cvs/ports/net/socat/distinfo,v retrieving revision 1.15 diff -u -p -r1.15 distinfo --- distinfo 20 Mar 2021 16:24:37 -0000 1.15 +++ distinfo 2 Nov 2026 15:04:13 -0000 @@ -1,2 +1,2 @@ -SHA256 (socat-1.7.4.1.tar.gz) = DH5jUHCvG5A3/ZaGn8RerPmEXLVFR2gd6diFBEU4c20= -SIZE (socat-1.7.4.1.tar.gz) = 648888 +SHA256 (socat-1.8.1.3.tar.gz) = BmAv/VkemMdbPcHWbw8ZE2zGZrCy2Vyq2YfWqyyygJc= +SIZE (socat-1.8.1.3.tar.gz) = 767082 Index: patches/patch-doc_socat_1 =================================================================== RCS file: /cvs/ports/net/socat/patches/patch-doc_socat_1,v retrieving revision 1.9 diff -u -p -r1.9 patch-doc_socat_1 --- patches/patch-doc_socat_1 11 Mar 2022 19:47:34 -0000 1.9 +++ patches/patch-doc_socat_1 2 Nov 2026 15:04:13 -0000 @@ -1,32 +1,18 @@ Index: doc/socat.1 --- doc/socat.1.orig +++ doc/socat.1 -@@ -3639,11 +3635,11 @@ connection, invokes a shell\&. This shell has its stdi - connected to the TCP socket (nofork)\&. The shell starts filan and lets it print the socket addresses to - stderr (your terminal window)\&. - .IP --.IP "\fB\f(CWecho \-e \(dq\&\e0\e14\e0\e0\ec\(dq\& |socat \-u \- file:/usr/bin/squid\&.exe,seek=0x00074420\fP\fP" -+.IP "\fB\f(CWecho \-e \(dq\&\e0\e14\e0\e0\ec\(dq\& |socat \-u \- file:${LOCALBASE}/bin/squid\&.exe,seek=0x00074420\fP\fP" - - .IP - functions as primitive binary editor: it writes the 4 bytes 000 014 000 000 to --the executable /usr/bin/squid at offset 0x00074420 (this is a real world patch -+the executable ${LOCALBASE}/bin/squid at offset 0x00074420 (this is a real world patch - to make the squid executable from Cygwin run under Windows, actual per May 2004)\&. - .IP - .IP "\fB\f(CWsocat \- tcp:www\&.blackhat\&.org:31337,readbytes=1000\fP\fP" -@@ -3810,11 +3806,11 @@ error\&. +@@ -4876,11 +4876,11 @@ error\&. .SH "FILES" .PP -/usr/bin/socat -+${LOCALBASE}/bin/socat ++${LOCALBASE}/bin/socat .br -/usr/bin/filan -+${LOCALBASE}/bin/filan ++${LOCALBASE}/bin/filan .br -/usr/bin/procan +${LOCALBASE}/bin/procan .PP - .SH "ENVIRONMENT VARIABLES" + .SH "SIGNALS" Index: patches/patch-doc_socat_html =================================================================== RCS file: /cvs/ports/net/socat/patches/patch-doc_socat_html,v retrieving revision 1.4 diff -u -p -r1.4 patch-doc_socat_html --- patches/patch-doc_socat_html 11 Mar 2022 19:47:34 -0000 1.4 +++ patches/patch-doc_socat_html 2 Nov 2026 15:04:13 -0000 @@ -1,20 +1,7 @@ Index: doc/socat.html --- doc/socat.html.orig +++ doc/socat.html -@@ -3509,10 +3505,10 @@ connection, invokes a shell. This shell has its stdin - connected to the TCP socket (<a href="socat.html#OPTION_NOFORK">nofork</a>). The shell starts filan and lets it print the socket addresses to - stderr (your terminal window). - <p> --<p><dt><strong><strong><code>echo -e "\0\14\0\0\c" |socat -u - file:/usr/bin/squid.exe,seek=0x00074420</code></strong></strong><dd> -+<p><dt><strong><strong><code>echo -e "\0\14\0\0\c" |socat -u - file:${LOCALBASE}/bin/squid.exe,seek=0x00074420</code></strong></strong><dd> - <p> - functions as primitive binary editor: it writes the 4 bytes 000 014 000 000 to --the executable /usr/bin/squid at offset 0x00074420 (this is a real world patch -+the executable ${LOCALBASE}/bin/squid at offset 0x00074420 (this is a real world patch - to make the squid executable from Cygwin run under Windows, actual per May 2004). - <p> - <p><dt><strong><strong><code>socat - tcp:www.blackhat.org:31337,readbytes=1000</code></strong></strong><dd> -@@ -3669,9 +3665,9 @@ error. +@@ -4755,9 +4755,9 @@ error. <a name="FILES"></a> <h2>FILES</h2> <p> @@ -25,5 +12,5 @@ Index: doc/socat.html +${LOCALBASE}/bin/filan <br> +${LOCALBASE}/bin/procan <p> - <a name="ENVIRONMENT_VARIABLES"></a> - <h2>ENVIRONMENT VARIABLES</h2> + <a name="SIGNALS"></a> + <h2>SIGNALS</h2> Index: patches/patch-fdname_c =================================================================== RCS file: patches/patch-fdname_c diff -N patches/patch-fdname_c --- patches/patch-fdname_c 11 Mar 2022 19:47:34 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -Index: fdname.c ---- fdname.c.orig -+++ fdname.c -@@ -254,10 +254,14 @@ int sockname(int fd, FILE *outfile, char style) { - - #if defined(SO_PROTOCOL) || defined(SO_PROTOTYPE) - #if HAVE_GETPROTOBYNUMBER_R -- rc = getprotobynumber_r(proto, &protoent, protoname, sizeof(protoname), &protoentp); -- if (protoentp == NULL) { -+ struct protoent_data pdata; -+ memset(&protoent, 0, sizeof(protoent)); -+ memset(&pdata, 0, sizeof(pdata)); -+ rc = getprotobynumber_r(proto, &protoent, &pdata); -+ protoentp = &protoent; -+ if (rc == -1) { - Warn2("sockname(): getprotobynumber_r(proto=%d, ...): %s", -- proto, strerror(rc)); -+ proto, strerror(errno)); - } - strncpy(protoname, protoentp->p_name, sizeof(protoname)); - #elif HAVE_GETPROTOBYNUMBER Index: patches/patch-test_sh =================================================================== RCS file: patches/patch-test_sh diff -N patches/patch-test_sh --- patches/patch-test_sh 11 Mar 2022 19:47:34 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ ---- test.sh.orig Sat Jan 24 11:15:22 2015 -+++ test.sh Mon Apr 13 14:58:09 2015 -@@ -576,9 +576,6 @@ filloptionvalues() { - *,dh,*) OPTS=$(echo "$OPTS" |sed "s/,dh,/,dh=/tmp/hugo,/g");; - esac - case "$OPTS" in -- *,egd,*) OPTS=$(echo "$OPTS" |sed "s/,egd,/,egd=/tmp/hugo,/g");; -- esac -- case "$OPTS" in - *,compress,*) OPTS=$(echo "$OPTS" |sed "s/,compress,/,compress=none,/g");; - esac - # PROXY Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/net/socat/pkg/PLIST,v retrieving revision 1.6 diff -u -p -r1.6 PLIST --- pkg/PLIST 11 Mar 2022 19:47:34 -0000 1.6 +++ pkg/PLIST 2 Nov 2026 15:04:13 -0000 @@ -1,7 +1,12 @@ @bin bin/filan @bin bin/procan -@bin bin/socat +bin/socat +bin/socat-broker.sh +bin/socat-chain.sh +bin/socat-mux.sh +@bin bin/socat1 @man man/man1/socat.1 +@man man/man1/socat1.1 share/doc/socat/ share/doc/socat/FAQ share/doc/socat/README @@ -12,17 +17,20 @@ share/doc/socat/socat-multicast.html share/doc/socat/socat-openssltunnel.html share/doc/socat/socat-tun.html share/doc/socat/socat.html -share/doc/socat/xio.help share/examples/socat/ share/examples/socat/daemon.sh share/examples/socat/ftp.sh -share/examples/socat/gatherinfo.sh share/examples/socat/mail.sh share/examples/socat/proxy.sh share/examples/socat/proxyecho.sh share/examples/socat/readline-test.sh share/examples/socat/readline.sh -share/examples/socat/socat_buildscript_for_android.sh +@comment share/examples/socat/socat-broker.sh +@comment share/examples/socat/socat-chain.sh +@comment share/examples/socat/socat-mux.sh +@comment share/examples/socat/socat_buildscript_for_android.sh share/examples/socat/socks4a-echo.sh share/examples/socat/socks4echo.sh -share/examples/socat/test.sh +share/examples/socat/socks5server-auth.sh +share/examples/socat/socks5server-echo.sh +@comment share/examples/socat/test.sh -- Mark Patruck ( mark at wrapped.cx ) GPG key 0xF2865E51 / 187F F6D3 EE04 1DCE 1C74 F644 0D3C F66F F286 5E51 https://www.wrapped.cx

Re: [update] lmdb-1.0.2 (BREAKING CHANGES)

On Sun, Nov 01, 2026 at 02:52:22PM +0100, Jeremie Courreges-Anglas wrote: > On Sat, Oct 31, 2026 at 09:19:01AM -0400, Kurt Mosiejczuk wrote: > > On Sat, Oct 31, 2026 at 12:15:30PM +0100, Jeremie Courreges-Anglas wrote: > > > On Fri, Jul 03, 2026 at 05:25:43PM +0100, Stuart Henderson wrote: > > > > On 2026/07/03 18:11, Jeremie Courreges-Anglas wrote: > > > [...] > > > > > Pending some actual migration reports, I'd like to postpone the > > > > > decision of adding @ask-update. Users could probably also benefit > > > > > from a current.html entry, which could very well be enough given the > > > > > availability of mdb_dump-0.9 in the package and the loud MESSAGE. > > > > > > makes sense. > > > > > So far I only got a report from kmos who reported no visible issue, > > > even though I doubt that lwjgl3 is a heavy lmdb user. Therefore I'm > > > heading for just a current.html entry + MESSAGE. > > > > > Here's an updated diff with the following changes: > > > - update to 1.0.2 (and 0.9.36) > > > - move to github since upstream's gitlab refuses me with http 429 > > > - keep PORTROACH from sthen since portroach apparently doesn't handle > > > DIST_TUPLE > > > - drop pointless Makefile hunks, we're overriding the variables on the > > > command-line anyway > > > - use the .pc file generated upstream, but tweak its generation > > > > > I'll run a partial bulk but I strongly suspect nothing will break. > > > Upgrade test reports still welcome. > > > > Well, I would definitel like this to go in because now latest lwjgl3 > > requires 1.0.x. > > > > ok kmos > > Thx for the feedback & ok, Kurt. Here's a tweaked version that > appears needed at least for net/knot. The new SysV semaphores code > path breaks net/knot(-3.6.2, not sure about -3.5.8) with semop(2) > returning EACCES. I don't feel like debugging the root cause so let's > just use the same semaphore implem as previously. > > Some tweaks: > - add patch comments > - use mdb_dump -a in test case and MESSAGE Using mdb_dump-0.9 -a in the example may be misleading since it errors out when the source database doesn't contain sub-databases ; I'll find another way to mention it in MESSAGE before committing > Except for a bogus code pattern in bogofilter fixed yesterday I'm not > aware of any other regression. I will therefore commit this very soon > unless I hear objections. More test reports & oks are still welcome. Tentative diff for current.html. Index: current.html =================================================================== RCS file: /cvs/www/faq/current.html,v diff -u -p -r1.1166 current.html --- current.html 16 Oct 2026 06:16:59 -0000 1.1166 +++ current.html 2 Nov 2026 15:04:56 -0000 @@ -85,6 +85,19 @@ interface, as its sessions may also be t See <a href="https://man.openbsd.org/pppoe">pppoe(4)</a> for details. +<h3 id="r202611XX">2026/11/XX - [packages] LMDB 1.0 incompatible database format</h3> + +<p> +LMDB was updated to 1.0. +This version doesn't understand the database format used by LMDB 0.9. +You can use <code>mdb_dump-0.9 [-a]</code> to create a dump of your +existing databases and <code>mdb_load</code> to restore them. +<pre class="cmdbox"> +mdb_dump-0.9 old-db > old-db.txt +mdb_load -f old-db.txt new-db +</pre> + + <!-- New sections at the bottom, with two blank lines before. New sentences start on new lines. -- jca