Bug 871317

Summary: curl-config syntax error
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: curlAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: kdudka, paul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: curl-7.28.0-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:45:02 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:

Description Petr Pisar 2012-10-30 08:36:18 UTC
$ rpm -q curl
curl-7.27.0-3.fc19.x86_64
$ curl-config --cflags
/bin/curl-config: line 138: CPPFLAG_CURL_STATICLIB: command not found

curl-config content:

    --cflags)
        if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
          CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB "
        else
          CPPFLAG_CURL_STATICLIB=""
        fi
        if test "X/usr/include" = "X/usr/include"; then
→         echo "$(CPPFLAG_CURL_STATICLIB)"
        else
          echo "$(CPPFLAG_CURL_STATICLIB)-I/usr/include"
        fi
        ;;

There should be curly braces instead of parenthesis on line 138 and 140.

Comment 1 Kamil Dudka 2012-10-30 09:07:21 UTC
Thank you for reporting the bug!  This is the corresponding upstream fix:

https://github.com/bagder/curl/commit/382429e

Comment 2 Kamil Dudka 2012-10-30 09:12:44 UTC
Same problem in curl-7.27.0-3.fc18, will submit an update...

Comment 3 Kamil Dudka 2012-10-31 12:51:56 UTC
fixed in curl-7.28.0-1.fc19

Comment 4 Fedora Update System 2012-10-31 15:08:01 UTC
curl-7.27.0-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/curl-7.27.0-4.fc18

Comment 5 Fedora Update System 2012-10-31 18:12:31 UTC
Package curl-7.27.0-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing curl-7.27.0-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17363/curl-7.27.0-4.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:45:19 UTC
curl-7.27.0-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.