Bug 1705543

Summary: Add "zlib-devel" requirement in "-devel" subpackage on f29
Product: [Fedora] Fedora Reporter: Jun Aruga <jaruga>
Component: mariadb-connector-cAssignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: acaringi, hhorak, mmuzila, mschorm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-connector-c-3.0.9-3.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-12 10:39:59 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: 1692700    

Description Jun Aruga 2019-05-02 13:16:04 UTC
Description of problem:

mariadb-connector-c-devel is used in rubygem-mysql2 of ruby module that is built on f29, f30, f31.

I like to ask below commit is cherrypicked to f29 branch too.
https://src.fedoraproject.org/rpms/mariadb-connector-c/c/8781fc38b459e984dddc0139028c1286d06452e4?branch=master


Version-Release number of selected component (if applicable):
x86_64 3.0.9-2.fc29

How reproducible:


Steps to Reproduce:
1. fedpkg co modules/ruby
2. cd ruby
3. git checkout 2.5
4. fedpkg module-build

Actual results:

The module build on f29
https://koji.fedoraproject.org/koji/taskinfo?taskID=34574699

build.log

```
gcc -shared -o mysql2.so client.o infile.o mysql2_ext.o result.o statement.o -L. -L/usr/lib64 -L/usr/lib64/ -L. -Wl,-z,relro   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-z,relro   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -m64  -m64  -lruby -L/usr/lib64/ -lmariadb -lz -ldl -lm -lpthread -lssl -lcrypto    -lc
BUILDSTDERR: /usr/bin/ld: cannot find -lz
BUILDSTDERR: collect2: error: ld returned 1 exit status
BUILDSTDERR: make: *** [Makefile:260: mysql2.so] Error 1
```

Seeing the root.log mariadb-connector-c-devel does not install zlib-devel unlike other f30, f31.


Expected results:

The build is success.


Additional info:


https://koji.fedoraproject.org/koji/taskinfo?taskID=34577332

Comment 1 Jun Aruga 2019-05-02 13:18:51 UTC
Simply rubygem-mysql2 build on f29 is failed.

```
$ fedpkg co rubygem-mysql2
$ cd rubygem-mysql2
$ git checkout f29
$ fedpkg srpm
$ fedpkg scratch-build --srpm
```

https://koji.fedoraproject.org/koji/taskinfo?taskID=34577456
=> failed.

Comment 2 Michal Schorm 2019-05-02 13:21:08 UTC
Pushed, building.

Comment 3 Fedora Update System 2019-05-02 13:32:09 UTC
mariadb-connector-c-3.0.9-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2df91707da

Comment 4 Jun Aruga 2019-05-02 13:32:38 UTC
Oh so quick!
Thanks.

Comment 5 Michal Schorm 2019-05-02 13:47:28 UTC
FTL maintainer ;)

Comment 6 Fedora Update System 2019-05-03 05:41:47 UTC
mariadb-connector-c-3.0.9-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2df91707da

Comment 7 Fedora Update System 2019-05-12 10:39:59 UTC
mariadb-connector-c-3.0.9-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.