Task #9203 (closed)
Opened 12 years ago
Closed 12 years ago
Bug: build fails when dist.dir is set
Reported by: | sbesson | Owned by: | sbesson |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-4.4 |
Component: | Deployment | Version: | n.a. |
Keywords: | n.a. | Cc: | jamoore, jburel |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
When building 4.4.0-RC1 with -Ddist.dir set, the build fails with
/private/tmp/homebrew-omero-4.4.0-RC1-C1SF/components/insight/build/dist.xml:57: ERROR: dist.dir is currently set! This most likely occurred because dist.dir was set on the top-level build: ./build.py -Ddist.dir=/tmp/example This no longer works with the insight build. Instead, set dist.dir in the etc/local.properties file.
This is currently blocking the upgrade of the OMERO homebrew installation for 4.4 since -Ddist.dir must be set to the homebrew prefix.
Change History (5)
comment:1 Changed 12 years ago by jmoore
comment:2 Changed 12 years ago by sbesson
- Owner set to sbesson
comment:3 Changed 12 years ago by sbesson
Josh, just tried this. However, homebrew doesn't let you write to folders other than prefix, i.e. I can not create a local.properties file under /Library/Caches/Homebrew?/omero--git
I see two ways to fix this:
- either, we need to adapt the insight build
- or we could add another property, e.g. config.dir, that would be set to ${root.dir}/etc by default in global.xml. Then, I would simply use
./build.py -Dconfig.dir=...
Do you think this makes sense?
comment:4 Changed 12 years ago by sbesson
Actually I just opened a PR that implements the suggestion above https://github.com/openmicroscopy/openmicroscopy/pull/211
comment:5 Changed 12 years ago by sbesson
- Resolution set to fixed
- Status changed from new to closed
Fixed homebrew 4.4 installation by setting dist.dir in /etc/local.properties
https://github.com/openmicroscopy/homebrew-alt/pull/4
Sebastien, as the message says, just set dist.dir=... inside of etc/local.properties rather than passing it on the command line. i.e.:
rather than
The only way to remove this restriction will be to rename the "dist.dir" property in the insight build, since once a property is set in ant, it can't be modified.