Bug #55114
CentOS/RHEL does not support versions of utf8proc >= 2.2.0
0%
Description
How to reproduce:¶
Run the do_cmake.sh script on the latest version of master on RHEL or CentOS.
Output:¶
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find utf8proc: Found unsuitable version "", but required is at
least "2.2.0" (found utf8proc_LIB-NOTFOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/Findutf8proc.cmake:87 (find_package_handle_standard_args)
src/CMakeLists.txt:877 (find_package)
Expected output:¶
Successful completion of the do_cmake.sh script.
Workaround:¶
This issue seems to have been introduced by https://github.com/ceph/ceph/pull/44696. Resetting master to the last commit before this PR results in a successful run of do_cmake.sh.
Related issues
History
#1 Updated by Casey Bodley almost 2 years ago
thanks Laura,
https://github.com/ceph/ceph/pull/44696 also added a 'utf8proc' submodule for use in rhel/centos builds. to support these distros, our CI adds WITH_SYSTEM_UTF8PROC=OFF to target the submodule'd utf8proc. but every other distro seems to have packages for utf8proc, so i chose WITH_SYSTEM_UTF8PROC=ON as the default - we don't want to force developers to build this submodule when it isn't necessary
i'm open to suggestions here
#2 Updated by Laura Flores almost 2 years ago
Thanks @Casey for looking into this. I'm not the best source of knowledge for this area, but I wonder if it would be possible to allow RHEL/CentOS to install an older version of utf8proc (I see that version 2.1.1 is supported).
#3 Updated by Casey Bodley almost 2 years ago
Laura Flores wrote:
I see that version 2.1.1 is supported
do you have a link to this 2.1.1 version? i didn't think any utf8proc packages were available in centos/rhel 8, but i'm no expert here either :)
#4 Updated by Casey Bodley almost 2 years ago
i just copied the "2.2.0" from the Arrow project's requirements: https://github.com/apache/arrow/blob/master/cpp/cmake_modules/ThirdpartyToolchain.cmake#L2523-L2528
so even if an older version was available, the arrow build wouldn't succeed
#5 Updated by Laura Flores almost 2 years ago
Here is the link for utf8proc 2.1.1 for CentOS: https://centos.pkgs.org/8-stream/centos-appstream-x86_64/utf8proc-2.1.1-5.module_el8.4.0+632+d2bf8782.x86_64.rpm.html.
I see what you're saying about a higher version being required for Arrow though.
#6 Updated by Laura Flores almost 2 years ago
- Duplicated by Bug #55107: Getting "Could NOT find utf8proc (missing: utf8proc_LIB)" error while building from master branch added
#7 Updated by Casey Bodley almost 2 years ago
thanks Laura, i raised this on the dev list for further discussion
#8 Updated by Laura Flores almost 2 years ago
- Pull request ID set to 45696
#9 Updated by Casey Bodley almost 2 years ago
- Status changed from New to Fix Under Review
- Tags set to cmake
- Backport set to quincy
#10 Updated by Casey Bodley almost 2 years ago
- Status changed from Fix Under Review to Pending Backport
#11 Updated by Backport Bot almost 2 years ago
- Copied to Backport #55175: quincy: CentOS/RHEL does not support versions of utf8proc >= 2.2.0 added
#12 Updated by Backport Bot over 1 year ago
- Tags changed from cmake to cmake backport_processed
#13 Updated by Laura Flores about 1 year ago
- Status changed from Pending Backport to Resolved