Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-wai-app-static for 
openSUSE:Factory checked in at 2026-06-10 16:09:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-wai-app-static (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-wai-app-static.new.2375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-wai-app-static"

Wed Jun 10 16:09:49 2026 rev:10 rq:1358473 version:3.1.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-wai-app-static/ghc-wai-app-static.changes    
2024-03-20 21:16:35.942997767 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-wai-app-static.new.2375/ghc-wai-app-static.changes
  2026-06-10 16:14:47.542521821 +0200
@@ -1,0 +2,9 @@
+Mon Mar  9 18:37:53 UTC 2026 - Peter Simons <[email protected]>
+
+- Update wai-app-static to version 3.1.9.1.
+  ## 3.1.9.1
+
+  * Backported a patch to not need `crypton` as a dependency.
+    Instead, just depend on `base64-bytestring` and `cryptohash-md5`.
+
+-------------------------------------------------------------------

Old:
----
  wai-app-static-3.1.9.tar.gz

New:
----
  wai-app-static-3.1.9.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-wai-app-static.spec ++++++
--- /var/tmp/diff_new_pack.qM1fZE/_old  2026-06-10 16:14:51.346679467 +0200
+++ /var/tmp/diff_new_pack.qM1fZE/_new  2026-06-10 16:14:51.366680296 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-wai-app-static
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        3.1.9
+Version:        3.1.9.1
 Release:        0
 Summary:        WAI application for static serving
 License:        MIT
@@ -30,6 +30,8 @@
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-base64-bytestring-devel
+BuildRequires:  ghc-base64-bytestring-prof
 BuildRequires:  ghc-blaze-html-devel
 BuildRequires:  ghc-blaze-html-prof
 BuildRequires:  ghc-blaze-markup-devel
@@ -38,8 +40,8 @@
 BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-containers-prof
-BuildRequires:  ghc-crypton-devel
-BuildRequires:  ghc-crypton-prof
+BuildRequires:  ghc-cryptohash-md5-devel
+BuildRequires:  ghc-cryptohash-md5-prof
 BuildRequires:  ghc-directory-devel
 BuildRequires:  ghc-directory-prof
 BuildRequires:  ghc-file-embed-devel
@@ -50,8 +52,6 @@
 BuildRequires:  ghc-http-date-prof
 BuildRequires:  ghc-http-types-devel
 BuildRequires:  ghc-http-types-prof
-BuildRequires:  ghc-memory-devel
-BuildRequires:  ghc-memory-prof
 BuildRequires:  ghc-mime-types-devel
 BuildRequires:  ghc-mime-types-prof
 BuildRequires:  ghc-old-locale-devel

++++++ wai-app-static-3.1.9.tar.gz -> wai-app-static-3.1.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9/ChangeLog.md 
new/wai-app-static-3.1.9.1/ChangeLog.md
--- old/wai-app-static-3.1.9/ChangeLog.md       2024-03-04 09:49:55.000000000 
+0100
+++ new/wai-app-static-3.1.9.1/ChangeLog.md     2026-03-09 19:33:14.000000000 
+0100
@@ -1,5 +1,10 @@
 # wai-app-static changelog
 
+## 3.1.9.1
+
+* Backported a patch to not need `crypton` as a dependency.
+  Instead, just depend on `base64-bytestring` and `cryptohash-md5`.
+
 ## 3.1.9
 
 * Added `NoCache` constructor to `MaxAge` 
[#977](https://github.com/yesodweb/wai/pull/977)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wai-app-static-3.1.9/WaiAppStatic/Storage/Embedded/Runtime.hs 
new/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Embedded/Runtime.hs
--- old/wai-app-static-3.1.9/WaiAppStatic/Storage/Embedded/Runtime.hs   
2024-03-04 09:49:55.000000000 +0100
+++ new/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Embedded/Runtime.hs 
2026-03-09 18:50:59.000000000 +0100
@@ -17,13 +17,8 @@
 import qualified Data.Text as T
 import qualified Network.Wai as W
 import WaiAppStatic.Types
-#ifdef MIN_VERSION_crypton
-import Crypto.Hash (hash, MD5, Digest)
-import Data.ByteArray.Encoding
-#else
 import Crypto.Hash.MD5 (hash)
 import Data.ByteString.Base64 (encode)
-#endif
 import System.FilePath (isPathSeparator)
 import WaiAppStatic.Storage.Filesystem (defaultFileServerSettings)
 
@@ -62,7 +57,7 @@
             { fileGetSize = fromIntegral $ S.length bs
             , fileToResponse = \s h -> W.responseBuilder s h $ byteString bs
             , fileName = name
-            , fileGetHash = return $ Just $ runHash bs
+            , fileGetHash = return $ Just $ encode $ hash bs
             , fileGetModified = Nothing
             }
 
@@ -100,13 +95,6 @@
         { fileGetSize = fromIntegral $ S.length bs
         , fileToResponse = \s h -> W.responseBuilder s h $ byteString bs
         , fileName = name
-        , fileGetHash = return $ Just $ runHash bs
+        , fileGetHash = return $ Just $ encode $ hash bs
         , fileGetModified = Nothing
         }
-
-runHash :: ByteString -> ByteString
-#ifdef MIN_VERSION_crypton
-runHash = convertToBase Base64 . (hash :: S.ByteString -> Digest MD5)
-#else
-runHash = encode . hash
-#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wai-app-static-3.1.9/WaiAppStatic/Storage/Filesystem.hs 
new/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Filesystem.hs
--- old/wai-app-static-3.1.9/WaiAppStatic/Storage/Filesystem.hs 2024-03-04 
09:49:55.000000000 +0100
+++ new/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Filesystem.hs       
2026-03-09 18:50:08.000000000 +0100
@@ -37,13 +37,8 @@
 import Util
 import WaiAppStatic.Listing
 import WaiAppStatic.Types
-#ifdef MIN_VERSION_crypton
-import Data.ByteArray.Encoding
-import Crypto.Hash (hashlazy, MD5, Digest)
-#else
 import Data.ByteString.Base64 (encode)
 import Crypto.Hash.MD5 (hashlazy)
-#endif
 import qualified Data.ByteString.Lazy as BL (hGetContents)
 import qualified Data.Text as T
 
@@ -157,13 +152,8 @@
 hashFile :: FilePath -> IO ByteString
 hashFile fp = withBinaryFile fp ReadMode $ \h -> do
     f <- BL.hGetContents h
-#ifdef MIN_VERSION_crypton
-    let !hash = hashlazy f :: Digest MD5
-    return $ convertToBase Base64 hash
-#else
     let !hash = hashlazy f
     return . encode $ hash
-#endif
 
 hashFileIfExists :: ETagLookup
 hashFileIfExists fp = do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9/wai-app-static.cabal 
new/wai-app-static-3.1.9.1/wai-app-static.cabal
--- old/wai-app-static-3.1.9/wai-app-static.cabal       2024-03-04 
09:49:55.000000000 +0100
+++ new/wai-app-static-3.1.9.1/wai-app-static.cabal     2026-03-09 
19:37:28.000000000 +0100
@@ -1,5 +1,5 @@
 name:            wai-app-static
-version:         3.1.9
+version:         3.1.9.1
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <[email protected]>
@@ -24,10 +24,6 @@
     Description:   print debug info
     Default:       False
 
-Flag crypton
-    Description:   Use the crypton library for MD5 computation
-    Default:       True
-
 library
     default-language: Haskell2010
     build-depends:   base                      >= 4.12     && < 5
@@ -53,11 +49,7 @@
                    , wai-extra                 >= 3.0      && < 3.2
                    , optparse-applicative      >= 0.7
                    , warp                      >= 3.0.11   && < 3.5
-    if flag(crypton)
-      build-depends: crypton                   >= 0.6
-                   , memory                    >= 0.7
-    else
-      build-depends: base64-bytestring         >= 0.1
+                   , base64-bytestring         >= 0.1
                    , cryptohash-md5            >= 0.11.101
 
     exposed-modules: Network.Wai.Application.Static
@@ -110,4 +102,4 @@
 
 source-repository head
   type:     git
-  location: git://github.com/yesodweb/wai.git
+  location: https://github.com/yesodweb/wai.git

Reply via email to