Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177024 - app-editors/jedit bundles bsh sources
Summary: app-editors/jedit bundles bsh sources
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 177023
  Show dependency tree
 
Reported: 2007-05-04 13:01 UTC by Petteri Räty (RETIRED)
Modified: 2023-05-30 17:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Errors after removing org/gjt/sp/jedit/bsh (build.log,215.09 KB, text/plain)
2023-05-30 17:12 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-05-04 13:01:33 UTC
betelgeuse@pena /mnt/checkouts/java/testcases/dev-java/ant-javamail $ lsjar jedit | grep bsh | wc -l
192
betelgeuse@pena /mnt/checkouts/java/testcases/dev-java/ant-javamail $ lsjar jedit | grep bsh | head
bsh/
bsh/classpath/
bsh/collection/
bsh/commands/
bsh/org/
bsh/org/objectweb/
bsh/org/objectweb/asm/
bsh/reflect/
bsh/BSHAllocationExpression.class
bsh/BSHAmbiguousName.class
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-06-05 22:17:18 UTC
It seems jedit has a couple of local modifications. I guess we could patch our bsh with that stuff:

betelgeuse@pena /var/tmp/portage/app-editors/jedit-4.3_pre9/work/jEdit $ diff -qr bsh/ /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/
Only in /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/: Console.java
Only in /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/: .errLog
Files bsh/Interpreter.java and /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/Interpreter.java differ
Only in /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/: lib
Files bsh/NameSpace.java and /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/NameSpace.java differ
Only in bsh/: org
Only in /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/: servlet
Only in /var/tmp/portage/dev-java/bsh-2.0_beta4-r3/work/BeanShell-2.0b4/src/bsh/: util
Comment 2 Volkmar W. Pogatzki 2023-05-30 17:12:45 UTC
Created attachment 862906 [details]
Errors after removing org/gjt/sp/jedit/bsh

Presently on dev-java/bsh-2.1.1
Removing org/gjt/sp/jedit/bsh 's:org.gjt.sp.jedit.bsh:bsh:' would lead to errors.


Multiple errors like this:
==========================

 /var/tmp/portage/app-editors/jedit-5.6.0/work/jEdit/org/gjt/sp/jedit/JEditBeanShellAction.java:104: 
     error: no suitable method found for setVariable(String,Component)
                  global.setVariable("_comp",comp);
                        ^
     method NameSpace.setVariable(String,Object,boolean) is not applicable
       (actual and formal argument lists differ in length)
     method NameSpace.setVariable(String,Object,boolean,boolean) is not applicable
       (actual and formal argument lists differ in length)



Changes on the ebuild:
======================

    default
    mkdir -p lib/{ant-contrib,compile,default-plugins,scripting,test} || die
 
+   rm -r org/gjt/sp/jedit/bsh || die
+   sed \
+           -e 's:org.gjt.sp.jedit.bsh:bsh:' \
+           -i org/gjt/sp/jedit/*.java \
+           -i org/gjt/sp/jedit/*/*.java \
+           -i build.xml \
+           -i doc/users-guide/bsh-commands.xml \
+           -i jEdit.iml \
+           || die
+
    java-ant_xml-rewrite -f "${S}/build.xml" -c \