Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-filepath-bytestring for 
openSUSE:Factory checked in at 2023-04-04 21:20:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-filepath-bytestring (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-filepath-bytestring.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-filepath-bytestring"

Tue Apr  4 21:20:01 2023 rev:7 rq:1075875 version:1.4.2.1.12

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-filepath-bytestring/ghc-filepath-bytestring.changes
  2022-02-11 23:09:40.538992155 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-filepath-bytestring.new.19717/ghc-filepath-bytestring.changes
       2023-04-04 21:20:13.573116117 +0200
@@ -1,0 +2,29 @@
+Thu Mar 30 17:06:47 UTC 2023 - Peter Simons <psim...@suse.com>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+-------------------------------------------------------------------
+Sat Oct 22 13:07:23 UTC 2022 - Peter Simons <psim...@suse.com>
+
+- Update filepath-bytestring to version 1.4.2.1.12.
+  filepath-bytestring (1.4.2.1.12) unstable; urgency=medium
+
+    * Relax bounds to allow base 4.17 (ghc 9.4).
+
+   -- Joey Hess <i...@joeyh.name>  Thu, 20 Oct 2022 13:25:40 -0400
+
+  filepath-bytestring (1.4.2.1.11) unstable; urgency=medium
+
+    * Deprecated this library, since filepath has added OsPath that
+      is based on a bytestring.
+
+   -- Joey Hess <i...@joeyh.name>  Sat, 23 Jul 2022 12:41:53 -0400
+
+  filepath-bytestring (1.4.2.1.10) unstable; urgency=medium
+
+    * Depend on bytestring-0.11.2.0, and use it to implement encodeFilePath
+      and decodeFilePath, whose code was previously copied from it.
+
+   -- Joey Hess <i...@joeyh.name>  Wed, 08 Dec 2021 18:55:24 -0400
+
+-------------------------------------------------------------------

Old:
----
  filepath-bytestring-1.4.2.1.9.tar.gz

New:
----
  filepath-bytestring-1.4.2.1.12.tar.gz

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

Other differences:
------------------
++++++ ghc-filepath-bytestring.spec ++++++
--- /var/tmp/diff_new_pack.2mOT2G/_old  2023-04-04 21:20:14.245120401 +0200
+++ /var/tmp/diff_new_pack.2mOT2G/_new  2023-04-04 21:20:14.249120426 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-filepath-bytestring
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,22 +17,29 @@
 
 
 %global pkg_name filepath-bytestring
+%global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        1.4.2.1.9
+Version:        1.4.2.1.12
 Release:        0
 Summary:        Library for manipulating RawFilePaths in a cross platform way
 License:        BSD-3-Clause
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-base-devel
+BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-unix-devel
+BuildRequires:  ghc-unix-prof
 ExcludeArch:    %{ix86}
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-QuickCheck-prof
 BuildRequires:  ghc-filepath-devel
+BuildRequires:  ghc-filepath-prof
 %endif
 
 %description
@@ -52,6 +59,10 @@
 All three modules provide the same API, and the same documentation (calling out
 differences in the different variants).
 
+This package is now deprecated, since filepath 1.4.100.0 provides an OsPath
+type that is based on a bytestring. See
+https://hasufell.github.io/posts/2022-06-29-fixing-haskell-filepaths.html.
+
 %package devel
 Summary:        Haskell %{pkg_name} library development files
 Requires:       %{name} = %{version}-%{release}
@@ -63,6 +74,22 @@
 This package provides the Haskell %{pkg_name} library development
 files.
 
+%package -n ghc-%{pkg_name}-doc
+Summary:        Haskell %{pkg_name} library documentation
+Requires:       ghc-filesystem
+BuildArch:      noarch
+
+%description -n ghc-%{pkg_name}-doc
+This package provides the Haskell %{pkg_name} library documentation.
+
+%package -n ghc-%{pkg_name}-prof
+Summary:        Haskell %{pkg_name} profiling library
+Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
+Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+
+%description -n ghc-%{pkg_name}-prof
+This package provides the Haskell %{pkg_name} profiling library.
+
 %prep
 %autosetup -n %{pkg_name}-%{version}
 
@@ -87,4 +114,9 @@
 %files devel -f %{name}-devel.files
 %doc CHANGELOG README.md TODO
 
+%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
 %changelog

++++++ filepath-bytestring-1.4.2.1.9.tar.gz -> 
filepath-bytestring-1.4.2.1.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/filepath-bytestring-1.4.2.1.9/CHANGELOG 
new/filepath-bytestring-1.4.2.1.12/CHANGELOG
--- old/filepath-bytestring-1.4.2.1.9/CHANGELOG 2001-09-09 03:46:40.000000000 
+0200
+++ new/filepath-bytestring-1.4.2.1.12/CHANGELOG        2001-09-09 
03:46:40.000000000 +0200
@@ -1,3 +1,23 @@
+filepath-bytestring (1.4.2.1.12) unstable; urgency=medium
+
+  * Relax bounds to allow base 4.17 (ghc 9.4).
+
+ -- Joey Hess <i...@joeyh.name>  Thu, 20 Oct 2022 13:25:40 -0400
+
+filepath-bytestring (1.4.2.1.11) unstable; urgency=medium
+
+  * Deprecated this library, since filepath has added OsPath that
+    is based on a bytestring.
+
+ -- Joey Hess <i...@joeyh.name>  Sat, 23 Jul 2022 12:41:53 -0400
+
+filepath-bytestring (1.4.2.1.10) unstable; urgency=medium
+
+  * Depend on bytestring-0.11.2.0, and use it to implement encodeFilePath
+    and decodeFilePath, whose code was previously copied from it.
+
+ -- Joey Hess <i...@joeyh.name>  Wed, 08 Dec 2021 18:55:24 -0400
+
 filepath-bytestring (1.4.2.1.9) unstable; urgency=medium
 
   * Relax bounds to allow base 4.16 (ghc 9.2).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/filepath-bytestring-1.4.2.1.9/System/FilePath/Internal.hs 
new/filepath-bytestring-1.4.2.1.12/System/FilePath/Internal.hs
--- old/filepath-bytestring-1.4.2.1.9/System/FilePath/Internal.hs       
2001-09-09 03:46:40.000000000 +0200
+++ new/filepath-bytestring-1.4.2.1.12/System/FilePath/Internal.hs      
2001-09-09 03:46:40.000000000 +0200
@@ -136,15 +136,12 @@
 import Data.ByteString (ByteString)
 import qualified Data.ByteString as B
 import qualified Data.ByteString.Char8 as B8
-import Data.ByteString.Unsafe (unsafePackMallocCStringLen)
 import Data.Char(ord, chr, toUpper, toLower, isAsciiLower, isAsciiUpper)
 import Data.Maybe(isJust)
 import Data.Word(Word8)
 #ifdef mingw32_HOST_OS
 import qualified Data.ByteString.UTF8 as UTF8
 #else
-import qualified GHC.Foreign as GHC
-import qualified GHC.IO.Encoding as Encoding
 import System.IO.Unsafe (unsafePerformIO)
 #endif
 import System.Environment (getEnv)
@@ -171,13 +168,14 @@
 -- (see `Encoding.getFileSystemEncoding`).
 --
 -- When run on Windows, this encodes as UTF-8.
+-- 
+-- the implementation of this function assumes that the
+-- filesystem encoding will not be changed while the program is running.
 encodeFilePath :: FilePath -> RawFilePath
 #ifdef mingw32_HOST_OS
 encodeFilePath = UTF8.fromString
 #else
-encodeFilePath f = unsafePerformIO $ do
-       enc <- Encoding.getFileSystemEncoding
-       GHC.newCStringLen enc f >>= unsafePackMallocCStringLen
+encodeFilePath = unsafePerformIO . B.fromFilePath
 #endif
 
 -- | Convert from RawFilePath to FilePath
@@ -186,14 +184,15 @@
 -- (see `Encoding.getFileSystemEncoding`).
 --
 -- When run on Windows, this decodes UTF-8.
+
+-- The implementation of this function assumes that the
+-- filesystem encoding will not be changed while the program is running.
 decodeFilePath :: RawFilePath -> FilePath
 #ifdef mingw32_HOST_OS
 decodeFilePath = UTF8.toString
 #else
 {-# NOINLINE decodeFilePath #-}
-decodeFilePath f = unsafePerformIO $ do
-       enc <- Encoding.getFileSystemEncoding
-       B.useAsCStringLen f (GHC.peekCStringLen enc)
+decodeFilePath = unsafePerformIO . B.toFilePath
 #endif
 
 ---------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/filepath-bytestring-1.4.2.1.9/filepath-bytestring.cabal 
new/filepath-bytestring-1.4.2.1.12/filepath-bytestring.cabal
--- old/filepath-bytestring-1.4.2.1.9/filepath-bytestring.cabal 2001-09-09 
03:46:40.000000000 +0200
+++ new/filepath-bytestring-1.4.2.1.12/filepath-bytestring.cabal        
2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version: 1.18
 name:           filepath-bytestring
-version:        1.4.2.1.9
+version:        1.4.2.1.12
 -- NOTE: Don't forget to update CHANGELOG and the filepath dependency below
 license:        BSD3
 license-file:   LICENSE
@@ -23,6 +23,10 @@
     * "System.FilePath.ByteString" is an alias for the module appropriate to 
your platform.
     .
     All three modules provide the same API, and the same documentation 
(calling out differences in the different variants).
+    .
+    This package is now deprecated, since filepath 1.4.100.0 provides an
+    OsPath type that is based on a bytestring. See
+    https://hasufell.github.io/posts/2022-06-29-fixing-haskell-filepaths.html
 
 extra-source-files:
     System/FilePath/Internal.hs
@@ -49,8 +53,8 @@
         System.FilePath.Windows.ByteString
 
     build-depends:
-        base >= 4 && < 4.17,
-        bytestring
+        base >= 4 && < 4.18,
+        bytestring >= 0.11.2.0
     if os(Windows)
         build-depends: utf8-string
     else
@@ -71,7 +75,7 @@
     build-depends:
         filepath-bytestring,
         base,
-        bytestring,
+        bytestring >= 0.11.2.0,
         QuickCheck >= 2.7 && < 2.15,
        -- Versions of filepath that are equvilant to this
        -- library, for quickcheck equivilance tests.

Reply via email to