** Description changed:
System:
- Description: Ubuntu 18.04.2 LTS
- Release: 18.04
+ Description: Ubuntu 18.04.2 LTS
+ Release: 18.04
Package:
- svnkit:
- Installed: 1.8.14-1
- Candidate: 1.8.14-1
+ svnkit:
+ Installed: 1.8.14-1
+ Candidate: 1.8.14-1
-
- All variables in /usr/share/svnkit/jsvn have an escaped $ sign:
+ All special chars in /usr/share/svnkit/jsvn are escaped and ${mainclass}
+ should probably have been replaced during build:
==== snip ====
BASEDIR="`dirname "\$0"`/.."
BASEDIR=`(cd "\$BASEDIR"; pwd)`
cygwin=false;
darwin=false;
case "`uname`" in
- CYGWIN*) cygwin=true ;;
- Darwin*) darwin=true
- if [ -z "\$JAVA_VERSION" ] ; then
- JAVA_VERSION="CurrentJDK"
+ CYGWIN*) cygwin=true ;;
+ Darwin*) darwin=true
+ if [ -z "\$JAVA_VERSION" ] ; then
+ JAVA_VERSION="CurrentJDK"
(...)
+
+ exec "\$JAVACMD" \$JAVA_OPTS \\
+ "\$EXTRA_JVM_ARGUMENTS" \\
+ -classpath "\$CLASSPATH" \\
+ ${mainclass} \\
+ "\$@"
+
==== snap ====
What happens:
=== snip ====
- user@ubuntu:~>jsvn
+ user@ubuntu:~>jsvn help
/usr/bin/jsvn: 29: /usr/bin/jsvn: $cygwin: not found
Error: JAVA_HOME is not defined correctly.
We cannot execute $JAVACMD
==== snap ====
What should happen:
==== snip ====
- user@ubuntu:~>jsvn
- Usage: java [-options] class [args...]
- (to execute a class)
- or java [-options] -jar jarfile [args...]
- (to execute a jar file)
- where options include:
- -d32 use a 32-bit data model if available
- (...)
+ jsvn help
+ usage: jsvn <subcommand> [options] [args]
+ Subversion command-line client, version 1.8.14.
+ Type 'jsvn help <subcommand>' for help on a specific subcommand.
+ Type 'jsvn --version' to see the program version and RA modules
+ or 'jsvn --version --quiet' to see just the version number.
+
+ Most subcommands take file and/or directory arguments, recursing
+ on the directories. If no arguments are supplied to such a
+ command, it recurses on the current directory (inclusive) by default.
+
+ Available subcommands:
+ add
+ blame (praise, annotate, ann)
+ cat
+ changelist (cl)
+ checkout (co)
+ cleanup
+ commit (ci)
+ copy (cp)
+ delete (del, remove, rm)
+ diff (di)
+ export
+ help (?, h)
+ import
+ info
+ list (ls)
+ lock
+ log
+ merge
+ mergeinfo
+ mkdir
+ move (mv, rename, ren)
+ patch
+ propdel (pdel, pd)
+ propedit (pedit, pe)
+ propget (pget, pg)
+ proplist (plist, pl)
+ propset (pset, ps)
+ resolve
+ resolved
+ revert
+ status (stat, st)
+ switch (sw, relocate)
+ unlock
+ update (up)
+ upgrade
+
+ SVNKit is a pure Java (TM) version of Subversion - a tool for version control.
+ For additional information, see http://svnkit.com/
==== snap ====
- The local fix ist to run "sed -i 's@\\@@g' /usr/share/svnkit/jsvn" as
- root, but I guess this is somehow broken in the build process.
+ The local fix ist to run
+ sed -i 's@\\\$@\$@g' /usr/share/svnkit/jsvn
+ sed -i 's@\\\\@\\@g' /usr/share/svnkit/jsvn
+ sed -i 's@\${mainclass}@org.tmatesoft.svn.cli.SVN@' /usr/share/svnkit/jsvn
+
+ as root, but I guess this is somehow broken in the build process.
Best regards,
Christoph
+
+ EDIT: First version was lazy researched and the fix was not complete.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1823704
Title:
jsvn script is broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/svnkit/+bug/1823704/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs