pkgsrc-Bugs archive

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

pkg/45281: net/Transmission: fix DragonFly build



>Number:         45281
>Category:       pkg
>Synopsis:       net/Transmission: fix DragonFly build
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 22 14:35:00 +0000 2011
>Originator:     Matthias Rampke
>Release:        DragonFly 2.11
>Organization:
>Environment:
DragonFly zz.2pktfkt.net 2.11-DEVELOPMENT DragonFly 
v2.11.0.677.g10f4bf-DEVELOPMENT #8: Wed Aug 17 05:01:32 CEST 2011     
matthias%zz.2pktfkt.net@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
Transmission 2.32 won't build on DragonFly. To fix, the attached patch

* sets appropriate "BSD" preprocessor variable as for the other BSDs
* includes <netinet/in.h> in third-party/utp
>How-To-Repeat:
try to build net/Transmission on DFly
>Fix:
diff --git a/net/Transmission/Makefile b/net/Transmission/Makefile
index da10839..54ec586 100644
--- a/net/Transmission/Makefile
+++ b/net/Transmission/Makefile
@@ -24,7 +24,7 @@ LDFLAGS+=             ${BUILDLINK_LDADD.getopt} 
${BUILDLINK_LDADD.gettext}
 LDFLAGS+=              -static
 
 .include "../../mk/bsd.prefs.mk"
-.if !empty(OPSYS:M*BSD)
+.if !empty(OPSYS:M*BSD) || !empty(OPSYS:MDragonFly)
 CPPFLAGS+=             -DBSD
 .endif
 
diff --git a/net/Transmission/distinfo b/net/Transmission/distinfo
index 32ae198d..d7204a0 100644
--- a/net/Transmission/distinfo
+++ b/net/Transmission/distinfo
@@ -8,3 +8,4 @@ SHA1 (patch-ab) = 96174f474e3301f9062eaa17fafe3cd5c26a5243
 SHA1 (patch-ac) = 75e0d1fbfc5bb895b17fa22d8d09d6257e798847
 SHA1 (patch-ad) = 4d5003f68bcff3f41de6a134f07b1e98ea68cdd9
 SHA1 (patch-ae) = 0b3ce1c74a21151c234b58c94da655da16fd38c2
+SHA1 (patch-af) = 79a2c23670a17cd99c17f254c437e4a54aed0caf
diff --git a/net/Transmission/patches/patch-af 
b/net/Transmission/patches/patch-af
new file mode 100644
index 0000000..309ba03
--- /dev/null
+++ b/net/Transmission/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- third-party/libutp/utp.h.orig      2011-06-29 01:14:43.410704000 +0000
++++ third-party/libutp/utp.h
+@@ -13,6 +13,7 @@
+ #else
+ #include <stdlib.h>
+ #include <sys/socket.h>
++#include <netinet/in.h>
+ #include <arpa/inet.h>
+ #endif
+ 



Home | Main Index | Thread Index | Old Index