Opened 18 years ago

Closed 18 years ago

#1685 closed defect (fixed)

Does not build with dependencies required according to book, but newer version of libgsf does

Reported by: Christian.Bendele@… Owned by: Randy McMurchy
Priority: high Milestone: 6.2.0
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

My System is LFS-gcc4 from svn built within the last 20 days, always using newest svn (host system was lfs 5.0). Instead of gcc-4.0.1 gcc-4.0.2 was used. BLFS was built within the last 10 days always using newest svn. All dependencies that the book states for libgsf (glib, libxml, xml::parser) built successfully, as did xfce4, firefox, thunderbird, xchat, cups and ghostscript with all their required dependencies. Nothing else was installed yet on the clean lfs system.

Installing libgsf-1.12.3 according to the book I failed at ./configure step. The last lines of output from "./configure --prefix=/usr" are:

configure: WARNING: thumbnailer will not be built, unable to find gconftool-2 configure: error: conditional "GCONF_SCHEMAS_INSTALL" was never defined. Usually this means the macro was only invoked conditionally.

The same happend with or without any possible combination of the "--without-gnome and --disable-schemes-install" flags which I tried.

I then proceeded to install the newest version of libgsf (1.13.2 as of this writing) instead of the older version contained in the book. The newer version of libgsf configured and build without any problems and errors in the otherwise unchanged environment. So maybe the way to go is just update libgsf in the book to the newest version.

Change History (5)

comment:1 by Randy McMurchy, 18 years ago

Milestone: future6.2
rep_platform: PCAll

Unless the OP made a typo, he didn't use the correct command to disable GConf. Nonetheless, since GConf is "optional" I need to put the following command paramater on the configure script line.

--disable-schemas-install

It would be nice if the OP could test this, as going to the dev release of libgsf is not really desireable, and it should work fine as I looked at the configure script and it *should* work.

Leaving this bug open as I cannot test it (GConf is installed on my test platform).

I am going to add the parameter to the current instructions, as I believe it is the correct fix.

comment:2 by Randy McMurchy, 18 years ago

Doing some further testing, there is definately a bug in the configure script. I'll have to do some tweaking to see if I can't get it to respect the flags passed to configure.

comment:3 by Randy McMurchy, 18 years ago

Owner: changed from blfs-book@… to Randy McMurchy

Here is a patch that will fix the configure script so that the package builds without GConf installed. It isn't the best fix that could be done, as it leaves some messages in the output from configure that leads you to believe that Schemas are going to be installed, but it configures, makes and installs correctly. After applying this patch, no arguments need to be passed to configure if no GNOME components are installed. It will automatically check and see if GNOME exists, and act appropriately.

--- libgsf-1.12.3-orig/configure 2005-09-05 20:56:18.000000000 -0500 +++ libgsf-1.12.3/configure 2005-11-04 11:59:53.000000000 -0600 @@ -24130,7 +24130,7 @@

if test "x$GCONFTOOL" = "xno"; then

{ echo "$as_me:$LINENO: WARNING: thumbnailer will not be built, unable to

find gconftool-2" >&5

echo "$as_me: WARNING: thumbnailer will not be built, unable to find

gconftool-2" >&2;} -else +fi

if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then

GCONF_SCHEMA_CONFIG_SOURCE=gconftool-2 --get-default-source

@@ -24188,7 +24188,6 @@

fi

-fi

if test "x$GCONFTOOL" != "xno"; then

comment:4 by Randy McMurchy, 18 years ago

Status: newassigned

comment:5 by Randy McMurchy, 18 years ago

Resolution: fixed
Status: assignedclosed

Added a patch to the libgsf instructions so that the configure script properly discovers GConf if it is installed. I tested both with and without GNOME, simulating without GNOME by renaming the gconftool-2 program (I also had to pass --without-gnome during simulation).

Everything seemed to work just fine. With the patch, configure properly discovers GConf if it is installed, and doesn't bomb during configure if it is not installed. No need for additional configure switches.

Note: See TracTickets for help on using tickets.