diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2009-05-02 15:14:49 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2009-05-02 15:14:49 +0000 |
commit | b6b5123d4d5595ae27a0b5db3c314e2dcb05f131 (patch) | |
tree | e6aa1bc0f23e9284b8f557ae2e7d54913b45436c /dev-libs/xmlrpc-c | |
parent | Fix encoding errors reported for some misconfigured sites (#267318). (diff) | |
download | gentoo-2-b6b5123d4d5595ae27a0b5db3c314e2dcb05f131.tar.gz gentoo-2-b6b5123d4d5595ae27a0b5db3c314e2dcb05f131.tar.bz2 gentoo-2-b6b5123d4d5595ae27a0b5db3c314e2dcb05f131.zip |
Add patches to fix parallel compilation problems, bug 255440. Also remove some dead code from ebuild.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/xmlrpc-c')
-rw-r--r-- | dev-libs/xmlrpc-c/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/cpp-depends.patch | 20 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/dump-symlinks.patch | 585 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild | 17 |
4 files changed, 620 insertions, 10 deletions
diff --git a/dev-libs/xmlrpc-c/ChangeLog b/dev-libs/xmlrpc-c/ChangeLog index 7abe323ae8ca..1bfd8f431218 100644 --- a/dev-libs/xmlrpc-c/ChangeLog +++ b/dev-libs/xmlrpc-c/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/xmlrpc-c # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/ChangeLog,v 1.84 2009/05/01 12:40:59 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/ChangeLog,v 1.85 2009/05/02 15:14:49 loki_val Exp $ + + 02 May 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/xmlrpc-c-1.18.02/cpp-depends.patch, + +files/xmlrpc-c-1.18.02/dump-symlinks.patch, xmlrpc-c-1.18.02.ebuild: + Add patches to fix parallel compilation problems, bug 255440. Also remove + some dead code from ebuild. 01 May 2009; Raúl Porcel <armin76@gentoo.org> xmlrpc-c-1.18.02.ebuild: Add ~alpha/~arm/~s390/~sh wrt #267616 diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/cpp-depends.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/cpp-depends.patch new file mode 100644 index 000000000000..dccd12a558fe --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/cpp-depends.patch @@ -0,0 +1,20 @@ +diff -NrU5 xmlrpc-c-1.18.02.orig/src/Makefile xmlrpc-c-1.18.02/src/Makefile +--- xmlrpc-c-1.18.02.orig/src/Makefile 2009-05-02 12:53:43.000000000 +0200 ++++ xmlrpc-c-1.18.02/src/Makefile 2009-05-02 13:30:00.000000000 +0200 +@@ -128,11 +128,15 @@ + $(SUBDIRS:%=%/all) \ + + # Extra dependencies to make parallel make work in spite of all the submakes + # (See top level make file for details) + ifeq ($MUST_BUILD_CLIENT),yes) +-cpp/all: $(BLDDIR)/transport_config.h ++ cpp/all: $(BLDDIR)/transport_config.h ++endif ++ ++ifeq ($(ENABLE_CPLUSPLUS),yes) ++ cpp/all: $(TARGET_SHARED_LIBRARIES) + endif + + #----------------------------------------------------------------------------- + # RULES TO LINK LIBRARIES + #----------------------------------------------------------------------------- diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/dump-symlinks.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/dump-symlinks.patch new file mode 100644 index 000000000000..d246e42dbf41 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.18.02/dump-symlinks.patch @@ -0,0 +1,585 @@ +diff -NrU5 xmlrpc-c-1.18.02.orig/common.mk xmlrpc-c-1.18.02/common.mk +--- xmlrpc-c-1.18.02.orig/common.mk 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/common.mk 2009-04-28 00:37:21.000000000 +0200 +@@ -282,32 +282,10 @@ + $(TARGET_MODS_PP:%=%.osh):%.osh:%.cpp + $(CXX) -c -o $@ $(INCLUDES) $(CXXFLAGS_ALL) $< + + + ############################################################################## +-# MISC BUILD RULES # +-############################################################################## +- +-# We use the srcdir symbolic link simply to make the make +-# rules easier to read in the make output. We could use the $(SRCDIR) +-# variable, but that makes the compile and link commands +-# a mile long. Note that Make sometime figures that a directory which +-# is a dependency is newer than the symbolic link pointing to it and wants +-# to rebuild the symbolic link. So we don't make $(SRCDIR) a +-# dependency of 'srcdir'. +- +-# We should do the same for 'blddir'. We did once before, then undid +-# it in an erroneous effort to enable parallel make. It's a little harder +-# with blddir; when we did it before, we had to use the non-symlink +-# version in a few places. +- +-srcdir: +- $(LN_S) $(SRCDIR) $@ +-blddir: +- $(LN_S) $(BLDDIR) $@ +- +-############################################################################## + # RECURSIVE SUBDIRECTORY BUILD RULES # + ############################################################################## + + .PHONY: $(SUBDIRS:%=%/all) + $(SUBDIRS:%=%/all): %/all: $(CURDIR)/% +@@ -594,11 +572,10 @@ + # especially with built .h files. Better not to burden the user, who + # gains nothing from it, with that. + # + rm -f depend.mk + rm -f Makefile.depend # We used to create a file by this name +- rm -f srcdir blddir + + .PHONY: distdir-common + distdir-common: + @for file in $(DISTFILES); do \ + d=$(SRCDIR); \ +diff -NrU5 xmlrpc-c-1.18.02.orig/lib/abyss/src/Makefile xmlrpc-c-1.18.02/lib/abyss/src/Makefile +--- xmlrpc-c-1.18.02.orig/lib/abyss/src/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/lib/abyss/src/Makefile 2009-04-28 00:48:59.000000000 +0200 +@@ -50,22 +50,17 @@ + + include $(SRCDIR)/common.mk + + CFLAGS_LOCAL = -D_UNIX + +-INCLUDES = -Iblddir -Isrcdir -Isrcdir/include -Isrcdir/lib/util/include ++INCLUDES = -I$(BLDDIR) -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include + + ABYSS_SHLIB = $(call shlibfn,libxmlrpc_abyss) + #ABYSS_SHLIB is e.g. libxmlrpc_abyss.so.3.1 + ABYSS_SHLIBLE = $(call shliblefn,libxmlrpc_abyss) + #ABYSS_SHLIBLE is e.g. libxmlrpc_abyss.so + +-# This 'common.mk' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/common.mk: srcdir blddir +- + .PHONY: all + all: libxmlrpc_abyss.a $(TARGET_SHARED_LIBRARIES) $(TARGET_SHARED_LE_LIBS) + + + # Rule for this is in common.mk, courtesy of TARGET_LIBRARY_NAMES +diff -NrU5 xmlrpc-c-1.18.02.orig/lib/expat/xmlparse/Makefile xmlrpc-c-1.18.02/lib/expat/xmlparse/Makefile +--- xmlrpc-c-1.18.02.orig/lib/expat/xmlparse/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/lib/expat/xmlparse/Makefile 2009-04-28 00:39:45.000000000 +0200 +@@ -83,11 +83,6 @@ + distclean: clean distclean-common + + .PHONY: dep + dep: dep-common + +-# This 'common.mk' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/common.mk: srcdir +- + include depend.mk +diff -NrU5 xmlrpc-c-1.18.02.orig/lib/expat/xmltok/Makefile xmlrpc-c-1.18.02/lib/expat/xmltok/Makefile +--- xmlrpc-c-1.18.02.orig/lib/expat/xmltok/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/lib/expat/xmltok/Makefile 2009-04-28 00:38:11.000000000 +0200 +@@ -24,11 +24,11 @@ + # we started using the Gcc -Wundef option, that generates a warning, so + # se set it explicitly to 0 here. + + CFLAGS_LOCAL = -DXML_BYTE_ORDER=0 + +-# -I. is necessary when blddir != srcdir ++# -I. is necessary when $(BLDDIR) != $(SRCDIR) + INCLUDES = -I. -I$(BLDDIR) -I$(SRCDIR)/lib/util/include + + default: all + + TARGET_LIBRARY_NAMES := libxmlrpc_xmltok +diff -NrU5 xmlrpc-c-1.18.02.orig/lib/libutil/Makefile xmlrpc-c-1.18.02/lib/libutil/Makefile +--- xmlrpc-c-1.18.02.orig/lib/libutil/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/lib/libutil/Makefile 2009-04-28 00:48:59.000000000 +0200 +@@ -41,23 +41,18 @@ + MAJ=3 + # Major number of shared libraries in this directory + + include $(SRCDIR)/common.mk + +-INCLUDES = -I$(BLDDIR) -Isrcdir \ +- -I$(BLDDIR)/include -Isrcdir/include -Isrcdir/lib/util/include ++INCLUDES = -I$(BLDDIR) -I$(SRCDIR) \ ++ -I$(BLDDIR)/include -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include + + UTIL_SHLIB = $(call shlibfn,libxmlrpc_util) + #UTIL_SHLIB is e.g. libxmlrpc_util.so.3.1 + UTIL_SHLIBLE = $(call shliblefn,libxmlrpc_util) + #UTIL_SHLIBLE is e.g. libxmlrpc_util.so + +-# This 'common.mk' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/common.mk: srcdir blddir +- + .PHONY: all + all: libxmlrpc_util.a $(TARGET_SHARED_LIBRARIES) $(TARGET_SHARED_LE_LIBS) + + # Rule for this is in common.mk, courtesy of TARGET_LIBRARY_NAMES: + $(UTIL_SHLIB): $(TARGET_MODS:%=%.osh) +diff -NrU5 xmlrpc-c-1.18.02.orig/src/cpp/Makefile xmlrpc-c-1.18.02/src/cpp/Makefile +--- xmlrpc-c-1.18.02.orig/src/cpp/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/src/cpp/Makefile 2009-04-28 00:38:11.000000000 +0200 +@@ -37,18 +37,18 @@ + # INCLUDES and DEP_SOURCES are used by dep-common target + INCLUDES = $(BASIC_INCLUDES) $(CLIENT_INCLUDES) $(LIBXML_INCLUDES) \ + $(SERVER_INCLUDES) $(SERVER_ABYSS_INCLUDES) $(TRANSPORT_INCLUDES) + DEP_SOURCES = *.cpp + +-WININET_TRANSPORT_DIR = srcdir/lib/wininet_transport +-CURL_TRANSPORT_DIR = srcdir/lib/curl_transport +-LIBWWW_TRANSPORT_DIR = srcdir/lib/libwww_transport ++WININET_TRANSPORT_DIR = $(SRCDIR)/lib/wininet_transport ++CURL_TRANSPORT_DIR = $(SRCDIR)/lib/curl_transport ++LIBWWW_TRANSPORT_DIR = $(SRCDIR)/lib/libwww_transport + + ifeq ($(ENABLE_LIBXML2_BACKEND),yes) + LIBXML_INCLUDES = $(LIBXML2_CFLAGS) + else +- LIBXML_INCLUDES = -Isrcdir/lib/expat/xmlparse ++ LIBXML_INCLUDES = -I$(SRCDIR)/lib/expat/xmlparse + endif + + ifeq ($(ENABLE_LIBXML2_BACKEND),yes) + XML_PARSER_LIBDEP = $(shell xml2-config --libs) + else +@@ -80,26 +80,20 @@ + MAJ = 5 + # Major number of shared libraries in this directory + + include $(SRCDIR)/common.mk + +- +-# This 'common.mk' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/common.mk: srcdir blddir +- + TRANSPORT_INCLUDES = \ + -I$(WININET_TRANSPORT_DIR) \ + -I$(CURL_TRANSPORT_DIR) \ + -I$(LIBWWW_TRANSPORT_DIR) \ + + BASIC_INCLUDES = \ +- -Iblddir/include \ +- -Isrcdir/include \ +- -Iblddir \ +- -Isrcdir/lib/util/include ++ -I$(BLDDIR)/include \ ++ -I$(SRCDIR)/include \ ++ -I$(BLDDIR) \ ++ -I$(SRCDIR)/lib/util/include + + + # TARGET_STATIC_LIBARIES, etc. are set by common.mk, based on + # TARGET_LIB_NAMES_PP. + +@@ -125,22 +119,22 @@ + $(LIBXMLRPC) \ + $(LIBXMLRPC_SERVER) \ + $(LIBXMLRPC_UTIL) + $(LIBXMLRPC_CPP_SH): LIBOBJECTS = XmlRpcCpp.osh + $(LIBXMLRPC_CPP_SH): LIBDEP = \ +- -Lblddir/src -lxmlrpc_server -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_server -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + LIBXMLRPCPP_SH = $(call shlibfn, lib$(LIBXMLRPCPP_NAME)) + + $(LIBXMLRPCPP_SH): $(LIBXMLRPCPP_MODS:%=%.osh) \ + $(LIBXMLRPC) \ + $(LIBXMLRPC_UTIL) + $(LIBXMLRPCPP_SH): LIBOBJECTS = $(LIBXMLRPCPP_MODS:%=%.osh) + $(LIBXMLRPCPP_SH): LIBDEP = \ +- -Lblddir/src -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + + LIBXMLRPC_SERVERPP_SH = $(call shlibfn, libxmlrpc_server++) +@@ -151,11 +145,11 @@ + $(LIBXMLRPC_UTIL) \ + $(LIBXMLRPC) + $(LIBXMLRPC_SERVERPP_SH): LIBOBJECTS = $(LIBXMLRPC_SERVERPP_MODS:%=%.osh) + $(LIBXMLRPC_SERVERPP_SH): LIBDEP = \ + -L. -l$(LIBXMLRPCPP_NAME) \ +- -Lblddir/src -lxmlrpc_server -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_server -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + LIBXMLRPC_SERVER_ABYSSPP_SH = $(call shlibfn, libxmlrpc_server_abyss++) + +@@ -167,11 +161,11 @@ + $(LIBXMLRPC_UTIL) \ + $(LIBXMLRPC) + $(LIBXMLRPC_SERVER_ABYSSPP_SH): LIBOBJECTS = $(LIBXMLRPC_SERVER_ABYSSPP_MODS:%=%.osh) + $(LIBXMLRPC_SERVER_ABYSSPP_SH): LIBDEP = \ + -L. -lxmlrpc_server++ -l$(LIBXMLRPCPP_NAME) \ +- -Lblddir/src -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_ABYSS_DIR) -lxmlrpc_abyss \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util \ + + $(LIBXMLRPC_SERVER_CGIPP_SH): $(LIBXMLRPC_SERVER_CGIPP_MODS:%=%.osh) \ +@@ -179,11 +173,11 @@ + $(call shliblefn, lib$(LIBXMLRPCPP_NAME)) \ + $(LIBXMLRPC) + $(LIBXMLRPC_SERVER_CGIPP_SH): LIBOBJECTS = $(LIBXMLRPC_SERVER_CGIPP_MODS:%=%.osh) + $(LIBXMLRPC_SERVER_CGIPP_SH): LIBDEP = \ + -L. -lxmlrpc_server++ -l$(LIBXMLRPCPP_NAME) \ +- -Lblddir/src -lxmlrpc_server -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_server -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + LIBXMLRPC_SERVER_PSTREAMPP_SH = $(call shlibfn, libxmlrpc_server_pstream++) + +@@ -193,11 +187,11 @@ + $(call shliblefn, libxmlrpc_packetsocket) \ + $(call shliblefn, libxmlrpc_server++) + $(LIBXMLRPC_SERVER_PSTREAMPP_SH): LIBOBJECTS = $(LIBXMLRPC_SERVER_PSTREAMPP_MODS:%=%.osh) + $(LIBXMLRPC_SERVER_PSTREAMPP_SH): LIBDEP = \ + -L. -lxmlrpc_server++ -l$(LIBXMLRPCPP_NAME) -lxmlrpc_packetsocket \ +- -Lblddir/src -lxmlrpc_server -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_server -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util \ + + LIBXMLRPC_CLIENTPP_SH = $(call shlibfn, libxmlrpc_client++) + +@@ -208,22 +202,22 @@ + $(call shliblefn, lib$(LIBXMLRPCPP_NAME)) \ + $(LIBXMLRPC_CLIENT) + $(LIBXMLRPC_CLIENTPP_SH): LIBOBJECTS = $(LIBXMLRPC_CLIENTPP_MODS:%=%.osh) + $(LIBXMLRPC_CLIENTPP_SH): LIBDEP = \ + -L. -l$(LIBXMLRPCPP_NAME) -lxmlrpc_packetsocket \ +- -Lblddir/src -lxmlrpc_client -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc_client -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + LIBXMLRPC_PACKETSOCKET_SH = $(call shlibfn, libxmlrpc_packetsocket) + + $(LIBXMLRPC_PACKETSOCKET_SH): $(LIBXMLRPC_PACKETSOCKET_MODS:%=%.osh) \ + $(call shliblefn, lib$(LIBXMLRPCPP_NAME)) + $(LIBXMLRPC_PACKETSOCKET_SH): LIBOBJECTS = $(LIBXMLRPC_PACKETSOCKET_MODS:%=%.osh) + $(LIBXMLRPC_PACKETSOCKET_SH): LIBDEP = \ + -L. -l$(LIBXMLRPCPP_NAME) \ +- -Lblddir/src -lxmlrpc \ ++ -L$(BLDDIR)/src -lxmlrpc \ + $(XML_PARSER_LIBDEP) \ + -L$(LIBXMLRPC_UTIL_DIR) -lxmlrpc_util + + libxmlrpc_cpp.a: XmlRpcCpp.o + libxmlrpc_cpp.a: LIBOBJECTS = XmlRpcCpp.o +diff -NrU5 xmlrpc-c-1.18.02.orig/src/cpp/test/Makefile xmlrpc-c-1.18.02/src/cpp/test/Makefile +--- xmlrpc-c-1.18.02.orig/src/cpp/test/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/src/cpp/test/Makefile 2009-04-28 00:48:59.000000000 +0200 +@@ -26,16 +26,11 @@ + LIBS += $(shell libwww-config --libs) + endif + + LIBS += -lpthread + +-INCLUDES = -Isrcdir/include -I$(BLDDIR) -Isrcdir -Isrcdir/lib/util/include +- +-# This 'Makefile' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-Makefile: srcdir ++INCLUDES = -I$(SRCDIR)/include -I$(BLDDIR) -I$(SRCDIR) -I$(SRCDIR)/lib/util/include + + include $(SRCDIR)/common.mk + + + TEST_OBJS = test.o registry.o server_abyss.o server_pstream.o tools.o +diff -NrU5 xmlrpc-c-1.18.02.orig/src/Makefile xmlrpc-c-1.18.02/src/Makefile +--- xmlrpc-c-1.18.02.orig/src/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/src/Makefile 2009-04-28 00:32:07.000000000 +0200 +@@ -115,15 +115,10 @@ + MAJ=3 + # Major number of shared libraries in this directory + + include $(SRCDIR)/common.mk + +-# This 'common.mk' dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/common.mk: srcdir blddir +- + # TARGET_STATIC_LIBRARIES, etc. are set by common.mk, based on + # TARGET_LIBRARY_NAMES. + + + all: \ +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/common.mk xmlrpc-c-1.18.02/tools/common.mk +--- xmlrpc-c-1.18.02.orig/tools/common.mk 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/common.mk 2009-04-28 00:49:45.000000000 +0200 +@@ -5,11 +5,11 @@ + # the corresponding -l. + # + # Note that in a properly configured system, curl-config, etc. do not + # generate -L options for general directories. + +-CLIENT_LDLIBS = -Lblddir/src -Lblddir/lib/libutil ++CLIENT_LDLIBS = -L$(BLDDIR)/src -L$(BLDDIR)/lib/libutil + + CLIENT_LDLIBS += -lxmlrpc_client -lxmlrpc -lxmlrpc_util + + ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes) + CLIENT_LDLIBS += $(shell libwww-config --libs) +@@ -21,17 +21,17 @@ + CLIENT_LDLIBS += $(shell wininet-config --libs) + endif + + CLIENT_LDLIBS += $(LDLIBS_XML) + +-CLIENTPP_LDLIBS = -Lblddir/src/cpp ++CLIENTPP_LDLIBS = -L$(BLDDIR)/src/cpp + CLIENTPP_LDLIBS += -lxmlrpc_client++ -lxmlrpc_packetsocket -lxmlrpc++ + + include $(SRCDIR)/common.mk + + ifneq ($(OMIT_LIB_RULE),Y) +-srcdir/tools/lib/dumpvalue.o: FORCE ++$(SRCDIR)/tools/lib/dumpvalue.o: FORCE + $(MAKE) -C $(dir $@) -f $(SRCDIR)/tools/lib/Makefile $(notdir $@) + endif + + .PHONY: install + install: install-common +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/lib/Makefile xmlrpc-c-1.18.02/tools/lib/Makefile +--- xmlrpc-c-1.18.02.orig/tools/lib/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/lib/Makefile 2009-04-28 00:40:19.000000000 +0200 +@@ -13,29 +13,24 @@ + OMIT_LIB_RULE = Y + + include $(SRCDIR)/tools/common.mk + + INCLUDES = \ +- -Isrcdir/$(SUBDIR)/include \ +- -Iblddir \ +- -Isrcdir/include \ +- -Isrcdir/lib/util/include \ ++ -I$(SRCDIR)/$(SUBDIR)/include \ ++ -I$(BLDDIR) \ ++ -I$(SRCDIR)/include \ ++ -I$(SRCDIR)/lib/util/include \ + + LIBOBJS = \ + dumpvalue.o \ + + .PHONY: all + all: $(LIBOBJS) + + %.o:%.c + $(CC) -c $(CFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: dep + dep: dep-common + +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xmlrpc/Makefile xmlrpc-c-1.18.02/tools/xmlrpc/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xmlrpc/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xmlrpc/Makefile 2009-04-28 00:38:11.000000000 +0200 +@@ -14,14 +14,14 @@ + + include $(SRCDIR)/tools/common.mk + + INCLUDES = \ + -I../lib/include \ +- -Iblddir \ +- -Iblddir/include \ +- -Isrcdir/include \ +- -Isrcdir/lib/util/include ++ -I$(BLDDIR) \ ++ -I$(BLDDIR)/include \ ++ -I$(SRCDIR)/include \ ++ -I$(SRCDIR)/lib/util/include + + LDFLAGS = $(LADD) + + all: xmlrpc + +@@ -32,11 +32,11 @@ + stripcaseeq.o \ + string_parser.o \ + + UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%) + +-DUMPVALUE = srcdir/tools/lib/dumpvalue.o ++DUMPVALUE = $(SRCDIR)/tools/lib/dumpvalue.o + + # Can we just use $(LIBS) in the link? + + LIBS = $(LIBXMLRPC_CLIENT) $(LIBXMLRPC) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL) + +@@ -46,15 +46,10 @@ + $(CCLD) -o $@ $(LDFLAGS) $(XMLRPC_OBJS) $(UTILS) $(CLIENT_LDLIBS) + + %.o:%.c $(BLDDIR)/include/xmlrpc-c/config.h + $(CC) -c $(CFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: dep + dep: dep-common + +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xml-rpc-api2cpp/Makefile xmlrpc-c-1.18.02/tools/xml-rpc-api2cpp/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xml-rpc-api2cpp/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xml-rpc-api2cpp/Makefile 2009-04-28 00:31:08.000000000 +0200 +@@ -46,15 +46,10 @@ + $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) + + %.o:%.cpp + $(CXX) -c $(CXXFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: clean + clean: clean-common + rm -f $(PROGS) +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xml-rpc-api2txt/Makefile xmlrpc-c-1.18.02/tools/xml-rpc-api2txt/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xml-rpc-api2txt/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xml-rpc-api2txt/Makefile 2009-04-28 00:30:54.000000000 +0200 +@@ -16,15 +16,10 @@ + + all: $(PROGS) + + include $(SRCDIR)/tools/common.mk + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: clean + clean: clean-common + rm -f $(PROGS) +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xmlrpc_cpp_proxy/Makefile xmlrpc-c-1.18.02/tools/xmlrpc_cpp_proxy/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xmlrpc_cpp_proxy/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xmlrpc_cpp_proxy/Makefile 2009-04-28 00:28:49.000000000 +0200 +@@ -45,15 +45,10 @@ + $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS) $(LADD) + + %.o:%.cpp $(BLDDIR)/include/xmlrpc-c/config.h + $(CXX) -c $(CXXFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: clean + clean: clean-common + rm -f xmlrpc_cpp_proxy +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xmlrpc_pstream/Makefile xmlrpc-c-1.18.02/tools/xmlrpc_pstream/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xmlrpc_pstream/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xmlrpc_pstream/Makefile 2009-04-28 00:38:11.000000000 +0200 +@@ -16,22 +16,22 @@ + + include $(SRCDIR)/tools/common.mk + + INCLUDES = \ + -I../lib/include \ +- -Isrcdir/lib/util/include \ +- -Iblddir \ +- -Iblddir/include \ +- -Isrcdir/include \ ++ -I$(SRCDIR)/lib/util/include \ ++ -I$(BLDDIR) \ ++ -I$(BLDDIR)/include \ ++ -I$(SRCDIR)/include \ + + LDFLAGS = $(LADD) + + all: xmlrpc_pstream + + OBJECTS = \ + xmlrpc_pstream.o \ +- srcdir/tools/lib/dumpvalue.o \ ++ $(SRCDIR)/tools/lib/dumpvalue.o \ + + LIBS = \ + $(LIBXMLRPC_CLIENTPP) \ + $(LIBXMLRPCPP) \ + $(LIBXMLRPC_CLIENT) \ +@@ -52,18 +52,13 @@ + UTILS = $(UTIL_OBJS:%=$(UTIL_DIR)/%) + + xmlrpc_pstream: $(OBJECTS) $(LIBS) $(UTILS) + $(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(UTILS) $(LDLIBS) $(LADD) + +-%.o:%.cpp blddir/include/xmlrpc-c/config.h ++%.o:%.cpp $(BLDDIR)/include/xmlrpc-c/config.h + $(CXX) -c $(CXXFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: clean + clean: clean-common + rm -f xmlrpc_pstream +diff -NrU5 xmlrpc-c-1.18.02.orig/tools/xmlrpc_transport/Makefile xmlrpc-c-1.18.02/tools/xmlrpc_transport/Makefile +--- xmlrpc-c-1.18.02.orig/tools/xmlrpc_transport/Makefile 2009-04-28 00:23:33.000000000 +0200 ++++ xmlrpc-c-1.18.02/tools/xmlrpc_transport/Makefile 2009-04-28 00:29:09.000000000 +0200 +@@ -39,15 +39,10 @@ + $(CCLD) -o $@ $(LDFLAGS) $< $(CLIENT_LDLIBS) $(UTILS) + + %.o:%.c + $(CC) -c $(CFLAGS_ALL) $< + +-# This common.mk dependency makes sure the symlinks get built before +-# this make file is used for anything. +- +-$(SRCDIR)/tools/common.mk: srcdir blddir +- + include depend.mk + + .PHONY: dep + dep: dep-common + diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild index 906612ce2850..daf9cd11ff0d 100644 --- a/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild +++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild,v 1.6 2009/05/01 12:40:59 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.18.02.ebuild,v 1.7 2009/05/02 15:14:49 loki_val Exp $ EAPI=2 -inherit eutils multilib base autotools +inherit eutils multilib base DESCRIPTION="A lightweigt RPC library based on XML and HTTP" SRC_URI="mirror://gentoo/${PN}/${P}.tar.bz2" @@ -30,7 +30,11 @@ pkg_setup() { #Bug 214137: We need to filter this. unset SRCDIR -PATCHES=( "${FILESDIR}/${P}/dumpvalue.patch" ) +PATCHES=( + "${FILESDIR}/${P}/dumpvalue.patch" + "${FILESDIR}/${P}/cpp-depends.patch" + "${FILESDIR}/${P}/dump-symlinks.patch" + ) src_prepare() { base_src_util autopatch @@ -40,11 +44,6 @@ src_prepare() { -e "/CFLAGS_COMMON/s:-g -O3$:${CFLAGS}:" \ -e "/CXXFLAGS_COMMON/s:-g$:${CXXFLAGS}:" \ "${S}"/common.mk || die "404. File not found while sedding" - - sed -i \ - -e "/^LIBINST_DIR = / s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):" \ - config.mk.in - eautoconf } src_configure() { @@ -63,7 +62,7 @@ src_configure() { } src_compile() { - emake || die "Compiling failed" + emake -r || die "Compiling failed" } src_test() { |