summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-07-17 17:45:23 +0000
committermarino <marino@pkgsrc.org>2012-07-17 17:45:23 +0000
commit5fdb595f22c689de4e1ccf33aa730eb8448f0bcd (patch)
treecf9881c011a8e1dbc2a75d50939078ee9acd6d0e
parentaeba6e83564710e9370eb93cb955b61ad6795ac1 (diff)
downloadpkgsrc-5fdb595f22c689de4e1ccf33aa730eb8448f0bcd.tar.gz
net/ocamlnet: Fix for systems without AT_SYMLINK_FOLLOW
DragonFly doesn't define AT_SYMLINK_FOLLOW. The added patch will appropriately disable linkat support. No revbump necessary - this patch doesn't change the binary on systems for which it has already built.
-rw-r--r--net/ocamlnet/distinfo3
-rw-r--r--net/ocamlnet/patches/patch-src_netsys_netsys__c.c13
2 files changed, 15 insertions, 1 deletions
diff --git a/net/ocamlnet/distinfo b/net/ocamlnet/distinfo
index 4bb9495102d..388440d91c8 100644
--- a/net/ocamlnet/distinfo
+++ b/net/ocamlnet/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2012/07/06 09:29:14 wiz Exp $
+$NetBSD: distinfo,v 1.5 2012/07/17 17:45:23 marino Exp $
SHA1 (ocamlnet-3.5.1.tar.gz) = 7e1c2ab3ada6735139b47eb852495cd609ebfd6e
RMD160 (ocamlnet-3.5.1.tar.gz) = 133a2572e9ef8a5bf62880a2a6696391d0938a08
Size (ocamlnet-3.5.1.tar.gz) = 3290994 bytes
SHA1 (patch-Makefile.rules) = ffe0b4a56e2b1f0449ee6ceedaeffdb5b5abbc9a
+SHA1 (patch-src_netsys_netsys__c.c) = b654b646db5410d7dd827173f4aad871ff03cfaa
diff --git a/net/ocamlnet/patches/patch-src_netsys_netsys__c.c b/net/ocamlnet/patches/patch-src_netsys_netsys__c.c
new file mode 100644
index 00000000000..3817fc2a0c3
--- /dev/null
+++ b/net/ocamlnet/patches/patch-src_netsys_netsys__c.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_netsys_netsys__c.c,v 1.1 2012/07/17 17:45:23 marino Exp $
+
+--- src/netsys/netsys_c.c.orig 2012-02-29 18:02:52.000000000 +0000
++++ src/netsys/netsys_c.c
+@@ -528,7 +528,7 @@ CAMLprim value netsys_renameat(value old
+ CAMLprim value netsys_linkat(value olddirfd, value oldpath,
+ value newdirfd, value newpath, value flags)
+ {
+-#ifdef HAVE_AT
++#if defined(HAVE_AT) && defined(AT_SYMLINK_FOLLOW)
+ int cv_flags;
+ cv_flags = convert_flag_list(flags, at_flags_table);
+ cv_flags &= AT_SYMLINK_FOLLOW; /* only allowed flag here */