Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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

Sebastien, as the message says, just set dist.dir=... inside of etc/local.properties rather than passing it on the command line. i.e.:

echo dir.dir=...
./build.py

rather than

./build.py -Ddist.dir=...

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.

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

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.76991 sec.)

We're Hiring!