Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143148 - evolution-sharp-0.11.1 doesn't detect evolution-2.7+
Summary: evolution-sharp-0.11.1 doesn't detect evolution-2.7+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 157744
  Show dependency tree
 
Reported: 2006-08-07 17:53 UTC by Josh Nichols (RETIRED)
Modified: 2006-12-10 11:22 UTC (History)
19 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
revised version of evolution-sharp-0.11.1 (evolution-sharp-0.11.1-r1.ebuild,1016 bytes, application/octet-stream)
2006-09-10 13:18 UTC, Per-Erik Westerberg
Details
patch for revised ebuild (evolution-sharp-0.11.1.patch,575 bytes, patch)
2006-09-10 13:19 UTC, Per-Erik Westerberg
Details | Diff
evolution-sharp-0.11.1-r1 w/ patch for evo 2.8 (evolution-sharp-0.11.1-r1.ebuild,834 bytes, text/plain)
2006-09-16 03:45 UTC, Karl Zollner
Details
patch for evo 2.8 (evolution-sharp-0.11.1-evo29.patch,848 bytes, patch)
2006-09-16 03:45 UTC, Karl Zollner
Details | Diff
work so far (patch,114.01 KB, patch)
2006-09-28 10:32 UTC, Daniel Drake (RETIRED)
Details | Diff
add ESHELL28 (evolution-sharp-0.11.1-evo-2.8.patch,704 bytes, patch)
2006-09-28 10:36 UTC, Daniel Gryniewicz (RETIRED)
Details | Diff
Proposed ebuild for evolution-sharp (evolution-sharp-0.11.1-r1.ebuild,1.12 KB, patch)
2006-10-02 14:30 UTC, Canek Peláez Valdés
Details | Diff
Patch to detect ESHELL 2.8 (eshell-fix.patch,704 bytes, patch)
2006-10-02 14:31 UTC, Canek Peláez Valdés
Details | Diff
fixed sonames and eshell (evolution-sharp-0.11.1-evo28.patch,1.79 KB, patch)
2006-10-17 09:19 UTC, Gianluca Parmiggiani
Details | Diff
evolution-sharp-0.12.0.ebuild (evolution-sharp-0.12.0.ebuild,954 bytes, text/plain)
2006-11-19 14:32 UTC, Jose daLuz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2006-08-07 17:53:17 UTC
If you have evolution-2.7.x installed, evolution-sharp fails with:

dl/bonobo-activation-2.0 -I /usr/share/idl/evolution-data-server-1.2
checking for ESHELL22... checking for ESHELL24... checking for ESHELL26... configure: error: You need to install evolution-shell

This is because it is checking for evolution-shell 2.2, 2.4, and 2.6 using pkg-config, ie evolution-shell-2.x.pc. However, evolution 2.7 (surprise) installs evolution-shell-2.8.pc.

The fix seems pretty simple... just need to add the following to configure.in with the rest of the evolution-sharp checks:
PKG_CHECK_MODULES(ESHELL28, "evolution-shell-2.8", eshellver="2.8", foo=bar)

and then running autoconf.
Comment 1 Per-Erik Westerberg 2006-09-10 13:18:25 UTC
Created attachment 96607 [details]
revised version of evolution-sharp-0.11.1

Updated ebuild based on the bug information.
Comment 2 Per-Erik Westerberg 2006-09-10 13:19:30 UTC
Created attachment 96608 [details, diff]
patch for revised ebuild

patch used by revised ebuild, place it in the "files" directory.
Comment 3 Peter Johanson (RETIRED) gentoo-dev 2006-09-12 19:37:02 UTC
Reassigning this properly.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-09-13 05:20:21 UTC
That's not enough, you also have to check the soversions of the various evolution/e-d-s libraries and also if the API has changed since 0.6 you need to generate a new gapi template.
Comment 5 Karl Zollner 2006-09-16 03:45:06 UTC
Created attachment 97134 [details]
evolution-sharp-0.11.1-r1 w/ patch for evo 2.8
Comment 6 Karl Zollner 2006-09-16 03:45:51 UTC
Created attachment 97135 [details, diff]
patch for evo 2.8
Comment 7 Karl Zollner 2006-09-16 03:54:30 UTC
the above list evolution-sharp-0.11.1-r1 ebuild and the evolution-sharp-0.11.1-evo29.patch are the products of my attempts to resolve this bug.

Using the stock evolution-sharp-0.11.1.ebuild configure died with messages similiar to those listed above.

I then went to breakmygentoo.net and found an ebuild with a patch for evolution-2.6

I tried this and it also failed to compile.

So I modified the ebuild and the patch for evo 2.8

I then submitted this as bug ID 0000250 at breakymygentoo.net

I repost my bug description from there:
################################################
the patch, evolution-sharp-0.11.1-evo28.patch, contains a little typo.

+if test "x$edsver" = "x1.6"; then
+ EDS_VERSION=-1.2
+ EDS_SOVERSION=7
+ EBOOK_SOVERSION=5
+ ECAL_SOVERSION=3
+fi

should read:

+if test "x$edsver" = "x1.8"; then
+ EDS_VERSION=-1.2
+ EDS_SOVERSION=7
+ EBOOK_SOVERSION=2
+ ECAL_SOVERSION=6
+fi

prior to this change the configure script finds simply 2 1.6 definitions and failed to find one for 1.8 and thus configure failed..the EDS_SOVERSION and ECAL_SOVERSION numbers are ones i found in /usr/lib...

After I made these changes to the patch I then tried to compile again. This time configure succeeded and compilation began-it then failed with a missing file exception gcc Error 1....the missing file was evolution-api.xml.

Upon further research I found that evolution-sharp-0.11.1/evolution/Makefile.in contained definitions for evolution-api-1.2.raw, evolution-api-1.4.raw and evolution-api-1.6.raw...but none for 1.8. So I unpacked the evolution-sharp tarball and cloned(cp -ax) it making a evolution-sharp-0.11.1.org directory. I then modified evolution-sharp-0.11.1/evolution/Makefile.in to create evolution-api-1.8.raw....

I then used:
diff -ur evolution-sharp-0.11.1.org /evolution/Makefile.in evolution-sharp-0.11.1/evolution/Makefile.in

to create the little patch attached below-which i labeled evolution-sharp-0.11.1-evo29.patch. I then copied the patch to dev-dotnet/evolution-sharp/files did ebuild...digest and modified the evolution-sharp-0.11.1-r1.ebuild(epatch ${FILESDIR}/${P}-evo29.patch) to apply the patch... compilation was then successfull...

hope this helps...(my only coding skill is pattern recognition ;( )
#####################################################################
please look at the above listed ebuild and patch and tell me if these suffice to close this bug.(I also am not sure if ${FILESDIR}/${P} used in the epatch line will accept my patch which is labeled evolution-sharp-0.11.1-evo29.patch, the ebuild itself being labeled evolution-sharp-0.11.1-r1.ebuild )

hope this helps



 
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-09-16 07:56:16 UTC
Thanks for looking into this. I'm kinda confused by comment #7 (is it even talking about the same patches that you posted here?). We're not affiliated with breakmygentoo so it's best if you just post all info and complete patches here.

Ignoring that, there are some problems with the patch in comment #6:

1. don't worry about ebuild modifications. I will commit the fix upstream and roll a new release, so all we'll have to do is bump the ebuild.

2. You should not modify Makefile.in, modify Makefile.am instead

3. You added evolution-api-1.8.raw to RAW_APIS but this file did not appear in the patch

4. Despite the supposed existence of evolution-api-1.8.raw, you use evolution-api-1.6.raw if 1.8 is detected (see your @USE_EDS18_TRUE@RAW_API assignment)

5. comment #4 has not been fully addressed

6. Am I right in assuming that you also needed the patch in comment #2? Your comment suggested otherwise
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-09-23 10:30:54 UTC
Just an update, I looked at this myself. The CVS version was already patched for evo-2.8/e-d-s-1.8 a while ago (completely forgot) but the patch was incomplete and the soversions have changed since.

My only problem now is that when I generate the GAPI API file for the new versions and generate bindings code from that, some of the custom added code fails to compile. I suspect this might be the result of a gapi change rather than any evo stuff. Need to find some more time to continue looking at this.
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2006-09-28 10:32:52 UTC
Created attachment 98326 [details, diff]
work so far

Attaching my patch so far, still suffers from the above problem. This is against evo-sharp CVS.
Comment 11 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-09-28 10:36:00 UTC
Created attachment 98327 [details, diff]
add ESHELL28

With only adding ESHELL28 to configure.in, I'm able to build evo-sharp against gnome 2.16, and beagle using the resulting build seems to correctly index my evo email.
Comment 12 Canek Peláez Valdés 2006-10-02 14:30:47 UTC
Created attachment 98664 [details, diff]
Proposed ebuild for evolution-sharp

Using the patch from comment #11 and this ebuild, I was able to build without problems evolution-sharp. I'm in amd64, but with GNOME 2.16 unmasked.
Comment 13 Canek Peláez Valdés 2006-10-02 14:31:53 UTC
Created attachment 98665 [details, diff]
Patch to detect ESHELL 2.8

Patch attached for completeness.
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2006-10-08 08:27:20 UTC
Upstream GAPI bug
http://bugzilla.ximian.com/show_bug.cgi?id=79623
Comment 15 Matthias Nagel 2006-10-10 14:52:37 UTC
a very small workaround is a symlink from 

/usr/lib64/pkgconfig/evolution-shell-2.8.pc
to
/usr/lib64/pkgconfig/evolution-shell-2.6.pc


Comment 16 Gianluca Parmiggiani 2006-10-17 09:19:32 UTC
Created attachment 99889 [details, diff]
fixed sonames and eshell

use only this patch with https://bugs.gentoo.org/attachment.cgi?id=97134 and sonames will be fixed (as long eshell detection), i still have problems since my beagled seems to shutdown with apparently no reason...

Debug: +email://local@local/Sent;uid=1280#0
Debug: Helper Size: VmRSS=26,4 MB, size=1,68, 17,1%
Debug: The daemon appears to have gone away.
Debug: Shutting down helper.
Segmentation fault
riekr@pegasus ~/.beagle/Log $ 
riekr@pegasus ~/.beagle/Log $ 
riekr@pegasus ~/.beagle/Log $ Debug: (1) Waiting for 1 worker...
Debug: waiting for server '/home/riekr/.beagle/socket-helper'
DebugDebug: Exiting
: Server '/home/riekr/.beagle/socket-helper' shut down

riekr@pegasus ~/.beagle/Log $
Comment 17 Daniel Drake (RETIRED) gentoo-dev 2006-10-21 09:43:14 UTC
Committed my nearly-working changes to evolution-sharp CVS if anyone is interested...
Comment 18 Akos Ladanyi 2006-10-21 14:19:17 UTC
Daniel, someone at bugs.gnome.org wrote that Ubuntu has a solution for this:
http://bugzilla.gnome.org/show_bug.cgi?id=362153
Comment 19 Gianluca Parmiggiani 2006-10-30 06:23:58 UTC
after upgrading to beagle-0.2.11 everything seems to work now.

(In reply to comment #16)
> Created an attachment (id=99889) [edit]
> fixed sonames and eshell
> 
> use only this patch with https://bugs.gentoo.org/attachment.cgi?id=97134 and
> sonames will be fixed (as long eshell detection), i still have problems since
> my beagled seems to shutdown with apparently no reason...
> 
> Debug: +email://local@local/Sent;uid=1280#0
> Debug: Helper Size: VmRSS=26,4 MB, size=1,68, 17,1%
> Debug: The daemon appears to have gone away.
> Debug: Shutting down helper.
> Segmentation fault
> riekr@pegasus ~/.beagle/Log $ 
> riekr@pegasus ~/.beagle/Log $ 
> riekr@pegasus ~/.beagle/Log $ Debug: (1) Waiting for 1 worker...
> Debug: waiting for server '/home/riekr/.beagle/socket-helper'
> DebugDebug: Exiting
> : Server '/home/riekr/.beagle/socket-helper' shut down
> 
> riekr@pegasus ~/.beagle/Log $ 
> 

Comment 20 Daniel Drake (RETIRED) gentoo-dev 2006-11-17 21:28:38 UTC
evolution-sharp-0.12.0 has been released, however I have not added it to Portage yet as I am unsure about some of the changes. See http://bugzilla.gnome.org/show_bug.cgi?id=362153#c9

That's not really a showstopper though, so if someone wants to try creating an ebuild for it and testing beagle (search your address book, not your email) that would be useful.
Comment 21 Jose daLuz 2006-11-19 14:32:11 UTC
Created attachment 102355 [details]
evolution-sharp-0.12.0.ebuild

I took the 0.11.1 ebuild from Portage and modified the e-d-s and evo DEPENDs. I didn't touch the mono or gtk-sharp lines -- I'm running 1.1.18-r1 and 2.10.0 respectively. I'm also running beagle 0.2.12-r1.

The package built without problems and, after I deleted the old EvolutionDataServerIndex, it indexed my contacts, seemingly without issues. I can find contacts with no problem.

Double-clicking on a found contact causes beagle-search to die with:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Search.Tiles.Contact.Open () [0x00021] in /var/tmp/portage/app-misc/beagle-0.2.12-r1/work/beagle-0.2.12/search/Tiles/Contact.cs:108 
  at Search.Tiles.Tile.OnButtonPressEvent (Gdk.EventButton b) [0x00026] in /var/tmp/portage/app-misc/beagle-0.2.12-r1/work/beagle-0.2.12/search/Tiles/Tile.cs:214 
  at Gtk.Widget.buttonpressevent_cb (IntPtr widget, IntPtr evnt) [0x00000] 
  at (wrapper native-to-managed) Gtk.Widget:buttonpressevent_cb (intptr,intptr)
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) Gtk.Application:gtk_main ()
  at Gtk.Application.Run () [0x00000] 
  at Gnome.Program.Run () [0x00000] 
  at Search.MainWindow.Main (System.String[] args) [0x00075] in /var/tmp/portage/app-misc/beagle-0.2.12-r1/work/beagle-0.2.12/search/Search.cs:61 

I don't know if that has anything to do with evolution-sharp or not. If not, I can file a separate bug. Here's my emerge --info:

Portage 2.1.2_rc2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-ck1-r1 x86_64)
=================================================================
System uname: 2.6.18-ck1-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Sat, 18 Nov 2006 20:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/portage/local/layman/sunrise /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/wrobel /usr/portage/local/layman/gentopia /usr/portage/local/layman/stuart-desktop"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus debug dlloader dri dvd dvdr eds elibc_glibc emboss encode esd firefox flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kdehiddenvisibility kernel_linux ldap linguas_en lzw lzw-tiff mad mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl pic png pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU userlocales video_cards_nvidia video_cards_vesa vorbis xml xml2 xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 22 Daniel Drake (RETIRED) gentoo-dev 2006-11-19 17:10:26 UTC
Fixed in portage, sorry for the long wait. Jose, please file a new bug for your beagle-search tile issue.