Quotes are not correctly handled in cflags #35

Closed
opened 2012-08-14 02:30:45 +00:00 by amishHammer · 0 comments
amishHammer commented 2012-08-14 02:30:45 +00:00 (Migrated from github.com)

cat /usr/local/libdata/pkgconfig/xmlsec1-openssl.pc prefix=/usr/local

exec_prefix=${prefix}
libdir={exec_prefix}/libincludedir={prefix}/include

Name: xmlsec1-openssl
Version: 1.2.18
Description: XML Security Library implements XML Signature and XML Encryption standards
Requires: libxml-2.0 >= 2.7.4 libxslt >= 1.0.20
Cflags: -DXMLSEC_CRYPTO="openssl" -D__XMLSEC_FUNCTION__=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I${prefix}/include/xmlsec1 -I/usr/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1
Libs: -L${exec_prefix}/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -L/usr/lib -lcrypto

pkg-config --cflags xmlsec1-openssl

-I/usr/local/include/libxml2 -I/usr/local/include -DXMLSEC_CRYPTO=openssl -D__XMLSEC_FUNCTION__=FUNCTION -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I/usr/local/include/xmlsec1 -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 Libs: -L/usr/local/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -lcrypto

pkg-config --libs xmlsec1-openssl

-L/usr/local/lib -lxml2 -lxslt -lz -liconv -lm

As you can see from the above output the value: -DXMLSEC_CRYPTO="openssl" is not being escaped/matched correctly, this needs to have the quotes remain in tact so that the compiler gets the flag: -DXMLSEC_CRYPTO="openssl"

# cat /usr/local/libdata/pkgconfig/xmlsec1-openssl.pc prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/libincludedir=${prefix}/include Name: xmlsec1-openssl Version: 1.2.18 Description: XML Security Library implements XML Signature and XML Encryption standards Requires: libxml-2.0 >= 2.7.4 libxslt >= 1.0.20 Cflags: -DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=**FUNCTION** -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I${prefix}/include/xmlsec1 -I/usr/include -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 Libs: -L${exec_prefix}/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -L/usr/lib -lcrypto # pkg-config --cflags xmlsec1-openssl -I/usr/local/include/libxml2 -I/usr/local/include -DXMLSEC_CRYPTO=openssl -D__XMLSEC_FUNCTION__=**FUNCTION** -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I/usr/local/include/xmlsec1 -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 Libs: -L/usr/local/lib -lxmlsec1-openssl -lxmlsec1 -lltdl -lcrypto # pkg-config --libs xmlsec1-openssl -L/usr/local/lib -lxml2 -lxslt -lz -liconv -lm As you can see from the above output the value: -DXMLSEC_CRYPTO=\"openssl\" is not being escaped/matched correctly, this needs to have the quotes remain in tact so that the compiler gets the flag: -DXMLSEC_CRYPTO="openssl"
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#35
There is no content yet.