Bug 275887 - devel/abseil: Update to 20240116.2
Summary: devel/abseil: Update to 20240116.2
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
: 276718 279366 (view as bug list)
Depends on:
Blocks: 275071
  Show dependency treegraph
 
Reported: 2023-12-22 18:37 UTC by Yuri Victorovich
Modified: 2024-06-11 19:32 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
patch (6.76 KB, patch)
2023-12-22 18:37 UTC, Yuri Victorovich
no flags Details | Diff
Patch for abseil (14.03 KB, patch)
2024-01-30 21:08 UTC, Daniel Engberg
no flags Details | Diff
math/or-tools update to version 9.8 (19.15 KB, patch)
2024-02-26 07:38 UTC, Alexey Dokuchaev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2023-12-22 18:37:07 UTC
Created attachment 247203 [details]
patch
Comment 1 Alexey Dokuchaev freebsd_committer freebsd_triage 2023-12-26 12:25:39 UTC
> -#if !defined(HAS_STRPTIME)
> +#if 0 && !defined(HAS_STRPTIME)
Hmm, that does not look very neat, let's wait until we have a better fix and/or feedback from upstream developers.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-12-26 17:36:15 UTC
(In reply to Alexey Dokuchaev from comment #1)

Hi Alexey,

We can just remove this code section for now since it is erroneous on FreeBSD.
It was added on some linux flavor to solve the name collision, but that was just a mistake since that name collision can be resolved better using a qualifier like this patch suggests.

This blocks math/or-tools from being updated.


Thanks,
Yuri
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-01-06 17:50:31 UTC
Okay so it was actually fixed upstream*, they just don't like to talk to people on GitHub.  Can you please replace the patch in files/ with these two lines:

PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES=     <commit-hash-or-part-of-it-as-long-as-you-like>.patch:-p1

As usual, check that update does not break consumer ports and you're good to go.

*) https://github.com/abseil/abseil-cpp/commit/ded2ec077d911de647d47ab48ef3a8e24a1fb64a
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-01-23 13:58:22 UTC
Abseil LTS 20240116.0 had been released and builds without patches.
Comment 5 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-01-30 08:55:03 UTC
*** Bug 276718 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2024-01-30 21:08:36 UTC
Created attachment 248083 [details]
Patch for abseil

Use upstream release archive
Minor adjustments to Makefile to closer follow Porters Handbook

Poudriere testport OK 13.2-RELEASE (amd64)
Poudriere testport OK 14.0-RELEASE (amd64)

Tested with following consumers on 13.2-RELEASE (amd64) using Poudriere:
audio/webrtc-audio-processing
audio/mumble
audio/mumble-server
audio/murmur
audio/py-torchaudio
audio/strawberry
benchmarks/apib
cad/openroad (skipped due to math/or-tools)
devel/bear
devel/google-cloud-cpp
devel/grpc
devel/grpc142 (fails, only one consumer left (PR 276516))
devel/libphonenumber
devel/protobuf (current version in tree needs c++20 to compile)
devel/re2
devel/youcompleteme
editors/libreoffice
graphics/s2
math/obake
math/or-tools (fails, needs patching)
math/py-or-tools (fails, needs patching)
math/py-pyaudi
misc/ncnn
misc/py-pytorch (fails, needs patching)
misc/pytorch
multimedia/libgav1
net/libilbc
net-im/telegram-desktop
net-mgmt/fastnetmon
security/crowdsec
sysutils/fusefs-securefs
www/envoy (fails, not related)

Unit tests fails to compile using either CMAKE_CXX_STANDARD=17  or CMAKE_CXX_STANDARD=20
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2024-01-31 08:09:28 UTC
or-tools-9.8 fail to build with abseil-20230125.3:
https://github.com/google/or-tools/issues/4070
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2024-01-31 08:15:52 UTC
pytorch-2.2.0 builds fine with abseil-20230125.3.
Comment 9 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-02-02 06:57:24 UTC
(In reply to Daniel Engberg from comment #6)
> Use upstream release archive
Okay, let's use it.

> Minor adjustments to Makefile to closer follow Porters Handbook
Please no, the Makefile is fine as it is now. :-)

> devel/grpc142 (fails, only one consumer left, bug #276516)
It's currently marked BROKEN (fails to build) so I guess we can ignore it.

> math/or-tools (fails, needs patching)
> math/py-or-tools (fails, needs patching)
> misc/py-pytorch (fails, needs patching)
These are Yuri's ports, he'll probably fix those (albeit he talks about existing version 20230125.3 in the comments above for some reason).  Yuri, can you see what's up with your ports and prepare against proposed version 20240116.0?  If feasible, you can patch them so they can be built against both current and new versions; if not, they'd had to be updated together with Abseil.

> devel/protobuf (current version in tree needs c++20 to compile)
Not sure what to do about this one.
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2024-02-02 07:49:33 UTC
or-tools-9.8 fails to build with abseil-20240116.0: https://github.com/google/or-tools/issues/4074
(the previous or-tools issue was probably mis-filed and was for a wrong abseil version.)
Comment 11 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-02-26 07:38:04 UTC
Created attachment 248753 [details]
math/or-tools update to version 9.8

I've done another build run yesterday against Abseil LTS 20240116.1 and found that only `math/{py-,}or-tools' exhibit related errors.  I've quickly hacked update to version 9.8 which builds fine (similar patch for py- port is left as an exercise to the reader).

(In reply to Yuri Victorovich from comment #10)
> or-tools-9.8 fails to build with abseil-20240116.0
Please take a look at the attached PoC patch.  If you won't mind, I can commit `devel/abseil' update first which you'd follow with `math/{py-,}or-tools' update.
Comment 12 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-05-29 02:48:45 UTC
*** Bug 279366 has been marked as a duplicate of this bug. ***