summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2020-09-16 17:48:41 +0000
committerjperkin <jperkin@pkgsrc.org>2020-09-16 17:48:41 +0000
commit7d2ac39e65fa8cc330b74fa1797b98058813b700 (patch)
tree5fb19ac0119f240718cdee0fadcb8486a3a8ef97 /devel
parent256c555045fba6bb1ae8331eb94f001555667cbc (diff)
downloadpkgsrc-7d2ac39e65fa8cc330b74fa1797b98058813b700.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/hs-lukko/distinfo3
-rw-r--r--devel/hs-lukko/patches/patch-lukko.cabal49
2 files changed, 51 insertions, 1 deletions
diff --git a/devel/hs-lukko/distinfo b/devel/hs-lukko/distinfo
index 6d2e563e30f..4a0cd674ccc 100644
--- a/devel/hs-lukko/distinfo
+++ b/devel/hs-lukko/distinfo
@@ -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 --git a/devel/hs-lukko/patches/patch-lukko.cabal b/devel/hs-lukko/patches/patch-lukko.cabal
new file mode 100644
index 00000000000..f23b187668a
--- /dev/null
+++ b/devel/hs-lukko/patches/patch-lukko.cabal
@@ -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