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 1946299

Summary: Better handling of curl-config for split static package
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: mingw-curlAssignee: Michael Cronenworth <mike>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 34CC: erik-fedora, mike
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: 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:

Description Cristian Ciupitu 2021-04-05 17:58:04 UTC
Description of problem:
Can not cross-compile programs using the curl library, as static executables.

Version-Release number of selected component (if applicable):
mingw32-curl-static-7.76.0-1.fc34.noarch
mingw64-curl-static-7.76.0-1.fc34.noarch

How reproducible:
Every time

Steps to Reproduce:
1. CC=x86_64-w64-mingw32-gcc or CC=i686-w64-mingw32-gcc
2. $(${CC} -print-sysroot)/mingw/bin/curl-config --static-libs

Actual results:
> curl was built with static libraries disabled

Expected results:
a list of libraries

Additional info:

Comment 1 Cristian Ciupitu 2021-06-22 20:29:09 UTC
Any news on this?

Comment 2 Michael Cronenworth 2021-06-22 20:49:19 UTC
The problem is that upstream built the curl-config script to be specific to the build environment. It doesn't support the combined shared/static library set we produce in our packaging. You either have a shared-aware curl-config or a static-aware curl-config. It doesn't allow for you to support both if both shared and static library packages are installed. I could patch together a curl-config that does support both, but I do not have the spare cycles to do this.

If you want to discuss this with upstream please go ahead.

https://github.com/curl/curl/issues

Comment 3 Cristian Ciupitu 2021-06-23 09:22:22 UTC
Couldn't we have a separate curl-static-config tool?