Steps to repeat:

1. Install 4.7 Drupal site.
2. Modified db.inc.php and main.inc.php files with my db info, add table prefixes
3. Run CVS patch and get this error:

C:\dev-drupal\modules\rcmail>patch -p0 -u <
patch_ab_civicrm.txt
patching file roundcubemail/index.php
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 115.
2 out of 2 hunks FAILED -- saving rejects to file roundcubemail/index.php.rej
patching file roundcubemail/program/js/app.js
Hunk #1 FAILED at 842.
1 out of 1 hunk FAILED -- saving rejects to file roundcubemail/program/js/app.js
.rej
patching file roundcubemail/program/steps/addressbook/edit.inc
patching file roundcubemail/program/steps/addressbook/func.inc
patching file roundcubemail/program/steps/addressbook/list.inc
patching file roundcubemail/program/steps/addressbook/save.inc
patching file roundcubemail/program/steps/addressbook/show.inc
patching file roundcubemail/program/steps/mail/compose.inc
Hunk #1 succeeded at 101 with fuzz 1.
Hunk #2 succeeded at 657 (offset 39 lines).

I am not experienced with CVS patches, so assuming the above might have been OK, I uploaded the entire rcmail directory (containing the roundcubemail subdir) to my drupal /modules directory.

Upon activating the module and going to http://www.MYSITE.COM/drupal/?q=rcmail , I get:

<strong>Warning: </strong>main(include/rcube_shared.inc): failed to open stream: No such file or directory in <strong>/home/PATH/MYUSER/MYSITE.COM/modules/rcmail/roundcubemail/index.php</strong> on line 73

<strong>Fatal error: </strong>main(): Failed opening required 'include/rcube_shared.inc' (include_path='/PATH/cgi-system/:/PATH/cgi-system/program:/PATH/cgi-system/program/lib:.:/usr/local/lib/php') in <strong>/home/PATH/MYUSER/MYSITE.COM/modules/rcmail/roundcubemail/index.php</strong> on line <strong>73</strong>

Comments

polyformal_sp’s picture

as you can see here
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/rcmail/?only_...
the module for 4.7 contains no patch for civicrm. See the notes in the documentation in The README.txt. I did not testet civicrm in drupal 4.7 myselt at this time, so i deliver no patch for the civicrm addressbook for rcmail 4.7.
It needs a bit of time, stay tuned.

herni7881’s picture

I'm having the same problem patching the files.
by the way, i'm using drupal 4.7.2.
i've tested using both the cvs and the 4.7.0 modules with the roundcubemail-0.1beta and roundcubemail-cvs-20060505 both causing the same error.

patching file roundcubemail/index.php
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 131.
2 out of 2 hunks FAILED -- saving rejects to file roundcubemail/index.php.rej

any idea what causes the problem guys?

polyformal_sp’s picture

Status: Active » Closed (fixed)

Please read the documantation at the wiki. I'ts important that the patch matches to your version of roundcube.
I'll make a new patch for roundcubemail-0.1beta2 these days.

best regards

Stefan