After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167948 - epiphany-extension: configure is hardwired to seach only for epiphany-1.2.x, which leads to a compilation failure
epiphany-extension: configure is hardwired to seach only for epiphany-1.2.x, ...
Status: RESOLVED FIXED
Product: beagle
Classification: Other
Component: General
0.0.x
Other Linux
: Normal normal
: Community
Assigned To: Beagle Bugs
Beagle Bugs
Depends on:
Blocks:
 
 
Reported: 2005-02-20 14:56 UTC by Joseph Sacco
Modified: 2005-05-28 14:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix epiphany extension build (12.55 KB, patch)
2005-03-14 13:18 UTC, Christian Persch
none Details | Review
updated patch (12.69 KB, patch)
2005-03-26 18:38 UTC, Christian Persch
committed Details | Review

Description Joseph Sacco 2005-02-20 14:56:46 UTC
Version details: 0.0.6 & 0.0.6.1
Distribution/Version: YDL-4.0.1 && garmone-2.9.91.1

configure uses pkg_config to search for required libraries. The major version
numbers for the required libraries are hard wired into code.

          ...

EPIPHANY_REQUIRED=1.2.1
LIBXML_REQUIRED=2.6.0
LIBGLIB_REQUIRED=2.4.0
LIBGTK_REQUIRED=2.4.0  
     
         ...

   if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
        echo "$as_me:$LINENO: checking for \
                  libxml-2.0 >= $LIBXML_REQUIRED \
                  libglade-2.0 \
                  glib-2.0 >= $LIBGLIB_REQUIRED \
                  gmodule-2.0 \
                  gtk+-2.0 >= $LIBGTK_REQUIRED \
                  epiphany-1.2 >= $EPIPHANY_REQUIRED" >&5

My system has both ephipany-1.2.7 [installed under /usr] and epiphany1-5.6
[installed under /opt/garnome]. The build fails with ephipany-1.2.7:

ccache gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread
-I/opt/garnome/include/libxml2 -I/opt/garnome/include/libglade-2.0
-I/opt/garnome/include/gtk-2.0 -I/opt/garnome/lib/gtk-2.0/include
-I/opt/garnome/include/atk-1.0 -I/opt/garnome/include/pango-1.0
-I/usr/X11R6/include-I/usr/include/freetype2 -I/usr/include/freetype2/config
-I/opt/garnome/include/glib-2.0 -I/opt/garnome/lib/glib-2.0/include
-I/opt/garnome/include/libgnomeui-2.0
-I/opt/garnome/include/bonobo-activation-2.0
-I/opt/garnome/include/libbonoboui-2.0 -I/opt/garnome/include/orbit-2.0
-I/opt/garnome/include/gnome-vfs-2.0 -I/opt/garnome/lib/gnome-vfs-2.0/include
-I/opt/garnome/include/gnome-vfs-module-2.0 -I/opt/garnome/include/gconf/2
-I/opt/garnome/include/libgnome-2.0 -I/opt/garnome/include/libgnomecanvas-2.0
-I/opt/garnome/include/libart-2.0 -I/opt/garnome/include/libbonobo-2.0
-I/usr/include/epiphany-1.2 -DSHARE_DIR=\"pkgdatadir\" -DG_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED
-I/opt/garnome/include -g -I/opt/garnome/include -L/opt/garnome/lib-O2 -pipe -MT
ephy-beagle-extension.lo -MD -MP -MF .deps/ephy-beagle-extension.Tpo -c
ephy-beagle-extension.c  -fPIC -DPIC -o .libs/ephy-beagle-extension.o
ephy-beagle-extension.c:34:37: epiphany/ephy-extension.h: No such file or directory
ephy-beagle-extension.c:35:41: epiphany/ephy-embed-persist.h: No such file or
directory
ephy-beagle-extension.c:36:33: epiphany/ephy-shell.h: No such file or directory
ephy-beagle-extension.c:37:32: epiphany/ephy-node.h: No such file or directory
ephy-beagle-extension.c:38:37: epiphany/ephy-bookmarks.h: No such file or directory
ephy-beagle-extension.c:51: error: syntax error before '*' token
                              ...

To work around this problem I manually edited configure to search for
epiphany-1.5.x.
Comment 1 Joe Shaw 2005-02-24 22:25:31 UTC
the epiphany extension is essentially unmaintained at this point, so we'd take
patches to fix this stuff up.
Comment 2 Christian Persch 2005-03-14 13:18:53 UTC
Created attachment 38699 [details] [review]
fix epiphany extension build

This patch brings the Epiphany extension up to date with Epiphany 1.6+.
Comment 3 Christian Persch 2005-03-26 18:38:38 UTC
Created attachment 39293 [details] [review]
updated patch

This uses the right Epiphany API to create a EphyEmbedPersist.
Comment 4 Lukas Lipka 2005-04-15 11:43:30 UTC
Before we go ahead and use this, what is the overhead of using the epiphany
extension over the EpiphanyBackend which is in dashboard. The EpiphanyBackend in
dashboard indexes ephy's cache. That way we would drop the ephiphany extension
dependency.
Comment 5 Christian Persch 2005-04-23 14:48:12 UTC
The Epiphany backend in dashboard only takes the bookmarks and history entries
from the on-disk files. This extension instead sends the pages to beagle as the
user browses to them. That's the same thing that the firefox extension does; so
I don't see why you would include that one but not the Epiphany extension.
Comment 6 Joe Shaw 2005-04-25 19:21:09 UTC
Christian, this looks fine to commit.  Thanks for taking the time on this.
Comment 7 Christian Persch 2005-05-28 14:11:00 UTC
Committed.