[Gambas-devel] Wrong build order for gb.xml.rpc component

Laurent Carlier lordheavym at ...176...
Sat Jul 14 23:28:30 CEST 2012


When packaging gb.xml.rpc, component was always failling to build since 
gb.xml.rpc component needs gb.xml component that is always built after it, 
because gb.xml.rpc is a pure gambas component, and it depends on gb.xml to be 
properly built.

The solution is to move gb.xml component also in a subdir, so build order can 
be changed in the SUBDIR variable in the Makefile.am file

src
 \_xml
  \_gb.xml
 \_html
 \_rpc
  \_gb.xml.rpc
 \_xslt

Makefile.am in src dir:
SUBDIR = xml @XMLHTML_DIR@ @XMLXSLT_DIR@ rpc

Sample of installation log of gb.xml.rpc component:
---8<---
make[2]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src/xslt'
Making install in rpc
make[2]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'
make[3]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'
make[3]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
 /usr/bin/install -c -m 644 gb.xml.rpc.component '/build/pkg/gambas3-gb-xml-
rpc/usr/lib/gambas3'
 /bin/mkdir -p '/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
 /usr/bin/install -c -m 644 gb.xml.rpc.component '/build/pkg/gambas3-gb-xml-
rpc/usr/lib/gambas3'
make  install-data-hook
make[4]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'

Compiling the gb.xml.rpc project...
gbi3: warning: component gb.xml.rpc not found
gb.xml.rpc
gbc: error: Component not found: gb.xml
Installing the gb.xml.rpc control icons if needed...
Creating the information files for gb.xml.rpc component...
gbi3: warning: component gb.xml.rpc not found
gb.xml.rpc

make[4]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'
make[3]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'
make[2]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src/rpc'
make[2]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src'
make[3]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src'
make[3]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
 /usr/bin/install -c -m 644 gb.xml.component '/build/pkg/gambas3-gb-xml-
rpc/usr/lib/gambas3'
 /bin/mkdir -p '/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
 /usr/bin/install -c -m 644 gb.xml.component '/build/pkg/gambas3-gb-xml-
rpc/usr/lib/gambas3'
 /bin/mkdir -p '/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   gb.xml.la 
'/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3'
libtool: install: /usr/bin/install -c .libs/gb.xml.so.0.0.0 
/build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3/gb.xml.so.0.0.0
libtool: install: (cd /build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3 && { ln -s 
-f gb.xml.so.0.0.0 gb.xml.so.0 || { rm -f gb.xml.so.0 && ln -s gb.xml.so.0.0.0 
gb.xml.so.0; }; })
libtool: install: (cd /build/pkg/gambas3-gb-xml-rpc/usr/lib/gambas3 && { ln -s 
-f gb.xml.so.0.0.0 gb.xml.so || { rm -f gb.xml.so && ln -s gb.xml.so.0.0.0 
gb.xml.so; }; })
libtool: install: /usr/bin/install -c .libs/gb.xml.lai /build/pkg/gambas3-gb-
xml-rpc/usr/lib/gambas3/gb.xml.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/gambas3'
make  install-data-hook
make[4]: Entering directory `/build/src/gambas3-3.2.0/gb.xml/src'

Compiling the gb.xml project...
gb.xml
OK
Installing the gb.xml control icons if needed...
Creating the information files for gb.xml component...
gb.xml

make[4]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src'
make[3]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src'
make[2]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src'
make[1]: Leaving directory `/build/src/gambas3-3.2.0/gb.xml/src'
---8<---

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120714/a239976c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120714/a239976c/attachment.sig>


More information about the Devel mailing list