Try to make bibtex8 build on all architectures and distributions

OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=430
This commit is contained in:
Dr. Werner Fink 2023-03-28 09:00:08 +00:00 committed by Git OBS Bridge
parent b75f53038d
commit 9f50d679fd
3 changed files with 106 additions and 0 deletions

92
source-decNumber.dif Normal file
View File

@ -0,0 +1,92 @@
---
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
+++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 07:17:36.817182422 +0000
@@ -53,29 +53,35 @@
/* constant. This must not be changed without recompiling the */
/* decNumber library modules. */
+ #ifndef DECDPUN
/* For ICU, use one digit per byte, to make it easier to emulate the
* old DigitList interface on top of a decNumber
*/
#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)
--- texk/web2c/mplibdir/decNumber.h
+++ texk/web2c/mplibdir/decNumber.h 2023-03-28 07:19:36.706899490 +0000
@@ -40,26 +40,32 @@
/* 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)

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Mar 28 08:54:27 UTC 2023 - Dr. Werner Fink <werner@suse.de>
- Mofify patch source-warns.dif
* Remove change for decNumber.h from icu library source
as it is incompatible with icu 72 ans above
- Add patch source-decNumber.dif
* make libmp and libcu using the same decNumber scheme to
get e.g. bibtex8 working on all architectures
-------------------------------------------------------------------
Mon Mar 20 08:38:07 UTC 2023 - Dr. Werner Fink <werner@suse.de>

View File

@ -251,6 +251,7 @@ Patch0: source.dif
Patch1: source-configure.dif
Patch2: source-xdvizilla.dif
Patch3: source-arraysubs.dif
Patch4: source-decNumber.dif
Patch5: source-texdoc.dif
Patch6: source-dviutils.dif
Patch8: source-psutils.dif
@ -4003,6 +4004,8 @@ This package is required by the package texlive-biber-bin.
cflags -Wl,--hash-size=8599 XLDFLAGS
cflags -Wl,-warn-common XLDFLAGS
cflags -Wl,-Bsymbolic-functions XLDFLAGS
# Unicode
cflags -DDECDPUN=1 XCFLAGS
XCXXFLAGS="${XCXXFLAGS/-Wno-unprototyped-calls/}"
HOST=%{_target_cpu}-suse-%{_host_os}
BUILD=%{_target_cpu}-suse-%{_build_os}
@ -4082,6 +4085,7 @@ This package is required by the package texlive-biber-bin.
%patch1 -p0 -b .configure
%patch2 -p0 -b .xdvizilla
%patch3 -p0 -b .arraysubs
%patch4 -p0 -b .unicode
%patch5 -p0 -b .texdoc
%patch6 -p0 -b .dviutils
%patch8 -p0 -b .psutils