Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 805378 Details for
Bug 870253
dev-libs/xmlrpc-c needs patches to make use of PKG_CONFIG
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dev-libs/xmlrpc-c patch
xmlrpccv2.patch (text/plain), 10.39 KB, created by
Mark Yacoub
on 2022-09-15 17:55:30 UTC
(
hide
)
Description:
dev-libs/xmlrpc-c patch
Filename:
MIME Type:
Creator:
Mark Yacoub
Created:
2022-09-15 17:55:30 UTC
Size:
10.39 KB
patch
obsolete
>diff --git a/dev-libs/xmlrpc-c/files/r3151.patch b/dev-libs/xmlrpc-c/files/r3151.patch >new file mode 100644 >index 00000000000..5e5302d8969 >--- /dev/null >+++ b/dev-libs/xmlrpc-c/files/r3151.patch >@@ -0,0 +1,233 @@ >+Index: common.mk >+=================================================================== >+--- a/common.mk (revision 3150) >++++ b/common.mk (revision 3151) >+@@ -281,7 +281,7 @@ >+ -L$(BLDDIR)/lib/expat/xmlparse -lxmlrpc_xmlparse \ >+ -L$(BLDDIR)/lib/expat/xmltok -lxmlrpc_xmltok >+ else >+- LDLIBS_XML = $(shell xml2-config --libs) >++ LDLIBS_XML = $(shell ${PKG_CONFIG} libxml-2.0 --libs) >+ endif >+ >+ # LIBXMLRPC_UTIL_LIBDEP is the string of linker options you need on the link >+Index: configure >+=================================================================== >+--- a/configure (revision 3150) >++++ b/configure (revision 3151) >+@@ -628,9 +628,8 @@ >+ CC_WARN_FLAGS >+ CXX_COMPILER_GNU >+ C_COMPILER_GNU >++HAVE_LIBWWW_SSL_DEFINE >+ ENABLE_LIBXML2_BACKEND >+-have_xml2_config >+-HAVE_LIBWWW_SSL_DEFINE >+ HAVE_ABYSS_OPENSSL_DEFINE >+ MUST_BUILD_ABYSS_OPENSSL >+ HAVE_OPENSSL >+@@ -781,8 +780,8 @@ >+ enable_cplusplus >+ enable_abyss_threads >+ enable_abyss_openssl >++enable_libxml2_backend >+ with_libwww_ssl >+-enable_libxml2_backend >+ ' >+ ac_precious_vars='build_alias >+ host_alias >+@@ -6053,62 +6053,39 @@ >+ fi >+ >+ >++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Libxml2 library" >&5 >++$as_echo_n "checking for Libxml2 library... " >&6; } >++ >++if ${PKG_CONFIG} libxml-2.0; then >++ HAVE_LIBXML2=yes >++else >++ HAVE_LIBXML2=no >++fi >++ >++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBXML2" >&5 >++$as_echo "$HAVE_LIBXML2" >&6; } >++ >++# Check whether --enable-libxml2-backend was given. >++if test "${enable_libxml2_backend+set}" = set; then : >++ enableval=$enable_libxml2_backend; >++else >++ enable_libxml2_backend=no >++fi >++ >++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the libxml2 backend" >&5 >++$as_echo_n "checking whether to build the libxml2 backend... " >&6; } >++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libxml2_backend" >&5 >++$as_echo "$enable_libxml2_backend" >&6; } >++ >++if test $enable_libxml2_backend = yes; then >++ if test $HAVE_LIBXML2 = no; then >++ as_fn_error $? "You specified --enable-libxml2_backend, but don't appear to have libxml2 installed (no pkg-config file for it in your pkg-config search path), so we cannot not build for libxml2" "$LINENO" 5 >++ fi >++fi >++ >++ENABLE_LIBXML2_BACKEND=$enable_libxml2_backend >++ >++ >+-# Check whether --enable-libxml2-backend was given. >+-if test "${enable_libxml2_backend+set}" = set; then : >+- enableval=$enable_libxml2_backend; >+-else >+- enable_libxml2_backend=no >+-fi >+- >+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the libxml2 backend" >&5 >+-$as_echo_n "checking whether to build the libxml2 backend... " >&6; } >+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libxml2_backend" >&5 >+-$as_echo "$enable_libxml2_backend" >&6; } >+- >+-if test $enable_libxml2_backend = yes; then >+- # Extract the first word of "xml2-config", so it can be a program name with args. >+-set dummy xml2-config; ac_word=$2 >+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 >+-$as_echo_n "checking for $ac_word... " >&6; } >+-if ${ac_cv_prog_have_xml2_config+:} false; then : >+- $as_echo_n "(cached) " >&6 >+-else >+- if test -n "$have_xml2_config"; then >+- ac_cv_prog_have_xml2_config="$have_xml2_config" # Let the user override the test. >+-else >+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR >+-for as_dir in $PATH >+-do >+- IFS=$as_save_IFS >+- test -z "$as_dir" && as_dir=. >+- for ac_exec_ext in '' $ac_executable_extensions; do >+- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then >+- ac_cv_prog_have_xml2_config="yes" >+- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 >+- break 2 >+- fi >+-done >+- done >+-IFS=$as_save_IFS >+- >+- test -z "$ac_cv_prog_have_xml2_config" && ac_cv_prog_have_xml2_config="no" >+-fi >+-fi >+-have_xml2_config=$ac_cv_prog_have_xml2_config >+-if test -n "$have_xml2_config"; then >+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xml2_config" >&5 >+-$as_echo "$have_xml2_config" >&6; } >+-else >+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+-$as_echo "no" >&6; } >+-fi >+- >+- >+- if test $have_xml2_config = no; then >+- as_fn_error $? "You specified --enable-libxml2_backend, but don't appear to have libxml2 installed (no working xml2-config in your command search path), so we cannot not build for libxml2" "$LINENO" 5 >+- fi >+-fi >+-ENABLE_LIBXML2_BACKEND=$enable_libxml2_backend >+ >+ >+ C_COMPILER_GNU=$ac_cv_c_compiler_gnu >+Index: configure.in >+=================================================================== >+--- a/configure.in (revision 3150) >++++ b/configure.in (revision 3151) >+@@ -742,6 +742,36 @@ >+ >+ >+ dnl ======================================================================= >++dnl Finding Libxml2 >++dnl ======================================================================= >++ >++AC_MSG_CHECKING(for Libxml2 library) >++ >++if ${PKG_CONFIG} libxml-2.0; then >++ HAVE_LIBXML2=yes >++else >++ HAVE_LIBXML2=no >++fi >++ >++AC_MSG_RESULT($HAVE_LIBXML2) >++ >++AC_ARG_ENABLE(libxml2-backend, >++ [ --enable-libxml2-backend Use libxml2 instead of built-in expat], , >++enable_libxml2_backend=no) >++AC_MSG_CHECKING(whether to build the libxml2 backend) >++AC_MSG_RESULT($enable_libxml2_backend) >++ >++if test $enable_libxml2_backend = yes; then >++ if test $HAVE_LIBXML2 = no; then >++ AC_MSG_ERROR([You specified --enable-libxml2_backend, but don't appear to have libxml2 installed (no pkg-config file for it in your pkg-config search path), so we cannot not build for libxml2]) >++ fi >++fi >++ >++ENABLE_LIBXML2_BACKEND=$enable_libxml2_backend >++AC_SUBST(ENABLE_LIBXML2_BACKEND) >++ >++ >++dnl ======================================================================= >+ dnl Checks for build options. >+ dnl ======================================================================= >+ >+@@ -763,22 +793,6 @@ >+ fi >+ AC_SUBST(HAVE_LIBWWW_SSL_DEFINE) >+ >+-dnl Check to see if we should build the libxml2 backend. >+-AC_ARG_ENABLE(libxml2-backend, >+- [ --enable-libxml2-backend Use libxml2 instead of built-in expat], , >+-enable_libxml2_backend=no) >+-AC_MSG_CHECKING(whether to build the libxml2 backend) >+-AC_MSG_RESULT($enable_libxml2_backend) >+- >+-if test $enable_libxml2_backend = yes; then >+- AC_CHECK_PROG(have_xml2_config, xml2-config, yes, no) >+- if test $have_xml2_config = no; then >+- AC_MSG_ERROR([You specified --enable-libxml2_backend, but don't appear to have libxml2 installed (no working xml2-config in your command search path), so we cannot not build for libxml2]) >+- fi >+-fi >+-ENABLE_LIBXML2_BACKEND=$enable_libxml2_backend >+-AC_SUBST(ENABLE_LIBXML2_BACKEND) >+- >+ dnl ======================================================================= >+ dnl Compiler information >+ dnl ======================================================================= >+Index: src/Makefile >+=================================================================== >+--- a/src/Makefile (revision 3150) >++++ b/src/Makefile (revision 3151) >+@@ -68,7 +68,7 @@ >+ >+ ifeq ($(ENABLE_LIBXML2_BACKEND),yes) >+ XMLRPC_XML_PARSER = xmlrpc_libxml2 >+- XML_PARSER_LIBDEP = $(shell xml2-config --libs) >++ XML_PARSER_LIBDEP = $(shell ${PKG_CONFIG} libxml-2.0 --libs) >+ XML_PARSER_LIBDEP_DEP = >+ XML_PKGCONFIG_REQ = libxml-2.0 >+ else >+@@ -276,7 +276,7 @@ >+ -Isrcdir/lib/util/include \ >+ >+ ifeq ($(ENABLE_LIBXML2_BACKEND),yes) >+- LIBXML_INCLUDES = $(shell xml2-config --cflags) >++ LIBXML_INCLUDES = $(shell ${PKG_CONFIG} libxml-2.0 --cflags) >+ else >+ LIBXML_INCLUDES = -Isrcdir/lib/expat/xmlparse >+ endif >+Index: src/cpp/Makefile >+=================================================================== >+--- a/src/cpp/Makefile (revision 3150) >++++ b/src/cpp/Makefile (revision 3151) >+@@ -46,7 +46,7 @@ >+ endif >+ >+ ifeq ($(ENABLE_LIBXML2_BACKEND),yes) >+- XML_PARSER_LIBDEP = $(shell xml2-config --libs) >++ XML_PARSER_LIBDEP = $(shell ${PKG_CONFIG} libxml-2.0 --libs) >+ else >+ XML_PARSER_LIBDEP = \ >+ -L$(BLDDIR)/lib/expat/xmlparse -lxmlrpc_xmlparse \ >\ No newline at end of file >diff --git a/dev-libs/xmlrpc-c/files/r3152.patch b/dev-libs/xmlrpc-c/files/r3152.patch >new file mode 100644 >index 00000000000..5943d75345b >--- /dev/null >+++ b/dev-libs/xmlrpc-c/files/r3152.patch >@@ -0,0 +1,50 @@ >+Index: configure >+=================================================================== >+--- a/configure (revision 3151) >++++ b/configure (revision 3152) >+@@ -5974,11 +5974,11 @@ >+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5 >+ $as_echo_n "checking for OpenSSL library... " >&6; } >+ >+-if pkg-config openssl; then >+- HAVE_OPENSSL=yes >+- OPENSSL_LDADD=$(pkg-config openssl --libs) >+- >+- OPENSSL_CFLAGS=$(pkg-config openssl --cflags) >++if ${PKG_CONFIG} openssl; then >++ HAVE_OPENSSL=yes >++ OPENSSL_LDADD=$(${PKG_CONFIG} openssl --libs) >++ >++ OPENSSL_CFLAGS=$(${PKG_CONFIG} openssl --cflags) >+ >+ else >+ HAVE_OPENSSL=no >+ >+Index: config.mk.in >+=================================================================== >+--- a/config.mk.in (revision 3151) >++++ b/config.mk.in (revision 3152) >+@@ -59,6 +59,8 @@ >+ C_COMPILER_GNU = @C_COMPILER_GNU@ >+ CXX_COMPILER_GNU = @CXX_COMPILER_GNU@ >+ >++PKG_CONFIG ?= pkg-config >++ >+ # Stuff 'configure' figured out via AC_CANONICAL_HOST macro in configure.in >+ # and config.guess program and 'configure' command options: >+ >+Index: lib/openssl/Makefile >+=================================================================== >+--- a/lib/openssl/Makefile (revision 3151) >++++ b/lib/openssl/Makefile (revision 3152) >+@@ -25,8 +25,8 @@ >+ >+ MAJ := 1 >+ >+-OPENSSL_INCLUDES := $(shell pkg-config openssl --cflags) >+-OPENSSL_LIBS := $(shell pkg-config openssl --libs) >++OPENSSL_INCLUDES := $(shell $(PKG_CONFIG) openssl --cflags) >++OPENSSL_LIBS := $(shell $(PKG_CONFIG) openssl --libs) >+ >+ include $(SRCDIR)/common.mk >+ >diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r2.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r3.ebuild >similarity index 96% >rename from dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r2.ebuild >rename to dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r3.ebuild >index 2493a2da7f7..7fe8d0c44b0 100644 >--- a/dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r2.ebuild >+++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.51.06-r3.ebuild >@@ -37,6 +37,11 @@ pkg_setup() { > } > > src_prepare() { >+ tc-export PKG_CONFIG >+ >+ eapply "${FILESDIR}"/r3151.patch >+ eapply "${FILESDIR}"/r3152.patch >+ > sed -i \ > -e "/CFLAGS_COMMON/s|-g -O3$||" \ > -e "/CXXFLAGS_COMMON/s|-g$||" \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 870253
: 805378