commit ghc-mintty for openSUSE:Factory

2020-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2020-09-15 16:19:00

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new.4249 (New)


Package is "ghc-mintty"

Tue Sep 15 16:19:00 2020 rev:8 rq:833291 version:0.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2019-12-27 
13:55:27.224718759 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new.4249/ghc-mintty.changes  
2020-09-15 16:19:06.126068992 +0200
@@ -1,0 +2,5 @@
+Fri Sep  4 10:40:12 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.1amBTq/_old  2020-09-15 16:19:07.670070470 +0200
+++ /var/tmp/diff_new_pack.1amBTq/_new  2020-09-15 16:19:07.674070474 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-mintty
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -53,7 +53,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-mintty for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2019-12-27 13:55:14

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new.6675 (New)


Package is "ghc-mintty"

Fri Dec 27 13:55:14 2019 rev:7 rq:759449 version:0.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2018-10-25 
08:27:14.199777390 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new.6675/ghc-mintty.changes  
2019-12-27 13:55:27.224718759 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:14:13 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.Xwp3Jz/_old  2019-12-27 13:55:27.816719045 +0100
+++ /var/tmp/diff_new_pack.Xwp3Jz/_new  2019-12-27 13:55:27.820719047 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-mintty
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,6 @@
 Release:0
 Summary:A reliable way to detect the presence of a MinTTY console on 
Windows
 License:BSD-3-Clause
-Group:  Development/Libraries/Haskell
 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
@@ -45,7 +44,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-mintty for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2018-10-25 08:27:13

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new (New)


Package is "ghc-mintty"

Thu Oct 25 08:27:13 2018 rev:6 rq:643420 version:0.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2018-07-21 
10:22:14.815000517 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new/ghc-mintty.changes   
2018-10-25 08:27:14.199777390 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:31:43 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.7C101v/_old  2018-10-25 08:27:15.251776903 +0200
+++ /var/tmp/diff_new_pack.7C101v/_new  2018-10-25 08:27:15.251776903 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 




commit ghc-mintty for openSUSE:Factory

2018-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2018-07-21 10:21:09

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new (New)


Package is "ghc-mintty"

Sat Jul 21 10:21:09 2018 rev:5 rq:623809 version:0.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2018-05-30 
12:26:23.872147379 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new/ghc-mintty.changes   
2018-07-21 10:22:14.815000517 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:32 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -23 +28,0 @@
-



Other differences:
--



commit ghc-mintty for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2018-05-30 12:10:48

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new (New)


Package is "ghc-mintty"

Wed May 30 12:10:48 2018 rev:4 rq:607838 version:0.1.2

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2017-09-15 
21:57:55.337702159 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new/ghc-mintty.changes   
2018-05-30 12:26:23.872147379 +0200
@@ -1,0 +2,8 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update mintty to version 0.1.2.
+  * Only use the `Win32`-provided version of `isMinTTY` if building against
+`Win32-2.5.3` to be certain that one avoids Trac #13431.
+  * Don't enable `Safe` on GHC 7.2.
+
+---

Old:

  mintty-0.1.1.tar.gz

New:

  mintty-0.1.2.tar.gz



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.vNtSq4/_old  2018-05-30 12:26:24.596122864 +0200
+++ /var/tmp/diff_new_pack.vNtSq4/_new  2018-05-30 12:26:24.596122864 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-mintty
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # 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 mintty
 Name:   ghc-%{pkg_name}
-Version:0.1.1
+Version:0.1.2
 Release:0
 Summary:A reliable way to detect the presence of a MinTTY console on 
Windows
 License:BSD-3-Clause
@@ -70,7 +70,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md

++ mintty-0.1.1.tar.gz -> mintty-0.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1.1/CHANGELOG.md 
new/mintty-0.1.2/CHANGELOG.md
--- old/mintty-0.1.1/CHANGELOG.md   2017-03-18 00:36:13.0 +0100
+++ new/mintty-0.1.2/CHANGELOG.md   2018-05-08 01:36:17.0 +0200
@@ -1,7 +1,12 @@
-### 0.1.1 [2017-03-17]
+### 0.1.2 [2018.05.07]
+* Only use the `Win32`-provided version of `isMinTTY` if building against
+  `Win32-2.5.3` to be certain that one avoids Trac #13431.
+* Don't enable `Safe` on GHC 7.2.
+
+### 0.1.1 [2017.03.17]
 * Work around a serious bug on 32-bit Windows GHC that causes linker errors
   when mintty is used together with code that uses certain `msvcrt` functions,
   such as `atan`
 
-## 0.1 [2017-01-30]
+## 0.1 [2017.01.30]
 * Initial release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1.1/mintty.cabal 
new/mintty-0.1.2/mintty.cabal
--- old/mintty-0.1.1/mintty.cabal   2017-03-18 00:36:13.0 +0100
+++ new/mintty-0.1.2/mintty.cabal   2018-05-08 01:36:17.0 +0200
@@ -1,5 +1,5 @@
 name:mintty
-version: 0.1.1
+version: 0.1.2
 synopsis:A reliable way to detect the presence of a MinTTY console 
on Windows
 description: MinTTY is a Windows-specific terminal emulator for the
  widely used Cygwin and MSYS projects, which provide
@@ -30,13 +30,22 @@
 build-type:  Simple
 extra-source-files:  CHANGELOG.md, README.md, include/*.h
 cabal-version:   >=1.10
+tested-with: GHC == 7.0.4
+   , GHC == 7.2.2
+   , GHC == 7.4.2
+   , GHC == 7.6.3
+   , GHC == 7.8.4
+   , GHC == 7.10.3
+   , GHC == 8.0.2
+   , GHC == 8.2.2
+   , GHC == 8.4.2
 
 source-repository head
   type:git
   location:https://github.com/RyanGlScott/mintty
 
-flag Win32-2-5
-  description: Use Win32-2.5.0.0 or later.
+flag Win32-2-5-3
+  description: Use Win32-2.5.3.0 or later.
   default: True
 
 library
@@ -46,11 +55,11 @@
   if os(windows)
 cpp-options:   "-DWINDOWS"
 
-if flag(Win32-2-5)
-  build-depends:   Win32 >= 2.5
+if flag(Win32-2-5-3)
+  build-depends:   Win32 >= 2.5.3
 else
   build-depends:   filepath
- , Win32 < 2.5
+ , Win32 < 2.5.3
   build-tools: hsc2hs
   include-dirs:include
   includes:windows_cconv.h, winternl_compat.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1.1/src/System/Console/MinTTY.hs 

commit ghc-mintty for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2017-09-15 21:57:54

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new (New)


Package is "ghc-mintty"

Fri Sep 15 21:57:54 2017 rev:3 rq:525002 version:0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2017-05-10 
20:48:21.581116651 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new/ghc-mintty.changes   
2017-09-15 21:57:55.337702159 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.eKDebT/_old  2017-09-15 21:57:55.865627763 +0200
+++ /var/tmp/diff_new_pack.eKDebT/_new  2017-09-15 21:57:55.869627199 +0200
@@ -22,12 +22,11 @@
 Release:0
 Summary:A reliable way to detect the presence of a MinTTY console on 
Windows
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+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-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 MinTTY is a Windows-specific terminal emulator for the widely used Cygwin and
@@ -46,7 +45,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -71,11 +70,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG.md README.md
 
 %changelog




commit ghc-mintty for openSUSE:Factory

2017-05-10 Thread root
Hello community,

here is the log from the commit of package ghc-mintty for openSUSE:Factory 
checked in at 2017-05-10 20:48:20

Comparing /work/SRC/openSUSE:Factory/ghc-mintty (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-mintty.new (New)


Package is "ghc-mintty"

Wed May 10 20:48:20 2017 rev:2 rq:489359 version:0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-mintty/ghc-mintty.changes2017-04-12 
18:07:45.809670994 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mintty.new/ghc-mintty.changes   
2017-05-10 20:48:21.581116651 +0200
@@ -1,0 +2,5 @@
+Mon Mar 27 12:39:13 UTC 2017 - psim...@suse.com
+
+- Update to version 0.1.1 with cabal2obs.
+
+---

Old:

  mintty-0.1.tar.gz

New:

  mintty-0.1.1.tar.gz



Other differences:
--
++ ghc-mintty.spec ++
--- /var/tmp/diff_new_pack.nPro4T/_old  2017-05-10 20:48:22.317012812 +0200
+++ /var/tmp/diff_new_pack.nPro4T/_new  2017-05-10 20:48:22.321012247 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name mintty
 Name:   ghc-%{pkg_name}
-Version:0.1
+Version:0.1.1
 Release:0
 Summary:A reliable way to detect the presence of a MinTTY console on 
Windows
 License:BSD-3-Clause

++ mintty-0.1.tar.gz -> mintty-0.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1/CHANGELOG.md new/mintty-0.1.1/CHANGELOG.md
--- old/mintty-0.1/CHANGELOG.md 2017-01-31 03:09:09.0 +0100
+++ new/mintty-0.1.1/CHANGELOG.md   2017-03-18 00:36:13.0 +0100
@@ -1,2 +1,7 @@
+### 0.1.1 [2017-03-17]
+* Work around a serious bug on 32-bit Windows GHC that causes linker errors
+  when mintty is used together with code that uses certain `msvcrt` functions,
+  such as `atan`
+
 ## 0.1 [2017-01-30]
 * Initial release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1/mintty.cabal new/mintty-0.1.1/mintty.cabal
--- old/mintty-0.1/mintty.cabal 2017-01-31 03:09:09.0 +0100
+++ new/mintty-0.1.1/mintty.cabal   2017-03-18 00:36:13.0 +0100
@@ -1,5 +1,5 @@
 name:mintty
-version: 0.1
+version: 0.1.1
 synopsis:A reliable way to detect the presence of a MinTTY console 
on Windows
 description: MinTTY is a Windows-specific terminal emulator for the
  widely used Cygwin and MSYS projects, which provide
@@ -55,7 +55,6 @@
   include-dirs:include
   includes:windows_cconv.h, winternl_compat.h
   other-modules:   System.Console.MinTTY.Win32
-  extra-libraries: ntdll
 
   hs-source-dirs:  src
   default-language:Haskell2010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mintty-0.1/src/System/Console/MinTTY/Win32.hsc 
new/mintty-0.1.1/src/System/Console/MinTTY/Win32.hsc
--- old/mintty-0.1/src/System/Console/MinTTY/Win32.hsc  2017-01-31 
03:09:09.0 +0100
+++ new/mintty-0.1.1/src/System/Console/MinTTY/Win32.hsc2017-03-18 
00:36:13.0 +0100
@@ -1,5 +1,5 @@
 {-
-This is a direct copy of System.Win32.MinTTY from the Win32 library. We need
+This is a (mostly) direct copy of System.Win32.MinTTY from the Win32 library. 
We need
 this for backwards compatibility with older versions of Win32 which do not ship
 with this module.
 -}
@@ -38,8 +38,9 @@
 #if MIN_VERSION_base(4,6,0)
 import Control.Exception (catch)
 #endif
+import Control.Monad (void)
 import Data.List (isPrefixOf, isInfixOf, isSuffixOf)
-import Foreign
+import Foreign hiding (void)
 import Foreign.C.Types
 import System.FilePath (takeFileName)
 
@@ -141,11 +142,24 @@
   bufSize   = sizeOfONI + mAX_PATH * sizeOfTCHAR
   allocaBytes bufSize $ \buf ->
 alloca $ \p_len -> do
+  {-
+  See Note [Don't link against ntdll]
   _ <- failIfNeg "NtQueryObject" $ c_NtQueryObject
  h objectNameInformation buf (fromIntegral bufSize) p_len
+  -}
+  ntQueryObject h objectNameInformation buf (fromIntegral bufSize) p_len
   oni <- peek buf
   return $ usBuffer $ oniName oni
 
+-- See Note [Don't link against ntdll]
+ntQueryObject :: HANDLE -> CInt -> Ptr OBJECT_NAME_INFORMATION
+  -> ULONG -> Ptr ULONG -> IO ()
+ntQueryObject h cls buf bufSize p_len = do
+  lib <- getModuleHandle (Just "ntdll.dll")
+  ptr <- getProcAddress lib "NtQueryObject"
+  let c_NtQueryObject = mk_NtQueryObject (castPtrToFunPtr ptr)
+  void $ failIfNeg "NtQueryObject" $ c_NtQueryObject h cls buf bufSize p_len
+
 fileNameInfo :: CInt
 fileNameInfo = #const FileNameInfo
 
@@ -186,9 +200,21 @@
   , fniFileName   = vfniFileName
   }
 
+{-
+In