Bug 668828 - derby scripts are broken
Summary: derby scripts are broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: derby
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 699504 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-11 17:55 UTC by Thomas Meyer
Modified: 2011-04-25 20:02 UTC (History)
3 users (show)

Fixed In Version: derby-10.6.1.0-6.fc15
Clone Of:
Environment:
Last Closed: 2011-02-25 17:47:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fixed bash script (1.67 KB, application/octet-stream)
2011-01-11 17:55 UTC, Thomas Meyer
no flags Details
patch for derby scripts (1.42 KB, text/plain)
2011-02-24 22:48 UTC, Thomas Meyer
no flags Details

Description Thomas Meyer 2011-01-11 17:55:52 UTC
Created attachment 472862 [details]
fixed bash script

Two problems:

1.) all entries under "/usr/bin/derby-*" should be symlinks to one script file:

$ ll /usr/bin/derby-*
-rwxr-xr-x. 5 root root 1689 14. Aug 19:58 /usr/bin/derby-ij
-rwxr-xr-x. 5 root root 1689 14. Aug 19:58 /usr/bin/derby-NetworkServerControl
-rwxr-xr-x. 5 root root 1689 14. Aug 19:58 /usr/bin/derby-startNetworkServer
-rwxr-xr-x. 5 root root 1689 14. Aug 19:58 /usr/bin/derby-stopNetworkServer
-rwxr-xr-x. 5 root root 1689 14. Aug 19:58 /usr/bin/derby-sysinfo

This is currently not the case.

2.) The script is broken as the "run" function in "/usr/share/java-utils/java-functions" expects the class name in the variable MAIN_CLASS.
See attachement for a fixed script.

Comment 1 Alexander Kurtakov 2011-01-27 20:50:41 UTC
Please provide a patch so we can review your changes easier.

Comment 2 Thomas Meyer 2011-02-24 22:48:44 UTC
Created attachment 480874 [details]
patch for derby scripts

Comment 3 Lubomir Rintel 2011-02-25 17:47:18 UTC
(In reply to comment #0)
> Created attachment 472862 [details]
> fixed bash script
> 
> Two problems:
> 
> 1.) all entries under "/usr/bin/derby-*" should be symlinks to one script file:

Not true. There's no reason for the links to be symbolic instead of hard. In fact, it's not obvious for me which one should be the symlink target.

> 2.) The script is broken as the "run" function in
> "/usr/share/java-utils/java-functions" expects the class name in the variable
> MAIN_CLASS.

(In reply to comment #2)
> Created attachment 480874 [details]
> patch for derby scripts

It took me a while to find out why the hell are you doing that, only to figure that the patch is reversed :)

Applied and built into f16, f15 following shortly.

Thanks!

Comment 4 Fedora Update System 2011-02-28 09:35:52 UTC
Package derby-10.6.1.0-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing derby-10.6.1.0-6.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/derby-10.6.1.0-6.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-03-18 03:54:21 UTC
derby-10.6.1.0-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Harm-Jan 2011-04-25 20:02:39 UTC
*** Bug 699504 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.