Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package xmobar for openSUSE:Factory checked in at 2023-10-11 23:56:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xmobar (Old) and /work/SRC/openSUSE:Factory/.xmobar.new.1807 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xmobar" Wed Oct 11 23:56:36 2023 rev:26 rq:1116855 version:0.47.1 Changes: -------- --- /work/SRC/openSUSE:Factory/xmobar/xmobar.changes 2023-04-04 21:25:40.126980661 +0200 +++ /work/SRC/openSUSE:Factory/.xmobar.new.1807/xmobar.changes 2023-10-12 12:00:42.937316355 +0200 @@ -1,0 +2,9 @@ +Sat Sep 2 22:18:49 UTC 2023 - Peter Simons <[email protected]> + +- Update xmobar to version 0.47.1. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/xmobar-0.47.1/src/changelog.md + +------------------------------------------------------------------- Old: ---- xmobar-0.46.tar.gz New: ---- xmobar-0.47.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xmobar.spec ++++++ --- /var/tmp/diff_new_pack.P4LYKa/_old 2023-10-12 12:00:43.897350981 +0200 +++ /var/tmp/diff_new_pack.P4LYKa/_new 2023-10-12 12:00:43.901351125 +0200 @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: %{pkg_name} -Version: 0.46 +Version: 0.47.1 Release: 0 Summary: A Minimalistic Text Based Status Bar License: BSD-3-Clause @@ -68,8 +68,6 @@ BuildRequires: ghc-http-conduit-prof BuildRequires: ghc-http-types-devel BuildRequires: ghc-http-types-prof -BuildRequires: ghc-libmpd-devel -BuildRequires: ghc-libmpd-prof BuildRequires: ghc-mtl-devel BuildRequires: ghc-mtl-prof BuildRequires: ghc-netlink-devel ++++++ xmobar-0.46.tar.gz -> xmobar-0.47.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/changelog.md new/xmobar-0.47.1/changelog.md --- old/xmobar-0.46/changelog.md 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/changelog.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,8 +1,20 @@ +## Version 0.47.1 (September, 2) + +- Allow compilation with libmpd even with GHC > 9.4, by requesting it + explicitly with `with_mpd`. See #667 for further details. + +## Version 0.47 (August, 2023) + +- Fix: center middle section for templates of the for }M{ +- Documentation fixes and improvements +- Better error handling in network connections +- Dependency fixes (libmpd excluded for GHC > 9.2) + ## Version 0.46 (January, 2023) - New bar position specifiers TopHM, BottomHM. - New configuration option, `dpi`, to set the font scaling factor. -- Fixes and extensions for section aligment behaviour (#650, #655). +- Fixes and extensions for section alignment behaviour (#650, #655). - Fix: honour fc/bg specs for icons (#663). ## Version 0.45 (October, 2022) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/doc/quick-start.org new/xmobar-0.47.1/doc/quick-start.org --- old/xmobar-0.46/doc/quick-start.org 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/doc/quick-start.org 2001-09-09 03:46:40.000000000 +0200 @@ -146,6 +146,15 @@ to use Source Code Pro Semi-Bold 10 when possible, and fall back to Noto Color Emoji Regular 12 for characters that the former cannot display. +**** X11 Bitmap fonts + + If you want to use traditional, non-aliased X11 fonts, you can do so via + the [[https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html][Unicode fonts and tools for X11]] package, which provides bitmap + versions of them, with a specification of the stytle ~"Fixed 8"~ for what + in the old days would have been something like + ~-Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO10646-1~. See also + discussion in [[https://codeberg.org/xmobar/xmobar/issues/658][issue #658]]. + *** Colors - =bgColor= Background color. @@ -455,7 +464,8 @@ - If the template has the form =L}M{R=, with L, R, M arbitrary specs, the monitors in =L= are drawn first, aligned to the left, then =R=, aligned to the right, and finally =M= is drawn centered in the bar. =R= is trimmed to - the space left by =L=, and =M= is trimmed to the space left by =L= and =R=. + the space left by =L=, and =M= is trimmed to the space left by =L= and =R=. As + a particular case, =}M{= will draw a single segment centered in the bar. - If the template has the form =L}{R=, =L= is drawn aligned to the left first and then =R=, aligned to the right and trimmed if needed to fit in the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/readme.org new/xmobar-0.47.1/readme.org --- old/xmobar-0.46/readme.org 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/readme.org 2001-09-09 03:46:40.000000000 +0200 @@ -31,7 +31,14 @@ * Breaking news - - Starting with version 0.45 we use cairo/pango as our drawing engine + - Starting with version 0.47.1, we are excluding MPD from the extensions + included with ~all_extensions~ when GHC version is 9.4 or greater, because + that seems to break cabal compilation. However, it's been reported that + in some installations compilation with ~libmpd~ works fine: just add + explicitly the ~with_mpd~ flag to include MPD and check for yourself. + Compilation with stack has also been reported to work. Please see the + comments in issue #679 for details. + - Starting with version 0.45, we use cairo/pango as our drawing engine (instead of plain X11/Xft). From a user's point of view, that change should be mostly transparent, except for the facts that it's allowed fixing quite a few bugs and that your /font names/ in your configuration, if @@ -75,6 +82,11 @@ emerge --ask xmobar #+end_src + - FreeBSD + #+begin_src shell + pkg install hs-xmobar + #+end_src + ** Using cabal or stack Xmobar is available from [[http://hackage.haskell.org/package/xmobar/][Hackage]], and you can compile and install it using @@ -190,6 +202,6 @@ This software is released under a BSD-style license. See [[https://codeberg.org/xmobar/xmobar/src/branch/master/license][license]] for more details. - Copyright © 2010-2022 Jose Antonio Ortega Ruiz + Copyright © 2010-2023 Jose Antonio Ortega Ruiz Copyright © 2007-2010 Andrea Rossato diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/src/Xmobar/App/Opts.hs new/xmobar-0.47.1/src/Xmobar/App/Opts.hs --- old/xmobar-0.46/src/Xmobar/App/Opts.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/src/Xmobar/App/Opts.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------ -- | -- Module: Xmobar.App.Opts --- Copyright: (c) 2018, 2019, 2020, 2022 Jose Antonio Ortega Ruiz +-- Copyright: (c) 2018, 2019, 2020, 2022, 2023 Jose Antonio Ortega Ruiz -- License: BSD3-style (see LICENSE) -- -- Maintainer: [email protected] @@ -116,7 +116,7 @@ info :: String info = "xmobar " ++ showVersion version - ++ "\n (C) 2010 - 2022 Jose A Ortega Ruiz" + ++ "\n (C) 2010 - 2023 Jose A Ortega Ruiz" ++ "\n (C) 2007 - 2010 Andrea Rossato\n " ++ mail ++ "\n" ++ license ++ "\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/src/Xmobar/Draw/Cairo.hs new/xmobar-0.47.1/src/Xmobar/Draw/Cairo.hs --- old/xmobar-0.46/src/Xmobar/Draw/Cairo.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/src/Xmobar/Draw/Cairo.hs 2001-09-09 03:46:40.000000000 +0200 @@ -2,7 +2,7 @@ ------------------------------------------------------------------------------ -- | -- Module: Xmobar.X11.Cairo --- Copyright: (c) 2022 Jose Antonio Ortega Ruiz +-- Copyright: (c) 2022, 2023 Jose Antonio Ortega Ruiz -- License: BSD3-style (see LICENSE) -- -- Maintainer: [email protected] @@ -185,7 +185,7 @@ (lend, as, bx) <- foldM (drawSegment dctx surf dw) (0, [], []) llyts let [rw, cw] = map sWidth [rlyts, clyts] rstart = max lend (dw - rw) - cstart = if lend > 1 then max lend ((dw - cw) / 2.0) else lend + cstart = if lend > 1 || rw == 0 then max lend ((dw - cw) / 2.0) else lend (_, as', bx') <- if cw > 0 then foldM (drawSegment dctx surf rstart) (cstart, as, bx) clyts else return (0, as, bx) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/src/Xmobar/System/DBus.hs new/xmobar-0.47.1/src/Xmobar/System/DBus.hs --- old/xmobar-0.46/src/Xmobar/System/DBus.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/src/Xmobar/System/DBus.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,4 @@ +{-# LANGUAGE ScopedTypeVariables #-} ----------------------------------------------------------------------------- -- | -- Module : DBus @@ -17,9 +18,10 @@ import DBus import DBus.Client hiding (interfaceName) import qualified DBus.Client as DC +import DBus.Socket import Data.Maybe (isNothing) import Control.Concurrent.STM -import Control.Exception (handle) +import Control.Exception import System.IO (stderr, hPutStrLn) import Control.Monad.IO.Class (liftIO) @@ -35,10 +37,10 @@ interfaceName = interfaceName_ "org.Xmobar.Control" runIPC :: TMVar SignalType -> IO () -runIPC mvst = handle printException exportConnection +runIPC mvst = exportConnection `catches` [ + Handler(\ (ex :: ClientError) -> hPutStrLn stderr (clientErrorMessage ex)), + Handler(\ (ex :: SocketError) -> hPutStrLn stderr (socketErrorMessage ex))] where - printException :: ClientError -> IO () - printException = hPutStrLn stderr . clientErrorMessage exportConnection = do client <- connectSession requestName client busName [ nameDoNotQueue ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xmobar-0.46/xmobar.cabal new/xmobar-0.47.1/xmobar.cabal --- old/xmobar-0.46/xmobar.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/xmobar-0.47.1/xmobar.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ name: xmobar -version: 0.46 +version: 0.47.1 homepage: https://codeberg.org/xmobar/xmobar synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. @@ -255,7 +255,7 @@ cereal >= 0.5.8.1 cpp-options: -DUSE_NL80211 - if flag(with_mpd) || flag(all_extensions) + if flag(with_mpd) || (flag(all_extensions) && impl(ghc < 9.4)) build-depends: libmpd >= 0.9.2.0 other-modules: Xmobar.Plugins.Monitors.MPD cpp-options: -DLIBMPD
