Merge lp:~fluidity-core/fluidity/dont-install-diamond into lp:fluidity

Proposed by Patrick Farrell
Status: Merged
Merged at revision: 3858
Proposed branch: lp:~fluidity-core/fluidity/dont-install-diamond
Merge into: lp:fluidity
Diff against target: 21 lines (+2/-2)
1 file modified
Makefile.in (+2/-2)
To merge this branch: bzr merge lp:~fluidity-core/fluidity/dont-install-diamond
Reviewer Review Type Date Requested Status
Tim Bond (community) Approve
Review via email: mp+82945@code.launchpad.net

Description of the change

Fluidity bundles libspud, as it needs it to build. libspud comes with Diamond, which also happened to be installed from the libspud/ directory to fluidity's bin/ directory as part of the building of libspud, but that was an unintended side-effect. linzhenhua reported a bug on the fluidity mailing list, that the version of Diamond installed in this process is broken, which is true; this was never detected because we always install Diamond separately.

This change makes it so that fluidity only installs the libspud and python binding components that are bundled in the libspud/ directory; i.e., diamond is no longer installed from libspud/ to fluidity's bin/. This should prevent any users getting confused about this in the future.

Aside: I wish bzr had actual externals support; the feature seems so easy, and yet it isn't available!

To post a comment you must log in.
Revision history for this message
Tim Bond (timothy-bond) wrote :

The fix looks good to me and the libspud/libspud.a rule works for me on a quick build test. I'm thinking it may be worth doing a bit of tidying of the libspud/ directory at some point too to remove un-needed code, and also small tidies like making the target in the makefile libspud.so as opposed to libspud.a, though this is unimportant to this merge.

Good to go; approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.in'
2--- Makefile.in 2011-11-18 16:07:09 +0000
3+++ Makefile.in 2011-11-21 22:50:31 +0000
4@@ -153,7 +153,7 @@
5 ifeq (@SPUD_ONLY@,yes)
6 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud
7 else
8- @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install; cd ..; cp lib*/python*/site-packages/libspud.so python/
9+ @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud; cd python; python setup.py build; cd ../..; cp libspud/python/build/lib*/libspud.so python/
10 endif
11
12 libfemtools: sub_system
13@@ -463,7 +463,7 @@
14 @cd tests/data; $(MAKE) clean
15
16 distclean: clean
17- @echo " DISTCLEAN"
18+ @echo " DISTCLEAN"
19 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \
20 make.log regressiontest/mvrtree/.deps \
21 regressiontest/rtree/.deps regressiontest/tprtree/.deps > \