Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch failed #81

Closed
chmich opened this issue Oct 13, 2020 · 1 comment
Closed

patch failed #81

chmich opened this issue Oct 13, 2020 · 1 comment

Comments

@chmich
Copy link

chmich commented Oct 13, 2020

Hi,

what is here to do?

on the last line, he wants the File to patch:
or did there something else went wrong?

thanks,
Chris

redmine@meet:/srv/drawio$ git clone https://github.com/jgraph/draw.io.git
Cloning into 'draw.io'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 37148 (delta 1), reused 5 (delta 0), pack-reused 37128
Receiving objects: 100% (37148/37148), 543.68 MiB | 15.59 MiB/s, done.
Resolving deltas: 100% (21303/21303), done.
redmine@meet:/srv/drawio$ ls -la
total 12
drwxr-xr-x 3 redmine redmine 4096 Oct 13 16:28 .
drwxr-xr-x 9 root    root    4096 Oct 13 16:27 ..
drwxr-xr-x 6 redmine redmine 4096 Oct 13 16:29 draw.io
You have new mail in /var/mail/redmine
redmine@meet:/srv/drawio$ cd draw.io/
redmine@meet:/srv/drawio/draw.io$ patch -p1 < /srv/redmine/redmine-4.0.4/plugins/redmine_drawio/embed2js.patch 
patching file etc/build/build.xml
Hunk #1 FAILED at 361.
1 out of 1 hunk FAILED -- saving rejects to file etc/build/build.xml.rej
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/com/mxgraph/online/EmbedServlet2.java b/src/com/mxgraph/online/EmbedServlet2.java
|index cced6ae..6eca5ed 100644
|--- a/src/com/mxgraph/online/EmbedServlet2.java
|+++ b/src/com/mxgraph/online/EmbedServlet2.java
--------------------------
File to patch: 
@mikitex70
Copy link
Owner

Hi @chmich, sorry for the delay.
The patch is 4 year old, I suppose that they have changed something that make the patch inapplicable.
Try to build the drawio war without the patch, I think it would build without errors.
Or you can try the drawio Docker container, so you wouldn't need to build the server.

@mikitex70 mikitex70 added this to To Do in redmine_drawio via automation Jan 4, 2021
redmine_drawio automation moved this from To Do to Done Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants