Re: devel/abseil-cpp: update to LTS 20230125

2023-01-31 Thread Klemens Nanni
On Tue, Jan 31, 2023 at 02:57:45PM +, Klemens Nanni wrote:
> 30.01.2023 17:27, Klemens Nanni пишет:
> > https://github.com/abseil/abseil-cpp/releases/tag/20230125.0
> > 
> > One diff got merged, the other about disabled PowerPC bits remains, but
> > moved code to a new file.
> > 
> > To avoid churn in every update diff, I've folded library handling so
> > that only one line changes version and others possibly lose/gain names.
> > 
> > If that seems fine, I'm inclined to do that mechanical move first and
> > then commit the update separately so this bump already benefits from it
> > as it adds new libraries.
> 
> This proved useful to defer test compilation and thus reduce build time
> by more than 50%, so I just committed those bits.
> 
> do-build and do-test now compile 247 and 392 files, respectively.
> 
> > tg_owt and tdesktop build and run fine on amd64.
> > 
> > ---
> > 98% tests passed, 4 tests failed out of 203
> > 
> > Total Test time (real) = 187.86 sec
> > 
> > The following tests FAILED:
> >  90 - absl_log_stripping_test (Failed)
> > 155 - absl_charconv_test (Failed)
> > 163 - absl_str_format_convert_test (Failed)
> > 191 - absl_time_test (Failed)
> > ---
> > 
> > Feedback? OK?
> 
> With this update,
> do-build and do-test now compile 307 and 454 files, respectively.

Rebased after more cleanup and jca's clang 15 fix for tests.
Sorry for the noise.

Index: Makefile
===
RCS file: /cvs/ports/devel/abseil-cpp/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile31 Jan 2023 16:10:53 -  1.11
+++ Makefile31 Jan 2023 16:14:08 -
@@ -1,9 +1,9 @@
-COMMENT =  abseil common libraries (c++)
+COMMENT =  abseil common libraries (C++)
 CATEGORIES =   devel
 
 GH_ACCOUNT =   abseil
 GH_PROJECT =   ${GH_ACCOUNT}-cpp
-GH_TAGNAME =   20220623.1
+GH_TAGNAME =   20230125.0
 
 HOMEPAGE = https://abseil.io/
 
@@ -16,15 +16,19 @@ PERMIT_PACKAGE =Yes
 ABSL_LIBS = \
 bad_any_cast_impl bad_optional_access bad_variant_access base city \
 civil_time cord cord_internal cordz_functions cordz_handle cordz_info \
-cordz_sample_token debugging_internal demangle_internal examine_stack \
+cordz_sample_token crc32c crc_cord_state crc_cpu_detect crc_internal \
+debugging_internal demangle_internal die_if_null examine_stack \
 exponential_biased failure_signal_handler flags flags_commandlineflag \
 flags_commandlineflag_internal flags_config flags_internal \
 flags_marshalling flags_parse flags_private_handle_accessor \
 flags_program_name flags_reflection flags_usage flags_usage_internal \
-graphcycles_internal hash hashtablez_sampler int128 log_severity \
-low_level_hash malloc_internal periodic_sampler random_distributions \
-random_internal_distribution_test_util random_internal_platform \
-random_internal_pool_urbg random_internal_randen \
+graphcycles_internal hash hashtablez_sampler int128 log_entry log_flags \
+log_globals log_initialize log_internal_check_op log_internal_conditions \
+log_internal_format log_internal_globals log_internal_log_sink_set \
+log_internal_message log_internal_nullguard log_internal_proto \
+log_severity log_sink low_level_hash malloc_internal periodic_sampler \
+random_distributions random_internal_distribution_test_util \
+random_internal_platform random_internal_pool_urbg random_internal_randen \
 random_internal_randen_hwaes random_internal_randen_hwaes_impl \
 random_internal_randen_slow random_internal_seed_material \
 random_seed_gen_exception random_seed_sequences raw_hash_set \
@@ -32,7 +36,7 @@ ABSL_LIBS = \
 statusor str_format_internal strerror strings strings_internal symbolize \
 synchronization throw_delegate time time_zone
 .for _lib in ${ABSL_LIBS}
-SHARED_LIBS += absl_${_lib}1.0 # 2206.0.0
+SHARED_LIBS += absl_${_lib}2.0 # 2301.0.0
 .endfor
 
 # on updates, build with `ALL_TARGET=all' once to pick up new libraries
Index: distinfo
===
RCS file: /cvs/ports/devel/abseil-cpp/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo4 Dec 2022 17:23:22 -   1.2
+++ distinfo31 Jan 2023 16:14:08 -
@@ -1,2 +1,2 @@
-SHA256 (abseil-cpp-20220623.1.tar.gz) = 
kayH0wzG15+auXTFGHSnBN6cJkfED2kyWXMpooIhe6g=
-SIZE (abseil-cpp-20220623.1.tar.gz) = 1957483
+SHA256 (abseil-cpp-20230125.0.tar.gz) = 
PqSafZdCG4ioxIoN4WwWBI4Xclx+wPHT6iaDoqda3CE=
+SIZE (abseil-cpp-20230125.0.tar.gz) = 2119580
Index: patches/patch-absl_base_internal_unscaledcycleclock_config_h
===
RCS file: patches/patch-absl_base_internal_unscaledcycleclock_config_h
diff -N patches/patch-absl_base_internal_unscaledcycleclock_config_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-ab

Re: devel/abseil-cpp: update to LTS 20230125

2023-01-31 Thread Klemens Nanni
30.01.2023 17:27, Klemens Nanni пишет:
> https://github.com/abseil/abseil-cpp/releases/tag/20230125.0
> 
> One diff got merged, the other about disabled PowerPC bits remains, but
> moved code to a new file.
> 
> To avoid churn in every update diff, I've folded library handling so
> that only one line changes version and others possibly lose/gain names.
> 
> If that seems fine, I'm inclined to do that mechanical move first and
> then commit the update separately so this bump already benefits from it
> as it adds new libraries.

This proved useful to defer test compilation and thus reduce build time
by more than 50%, so I just committed those bits.

do-build and do-test now compile 247 and 392 files, respectively.

> tg_owt and tdesktop build and run fine on amd64.
> 
> ---
> 98% tests passed, 4 tests failed out of 203
> 
> Total Test time (real) = 187.86 sec
> 
> The following tests FAILED:
>  90 - absl_log_stripping_test (Failed)
> 155 - absl_charconv_test (Failed)
> 163 - absl_str_format_convert_test (Failed)
> 191 - absl_time_test (Failed)
> ---
> 
> Feedback? OK?

With this update,
do-build and do-test now compile 307 and 454 files, respectively.

Index: Makefile
===
RCS file: /cvs/ports/devel/abseil-cpp/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile31 Jan 2023 14:45:00 -  1.10
+++ Makefile31 Jan 2023 14:54:42 -
@@ -1,9 +1,9 @@
-COMMENT =  abseil common libraries (c++)
+COMMENT =  abseil common libraries (C++)
 CATEGORIES =   devel
 
 GH_ACCOUNT =   abseil
 GH_PROJECT =   ${GH_ACCOUNT}-cpp
-GH_TAGNAME =   20220623.1
+GH_TAGNAME =   20230125.0
 
 HOMEPAGE = https://abseil.io/
 
@@ -16,15 +16,19 @@ PERMIT_PACKAGE =Yes
 ABSL_LIBS = \
 bad_any_cast_impl bad_optional_access bad_variant_access base city \
 civil_time cord cord_internal cordz_functions cordz_handle cordz_info \
-cordz_sample_token debugging_internal demangle_internal examine_stack \
+cordz_sample_token crc32c crc_cord_state crc_cpu_detect crc_internal \
+debugging_internal demangle_internal die_if_null examine_stack \
 exponential_biased failure_signal_handler flags flags_commandlineflag \
 flags_commandlineflag_internal flags_config flags_internal \
 flags_marshalling flags_parse flags_private_handle_accessor \
 flags_program_name flags_reflection flags_usage flags_usage_internal \
-graphcycles_internal hash hashtablez_sampler int128 log_severity \
-low_level_hash malloc_internal periodic_sampler random_distributions \
-random_internal_distribution_test_util random_internal_platform \
-random_internal_pool_urbg random_internal_randen \
+graphcycles_internal hash hashtablez_sampler int128 log_entry log_flags \
+log_globals log_initialize log_internal_check_op log_internal_conditions \
+log_internal_format log_internal_globals log_internal_log_sink_set \
+log_internal_message log_internal_nullguard log_internal_proto \
+log_severity log_sink low_level_hash malloc_internal periodic_sampler \
+random_distributions random_internal_distribution_test_util \
+random_internal_platform random_internal_pool_urbg random_internal_randen \
 random_internal_randen_hwaes random_internal_randen_hwaes_impl \
 random_internal_randen_slow random_internal_seed_material \
 random_seed_gen_exception random_seed_sequences raw_hash_set \
@@ -32,7 +36,7 @@ ABSL_LIBS = \
 statusor str_format_internal strerror strings strings_internal symbolize \
 synchronization throw_delegate time time_zone wyhash
 .for _lib in ${ABSL_LIBS}
-SHARED_LIBS += absl_${_lib}1.0 # 2206.0.0
+SHARED_LIBS += absl_${_lib}2.0 # 2301.0.0
 .endfor
 
 # on updates, build with `ALL_TARGET=all' once to pick up new libraries
Index: distinfo
===
RCS file: /cvs/ports/devel/abseil-cpp/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo4 Dec 2022 17:23:22 -   1.2
+++ distinfo31 Jan 2023 14:54:42 -
@@ -1,2 +1,2 @@
-SHA256 (abseil-cpp-20220623.1.tar.gz) = 
kayH0wzG15+auXTFGHSnBN6cJkfED2kyWXMpooIhe6g=
-SIZE (abseil-cpp-20220623.1.tar.gz) = 1957483
+SHA256 (abseil-cpp-20230125.0.tar.gz) = 
PqSafZdCG4ioxIoN4WwWBI4Xclx+wPHT6iaDoqda3CE=
+SIZE (abseil-cpp-20230125.0.tar.gz) = 2119580
Index: patches/patch-absl_base_internal_unscaledcycleclock_config_h
===
RCS file: patches/patch-absl_base_internal_unscaledcycleclock_config_h
diff -N patches/patch-absl_base_internal_unscaledcycleclock_config_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-absl_base_internal_unscaledcycleclock_config_h31 Jan 
2023 14:54:42 -
@@ -0,0 +1,16 @@
+Disable the PowerPC counter, because UnscaledCycleClock::Frequency()
+is not implemented on OpenBSD.  Avoids erro

devel/abseil-cpp: update to LTS 20230125

2023-01-30 Thread Klemens Nanni
https://github.com/abseil/abseil-cpp/releases/tag/20230125.0

One diff got merged, the other about disabled PowerPC bits remains, but
moved code to a new file.

To avoid churn in every update diff, I've folded library handling so
that only one line changes version and others possibly lose/gain names.

If that seems fine, I'm inclined to do that mechanical move first and
then commit the update separately so this bump already benefits from it
as it adds new libraries.

tg_owt and tdesktop build and run fine on amd64.

---
98% tests passed, 4 tests failed out of 203

Total Test time (real) = 187.86 sec

The following tests FAILED:
 90 - absl_log_stripping_test (Failed)
155 - absl_charconv_test (Failed)
163 - absl_str_format_convert_test (Failed)
191 - absl_time_test (Failed)
---

Feedback? OK?


Index: Makefile
===
RCS file: /cvs/ports/devel/abseil-cpp/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile4 Dec 2022 17:23:22 -   1.7
+++ Makefile30 Jan 2023 17:19:58 -
@@ -1,9 +1,9 @@
-COMMENT =  abseil common libraries (c++)
+COMMENT =  abseil common libraries (C++)
 CATEGORIES =   devel
 
 GH_ACCOUNT =   abseil
 GH_PROJECT =   ${GH_ACCOUNT}-cpp
-GH_TAGNAME =   20220623.1
+GH_TAGNAME =   20230125.0
 
 HOMEPAGE = https://abseil.io/
 
@@ -13,71 +13,30 @@ MAINTAINER =Andrew Krasavin