Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with patching Zarafa and Libvmime
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message

Joined: 15 Jun 2004
Posts: 35

PostPosted: Thu Jun 25, 2009 1:47 pm    Post subject: Help with patching Zarafa and Libvmime Reply with quote

I'm installing Zarafa as here on gentoo-wiki and here the ebuild.
The patch for libvmime is not applying and exits with this message:
* ERROR: dev-cpp/libvmime-0.7.1 failed.
 * Call stack:
 *     , line   49:  Called src_unpack
 *             environment, line 2168:  Called epatch
 *             environment, line 1132:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: vmime-gcc-4.4-support.diff!
and more in detail:

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch <

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|--- libvmime-0.7.1/src/platforms/posix/posixFile.cpp           2005-04-09
10:42:46.000000000 +0200
|+++ libvmime-0.7.1/src/platforms/posix/posixFile.cpp.gcc44     2009-03-29
21:09:07.000000000 +0200
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Apparently there is some mismatch between the patch and the code because I cannot manually apply the patch to the online libvmime-0.7.1.
This happens also by manually patching, this commands lead to this error:
tar xjvf libvmime-0.7.1.tar.bz2
tar xzvf zarafa-vmime-patches.tar.gz
patch -p0 < vmime-gcc-4.4-support.diff
this is the output:
patching file libvmime-0.7.1/src/platforms/posix/posixFile.cpp
Hunk #1 FAILED at 28.
1 out of 1 hunk FAILED -- saving rejects to file libvmime-0.7.1/src/platforms/posix/posixFile.cpp.rej

cat posixFile.cpp.rej

*** 28,33 ****
  #include <dirent.h>
  #include <string.h>
  #include "vmime/exception.hpp"
--- 28,34 ----
  #include <dirent.h>
+ #include <stdio.h>
  #include <string.h>
  #include "vmime/exception.hpp"

How can I modify the patch or the code to make it work and continue the emerge?
Back to top
View user's profile Send private message

Joined: 26 Sep 2005
Posts: 35

PostPosted: Sat Aug 22, 2009 12:03 pm    Post subject: Reply with quote


Afaik the patch from is only needed when you are using gcc 4.4
I am using gcc 4.3 on my system and the original patches from the zarafa webpage work fine for me.
I think, the only difference is an additional gcc4.4 patch for gentoo systems.

Btw: Has anybody already succeeded in compling zarafa 6.30.1 on gentoo?
Seems, that the make files include some packages (zarafa-ssm) from the commercial version.
I tried to use the patches from the zarafa forum (were made for 6.30.0) - but without success.

make[3]: Entering directory
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../common   -DLINUX
-I../../mapi4linux/include -I../../libfreebusy -I../../common   -O2
-march=athlon-xp -fPIC -g -rdynamic -Wall -Wno-write-strings  -pedantic
-Wno-long-long -pthread -MT zarafa-stats.o -MD -MP -MF ".deps/zarafa-stats.Tpo"
-c -o zarafa-stats.o zarafa-stats.cpp; \
        then mv -f ".deps/zarafa-stats.Tpo" ".deps/zarafa-stats.Po"; else rm -f
".deps/zarafa-stats.Tpo"; exit 1; fi
make[3]: *** Keine Regel vorhanden, um das Target »zarafa-ssm«,
  benötigt von »all-am«, zu erstellen.  Schluss.
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory
make: *** [all] Fehler 2

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum