• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/mxml/0001-fix-cross-target-installation.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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)...
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.