Hello community,
here is the log from the commit of package ghc-unicode-transforms for
openSUSE:Factory checked in at 2020-10-23 15:15:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-unicode-transforms (Old)
and /work/SRC/openSUSE:Factory/.ghc-unicode-transforms.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-unicode-transforms"
Fri Oct 23 15:15:15 2020 rev:11 rq:842772 version:0.3.7.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-unicode-transforms/ghc-unicode-transforms.changes
2020-08-28 21:40:16.740862973 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-unicode-transforms.new.3463/ghc-unicode-transforms.changes
2020-10-23 15:15:18.978162287 +0200
@@ -1,0 +2,8 @@
+Tue Oct 13 07:00:26 UTC 2020 - [email protected]
+
+- Update unicode-transforms to version 0.3.7.1.
+ ## 0.3.7.1
+
+ * Fix x32 build
+
+-------------------------------------------------------------------
Old:
----
unicode-transforms-0.3.7.tar.gz
New:
----
unicode-transforms-0.3.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-unicode-transforms.spec ++++++
--- /var/tmp/diff_new_pack.OpJESI/_old 2020-10-23 15:15:21.214163366 +0200
+++ /var/tmp/diff_new_pack.OpJESI/_new 2020-10-23 15:15:21.218163367 +0200
@@ -19,7 +19,7 @@
%global pkg_name unicode-transforms
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.3.7
+Version: 0.3.7.1
Release: 0
Summary: Unicode normalization
License: BSD-3-Clause
++++++ unicode-transforms-0.3.7.tar.gz -> unicode-transforms-0.3.7.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unicode-transforms-0.3.7/Changelog.md
new/unicode-transforms-0.3.7.1/Changelog.md
--- old/unicode-transforms-0.3.7/Changelog.md 2001-09-09 03:46:40.000000000
+0200
+++ new/unicode-transforms-0.3.7.1/Changelog.md 2020-10-11 23:37:59.000000000
+0200
@@ -1,3 +1,7 @@
+## 0.3.7.1
+
+* Fix x32 build
+
## 0.3.7
* Significant performance improvements
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/unicode-transforms-0.3.7/Data/Unicode/Internal/Bits.hs
new/unicode-transforms-0.3.7.1/Data/Unicode/Internal/Bits.hs
--- old/unicode-transforms-0.3.7/Data/Unicode/Internal/Bits.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/unicode-transforms-0.3.7.1/Data/Unicode/Internal/Bits.hs
2020-09-27 00:20:30.000000000 +0200
@@ -1,3 +1,4 @@
+{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE MagicHash #-}
-- |
-- Module : Data.Unicode.Internal.Bits
@@ -16,8 +17,9 @@
lookupBit64
) where
+import Data.Bits (finiteBitSize, popCount)
import GHC.Exts
- (Addr#, Int(..), Word(..), indexWord64OffAddr#, and#, andI#,
+ (Addr#, Int(..), Word(..), indexWordOffAddr#, and#, andI#,
uncheckedIShiftRL#, uncheckedShiftL#)
-- | @lookup64 addr index@ looks up the bit stored at bit index @index@ using a
@@ -29,7 +31,13 @@
lookupBit64 :: Addr# -> Int -> Bool
lookupBit64 addr# (I# index#) = W# (word## `and#` bitMask##) /= 0
where
- wordIndex# = index# `uncheckedIShiftRL#` 6#
- word## = indexWord64OffAddr# addr# wordIndex#
- bitIndex# = index# `andI#` 63#
+ !fbs@(I# fbs#) = finiteBitSize (0 :: Word) - 1
+ !(I# logFbs#) = case fbs of
+ 31 -> 5
+ 63 -> 6
+ _ -> popCount fbs -- this is a really weird architecture
+
+ wordIndex# = index# `uncheckedIShiftRL#` logFbs#
+ word## = indexWordOffAddr# addr# wordIndex#
+ bitIndex# = index# `andI#` fbs#
bitMask## = 1## `uncheckedShiftL#` bitIndex#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unicode-transforms-0.3.7/unicode-transforms.cabal
new/unicode-transforms-0.3.7.1/unicode-transforms.cabal
--- old/unicode-transforms-0.3.7/unicode-transforms.cabal 2001-09-09
03:46:40.000000000 +0200
+++ new/unicode-transforms-0.3.7.1/unicode-transforms.cabal 2020-10-12
20:15:53.000000000 +0200
@@ -1,13 +1,13 @@
cabal-version: 2.2
name: unicode-transforms
-version: 0.3.7
+version: 0.3.7.1
synopsis: Unicode normalization
description: Fast Unicode 13.0.0 normalization in Haskell (NFC, NFKC, NFD,
NFKD).
category: Data,Text,Unicode
stability: Experimental
-homepage: http://github.com/harendra-kumar/unicode-transforms
-bug-reports: https://github.com/harendra-kumar/unicode-transforms/issues
+homepage: http://github.com/composewell/unicode-transforms
+bug-reports: https://github.com/composewell/unicode-transforms/issues
author: Harendra Kumar
maintainer: [email protected]
copyright: 2016-2017 Harendra Kumar,
@@ -51,7 +51,7 @@
source-repository head
type: git
- location: https://github.com/harendra-kumar/unicode-transforms
+ location: https://github.com/composewell/unicode-transforms
flag dev
description: Developer build
@@ -96,7 +96,7 @@
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates
-fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base >=4.7 && <5
- , bytestring >=0.9 && <0.11
+ , bytestring >=0.9 && <0.12
, text >=1.1.1 && <1.3
, ghc-prim >= 0.2 && < 0.7
if flag(dev)