3a9fa0c0cf998ad88380b785b07db23e22c11f37
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mxml / 0001-fix-cross-target-installation.patch
1 From: Baruch Siach <baruch@tkos.co.il>
2 Subject: [PATCH] mxml: workaround for cross build
3
4 The added patch is a workaround for cross build as follows:
5
6         * disable run of a test binary at build time
7         * disable generation of documentation using the mxmldoc binary
8         * remove now non-existent entries from the install target
9         * disable strip when running install
10
11 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 ---
13 diff -Nuar mxml-2.7-orig/Makefile.in mxml-2.7/Makefile.in
14 --- mxml-2.7-orig/Makefile.in   2011-04-13 18:43:32.000000000 +0300
15 +++ mxml-2.7/Makefile.in        2012-05-16 07:21:42.677220980 +0300
16 @@ -57,7 +57,7 @@
17  # Install commands...
18  #
19  
20 -INSTALL_BIN    =       $(LIBTOOL) $(INSTALL) -m 755 -s
21 +INSTALL_BIN    =       $(LIBTOOL) $(INSTALL) -m 755
22  INSTALL_DATA   =       $(INSTALL) -m 644
23  INSTALL_DIR    =       $(INSTALL) -d
24  INSTALL_LIB    =       $(LIBTOOL) $(INSTALL) -m 755
25 @@ -88,7 +88,7 @@
26                         mxml-index.o mxml-node.o mxml-search.o mxml-set.o
27  LIBOBJS                =       $(PUBLIBOBJS) mxml-private.o mxml-string.o
28  OBJS           =       mxmldoc.o testmxml.o $(LIBOBJS)
29 -TARGETS                =       $(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
30 +TARGETS                =       $(LIBMXML) libmxml.a
31  
32  
33  #
34 @@ -140,9 +140,6 @@
35  #
36  
37  install:       $(TARGETS) install-$(LIBMXML) install-libmxml.a
38 -       echo Installing mxmldoc in $(BUILDROOT)$(bindir)...
39 -       $(INSTALL_DIR) $(BUILDROOT)$(bindir)
40 -       $(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir)
41         echo Installing documentation in $(BUILDROOT)$(docdir)...
42         $(INSTALL_DIR) $(BUILDROOT)$(docdir)
43         for file in $(DOCFILES); do \
44 @@ -154,11 +151,6 @@
45         echo Installing pkgconfig files in $(BUILDROOT)$(libdir)/pkgconfig...
46         $(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
47         $(INSTALL_DATA) mxml.pc $(BUILDROOT)$(libdir)/pkgconfig
48 -       echo Installing man pages in $(BUILDROOT)$(mandir)...
49 -       $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1
50 -       $(INSTALL_MAN) doc/mxmldoc.man $(BUILDROOT)$(mandir)/man1/mxmldoc.1
51 -       $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
52 -       $(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3
53  
54  install-libmxml.a:
55         echo Installing libmxml.a to $(BUILDROOT)$(libdir)...