Tuesday, January 31, 2023

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

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
--- Makefile 31 Jan 2023 14:45:00 -0000 1.10
+++ Makefile 31 Jan 2023 14:54:42 -0000
@@ -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
--- distinfo 4 Dec 2022 17:23:22 -0000 1.2
+++ distinfo 31 Jan 2023 14:54:42 -0000
@@ -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 -0000
+++ patches/patch-absl_base_internal_unscaledcycleclock_config_h 31 Jan 2023 14:54:42 -0000
@@ -0,0 +1,16 @@
+Disable the PowerPC counter, because UnscaledCycleClock::Frequency()
+is not implemented on OpenBSD. Avoids error in unscaledcycleclock.cc,
+#error Must implement UnscaledCycleClock::Frequency()
+
+Index: absl/base/internal/unscaledcycleclock_config.h
+--- absl/base/internal/unscaledcycleclock_config.h.orig
++++ absl/base/internal/unscaledcycleclock_config.h
+@@ -21,7 +21,7 @@
+
+ // The following platforms have an implementation of a hardware counter.
+ #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \
+- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
++ /* defined(__powerpc__) || defined(__ppc__) || */ defined(__riscv) || \
+ defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC))
+ #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
+ #else
Index: patches/patch-absl_base_internal_unscaledcycleclock_h
===================================================================
RCS file: patches/patch-absl_base_internal_unscaledcycleclock_h
diff -N patches/patch-absl_base_internal_unscaledcycleclock_h
--- patches/patch-absl_base_internal_unscaledcycleclock_h 4 Dec 2022 17:23:22 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-Disable the PowerPC counter, because UnscaledCycleClock::Frequency()
-is not implemented on OpenBSD. Avoids error in unscaledcycleclock.cc,
-#error Must implement UnscaledCycleClock::Frequency()
-
-Index: absl/base/internal/unscaledcycleclock.h
---- absl/base/internal/unscaledcycleclock.h.orig
-+++ absl/base/internal/unscaledcycleclock.h
-@@ -46,7 +46,7 @@
-
- // The following platforms have an implementation of a hardware counter.
- #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \
-- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
-+ /* defined(__powerpc__) || defined(__ppc__) || */ defined(__riscv) || \
- defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC))
- #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
- #else
Index: patches/patch-absl_debugging_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/devel/abseil-cpp/patches/patch-absl_debugging_CMakeLists_txt,v
retrieving revision 1.3
diff -u -p -r1.3 patch-absl_debugging_CMakeLists_txt
--- patches/patch-absl_debugging_CMakeLists_txt 4 Dec 2022 17:23:22 -0000 1.3
+++ patches/patch-absl_debugging_CMakeLists_txt 31 Jan 2023 14:54:42 -0000
@@ -4,7 +4,7 @@ OpenBSD does not support it.
Index: absl/debugging/CMakeLists.txt
--- absl/debugging/CMakeLists.txt.orig
+++ absl/debugging/CMakeLists.txt
-@@ -206,6 +206,7 @@ absl_cc_test(
+@@ -220,6 +220,7 @@ absl_cc_test(
GTest::gmock_main
)

@@ -12,7 +12,7 @@ Index: absl/debugging/CMakeLists.txt
absl_cc_library(
NAME
leak_check
-@@ -235,6 +236,7 @@ absl_cc_test(
+@@ -249,6 +250,7 @@ absl_cc_test(
absl::base
GTest::gmock_main
)
@@ -20,7 +20,7 @@ Index: absl/debugging/CMakeLists.txt

# Internal-only target, do not depend on directly.
absl_cc_library(
-@@ -253,6 +255,7 @@ absl_cc_library(
+@@ -267,6 +269,7 @@ absl_cc_library(
TESTONLY
)

@@ -28,7 +28,7 @@ Index: absl/debugging/CMakeLists.txt
absl_cc_test(
NAME
stack_consumption_test
-@@ -278,3 +281,4 @@ absl_cc_library(
+@@ -292,3 +295,4 @@ absl_cc_library(
absl::leak_check
PUBLIC
)
Index: patches/patch-absl_time_internal_cctz_src_time_zone_format_cc
===================================================================
RCS file: patches/patch-absl_time_internal_cctz_src_time_zone_format_cc
diff -N patches/patch-absl_time_internal_cctz_src_time_zone_format_cc
--- patches/patch-absl_time_internal_cctz_src_time_zone_format_cc 11 Mar 2022 18:49:30 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-Avoid _XOPEN_SOURCE as it breaks build of time_zone_format.cc.
-
-Index: absl/time/internal/cctz/src/time_zone_format.cc
---- absl/time/internal/cctz/src/time_zone_format.cc.orig
-+++ absl/time/internal/cctz/src/time_zone_format.cc
-@@ -18,12 +18,6 @@
-

Weekly Digest Newsletter: 31 January 2023

World Cancer Day | guidance on managing health and safety for volunteers | Latest news

Having trouble viewing this email? View the content as a web page.

HSE Header logo small

Weekly Digest ebulletin

World Cancer Day – a reminder of the risks to lungs from work activities

worker at risk from dust

Each year, it is estimated that 12,000 people die from work-related lung diseases linked to exposure during their working lives – including lung cancer.

Saturday 4 February is World Cancer Day, the international awareness day to help educate people and encourage them to work together to reduce preventable cancer deaths.

 

If you work with certain dusts, gases, fumes and vapours in the workplace, it's important that you understand the risks and protect workers' health by using effective control measures. Employers have a legal responsibility to protect their workers' from ill health.

 

Our website has guidance for a range of workplaces to prevent work-related lung diseases.

 

Sectors featured include:


Care home provider fined after child crushed by falling tree

A company has been fined £400,000 after an 8-year-old girl suffered serious crush injuries when a tree fell on her.

The girl was out for an evening jog with her father. As she was running on a pavement outside the entrance to the care home, a lime tree fell on her, causing injuries that resulted in her having her leg amputated.

 

It was subsequently discovered that the tree was diseased with a common fungus and had likely been rotting for several years before the accident. HSE's investigation found that Bupa Care Homes had failed to have a strategy in place to manage trees.

 

Read this press release for more details on the incident.

 

Our website has guidance on managing the risk from falling trees.

 

Other recent prosecution cases include:


Volunteering: guidance on how to manage the risks

volunteer helping with food delivery

HSE has guidance on how to manage the risks to volunteers.

The guidance explains how health and safety law applies to volunteering.

 

There is also information on:

The pages provide some specific advice for volunteers who manage non-domestic premises such as village and community halls, as well as guidance on charity retail and fundraising.

 

For further information visit our Volunteering website.


HSE – market surveillance authority for workplace products

HSE is one of the UK's market surveillance authorities, which monitors and enforces legal requirements on the safety (including risks to health) of most products used in the workplace. 

HSE has a duty to notify the Secretary of State about unsafe or non-compliant products and of the measures taken and communicated by an economic operator. 

 

Products that present a serious or high risk to the health and safety of the user, and products that have been recalled, are published on GOV.UK

 

A recent example of a product HSE investigated is the RGA5 fall arrest block, designed to stop a person after they have fallen. Find out more about this product recall.


Safe Net Zero 2023 -– Hydrogen conference tickets available

conference delegates chatting and networking

21 - 22 March 2023,
QEII Exhibition Centre, London

The UK is rapidly progressing some of the world's most innovative hydrogen projects as part of the energy mix it requires to meet 2050's net zero target.

 

HSE is bringing together those working to safely develop and deploy hydrogen technologies for 2 days of insight, discussion and networking.

 

Building upon the success of our previous events, 'Safe Net Zero 2023 - Hydrogen' promises an exciting agenda, packed with the very latest information and thinking from government, industry and academia.

 

Find out more and/or book your place(s) for Safe Net Zero 2023

You can get all the latest news and updates from HSE across a range of industries and topics.

Subscribe to our ebulletins

GovUK footer logo

Health and Safety Executive - 5N1 Redgrave Court, Merton Road, Bootle, Merseyside L20 7HS