Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-terminal-size for 
openSUSE:Factory checked in at 2022-08-01 21:28:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-terminal-size (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-terminal-size.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-terminal-size"

Mon Aug  1 21:28:59 2022 rev:6 rq:985828 version:0.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-terminal-size/ghc-terminal-size.changes      
2020-12-22 11:47:10.345897087 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-terminal-size.new.1533/ghc-terminal-size.changes
    2022-08-01 21:29:07.397436878 +0200
@@ -1,0 +2,13 @@
+Sun Mar 20 20:34:59 UTC 2022 - Peter Simons <[email protected]>
+
+- Update terminal-size to version 0.3.3.
+  0.3.3
+  =====
+
+    * Fixed ioctl foreign import. 
(https://github.com/biegunka/terminal-size/pull/16)
+
+    * `#alignment` is a hsc2hs built-in since some unspecified GHC 7.x. 
(https://github.com/biegunka/terminal-size/pull/12)
+
+    * Captured possible `stty` stderr output with a pipe. 
(https://github.com/biegunka/terminal-size/pull/13)
+
+-------------------------------------------------------------------

Old:
----
  terminal-size-0.3.2.1.tar.gz

New:
----
  terminal-size-0.3.3.tar.gz

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

Other differences:
------------------
++++++ ghc-terminal-size.spec ++++++
--- /var/tmp/diff_new_pack.ypYRte/_old  2022-08-01 21:29:07.833438128 +0200
+++ /var/tmp/diff_new_pack.ypYRte/_new  2022-08-01 21:29:07.845438163 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-terminal-size
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name terminal-size
 Name:           ghc-%{pkg_name}
-Version:        0.3.2.1
+Version:        0.3.3
 Release:        0
 Summary:        Get terminal window height and width
 License:        BSD-3-Clause

++++++ terminal-size-0.3.2.1.tar.gz -> terminal-size-0.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terminal-size-0.3.2.1/CHANGELOG.markdown 
new/terminal-size-0.3.3/CHANGELOG.markdown
--- old/terminal-size-0.3.2.1/CHANGELOG.markdown        2015-11-01 
16:07:49.000000000 +0100
+++ new/terminal-size-0.3.3/CHANGELOG.markdown  2022-03-20 21:33:56.000000000 
+0100
@@ -1,3 +1,13 @@
+0.3.3
+=====
+
+  * Fixed ioctl foreign import. 
(https://github.com/biegunka/terminal-size/pull/16)
+
+  * `#alignment` is a hsc2hs built-in since some unspecified GHC 7.x. 
(https://github.com/biegunka/terminal-size/pull/12)
+
+  * Captured possible `stty` stderr output with a pipe. 
(https://github.com/biegunka/terminal-size/pull/13)
+
+
 0.3.2.1
 =======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/terminal-size-0.3.2.1/src/System/Console/Terminal/Posix.hsc 
new/terminal-size-0.3.3/src/System/Console/Terminal/Posix.hsc
--- old/terminal-size-0.3.2.1/src/System/Console/Terminal/Posix.hsc     
2015-11-01 16:07:49.000000000 +0100
+++ new/terminal-size-0.3.3/src/System/Console/Terminal/Posix.hsc       
2022-03-20 21:28:25.000000000 +0100
@@ -1,3 +1,4 @@
+{-# LANGUAGE CApiFFI #-}
 
 module System.Console.Terminal.Posix
   ( size, fdSize, hSize
@@ -20,9 +21,9 @@
 #include <sys/ioctl.h>
 #include <unistd.h>
 
-
+#if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ < 800)
 #let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); 
}, y__)
-
+#endif
 
 -- Interesting part of @struct winsize@
 data CWin = CWin CUShort CUShort
@@ -51,8 +52,8 @@
   handler :: IOError -> IO (Maybe (Window h))
   handler _ = return Nothing
 
-foreign import ccall "sys/ioctl.h ioctl"
-  ioctl :: CInt -> CInt -> Ptr CWin -> IO CInt
+foreign import capi "sys/ioctl.h ioctl"
+  ioctl :: CInt -> CULong -> Ptr CWin -> IO CInt
 
 size :: Integral n => IO (Maybe (Window n))
 size = fdSize (Fd (#const STDOUT_FILENO))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/terminal-size-0.3.2.1/src/System/Console/Terminal/Windows.hs 
new/terminal-size-0.3.3/src/System/Console/Terminal/Windows.hs
--- old/terminal-size-0.3.2.1/src/System/Console/Terminal/Windows.hs    
2015-11-01 16:07:49.000000000 +0100
+++ new/terminal-size-0.3.3/src/System/Console/Terminal/Windows.hs      
2022-03-20 21:15:15.000000000 +0100
@@ -42,6 +42,7 @@
                 let stty = (shell "stty size") {
                       std_in  = UseHandle stdin
                     , std_out = CreatePipe
+                    , std_err = CreatePipe
                     }
                 (_, mbStdout, _, rStty) <- createProcess stty
                 exStty <- waitForProcess rStty
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terminal-size-0.3.2.1/terminal-size.cabal 
new/terminal-size-0.3.3/terminal-size.cabal
--- old/terminal-size-0.3.2.1/terminal-size.cabal       2015-11-01 
16:07:49.000000000 +0100
+++ new/terminal-size-0.3.3/terminal-size.cabal 2022-03-20 21:32:33.000000000 
+0100
@@ -1,5 +1,5 @@
 name:                terminal-size
-version:             0.3.2.1
+version:             0.3.3
 synopsis:            Get terminal window height and width
 description:
   Get terminal window height and width without ncurses dependency.
@@ -21,7 +21,7 @@
 source-repository this
   type:     git
   location: https://github.com/biegunka/terminal-size
-  tag:      0.3.2.1
+  tag:      0.3.3
 
 library
   default-language:

Reply via email to