Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1871503
Summary: | F34FailsToInstall: mysql-connector-odbc | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Igor Raits <igor.raits> |
Component: | mysql-connector-odbc | Assignee: | Lukas Javorsky <ljavorsk> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | bugzilla_acct_1959, fjanus, hhorak, ljavorsk, mschorm, tgl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-08-27 05:35:09 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1868279 |
Description
Igor Raits
2020-08-23 17:24:35 UTC
This is caused by the new way of building packages using CMake macros. When switched back to the old way of building, it builds correctly. Somehow the libraries (libmysql_strings and libmysql_sys) are expected as dynamically linked, however they are built statically during the build phase. Linking expects them to be *.so but they are *.a so it fails to install. I'm going to investigate where this behaviour differs, and causes this problem. Problem found. The %cmake macro contains one CMake option '-DBUILD_SHARED_LIBS:BOOL=ON' which forces the libraries to be dynamic (https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html) However, in order to install this package, they need to be built statically, what was the case until the cmake-build change. This can be easily reverted with '-DBUILD_SHARED_LIBS:BOOL=OFF' option in spec. The main question is... Why the 'ON' option is default? And, if we should consider building it as dynamic libraries? This also affects Fedora 31 and 32, as you probably realize. Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (ignatenkobrain). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 34. Thanks for taking care of it! |