Hi, 

While build icu4c on my macppc box, i had the following error:

>  gmake[2]: *** No rule to make target 'out', needed by 'out/icudt64b.dat'.  
> Stop.
>  gmake[2]: Leaving directory '/usr/ports/devel/icu/work/icu/source/data'

FreeBSD has a patch that circumvents it [0]. According to them, it seems
that ICU website's tarball has pre-generated little endian files, differing
from GitHub tarballs. As such, the breakage only occurs on big endian archs.

It builds fine on macppc and amd64.

Revision bumps are probably over the top.

Comments/feedback are welcome!

Charlène.


[0] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236860


Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/icu4c/Makefile,v
retrieving revision 1.69
diff -u -p -u -p -r1.69 Makefile
--- Makefile    10 Jun 2019 08:07:50 -0000      1.69
+++ Makefile    3 Jul 2019 15:14:45 -0000
@@ -9,6 +9,8 @@ VERSION=                64.2
 DISTNAME=              icu4c-${VERSION:S/./_/g}-src
 PKGNAME-main=          icu4c-${VERSION}
 PKGNAME-wwwdata=       icu4c-wwwdata-${VERSION}
+REVISION-main=         0
+REVISION-wwwdata=      0
 
 MAJ_V=                 ${VERSION:R}
 SO_VERSION=            15.0
Index: patches/patch-source_data_Makefile_in
===================================================================
RCS file: patches/patch-source_data_Makefile_in
diff -N patches/patch-source_data_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-source_data_Makefile_in       3 Jul 2019 15:14:45 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Unbreak the build on big endian archs, see:
+https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236860
+
+Index: source/data/Makefile.in
+--- source/data/Makefile.in.orig
++++ source/data/Makefile.in
+@@ -148,7 +148,8 @@ ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/
+ # and convert it to the current type.
+ ifneq ($(ICUDATA_ARCHIVE),)
+ ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat
+-$(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR)
++$(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE)
++      $(MKINSTALLDIRS) $(OUTDIR)
+       $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) 
$(ICUDATA_SOURCE_ARCHIVE)
+ endif
+ else

Reply via email to