After pulling down the current version I attempted to apply the patch in order to get a 6.x compatible version and received an error:
cd sites/all/modules
git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/grammar_parser_ui.git
Cloning into grammar_parser_ui...
remote: Counting objects: 123, done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 123 (delta 81), reused 86 (delta 62)
Receiving objects: 100% (123/123), 274.97 KiB, done.
Resolving deltas: 100% (81/81), done.
cd grammar_parser_ui
git apply gpui.patch
error: patch failed: gpui.info:12
error: gpui.info: patch does not apply
I had also tried apply the patch using patch -p1 < gpui.patch and was prompted to enter the location of gpui.info, gpui.install and gpui.module even through I was in the project base directory (grammar_parser_ui). I told them where the file was and all seemed to work except for gpui.info so I manually changed the 7.x to 6.x in that file. However I still get a red X on the module enable page (although it does show the version as 6.x).
I would really like to use this module to bring my own module up to Drupal's coding standards so maybe I can use Coder to convert it to a 7.x module but currently can't even enable it :( Any help would be Very much appreciated!
Here's the output of patch -p1 < gpui.patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gpui.info
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/grammar_parser_ui/gpui.info,v
|retrieving revision 1.1
|diff -u -p -r1.1 gpui.info
|--- gpui.info 1 Mar 2010 23:41:22 -0000 1.1
|+++ gpui.info 20 Nov 2010 18:40:17 -0000
--------------------------
File to patch: gpui.info
patching file gpui.info
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file gpui.info.rej
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gpui.install
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/grammar_parser_ui/gpui.install,v
|retrieving revision 1.3
|diff -u -p -r1.3 gpui.install
|--- gpui.install 20 Nov 2010 18:32:39 -0000 1.3
|+++ gpui.install 20 Nov 2010 18:40:17 -0000
--------------------------
File to patch: gpui.install
patching file gpui.install
Hunk #1 succeeded at 15 (offset -1 lines).
Hunk #2 succeeded at 48 (offset -1 lines).
Hunk #3 succeeded at 58 (offset -1 lines).
can't find file to patch at input line 55
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gpui.module
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/grammar_parser_ui/gpui.module,v
|retrieving revision 1.6
|diff -u -p -r1.6 gpui.module
|--- gpui.module 20 Nov 2010 18:32:39 -0000 1.6
|+++ gpui.module 20 Nov 2010 18:40:17 -0000
--------------------------
File to patch: gpui.module
patching file gpui.module
Hunk #1 succeeded at 17 (offset -1 lines).
Hunk #2 succeeded at 98 (offset -1 lines).
Hunk #3 succeeded at 106 (offset -1 lines).
Hunk #4 succeeded at 161 (offset -1 lines).
Hunk #5 succeeded at 355 (offset -1 lines).
Hunk #6 succeeded at 378 (offset -1 lines).
Hunk #7 succeeded at 567 (offset -1 lines).
PS. I'm marking this major because it renders use of this module impossible for all 6.x sites (as far as I can tell).
Comments
Comment #1
laceysanderson commentedOh, I forgot to mention that I'm running Drupal 6.26 -Hope I've mentioned enough details for you to figure out what's wrong! Thanks in advance :)
Comment #2
solotandem commentedThanks for reporting this. The patch fails to apply because of changes to the info file. I committed a new patch.
You will also need to modify the Grammar Parser Library and Libraries projects. Two of the three will be automatically done for you if you use the make file referred to on the project page, and the third is a one character change to the version string in the info file. See http://drupal.org/node/729746#comment-6128052.
Comment #3
laceysanderson commentedWorks perfectly now -Thanks :)
Comment #4
laceysanderson commentedMarking this as closed since the issue has been fixed -verified by the original poster.