pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [pkgsrc-2017Q1] pkgsrc/net/transmission



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Wed Jun 21 18:51:30 UTC 2017

Modified Files:
        pkgsrc/net/transmission [pkgsrc-2017Q1]: distinfo
Added Files:
        pkgsrc/net/transmission/patches [pkgsrc-2017Q1]:
            patch-libtransmission_platform-quota.c

Log Message:
Pullup ticket #5489 - requested by sevan
net/transmission: build fix for Dragonfly

Revisions pulled up:
- net/transmission/distinfo                                     1.10-1.11
- net/transmission/patches/patch-libtransmission_platform-quota.c 1.4-1.5

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Mon Jun 19 13:21:35 UTC 2017

   Modified Files:
           pkgsrc/net/transmission: distinfo
   Added Files:
           pkgsrc/net/transmission/patches:
   patch-libtransmission_platform-quota.c

   Log Message:
   Apply patch that reportedly fixes the build on DragonflyBSD

   >From Aleksej Lebedev (From dragonfly dports) in pkgsrc-users

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Mon Jun 19 13:33:46 UTC 2017

   Modified Files:
           pkgsrc/net/transmission: distinfo
           pkgsrc/net/transmission/patches:
   patch-libtransmission_platform-quota.c

   Log Message:
   Add last missing hunk for dflybsd build, missed in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.8.1 pkgsrc/net/transmission/distinfo
cvs rdiff -u -r0 -r1.5.2.2 \
    pkgsrc/net/transmission/patches/patch-libtransmission_platform-quota.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/transmission/distinfo
diff -u pkgsrc/net/transmission/distinfo:1.9 pkgsrc/net/transmission/distinfo:1.9.8.1
--- pkgsrc/net/transmission/distinfo:1.9        Fri Apr 15 09:28:39 2016
+++ pkgsrc/net/transmission/distinfo    Wed Jun 21 18:51:30 2017
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.9 2016/04/15 09:28:39 wiz Exp $
+$NetBSD: distinfo,v 1.9.8.1 2017/06/21 18:51:30 bsiegert Exp $
 
 SHA1 (transmission-2.92.tar.xz) = 2140feba45c4471392033d21b86b6f3ef780d88e
 RMD160 (transmission-2.92.tar.xz) = 6da78ce333fa2ea69aa4954c3b052a818ce7c93e
 SHA512 (transmission-2.92.tar.xz) = 4d99476bee88cedcc4238a0eee64a4089016933cbfc1cfb1cca023ad4ebcfe46375c9e7651a17af4aeaaf1feb19cbd8166aa56ef7992d9e745a7bbcbe8efca11
 Size (transmission-2.92.tar.xz) = 3378116 bytes
 SHA1 (patch-ab) = 796faa7c61762dc3ffe563748e55160c827149d2
+SHA1 (patch-libtransmission_platform-quota.c) = 2d9758d24c4329021e0774ac9f8bb3dd94592965
 SHA1 (patch-qt_qtr.pro) = 8d83709175fb4b9a88c3766b130b39160aeadaa3

Added files:

Index: pkgsrc/net/transmission/patches/patch-libtransmission_platform-quota.c
diff -u /dev/null pkgsrc/net/transmission/patches/patch-libtransmission_platform-quota.c:1.5.2.2
--- /dev/null   Wed Jun 21 18:51:30 2017
+++ pkgsrc/net/transmission/patches/patch-libtransmission_platform-quota.c      Wed Jun 21 18:51:30 2017
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Fix dragonflybsd build
+
+--- libtransmission/platform-quota.c.orig      2017-06-19 12:56:41.129003307 +0000
++++ libtransmission/platform-quota.c
+@@ -18,6 +18,8 @@
+  #include <sys/types.h> /* types needed by quota.h */
+  #if defined(__FreeBSD__) || defined(__OpenBSD__)
+   #include <ufs/ufs/quota.h> /* quotactl() */
++ #elif defined (__DragonFly__)
++  #include <vfs/ufs/quota.h> /* quotactl */
+  #elif defined (__NetBSD__)
+   #include <sys/param.h>
+   #ifndef statfs
+@@ -244,12 +246,16 @@ getquota (const char * device)
+ static int64_t
+ getquota (const char * device)
+ {
++#ifdef __DragonFly__
++  struct ufs_dqblk dq;
++#else
+   struct dqblk dq;
++#endif
+   int64_t limit;
+   int64_t freespace;
+   int64_t spaceused;
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__)
+   if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)
+     {
+ #elif defined(__sun)
+@@ -281,7 +287,7 @@ getquota (const char * device)
+           /* No quota enabled for this user */
+           return -1;
+         }
+-#if defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
+       spaceused = (int64_t) dq.dqb_curblocks >> 1;
+ #elif defined(__APPLE__)
+       spaceused = (int64_t) dq.dqb_curbytes;



Home | Main Index | Thread Index | Old Index