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 311642 - version-2.11.2 has a small error in the configure file
version-2.11.2 has a small error in the configure file
Status: RESOLVED FIXED
Product: gnome-python-extras
Classification: Deprecated
Component: general
2.11.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-26 18:34 UTC by Joseph Sacco
Modified: 2005-07-27 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joseph Sacco 2005-07-26 18:34:06 UTC
Version details: 2.11.2
Distribution/Version: YDL-4.0.1

Here is the fix:

--- gnome-python-extras-2.11.2/configure-       2005-05-16 19:20:15.000000000 -0400
+++ gnome-python-extras-2.11.2/configure        2005-07-26 14:24:49.000000000 -0400
@@ -21673,8 +21673,8 @@
 build_gtkmozembed=false

 # Check whether --with-gtkmozembed or --without-gtkmozembed was given.
-if test "${with_gtkmozembed+set}" = set; then
-  withval="$with_gtkmozembed"
+if test "${with-gtkmozembed+set}" = set; then
+  withval="$with-gtkmozembed"
   mozpackage=$withval
 else
   mozpackage=any
Comment 1 Gustavo Carneiro 2005-07-26 19:20:56 UTC
The 'configure' file is generated from 'configure.ac' by autoconf, therefore
your patch doesn't help.  I don't have enough expertise to debug autoconf... :|
Comment 2 James Henstridge 2005-07-26 19:40:59 UTC
"with-gtkmozembed" is not a valid shell variable name which makes the fix seem
quite dubious.  What bug does the change fix?
Comment 3 Joseph Sacco 2005-07-26 20:20:21 UTC
The patch "helps" in the sense that demonstrates what is wrong with the
configure file taken from the gnome-python-extras-2.11.2 tarball currently
stored on the GNOME ftp site.

From  "configure --help":

                          ...
     --with-gtkmozembed=mozilla|firefox
                          package that provides libgtkmozembed

                          ...

Try this:
Run configure with:

           --with-gtkmozembed=firefox

What you will get is mozilla instead. The tests in the configure file fail
because of typos. The patch fixes the typos.

-Joseph
Comment 4 James Henstridge 2005-07-26 20:57:36 UTC
The patch you provided converts valid shell code to invalid shell code -- the
autoconf generated code uses "with_gtkmozembed" as a variable name instead of
"with-gtkmozembed" because "with-gtkmozembed" is not a valid shell variable
name.  Your patch is not fixing typos.

So your actual bug report is that passing "--with-gtkmozembed=firefox" doesn't
give the result you expect?
Comment 5 Joseph Sacco 2005-07-27 00:47:44 UTC
Consider a linux system with:

* mozilla-1.7.3 
installed under /usr

* firefox-1.0.5
installed under /opt/garnome

* PKG_CONFIG_PATH
set to: 
/opt/garnome/lib/pkgconfig:/usr/lib/pkgconfig:/opt/garnome/lib/python2.4/site-packages/gtk-2.0

We would like to build and install gnome-python-extras-2.11.2 under /opt/garnome
using the header files from firefox,ie,
 
     --with-gtkmozembed=firefox

The configuration file from taken from the gnome-python-extras-2.11.2 tarball
currently stored on the GNOME ftp site will *fail* to properly detect firefox.
Specifically,

                        ...
build_gtkmozembed=false

# Check whether --with-gtkmozembed or --without-gtkmozembed was given.
if test "${with_gtkmozembed+set}" = set; then
  withval="$with_gtkmozembed"
  mozpackage=$withval
else
  mozpackage=any
fi;

will fail to recognize that the configuration argument,

    --with-gtkmozembed=firefox 

was given. As a consquence of this failure, a test will be conducted for the
existence of mozilla-gtkmozembed.pc, which will be found under /usr/lib/pkgconfig.

If the patch I sent is applied to the configuration file, firefox will be
properly identified.

-Joseph
Comment 6 Gustavo Carneiro 2005-07-27 11:02:56 UTC
The option --with-gtkmozembed _does_ work at least on my system; I _did_ test
this when it was introduced in the 2.9.x series.  In any case,
gnome-python-extras looks for firefox before mozilla by default; so, if you want
firefox you  may not pass any --with-gtkmozembed argument.

I think there must be something wrong with your system.  Perhaps your shell?...
Comment 7 James Henstridge 2005-07-27 13:06:35 UTC
It does look like there is a possible bug in the configure logic.  In the case
where mozpackage != "any", the following is done:

case $mozpackage in
     firefox) mozpackage_required_version=firefox_required_version ;;
     mozilla) mozpackage_required_version=mozilla_required_version ;;
     *) AC_MSG_ERROR([--with-gtkmozembed argument must be either 'mozilla' or
'firefox'])
esac

PKG_CHECK_MODULES(GTKMOZEMBED, [mozilla-gtkmozembed >= $mozpackage_required_version,
                                gtk+-2.0            >= gtk_required_version],
  build_gtkmozembed=true,
  build_gtkmozembed=false)


So even if mozpackage=firefox, it will be looking for "mozilla-gtkmozembed"
instead of "firefox-gtkmozembed".  This is probably the bug Joseph ran into.
Comment 8 Gustavo Carneiro 2005-07-27 13:16:07 UTC
Ack! I guess I didn't test well enough :|

It should have been:
PKG_CHECK_MODULES(GTKMOZEMBED, [$mozpackage-gtkmozembed >=
$mozpackage_required_version,

That's what meant, anyway...
Comment 9 Joseph Sacco 2005-07-27 13:34:30 UTC
That works...  Good!!!

Gustavo, James... Thanks for the assistance.


Be well,

-Joseph