Bug 1493692
Summary: | Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Schorm <mschorm> |
Component: | ocaml-mysql | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mschorm, rjones |
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: | 2017-10-23 14:48:43 UTC | Type: | Bug |
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: | 1486480 |
Description
Michal Schorm
2017-09-20 17:24:00 UTC
It would have been easier to give me a patch. The patch, after I removed unnnecessary changes to %changelog and tidied it up, is: diff --git a/ocaml-mysql.spec b/ocaml-mysql.spec index 599359b..b2fdccd 100644 --- a/ocaml-mysql.spec +++ b/ocaml-mysql.spec @@ -19,6 +19,7 @@ BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel BuildRequires: mariadb-connector-c-devel +BuildRequires: openssl-devel BuildRequires: chrpath @@ -45,7 +46,7 @@ developing applications that use %{name}. %build -LDFLAGS="-L%{_libdir}/mysql" \ +LDFLAGS="-L%{_libdir}/mariadb" \ %configure make all %if %opt Why is openssl-devel required? Why isn't it a dependency of mariadb-connector-c-devel? Sorry, the patch is: diff --git a/ocaml-mysql.spec b/ocaml-mysql.spec index 42a806c..b2fdccd 100644 --- a/ocaml-mysql.spec +++ b/ocaml-mysql.spec @@ -18,7 +18,8 @@ BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel -BuildRequires: mariadb-devel +BuildRequires: mariadb-connector-c-devel +BuildRequires: openssl-devel BuildRequires: chrpath @@ -45,7 +46,7 @@ developing applications that use %{name}. %build -LDFLAGS="-L%{_libdir}/mysql" \ +LDFLAGS="-L%{_libdir}/mariadb" \ %configure make all %if %opt Question remains as above. SED x Patch Too late I realized, that 'sed' would update comments and changelog too. However, for me, 'sed' was perfect for mass testings. With that, I was able to maintain lists of dozens packages with different issues, while solving such issues in mariadb-connector-c package and rebuilding dependent packages by hundreds. (number of packages * 3 fedora releases * all architectures in COPR) + (number of packages * atleast 1 KOJI build for final check) And I managed to create 100 bugzillas pretty faster than with patches. -- OpenSSL mariadb-connector-c still builds with openss-devel and has functional openssl inside. However, it turned out, only about half of packages that uses mariadb-connector-c use openssl too. More, some packages still haven't worked out transition to the new OpenSSL and has openssl conficts. Generarly, I can put it back, but I'd see it as a "Suggests" or "Recommends", rather than "Requires". You do think, that should be done? Without adding BR openssl-devel, linking fails with: ocamlmklib \ -o mysql_stubs mysql_stubs.o -lmariadb -lpthread -ldl -lm -lssl -lcrypto \ -L/usr/lib64/mariadb/ /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto It really does seem like mariadb-connector-c-devel ought to itself depend on openssl-devel. But I have not looked in great detail. |