Opened 11 years ago

Closed 11 years ago

#22753 closed defect (fixed)

[derby] DERBY_HOME can not be properly set

Reported by: martin.osx@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: derby



one can not set the DERBY_HOME variable propperly in derby. See extract from "/opt/local/bin/":


# set DERBY_LIB location


# set local classpath, don't overwrite the user's


As you can see it is expected that ${DERBY_HOME}/lib/derby.jar exits but derby.jar is installed in /opt/local/share/java/derby.jar.

I suggest that installation is done similar to ant or maven2 which both create a subdirectory in /opt/local/share/java/.

Attachments (1)

Portfile.diff (1.5 KB) - added by martin.osx@… 11 years ago.
Suggested changes

Download all attachments as: .zip

Change History (6)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to blair@…

comment:2 Changed 11 years ago by blair (Blair Zajac)

Well, given we're installing Derby into a non-standard install (for it), I think I would rather patch to change DERBY_LIB to point to the share/java. We don't install any jar's into lib, so we'll have to patch it. Installing all the Derby jar's into a subdirectory, say /opt/local/share/java/derby, won't fix this, we'll have to patch

I don't have too many cycles, but if you agree, could you send a patch to have set DERBY_HOME to $prefix and DERBY_LIB to $DERBY_HOME/share/java.

Regards, Blair

Changed 11 years ago by martin.osx@…

Attachment: Portfile.diff added

Suggested changes

comment:3 Changed 11 years ago by martin.osx@…

I noticed some other problems when trying to start a server: Not all shell scripts are installed into bin. I attached a patch which will install all files into /opt/local/share/java/derby and symlinks the shell scripts to /opt/local/bin. This is the same technique used by ant and maven2. It think this is a far better approach.


comment:4 Changed 11 years ago by blair (Blair Zajac)

I've taken your approach and in r64413 dropped the entire Derby install into ${prefix}/share/derby then set up the appropriate symlinks.

I didn't set up the other tools in bin besides ij, syinfo and dblook. Are all of them needed?

comment:5 Changed 11 years ago by blair (Blair Zajac)

Resolution: fixed
Status: newclosed
Summary: [derby] DERBY_HOME can not be proppery set[derby] DERBY_HOME can not be properly set

Please reopen or open a new ticket for additional modifications.

Note: See TracTickets for help on using tickets.