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
=== modified file 'Makefile.in'
--- Makefile.in 2011-11-18 16:07:09 +0000
+++ Makefile.in 2011-11-21 22:50:31 +0000
@@ -153,7 +153,7 @@
153ifeq (@SPUD_ONLY@,yes)153ifeq (@SPUD_ONLY@,yes)
154 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud154 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud
155else155else
156 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install; cd ..; cp lib*/python*/site-packages/libspud.so python/156 @cd libspud; echo ' MAKE libspud'; $(MAKE) ; $(MAKE) install-libspud; cd python; python setup.py build; cd ../..; cp libspud/python/build/lib*/libspud.so python/
157endif157endif
158158
159libfemtools: sub_system159libfemtools: sub_system
@@ -463,7 +463,7 @@
463 @cd tests/data; $(MAKE) clean463 @cd tests/data; $(MAKE) clean
464464
465distclean: clean465distclean: clean
466 @echo " DISTCLEAN"466 @echo " DISTCLEAN"
467 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \467 @cd spatialindex-1.5 ; make distclean > /dev/null ; rm -rf \
468 make.log regressiontest/mvrtree/.deps \468 make.log regressiontest/mvrtree/.deps \
469 regressiontest/rtree/.deps regressiontest/tprtree/.deps > \469 regressiontest/rtree/.deps regressiontest/tprtree/.deps > \