From e236cc18fe284ae2ac2a8e3b199af356c73eca8fb3ab040bcde76a8605031501 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 28 Mar 2023 10:38:31 +0000 Subject: [PATCH] luametatex.dif OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=431 --- luametatex.dif | 17 ++++++++++ source-decNumber.dif | 80 ++++++-------------------------------------- texlive.changes | 2 ++ 3 files changed, 30 insertions(+), 69 deletions(-) create mode 100644 luametatex.dif diff --git a/luametatex.dif b/luametatex.dif new file mode 100644 index 0000000..ec4af1b --- /dev/null +++ b/luametatex.dif @@ -0,0 +1,17 @@ +--- + source/libraries/decnumber/decNumber.h | 2 ++ + 1 file changed, 2 insertions(+) + +--- source/libraries/decnumber/decNumber.h ++++ source/libraries/decnumber/decNumber.h 2023-03-28 09:48:50.820268040 +0000 +@@ -40,8 +40,10 @@ + /* constant. This must not be changed without recompiling the */ + /* decNumber library modules. */ + ++ #ifndef DECDPUN + #define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */ + /* and <10; 3 or powers of 2 are best]. */ ++ #endif + + /* DECNUMDIGITS is the default number of digits that can be held in */ + /* the structure. If undefined, 1 is assumed and it is assumed */ diff --git a/source-decNumber.dif b/source-decNumber.dif index 009e2ee..3c5d75e 100644 --- a/source-decNumber.dif +++ b/source-decNumber.dif @@ -1,11 +1,11 @@ --- - libs/icu/icu-src/source/i18n/decNumber.h | 20 +++++++++++++------- - texk/web2c/mplibdir/decNumber.h | 20 +++++++++++++------- - 2 files changed, 26 insertions(+), 14 deletions(-) + libs/icu/icu-src/source/i18n/decNumber.h | 2 ++ + texk/web2c/mplibdir/decNumber.h | 2 ++ + 2 files changed, 4 insertions(+) --- libs/icu/icu-src/source/i18n/decNumber.h -+++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 07:17:36.817182422 +0000 -@@ -53,29 +53,35 @@ ++++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 09:46:06.783388026 +0000 +@@ -53,11 +53,13 @@ /* constant. This must not be changed without recompiling the */ /* decNumber library modules. */ @@ -15,78 +15,20 @@ */ #define DECDPUN 1 /* DECimal Digits Per UNit [must be >0 */ /* and <10; 3 or powers of 2 are best]. */ -- -- /* DECNUMDIGITS is the default number of digits that can be held in */ -- /* the structure. If undefined, 1 is assumed and it is assumed */ -- /* that the structure will be immediately followed by extra space, */ -- /* as required. DECNUMDIGITS is always >0. */ -- #if !defined(DECNUMDIGITS) -- #define DECNUMDIGITS 1 - #endif - - /* The size (integer data type) of each unit is determined by the */ - /* number of digits it will hold. */ - #if DECDPUN<=2 - #define decNumberUnit uint8_t -+ #define DECNUMDIGITS 3 - #elif DECDPUN<=4 - #define decNumberUnit uint16_t -+ #define DECNUMDIGITS 2 - #else - #define decNumberUnit uint32_t -+ #define DECNUMDIGITS 1 - #endif -+ -+ /* DECNUMDIGITS is the default number of digits that can be held in */ -+ /* the structure. If undefined, 1 is assumed and it is assumed */ -+ /* that the structure will be immediately followed by extra space, */ -+ /* as required. DECNUMDIGITS is always >0. */ -+ #if !defined(DECNUMDIGITS) -+ #define DECNUMDIGITS 1 + #endif -+ - /* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */ - #define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN) + /* DECNUMDIGITS is the default number of digits that can be held in */ + /* the structure. If undefined, 1 is assumed and it is assumed */ --- texk/web2c/mplibdir/decNumber.h -+++ texk/web2c/mplibdir/decNumber.h 2023-03-28 07:19:36.706899490 +0000 -@@ -40,26 +40,32 @@ ++++ texk/web2c/mplibdir/decNumber.h 2023-03-28 09:46:33.962871087 +0000 +@@ -40,8 +40,10 @@ /* constant. This must not be changed without recompiling the */ /* decNumber library modules. */ + #ifndef DECDPUN #define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */ /* and <10; 3 or powers of 2 are best]. */ -- -- /* DECNUMDIGITS is the default number of digits that can be held in */ -- /* the structure. If undefined, 1 is assumed and it is assumed */ -- /* that the structure will be immediately followed by extra space, */ -- /* as required. DECNUMDIGITS is always >0. */ -- #if !defined(DECNUMDIGITS) -- #define DECNUMDIGITS 1 - #endif - - /* The size (integer data type) of each unit is determined by the */ - /* number of digits it will hold. */ - #if DECDPUN<=2 - #define decNumberUnit uint8_t -+ #define DECNUMDIGITS 3 - #elif DECDPUN<=4 - #define decNumberUnit uint16_t -+ #define DECNUMDIGITS 2 - #else - #define decNumberUnit uint32_t -+ #define DECNUMDIGITS 1 - #endif -+ -+ /* DECNUMDIGITS is the default number of digits that can be held in */ -+ /* the structure. If undefined, 1 is assumed and it is assumed */ -+ /* that the structure will be immediately followed by extra space, */ -+ /* as required. DECNUMDIGITS is always >0. */ -+ #if !defined(DECNUMDIGITS) -+ #define DECNUMDIGITS 1 + #endif -+ - /* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */ - #define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN) + /* DECNUMDIGITS is the default number of digits that can be held in */ + /* the structure. If undefined, 1 is assumed and it is assumed */ diff --git a/texlive.changes b/texlive.changes index 40e556d..066f76d 100644 --- a/texlive.changes +++ b/texlive.changes @@ -7,6 +7,8 @@ Tue Mar 28 08:54:27 UTC 2023 - Dr. Werner Fink - Add patch source-decNumber.dif * make libmp and libcu using the same decNumber scheme to get e.g. bibtex8 working on all architectures +- Add patch luametatex.dif + * Also use the same decNumber scheme here ------------------------------------------------------------------- Mon Mar 20 08:38:07 UTC 2023 - Dr. Werner Fink