FS#55246 - icu 59.1-1 will not build due to incorrect capitalization of #include <xlocale.h>

Attached to Project: Arch Linux
Opened by David McInnis (daavve) - Tuesday, 22 August 2017, 23:38 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 23 August 2017, 01:33 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

icu 59.1-1 build fails with following error:

digitlst.cpp:67:13: fatal error: 'xlocale.h' file not found
# include <xlocale.h>

I created a bug upstream at : http://bugs.icu-project.org/trac/ticket/13329

The following patch will fix the issue:

----------------------------------------------------------------------------

--- icu.orig/source/i18n/digitlst.cpp 2017-01-19 16:20:31.000000000 -0800
+++ icu/source/i18n/digitlst.cpp 2017-08-22 16:19:01.918592751 -0700
@@ -64,7 +64,7 @@
# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN
# include <locale.h>
# else
-# include <xlocale.h>
+# include <Xlocale.h>
# endif
#endif


--------------------------------------------------------------------------------
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 23 August 2017, 01:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  icu 59.1-2 and +1 to prescient maintainers ;)
Comment by David McInnis (daavve) - Wednesday, 23 August 2017, 00:52 GMT
The preceding patch is not incorrect and should not be used

The prepare() function in PKGBUILD already does a workaround:

sed -i 's/xlocale/locale/' i18n/digitlst.cpp

The issue is still reported upstream: http://bugs.icu-project.org/trac/ticket/13329

-Dave

Loading...