RussellSpitzer / snakeyaml

Automatically exported from code.google.com/p/snakeyaml
Apache License 2.0
0 stars 1 forks source link

Cannot patch for android usage #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've cloned the sources (version 1.14-SNAPSHOT) done first maven clean install 
and then maven clean install -Pandroid.

But the android part fails with the following error message:

Failed to execute goal org.apache.maven.plugins:maven-patch-plugin:1.1.1:apply 
(android-patches) on project snakeyaml: Patch command failed with exit code 1 
for CompactConstructor.patch.

Launched with

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

Any ideas???

Original issue reported on code.google.com by varom...@gmail.com on 28 Jun 2014 at 6:47

GoogleCodeExporter commented 9 years ago
For the moment I'm applying the patches "by hand" but I'm quite sure the 
problem is that the patches are outdated, as I had to change more code than 
expected (as long as the patches show)

Original comment by varom...@gmail.com on 28 Jun 2014 at 7:04

GoogleCodeExporter commented 9 years ago
What OS are you using to build?

And just in case - do you have patch command available in the system?

Original comment by alexande...@gmail.com on 2 Jul 2014 at 8:52

GoogleCodeExporter commented 9 years ago
Hi,

I'm building with cygwin under Windows 8 with patch:

patch 2.5
Copyright 1988 Larry Wall
Copyright 1997 Free Software Foundation, Inc.

Original comment by varom...@gmail.com on 2 Jul 2014 at 9:41

GoogleCodeExporter commented 9 years ago
I think there is something wrong with your setup.

I can not check it under Win8, but just made clean install of Cygwin+mercurial 
under 32bits Win7Pro+java1.7.0_60, cloned repository, installed latest maven.

The first try showed the same error as yours. Running patch in cygwin termital 
showed "command not found"

I installed patch using cygwin setup (couldn't select 2.5, selected 2.7.1). 
Tried again (mvn clean install -Pandroid) and got "BUILD SUCCESS"

Original comment by alexande...@gmail.com on 2 Jul 2014 at 11:15

GoogleCodeExporter commented 9 years ago
Will try as soon as I have a moment and post the result.

Original comment by varom...@gmail.com on 2 Jul 2014 at 11:38

GoogleCodeExporter commented 9 years ago
I guess that moment never came. Anyway, here I am with the same problem.

Original comment by festevez...@gmail.com on 28 Jan 2015 at 12:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Found the cause. The cause is that windows sucks.

[DEBUG] Executing: cmd.exe /X /C "patch -p4 -l -i C:\Coding\snakeyaml-v1.14\src\
patches\android\CompactConstructor.patch"
[DEBUG] 'patch' is not recognized as an internal or external command,
[DEBUG] operable program or batch file.

Original comment by festevez...@gmail.com on 28 Jan 2015 at 12:55

GoogleCodeExporter commented 9 years ago
To see that message, use -X when compiling and scroll up a bit.

Try using cybwin_setup.exe to download the patch command to fix it.

Original comment by festevez...@gmail.com on 28 Jan 2015 at 1:00