pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-lukko hs-lukko: Support flock(3C) on illumos.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/960b6ec5ff9c
branches:  trunk
changeset: 439280:960b6ec5ff9c
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Sep 16 17:48:41 2020 +0000

description:
hs-lukko: Support flock(3C) on illumos.

While this "breaks" older SunOS releases, they were broken anyway as there's no
PLIST support for not having it.

diffstat:

 devel/hs-lukko/distinfo                  |   3 +-
 devel/hs-lukko/patches/patch-lukko.cabal |  49 ++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)

diffs (65 lines):

diff -r 25286403e34b -r 960b6ec5ff9c devel/hs-lukko/distinfo
--- a/devel/hs-lukko/distinfo   Wed Sep 16 17:26:31 2020 +0000
+++ b/devel/hs-lukko/distinfo   Wed Sep 16 17:48:41 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/01/19 01:11:35 pho Exp $
+$NetBSD: distinfo,v 1.2 2020/09/16 17:48:41 jperkin Exp $
 
 SHA1 (lukko-0.1.1.1.tar.gz) = 54cc499574239d41d5e9cf8d7e83ac4171e39055
 RMD160 (lukko-0.1.1.1.tar.gz) = 9b1e7a4806566de0fb1021f759d634f573ce5507
 SHA512 (lukko-0.1.1.1.tar.gz) = 2a307eef1ceb421a6b46854c99b50fd64da02df2e74e662f67fbd179db0880599d40d8b5b8bb8d117e4c52ad114e45d9b1434ecba984f4dea314ff1f840ec37f
 Size (lukko-0.1.1.1.tar.gz) = 28312 bytes
+SHA1 (patch-lukko.cabal) = 3df851f7dcb1b75f1c84ada7daeb54d16311dd53
diff -r 25286403e34b -r 960b6ec5ff9c devel/hs-lukko/patches/patch-lukko.cabal
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-lukko/patches/patch-lukko.cabal  Wed Sep 16 17:48:41 2020 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-lukko.cabal,v 1.1 2020/09/16 17:48:41 jperkin Exp $
+
+Newer Solaris/illumos have flock(3C).
+
+--- lukko.cabal.orig   2001-09-09 01:46:40.000000000 +0000
++++ lukko.cabal
+@@ -32,7 +32,7 @@ description:
+   \  cpp-options: -DHAS_OFD_LOCKING
+   \  cpp-options: -DHAS_FLOCK
+   .
+-  elif !(os(solaris) || os(aix))
++  elif !(os(aix))
+   \  cpp-options: -DHAS_FLOCK
+   @
+   .
+@@ -88,7 +88,7 @@ library
+     cpp-options:     -DUSE_OFD_LOCKING
+     exposed-modules: Lukko.OFD
+ 
+-  elif !(os(solaris) || os(aix))
++  elif !(os(aix))
+     hs-source-dirs: src-flock
+     hs-source-dirs: src-unix
+     cpp-options:    -DUSE_FLOCK
+@@ -98,7 +98,7 @@ library
+     cpp-options:    -DUSE_NOOP
+ 
+   -- Cabal check is silly
+-  if (!os(windows) && !(os(solaris) || os(aix)))
++  if (!os(windows) && !(os(aix)))
+     exposed-modules: Lukko.FLock
+ 
+   other-modules:
+@@ -134,7 +134,7 @@ test-suite test-thread
+     cpp-options: -DHAS_OFD_LOCKING
+     cpp-options: -DHAS_FLOCK
+ 
+-  elif !(os(solaris) || os(aix))
++  elif !(os(aix))
+     cpp-options: -DHAS_FLOCK
+ 
+ test-suite test-process
+@@ -155,5 +155,5 @@ test-suite test-process
+     cpp-options: -DHAS_OFD_LOCKING
+     cpp-options: -DHAS_FLOCK
+ 
+-  elif !(os(solaris) || os(aix))
++  elif !(os(aix))
+     cpp-options: -DHAS_FLOCK



Home | Main Index | Thread Index | Old Index