Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cabal-plan for openSUSE:Factory checked in at 2021-11-11 21:36:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cabal-plan (Old) and /work/SRC/openSUSE:Factory/.cabal-plan.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cabal-plan" Thu Nov 11 21:36:02 2021 rev:7 rq:930296 version:0.7.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/cabal-plan/cabal-plan.changes 2021-09-10 23:41:45.390587810 +0200 +++ /work/SRC/openSUSE:Factory/.cabal-plan.new.1890/cabal-plan.changes 2021-11-11 21:36:03.656872852 +0100 @@ -1,0 +2,10 @@ +Sun Oct 10 14:50:47 UTC 2021 - [email protected] + +- Update cabal-plan to version 0.7.2.1. + ## 0.7.2.1 + + * Support Cabal-3.6 + * Support aeson-2.0.0.0 + * Drop support for GHC prior 8.2 + +------------------------------------------------------------------- Old: ---- cabal-plan-0.7.2.0.tar.gz New: ---- cabal-plan-0.7.2.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cabal-plan.spec ++++++ --- /var/tmp/diff_new_pack.jg2AgT/_old 2021-11-11 21:36:04.168873225 +0100 +++ /var/tmp/diff_new_pack.jg2AgT/_new 2021-11-11 21:36:04.168873225 +0100 @@ -18,7 +18,7 @@ %global pkg_name cabal-plan Name: %{pkg_name} -Version: 0.7.2.0 +Version: 0.7.2.1 Release: 0 Summary: Library and utility for processing cabal's plan.json file License: GPL-2.0-or-later @@ -99,9 +99,6 @@ %prep %autosetup -cabal-tweak-dep-ver 'optics-core' '^>= 0.3' '^>= 0.4' -cabal-tweak-dep-ver 'semialign' '^>= 1.1' '^>= 1.2' -cabal-tweak-dep-ver 'base-compat' '^>=0.11' '^>= 0.12' %build %define cabal_configure_options -fexe ++++++ cabal-plan-0.7.2.0.tar.gz -> cabal-plan-0.7.2.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal-plan-0.7.2.0/ChangeLog.md new/cabal-plan-0.7.2.1/ChangeLog.md --- old/cabal-plan-0.7.2.0/ChangeLog.md 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal-plan-0.7.2.1/ChangeLog.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,11 @@ # Revision history for `cabal-plan` +## 0.7.2.1 + +* Support Cabal-3.6 +* Support aeson-2.0.0.0 +* Drop support for GHC prior 8.2 + ## 0.7.2.0 ### `exe:cabal-plan` Executable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal-plan-0.7.2.0/cabal-plan.cabal new/cabal-plan-0.7.2.1/cabal-plan.cabal --- old/cabal-plan-0.7.2.0/cabal-plan.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal-plan-0.7.2.1/cabal-plan.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,6 @@ cabal-version: 2.2 name: cabal-plan -version: 0.7.2.0 +version: 0.7.2.1 synopsis: Library and utility for processing cabal's plan.json file description: { @@ -38,15 +38,12 @@ build-type: Simple tested-with: - GHC==8.10.2, + GHC==9.0.1, + GHC==8.10.4, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, - GHC==8.2.2, - GHC==8.0.2, - GHC==7.10.3, - GHC==7.8.4, - GHC==7.6.3 + GHC==8.2.2 extra-source-files: ChangeLog.md @@ -77,14 +74,14 @@ RecordWildCards exposed-modules: Cabal.Plan - build-depends: base (>= 4.6 && <4.10) || ^>= 4.10 || ^>=4.11 || ^>=4.12 || ^>=4.13 || ^>=4.14 - , aeson ^>= 1.2.0 || ^>= 1.3.0 || ^>=1.4.0.0 || ^>=1.5.0.0 - , bytestring ^>= 0.10.0 - , containers ^>= 0.5.0 || ^>= 0.6.0.1 - , text ^>= 1.2.2 - , directory ^>= 1.2.0 || ^>= 1.3.0 - , filepath ^>= 1.3.0 || ^>= 1.4.0 - , base16-bytestring ^>= 0.1.1 || ^>= 1.0.0.0 + build-depends: base ^>= 4.10 || ^>=4.11 || ^>=4.12 || ^>=4.13 || ^>=4.14 || ^>=4.15 + , aeson ^>= 1.5.4.0 || ^>= 2.0.0.0 + , bytestring ^>= 0.10.8.0 + , containers ^>= 0.5.10 || ^>= 0.6.0.1 + , text ^>= 1.2.3 + , directory ^>= 1.3.0 + , filepath ^>= 1.4.1 + , base16-bytestring ^>= 1.0.0.0 hs-source-dirs: src @@ -105,7 +102,7 @@ -- dependencies w/ inherited version ranges via 'cabal-plan' library -- Note: exe is installable only with GHC-8.0+ build-depends: cabal-plan - , base >=4.9 + , base , text , containers , bytestring @@ -114,22 +111,24 @@ -- dependencies which require version bounds build-depends: mtl ^>= 2.2.2 , async ^>= 2.2.2 - , ansi-terminal ^>=0.10 || ^>=0.11 - , base-compat ^>=0.11 - , optics-core ^>= 0.2 || ^>= 0.3 - , optparse-applicative ^>= 0.15.0.0 || ^>=0.16.0.0 + , ansi-terminal ^>= 0.11 + , base-compat ^>= 0.11 || ^>=0.12 + , optics-core ^>= 0.4 + , optparse-applicative ^>= 0.16.0.0 , parsec ^>= 3.1.13 - , process ^>= 1.4.3.0 || ^>=1.6.3.0 - , semialign ^>= 1.1 + , process ^>= 1.6.1.0 + , semialign ^>= 1.2 , singleton-bool ^>= 0.1.5 - , these ^>= 1 || ^>=1.1 + , these ^>= 1.1 , topograph ^>= 1 , transformers ^>= 0.5.2.0 , vector ^>= 0.12.0.1 if flag(license-report) - build-depends: Cabal ^>=3.2.0.0 - , cabal-install-parsers ^>=0.3.0.1 || ^>=0.4 + -- we define orphan instance + -- https://github.com/haskell/cabal/issues/7582 + build-depends: Cabal ^>=3.6.2.0 + , cabal-install-parsers ^>=0.4 , tar ^>= 0.5.1.0 , zlib ^>= 0.6.2 , filepath ^>= 1.4.1.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal-plan-0.7.2.0/src/Cabal/Plan.hs new/cabal-plan-0.7.2.1/src/Cabal/Plan.hs --- old/cabal-plan-0.7.2.0/src/Cabal/Plan.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal-plan-0.7.2.1/src/Cabal/Plan.hs 2001-09-09 03:46:40.000000000 +0200 @@ -57,6 +57,9 @@ import Control.Applicative as App import Control.Monad import Data.Aeson +#if MIN_VERSION_aeson(2,0,0) +import qualified Data.Aeson.Key as AK +#endif import Data.Aeson.Types import qualified Data.ByteString as B import qualified Data.ByteString.Base16 as B16 @@ -370,7 +373,13 @@ pure pim (.:?!) :: (FromJSON a, Monoid a) => Object -> Text -> Parser a -o .:?! fld = o .:? fld .!= Data.Monoid.mempty +o .:?! fld = o .:? fT fld .!= Data.Monoid.mempty + where +#if MIN_VERSION_aeson(2,0,0) + fT = AK.fromText +#else + fT = id +#endif planItemAllDeps :: Unit -> Set UnitId planItemAllDeps Unit{..} = mconcat [ ciLibDeps <> ciExeDeps | CompInfo{..} <- M.elems uComps ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal-plan-0.7.2.0/src-exe/LicenseReport.hs new/cabal-plan-0.7.2.1/src-exe/LicenseReport.hs --- old/cabal-plan-0.7.2.0/src-exe/LicenseReport.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal-plan-0.7.2.1/src-exe/LicenseReport.hs 2001-09-09 03:46:40.000000000 +0200 @@ -29,6 +29,7 @@ import qualified Data.Version as DV import Distribution.PackageDescription import Distribution.PackageDescription.Parsec +import Distribution.Utils.Path import Distribution.Pretty import System.Directory import System.FilePath @@ -181,8 +182,8 @@ licurl = case lfs of [] -> url (l:_) - | Just licdir <- mlicdir, uType u == UnitTypeGlobal -> T.pack (licdir </> T.unpack (dispPkgId (uPId u)) </> takeFileName l) - | otherwise -> url <> "/src/" <> T.pack l + | Just licdir <- mlicdir, uType u == UnitTypeGlobal -> T.pack (licdir </> T.unpack (dispPkgId (uPId u)) </> takeFileName (getSymbolicPath l)) + | otherwise -> url <> "/src/" <> T.pack (getSymbolicPath l) T.putStrLn $ mconcat [ if isB then "| **`" else "| `", pn, if isB then "`** | [`" else "` | [`", dispVer pv, "`](", url , ")", " | " @@ -198,7 +199,7 @@ case uType u of UnitTypeGlobal -> do - let lfs' = nub (map takeFileName lfs) + let lfs' = nub (map (takeFileName . getSymbolicPath) lfs) when (length lfs' /= length lfs) $ do T.hPutStrLn stderr ("WARNING: Overlapping license filenames for " <> dispPkgId (uPId u))
