commit ghc-entropy for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-entropy for openSUSE:Factory checked in at 2017-07-11 08:26:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-entropy (Old) and /work/SRC/openSUSE:Factory/.ghc-entropy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-entropy" Tue Jul 11 08:26:17 2017 rev:4 rq:509054 version:0.3.8 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-entropy/ghc-entropy.changes 2017-06-04 01:57:12.370433015 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-entropy.new/ghc-entropy.changes 2017-07-11 08:26:21.251141646 +0200 @@ -1,0 +2,5 @@ +Fri Jun 30 03:01:55 UTC 2017 - psimons@suse.com + +- Update to version 0.3.8. + +------------------------------------------------------------------- Old: ---- entropy-0.3.7.tar.gz entropy.cabal New: ---- entropy-0.3.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-entropy.spec ++++++ --- /var/tmp/diff_new_pack.X62NwN/_old 2017-07-11 08:26:22.330989336 +0200 +++ /var/tmp/diff_new_pack.X62NwN/_new 2017-07-11 08:26:22.330989336 +0200 @@ -18,14 +18,13 @@ %global pkg_name entropy Name: ghc-%{pkg_name} -Version: 0.3.7 +Version: 0.3.8 Release: 0 Summary: A platform independent entropy source License: BSD-3-Clause Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-directory-devel @@ -54,7 +53,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ entropy-0.3.7.tar.gz -> entropy-0.3.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/entropy-0.3.7/System/Entropy.hs new/entropy-0.3.8/System/Entropy.hs --- old/entropy-0.3.7/System/Entropy.hs 2015-06-15 22:45:49.000000000 +0200 +++ new/entropy-0.3.8/System/Entropy.hs 2017-06-23 23:28:18.000000000 +0200 @@ -33,6 +33,7 @@ #endif import qualified Data.ByteString as B +import Control.Exception (bracket) -- |Get a specific number of bytes of cryptographically -- secure random data using the system-specific facilities. @@ -41,8 +42,4 @@ -- Windows. In short, this entropy is considered cryptographically secure -- but not true entropy. getEntropy :: Int -> IO B.ByteString -getEntropy n = do - h <- openHandle - e <- hGetEntropy h n - closeHandle h - return e +getEntropy = bracket openHandle closeHandle . flip hGetEntropy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/entropy-0.3.7/System/EntropyNix.hs new/entropy-0.3.8/System/EntropyNix.hs --- old/entropy-0.3.7/System/EntropyNix.hs 2015-06-15 22:45:49.000000000 +0200 +++ new/entropy-0.3.8/System/EntropyNix.hs 2017-06-23 23:28:18.000000000 +0200 @@ -35,7 +35,7 @@ source :: FilePath source = "/dev/urandom" --- |Handle for manual resource mangement +-- |Handle for manual resource management data CryptHandle = CH Fd #ifdef HAVE_RDRAND diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/entropy-0.3.7/entropy.cabal new/entropy-0.3.8/entropy.cabal --- old/entropy-0.3.7/entropy.cabal 2015-06-15 22:45:49.000000000 +0200 +++ new/entropy-0.3.8/entropy.cabal 2017-06-23 23:28:18.000000000 +0200 @@ -1,5 +1,5 @@ name: entropy -version: 0.3.7 +version: 0.3.8 description: A platform independent method to obtain cryptographically strong entropy (RDRAND when available anywhere, urandom on nix, CryptAPI on Windows, patches welcome) Users looking for cryptographically strong (number-theoretically @@ -30,6 +30,14 @@ description: Build for the HaLVM default: False + +custom-setup + setup-depends: Cabal >= 1.10 && < 2.2 + , base < 5 + , filepath < 1.5 + , directory < 1.4 + , process < 1.7 + library ghc-options: -O2 exposed-modules: System.Entropy
participants (1)
-
root@hilbert.suse.de