pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/libtorrent
Module Name: pkgsrc
Committed By: gdt
Date: Sat Jul 18 18:28:15 UTC 2026
Modified Files:
pkgsrc/net/libtorrent: Makefile distinfo
Added Files:
pkgsrc/net/libtorrent/patches: patch-src_torrent_system_system.cc
Log Message:
net/librtorrent: Remediate non-POSIXy socket use
The code used AF_INET without including sys/socket.h. Add a patch to
include it. Resolves build failure on NetBSD 10 (which is a
regression from 0.16.17).
To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 pkgsrc/net/libtorrent/Makefile
cvs rdiff -u -r1.69 -r1.70 pkgsrc/net/libtorrent/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/net/libtorrent/patches/patch-src_torrent_system_system.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/libtorrent/Makefile
diff -u pkgsrc/net/libtorrent/Makefile:1.95 pkgsrc/net/libtorrent/Makefile:1.96
--- pkgsrc/net/libtorrent/Makefile:1.95 Fri Jul 17 10:20:46 2026
+++ pkgsrc/net/libtorrent/Makefile Sat Jul 18 18:28:15 2026
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.95 2026/07/17 10:20:46 adam Exp $
+# $NetBSD: Makefile,v 1.96 2026/07/18 18:28:15 gdt Exp $
DISTNAME= libtorrent-0.16.18
+PKGREVSION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=rakshasa/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Index: pkgsrc/net/libtorrent/distinfo
diff -u pkgsrc/net/libtorrent/distinfo:1.69 pkgsrc/net/libtorrent/distinfo:1.70
--- pkgsrc/net/libtorrent/distinfo:1.69 Fri Jul 17 10:20:46 2026
+++ pkgsrc/net/libtorrent/distinfo Sat Jul 18 18:28:15 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.69 2026/07/17 10:20:46 adam Exp $
+$NetBSD: distinfo,v 1.70 2026/07/18 18:28:15 gdt Exp $
BLAKE2s (libtorrent-0.16.18.tar.gz) = fe2332df5d453061702e31778d2979d0abd8d0df834e2167f22ab7b286aaab04
SHA512 (libtorrent-0.16.18.tar.gz) = b783dc72f5aff32d403a02e31278baa3813bee3ecae9bd493c181e14db3e707d9d4df90395ab7e29f1b7b501a0874c12cc1beef51a84772b02c1e4f13aa62ad0
Size (libtorrent-0.16.18.tar.gz) = 496655 bytes
SHA1 (patch-src_data_chunk__list.cc) = 581e38ccd2e31b991e1a95dcd4836a7bda11e4e6
SHA1 (patch-src_data_memory__chunk.cc) = 3e6db8ff3e4a29dfc5956c1919611e45a479ce96
+SHA1 (patch-src_torrent_system_system.cc) = 5a2b5ff6b8b7e5cae278f66a085e3c15b4c6bb38
Added files:
Index: pkgsrc/net/libtorrent/patches/patch-src_torrent_system_system.cc
diff -u /dev/null pkgsrc/net/libtorrent/patches/patch-src_torrent_system_system.cc:1.1
--- /dev/null Sat Jul 18 18:28:15 2026
+++ pkgsrc/net/libtorrent/patches/patch-src_torrent_system_system.cc Sat Jul 18 18:28:15 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_torrent_system_system.cc,v 1.1 2026/07/18 18:28:15 gdt Exp $
+
+system.cc uses AF_INET. POSIX says that constants are defined in sys/socket:
+
+ https://pubs.opengroup.org/onlinepubs/9799919799/functions/socket.html
+
+Not yet reported upstream.
+
+--- src/torrent/system/system.cc.orig 2026-07-18 18:18:35.886055891 +0000
++++ src/torrent/system/system.cc
+@@ -4,6 +4,8 @@
+ #include <cstdio>
+ #include <netdb.h>
+
++#include <sys/socket.h>
++
+ #include "torrent/exceptions.h"
+ #include "torrent/system/callbacks.h"
+ #include "torrent/system/thread.h"
Home |
Main Index |
Thread Index |
Old Index