]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
depends: icu4c: no timestamp in makefile
authortobtoht <tob@featherwallet.org>
Wed, 21 Dec 2022 22:36:19 +0000 (23:36 +0100)
committertobtoht <tob@featherwallet.org>
Wed, 21 Dec 2022 22:36:19 +0000 (23:36 +0100)
contrib/depends/packages/icu4c.mk
contrib/depends/patches/icu4c/no-timestamp-in-makefile.patch [new file with mode: 0644]

index 58ae637b02a8fb5ff3775cc7d0eeea1b13c65825..f74f20b09a37ac0590dc71f5ddcd49d739ccadae 100644 (file)
@@ -3,14 +3,15 @@ $(package)_version=55.2
 $(package)_download_path=https://github.com/unicode-org/icu/releases/download/release-55-2/
 $(package)_file_name=$(package)-55_2-src.tgz
 $(package)_sha256_hash=eda2aa9f9c787748a2e2d310590720ca8bcc6252adf6b4cfb03b65bef9d66759
-$(package)_patches=icu-001-dont-build-static-dynamic-twice.patch
+$(package)_patches=icu-001-dont-build-static-dynamic-twice.patch no-timestamp-in-makefile.patch
 
 define $(package)_set_vars
   $(package)_build_opts=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DU_COMBINED_IMPLEMENTATION -fPIC -DENABLE_STATIC=YES -DPGKDATA_MODE=static"
 endef
 
 define $(package)_config_cmds
-  patch -p1 < $($(package)_patch_dir)/icu-001-dont-build-static-dynamic-twice.patch &&\
+  patch -p1 < $($(package)_patch_dir)/icu-001-dont-build-static-dynamic-twice.patch && \
+  patch -p1 < $($(package)_patch_dir)/no-timestamp-in-makefile.patch && \
   mkdir builda &&\
   mkdir buildb &&\
   cd builda &&\
diff --git a/contrib/depends/patches/icu4c/no-timestamp-in-makefile.patch b/contrib/depends/patches/icu4c/no-timestamp-in-makefile.patch
new file mode 100644 (file)
index 0000000..c439632
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/source/Makefile.in b/source/Makefile.in
+index 9db6c52..b5a4ea3 100644
+--- a/source/Makefile.in
++++ b/source/Makefile.in
+@@ -335,7 +335,6 @@ $(top_builddir)/config/icu-config: $(top_builddir)/Makefile $(top_srcdir)/config
+       LC_ALL=C sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@
+       LC_ALL=C sed -f $(top_srcdir)/config/make2sh.sed < @platform_make_fragment@ | grep -v '#M#' | uniq >> $@
+       cat $(top_srcdir)/config/icu-config-bottom >> $@
+-      echo "# Rebuilt on "`date` >> $@
+       chmod u-w $@
+ config.status: $(srcdir)/configure $(srcdir)/common/unicode/uvernum.h