[arch-commits] Commit in git-annex/trunk (PKGBUILD ghc-8.4.patch)

2019-02-19 Thread Felix Yan via arch-commits
Date: Tuesday, February 19, 2019 @ 19:49:35
  Author: felixonmars
Revision: 434584

upgpkg: git-annex 7.20190219-1

Modified:
  git-annex/trunk/PKGBUILD
Deleted:
  git-annex/trunk/ghc-8.4.patch

---+
 PKGBUILD  |8 +--
 ghc-8.4.patch |  121 
 2 files changed, 4 insertions(+), 125 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-02-19 19:38:23 UTC (rev 434583)
+++ PKGBUILD2019-02-19 19:49:35 UTC (rev 434584)
@@ -2,8 +2,8 @@
 # Contributor: Arch Haskell Team 
 
 pkgname=git-annex
-pkgver=7.20190129
-pkgrel=16
+pkgver=7.20190219
+pkgrel=1
 pkgdesc="Manage files with git, without checking their contents into git"
 url="http://git-annex.branchable.com/;
 license=("AGPL3")
@@ -33,7 +33,7 @@
 
 prepare() {
   cd git-annex
-  sed -i '1i{-# language NoMonadFailDesugaring #-}' Remote/Glacier.hs 
Remote/Ddar.hs Remote/Helper/Ssh.hs Remote/Bup.hs Annex/YoutubeDl.hs 
Remote/Git.hs Assistant/TransferQueue.hs Assistant/Threads/RemoteControl.hs 
Test.hs
+  #sed -i '1i{-# language NoMonadFailDesugaring #-}' Remote/Glacier.hs 
Remote/Ddar.hs Remote/Helper/Ssh.hs Remote/Bup.hs Annex/YoutubeDl.hs 
Remote/Git.hs Assistant/TransferQueue.hs Assistant/Threads/RemoteControl.hs 
Test.hs
 }
 
 build() {
@@ -42,7 +42,7 @@
   runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic 
--disable-library-vanilla \
 --docdir="/usr/share/doc/$pkgname" \
 -ftorrentparser -fproduction -fpairing -fwebapp \
--fassistant -fwebdav -fs3 -f-benchmark -fdbus -fmagicmime
+-fassistant -fwebdav -fs3 -f-benchmark -fdbus -fmagicmime -f-networkbsd
   runhaskell Setup build
 }
 

Deleted: ghc-8.4.patch
===
--- ghc-8.4.patch   2019-02-19 19:38:23 UTC (rev 434583)
+++ ghc-8.4.patch   2019-02-19 19:49:35 UTC (rev 434584)
@@ -1,121 +0,0 @@
-diff --git a/Command/Info.hs b/Command/Info.hs
-index c9a314056a..3ae82f5532 100644
 a/Command/Info.hs
-+++ b/Command/Info.hs
-@@ -56,15 +56,17 @@ data KeyData = KeyData
-   , backendsKeys :: M.Map KeyVariety Integer
-   }
- 
--instance Monoid KeyData where
--  mempty = KeyData 0 0 0 M.empty
--  mappend a b = KeyData
-+instance Semigroup KeyData where
-+  a <> b = KeyData
-   { countKeys = countKeys a + countKeys b
-   , sizeKeys = sizeKeys a + sizeKeys b
-   , unknownSizeKeys = unknownSizeKeys a + unknownSizeKeys b
-   , backendsKeys = backendsKeys a <> backendsKeys b
-   }
- 
-+instance Monoid KeyData where
-+  mempty = KeyData 0 0 0 M.empty
-+
- data NumCopiesStats = NumCopiesStats
-   { numCopiesVarianceMap :: M.Map Variance Integer
-   }
-diff --git a/Git/Fsck.hs b/Git/Fsck.hs
-index a716b56e3a..e7061cb812 100644
 a/Git/Fsck.hs
-+++ b/Git/Fsck.hs
-@@ -44,15 +44,17 @@ type MissingObjects = S.Set Sha
- 
- type Truncated = Bool
- 
-+instance Semigroup FsckOutput where
-+  (<>) (FsckOutput s1 t1) (FsckOutput s2 t2) = FsckOutput (S.union s1 s2) 
(t1 || t2)
-+  (<>) (FsckOutput s t) _ = FsckOutput s t
-+  (<>) _ (FsckOutput s t) = FsckOutput s t
-+  (<>) NoFsckOutput NoFsckOutput = NoFsckOutput
-+  (<>) AllDuplicateEntriesWarning AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
-+  (<>) AllDuplicateEntriesWarning NoFsckOutput = 
AllDuplicateEntriesWarning
-+  (<>) NoFsckOutput AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
-+
- instance Monoid FsckOutput where
-   mempty = NoFsckOutput
--  mappend (FsckOutput s1 t1) (FsckOutput s2 t2) = FsckOutput (S.union s1 
s2) (t1 || t2)
--  mappend (FsckOutput s t) _ = FsckOutput s t
--  mappend _ (FsckOutput s t) = FsckOutput s t
--  mappend NoFsckOutput NoFsckOutput = NoFsckOutput
--  mappend AllDuplicateEntriesWarning AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
--  mappend AllDuplicateEntriesWarning NoFsckOutput = 
AllDuplicateEntriesWarning
--  mappend NoFsckOutput AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
- 
- {- Runs fsck to find some of the broken objects in the repository.
-  - May not find all broken objects, if fsck fails on bad data in some of
-diff --git a/Types/DesktopNotify.hs b/Types/DesktopNotify.hs
-index e6df05ab1c..83aeef7c54 100644
 a/Types/DesktopNotify.hs
-+++ b/Types/DesktopNotify.hs
-@@ -16,10 +16,12 @@ data DesktopNotify = DesktopNotify
-   }
-   deriving (Show)
- 
-+instance Semigroup DesktopNotify where
-+(<>) (DesktopNotify s1 f1) (DesktopNotify s2 f2) =
-+DesktopNotify (s1 || s2) (f1 || f2)
-+
- instance Monoid DesktopNotify where
-   mempty = DesktopNotify False False
--  mappend (DesktopNotify s1 f1) (DesktopNotify s2 f2) =
--  DesktopNotify (s1 || s2) (f1 || f2)
- 
- mkNotifyStart :: DesktopNotify
- mkNotifyStart = DesktopNotify True False
-diff --git 

[arch-commits] Commit in git-annex/trunk (PKGBUILD ghc-8.4.patch)

2018-05-22 Thread Felix Yan via arch-commits
Date: Tuesday, May 22, 2018 @ 11:42:45
  Author: felixonmars
Revision: 326910

upgpkg: git-annex 6.20180509-17

Added:
  git-annex/trunk/ghc-8.4.patch
Modified:
  git-annex/trunk/PKGBUILD

---+
 PKGBUILD  |   19 ++--
 ghc-8.4.patch |  121 
 2 files changed, 134 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-05-22 11:40:35 UTC (rev 326909)
+++ PKGBUILD2018-05-22 11:42:45 UTC (rev 326910)
@@ -4,7 +4,7 @@
 
 pkgname=git-annex
 pkgver=6.20180509
-pkgrel=16
+pkgrel=17
 pkgdesc="Manage files with git, without checking their contents into git"
 url="http://git-annex.branchable.com/;
 license=("AGPL3")
@@ -17,22 +17,29 @@
  'haskell-esqueleto' 'haskell-exceptions' 'haskell-fdo-notify' 
'haskell-feed'
  'haskell-hinotify' 'haskell-hslogger' 'haskell-http-client' 
'haskell-http-conduit'
  'haskell-http-types' 'haskell-ifelse' 'haskell-magic' 'haskell-memory'
- 'haskell-monad-control' 'haskell-monad-logger' 'haskell-mountpoints' 
'haskell-mtl'
+ 'haskell-monad-control' 'haskell-monad-logger' 'haskell-mountpoints'
  'haskell-network' 'haskell-network-info' 'haskell-network-multicast' 
'haskell-network-uri'
  'haskell-old-locale' 'haskell-optparse-applicative' 
'haskell-path-pieces'
  'haskell-persistent' 'haskell-persistent-sqlite' 
'haskell-persistent-template'
  'haskell-quickcheck' 'haskell-random' 'haskell-regex-tdfa' 
'haskell-resourcet'
  'haskell-safesemaphore' 'haskell-sandi' 'haskell-securemem' 
'haskell-shakespeare'
- 'haskell-socks' 'haskell-split' 'haskell-stm' 'haskell-stm-chans' 
'haskell-tagsoup'
+ 'haskell-socks' 'haskell-split' 'haskell-stm-chans' 'haskell-tagsoup'
  'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck' 
'haskell-tasty-rerun'
- 'haskell-text' 'haskell-torrent' 'haskell-unix-compat' 
'haskell-unordered-containers'
+ 'haskell-torrent' 'haskell-unix-compat' 'haskell-unordered-containers'
  'haskell-utf8-string' 'haskell-uuid' 'haskell-vector' 'haskell-wai' 
'haskell-wai-extra'
  'haskell-warp' 'haskell-warp-tls' 'haskell-yesod' 
'haskell-yesod-core' 'haskell-yesod-form'
  'haskell-yesod-static')
 makedepends=('chrpath' 'ghc')
-source=("git+https://git.joeyh.name/git/git-annex.git#tag=$pkgver;)
-sha512sums=('SKIP')
+source=("git+https://git.joeyh.name/git/git-annex.git#tag=$pkgver;
+ghc-8.4.patch)
+sha512sums=('SKIP'
+
'b73ccbe31b1f792522f3e1a98c43cdd1d6bc92cb42a6ef4d71e1966465e55973b04dd4e23c5aecf6b09565a28c2ff43bcca32b50a4e8a2d1b71fc5f4633783cf')
 
+prepare() {
+  cd git-annex
+  patch -p1 -i ../ghc-8.4.patch
+}
+
 build() {
   cd git-annex
 

Added: ghc-8.4.patch
===
--- ghc-8.4.patch   (rev 0)
+++ ghc-8.4.patch   2018-05-22 11:42:45 UTC (rev 326910)
@@ -0,0 +1,121 @@
+diff --git a/Command/Info.hs b/Command/Info.hs
+index c9a314056a..3ae82f5532 100644
+--- a/Command/Info.hs
 b/Command/Info.hs
+@@ -56,15 +56,17 @@ data KeyData = KeyData
+   , backendsKeys :: M.Map KeyVariety Integer
+   }
+ 
+-instance Monoid KeyData where
+-  mempty = KeyData 0 0 0 M.empty
+-  mappend a b = KeyData
++instance Semigroup KeyData where
++  a <> b = KeyData
+   { countKeys = countKeys a + countKeys b
+   , sizeKeys = sizeKeys a + sizeKeys b
+   , unknownSizeKeys = unknownSizeKeys a + unknownSizeKeys b
+   , backendsKeys = backendsKeys a <> backendsKeys b
+   }
+ 
++instance Monoid KeyData where
++  mempty = KeyData 0 0 0 M.empty
++
+ data NumCopiesStats = NumCopiesStats
+   { numCopiesVarianceMap :: M.Map Variance Integer
+   }
+diff --git a/Git/Fsck.hs b/Git/Fsck.hs
+index a716b56e3a..e7061cb812 100644
+--- a/Git/Fsck.hs
 b/Git/Fsck.hs
+@@ -44,15 +44,17 @@ type MissingObjects = S.Set Sha
+ 
+ type Truncated = Bool
+ 
++instance Semigroup FsckOutput where
++  (<>) (FsckOutput s1 t1) (FsckOutput s2 t2) = FsckOutput (S.union s1 s2) 
(t1 || t2)
++  (<>) (FsckOutput s t) _ = FsckOutput s t
++  (<>) _ (FsckOutput s t) = FsckOutput s t
++  (<>) NoFsckOutput NoFsckOutput = NoFsckOutput
++  (<>) AllDuplicateEntriesWarning AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
++  (<>) AllDuplicateEntriesWarning NoFsckOutput = 
AllDuplicateEntriesWarning
++  (<>) NoFsckOutput AllDuplicateEntriesWarning = 
AllDuplicateEntriesWarning
++
+ instance Monoid FsckOutput where
+   mempty = NoFsckOutput
+-  mappend (FsckOutput s1 t1) (FsckOutput s2 t2) = FsckOutput (S.union s1 
s2) (t1 || t2)
+-  mappend (FsckOutput s t) _ = FsckOutput s t
+-  mappend _ (FsckOutput s t) = FsckOutput s t
+-  mappend NoFsckOutput NoFsckOutput =