2
1

mxml-2.6-fix-cross-target-installation.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From: Baruch Siach <baruch@tkos.co.il>
  2. Subject: [PATCH] mxml: workaround for cross build
  3. The added patch is a workaround for cross build as follows:
  4. * disable run of a test binary at build time
  5. * disable generation of documentation using the mxmldoc binary
  6. * remove now non-existent entries from the install target
  7. * disable strip when running install
  8. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  9. ---
  10. diff -Nuar mxml-2.6-dist//Makefile.in mxml-2.6/Makefile.in
  11. --- mxml-2.6-dist//Makefile.in 2008-12-06 06:20:38.000000000 +0200
  12. +++ mxml-2.6/Makefile.in 2011-07-13 07:25:36.615999491 +0300
  13. @@ -59,7 +59,7 @@
  14. # Install commands...
  15. #
  16. -INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 -s
  17. +INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755
  18. INSTALL_DATA = $(INSTALL) -m 644
  19. INSTALL_DIR = $(INSTALL) -d
  20. INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
  21. @@ -88,7 +88,7 @@
  22. mxml-node.o mxml-search.o mxml-set.o
  23. LIBOBJS = $(PUBLIBOBJS) mxml-private.o mxml-string.o
  24. OBJS = mxmldoc.o testmxml.o $(LIBOBJS)
  25. -TARGETS = $(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
  26. +TARGETS = $(LIBMXML) libmxml.a
  27. #
  28. @@ -134,8 +134,6 @@
  29. #
  30. install: $(TARGETS) install-$(LIBMXML) install-libmxml.a
  31. - $(INSTALL_DIR) $(BUILDROOT)$(bindir)
  32. - $(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir)
  33. $(INSTALL_DIR) $(BUILDROOT)$(docdir)
  34. for file in $(DOCFILES); do \
  35. $(INSTALL_MAN) $$file $(BUILDROOT)$(docdir); \
  36. @@ -144,10 +142,6 @@
  37. $(INSTALL_DATA) mxml.h $(BUILDROOT)$(includedir)
  38. $(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
  39. $(INSTALL_DATA) mxml.pc $(BUILDROOT)$(libdir)/pkgconfig
  40. - $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1
  41. - $(INSTALL_MAN) doc/mxmldoc.man $(BUILDROOT)$(mandir)/man1/mxmldoc.1
  42. - $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
  43. - $(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3
  44. install-libmxml.a:
  45. $(INSTALL_DIR) $(BUILDROOT)$(libdir)