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:   nia
Date:           Mon Nov  6 11:26:45 UTC 2023

Modified Files:
        pkgsrc/net/libtorrent: distinfo
Added Files:
        pkgsrc/net/libtorrent/patches: patch-src_data_memory__chunk.cc

Log Message:
libtorrent: When going out of our way to define a Sun-specific madvise(),
at least match the definition used in the illumos and Solaris manuals.

Should help the build.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/net/libtorrent/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/libtorrent/patches/patch-src_data_memory__chunk.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/distinfo
diff -u pkgsrc/net/libtorrent/distinfo:1.42 pkgsrc/net/libtorrent/distinfo:1.43
--- pkgsrc/net/libtorrent/distinfo:1.42 Tue Oct 26 11:05:57 2021
+++ pkgsrc/net/libtorrent/distinfo      Mon Nov  6 11:26:45 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.42 2021/10/26 11:05:57 nia Exp $
+$NetBSD: distinfo,v 1.43 2023/11/06 11:26:45 nia Exp $
 
 BLAKE2s (libtorrent-0.13.8.tar.gz) = ebd9f2f152cf99b4987e736b88fceecc71377c3f66f1f783e796e00b9c666df2
 SHA512 (libtorrent-0.13.8.tar.gz) = 417177df5b27cd8c6a6317063b0846da2690de4633836466728605c2edad2de407d29d321cc481b8d1352dd0ff6dd89f4566a830424a8cf986f2fddb04704da4
@@ -7,4 +7,5 @@ SHA1 (patch-config.h.in) = 7ea6ef8772775
 SHA1 (patch-src_Makefile.am) = d965bdfd967a71d14ebcad6b32564a1c0908739d
 SHA1 (patch-src_Makefile.in) = 05f55223073fb57cc11fbb307708ba262899d85f
 SHA1 (patch-src_data_chunk__list.cpp) = 92a5f36d7ae993667123051b39e6033c73169f4e
+SHA1 (patch-src_data_memory__chunk.cc) = 25c1e529223ab4873f61430e922949eeb29637c4
 SHA1 (patch-src_torrent_poll__kqueue.cc) = 9e5191d9a9802d46a7c7da20e2ec4c3ce9f45a11

Added files:

Index: pkgsrc/net/libtorrent/patches/patch-src_data_memory__chunk.cc
diff -u /dev/null pkgsrc/net/libtorrent/patches/patch-src_data_memory__chunk.cc:1.1
--- /dev/null   Mon Nov  6 11:26:45 2023
+++ pkgsrc/net/libtorrent/patches/patch-src_data_memory__chunk.cc       Mon Nov  6 11:26:45 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_data_memory__chunk.cc,v 1.1 2023/11/06 11:26:45 nia Exp $
+
+Fix Sun-specific definition of madvise.
+
+--- src/data/memory_chunk.cc.orig      2019-07-19 11:44:08.000000000 +0000
++++ src/data/memory_chunk.cc
+@@ -45,7 +45,7 @@
+ #include "memory_chunk.h"
+ 
+ #ifdef __sun__
+-extern "C" int madvise(void *, size_t, int);
++extern "C" int madvise(caddr_t, size_t, int);
+ //#include <sys/mman.h>
+ //Should be the include line instead, but Solaris
+ //has an annoying bug wherein it doesn't declare



Home | Main Index | Thread Index | Old Index