Bug 480989 - missing dependency on sqlite
missing dependency on sqlite
Product: Fedora
Classification: Fedora
Component: xulrunner (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Martin Stransky
Fedora Extras Quality Assurance
: EasyFix, Reopened
: 487676 549576 553036 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2009-01-21 11:03 EST by Stepan Kasal
Modified: 2018-04-11 03:29 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-11-18 05:24:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
spec patch (1.59 KB, patch)
2009-06-13 12:58 EDT, Stepan Kasal
no flags Details | Diff
spec patch 2 (2.17 KB, patch)
2009-06-16 10:34 EDT, Stepan Kasal
no flags Details | Diff
a safer patch (1.58 KB, patch)
2009-06-18 06:46 EDT, Stepan Kasal
no flags Details | Diff
patch to engrave the real sqlite version (1.99 KB, patch)
2009-10-27 10:43 EDT, Stepan Kasal
no flags Details | Diff

  None (edit)
Description Stepan Kasal 2009-01-21 11:03:17 EST
On my randomly updated Fedora, I issued "yum update firefox"
I've got
firefox-3.1-0.4.beta2.fc11 and

But when I started firefox, an error message box said:
"The application has been updated, but your version of SQLite is too old and the application cannot run.   [ OK ]"

So I updated my sqlite-3.5.9-1.fc10 to the current sqlite-3.6.7-1.fc11 and voila, it works.

I believe firefox should require sqlite >= x.y.z.
Comment 1 John Ellson 2009-05-06 17:31:47 EDT
I'm getting the same problem on Rawhide today with:


I don't see any updates to these, even on Koji.

I don't understand what changed.  None of these have been updated in the last few days and my firefox was OK this morning before today's updates which also didn't change these (according to the announcement anyway)!
Comment 2 Christopher Aillon 2009-05-07 11:51:28 EDT
That's very strange.  Beta 4 requires sqlite 3.6.10 or greater.  The plan was to bump to 3.6.13 but that didn't make it into the beta.  Final will require 3.6.14.  I just checked and there's just a versioned BuildRequires in xulrunner.spec (which is where this needs to live), and no explicit versioned Requires but adding one won't help in this case since >=3.6.10 exists on the system per comment #1!  However, yes, AFAIK nothing got updated so I'm not quite sure what to make of this...
Comment 3 John Ellson 2009-05-07 18:42:19 EDT
Can you reproduce this?  Are there any other reports?   I'm trying to work out if I need to probe deeper on my local system, or if I should just wait for an update?
Comment 4 Christopher Aillon 2009-05-08 23:52:35 EDT
I just fully updated to rawhide, and no, I can't reproduce this...  Submitting this comment using rawhide's FF.  Perhaps strace output could help figure this out?
Comment 5 John Ellson 2009-05-09 06:33:53 EDT
Can you give me clue, or point me at a howto, on running strace on firefox?
All I can see is reams of X11 polling.

I tried running "firefox -g -d gdb"  but I'm confused by all the threads.  Is there a howto?

BTW.  This may be x86_64 specific.   I don't get the same problem on an i386 machine of the same Rawide vintage, but with a smaller set of rpms installed.

I tried "firefox -safemode", but same result, suggesting that the problem is not caused by extensions or themes.

I've tried moving aside: /usr/lib64/moz* /usr/lib64/fire* $HOME/.moz* $HOME/.fire*
then "yum reinstall firefox xulrunner sqlite"
but no change.
Comment 6 John Ellson 2009-05-09 18:50:46 EDT
OK, problem solved, my bad.

I had an old copy of sqlite installed from source.

Sorry to bother you.
Comment 7 Martin Stransky 2009-05-29 08:46:40 EDT
okay, closing as notabug.
Comment 8 Stepan Kasal 2009-06-13 12:07:34 EDT
I'm experiencing the problem again.


The spec file says sqlite > 3.6.10 is BuildRequired and Required.
But this version of xulrunner was actually built against sqlite 3.6.14 and it will check on startup that that the sqlite actually used is >= 3.6.14.

I'm going to fix this by adding the following require to xulrunner:

Requires: sqlite >= %(rpm -q --qf %%{VERSION} sqlite)
Comment 9 Stepan Kasal 2009-06-13 12:54:01 EDT
I comitted my fix to cvs as xulrunner-1.9.1-0.21.beta4.fc12.
(No rebuild yet.)
Comment 10 Stepan Kasal 2009-06-13 12:58:11 EDT
Created attachment 347753 [details]
spec patch

Oops, uberpackager spell is not enough.
This is the patch to be committed
Comment 11 Matěj Cepl 2009-06-16 10:05:12 EDT
*** Bug 487676 has been marked as a duplicate of this bug. ***
Comment 12 Stepan Kasal 2009-06-16 10:34:28 EDT
Created attachment 348120 [details]
spec patch 2

Second iteration.

The runtime check is based on checking SQLITE_VERSION_NUMBER from sqlite3.h; that means that the fourth commponent of version string is ignored.  For example, versions and 3.6.14 are equal.

I considered four places where the version can be taken from:
- rpm -q sqlite
- grep sqlite3.h
- sqlite3 --version
- pkg-config --modversion sqlite3

I was told not to use rpm -q.
All the other ways need computing the name "sqlite3" from the minimum version macro.

I tried to use SQLITE_VERSION_NUMBER, as this is exactly what is used runtime but the code I got was not a one-liner, I had to add the awk script as Source1:.
So I threw that out.

This patch gets the version number reported by sqlite3 and truncates it to three fields.

How do you like it?
Comment 13 Martin Stransky 2009-06-18 05:30:52 EDT
added to rawhide with some modifications (removed version restriction & switched to pkg-config).
Comment 14 Mamoru TASAKA 2009-06-18 06:20:00 EDT
I guess what pidgin.spec does for glib2 dependency can
be applied to xulrunner.spec:


# Require Binary Compatible glib
# returns bogus value if glib2-devel is not installed in order for parsing to succeed
# bogus value wont make it into a real package
%define glib_ver %([ -a %{_libdir}/pkgconfig/glib-2.0.pc ] && pkg-config --modversion glib-2.0 | cut -d. -f 1,2 || echo -n "999")
BuildRequires:	glib2-devel
Requires:       glib2 >= %{glib_ver}
Comment 15 Stepan Kasal 2009-06-18 06:43:51 EDT
Indeed, I invented the same trick.

In reply to comment #14, a few nits:
> [ -a %{_libdir}/pkgconfig/glib-2.0.pc ]

I would use -e instead of -a, it means the same and cannot be confused with the and operator.  Or even better, I'd use -r.
And even better, pkg-config has an option --silence-errors.
Comment 16 Stepan Kasal 2009-06-18 06:46:15 EDT
Created attachment 348410 [details]
a safer patch

This is a variant with a fallback branch.  Again, it applies to the up-to-date rawhide.
Comment 17 Stepan Kasal 2009-06-18 06:50:16 EDT
That patch from comment #16 shoudl work in koji.
But I cannot check it easily, the problem happened during checkout for srpm build, which I cannot test not having access to cvs.
Comment 18 Stepan Kasal 2009-10-27 10:43:14 EDT
Created attachment 366281 [details]
patch to engrave the real sqlite version

The patch has been updated against current devel.

It contains a fallback so that the specfile can be parsed even on machines without pkg-config installed.

Moreover, there is a sanity check at the begining of %build to prevent creating a build with crippled dependencies.

OK to apply this patch?
Comment 19 Bug Zapper 2009-11-16 04:46:34 EST
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
Comment 20 Martin Stransky 2009-11-18 05:24:25 EST
Added to rawhide.
Comment 21 Martin Stransky 2010-01-07 06:29:22 EST
Added to xulrunner-
Comment 22 Martin Stransky 2010-01-07 06:30:00 EST
*** Bug 549576 has been marked as a duplicate of this bug. ***
Comment 23 Martin Stransky 2010-01-07 06:30:04 EST
*** Bug 553036 has been marked as a duplicate of this bug. ***
Comment 24 Fedora Update System 2010-01-07 07:52:57 EST
xulrunner- has been submitted as an update for Fedora 12.
Comment 25 Fedora Update System 2010-01-08 15:16:03 EST
xulrunner- has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 26 Mike Park 2010-01-09 17:02:45 EST
I've got the same problem. Here are the problem versions:

## same problem re: SQLite version being too old
[emparq@bart:~]$ rpm -q firefox xulrunner

...and uninstalling and re-installing the older versions of these two packages still work for me:

## reinstalling older versions of just 'firefox' and 'xulrunner'
[emparq@bart:~]$ sudo rpm -e --nodeps xulrunner firefox && sudo yum install -y --disablerepo=updates firefox xulrunner

## older versions that are still working after the above command
[emparq@bart:~]$ rpm -q firefox xulrunner
Comment 27 Martin Stransky 2010-01-11 05:14:20 EST
Which sqlite package do you have installed?
Comment 28 Mike Park 2010-01-12 03:28:52 EST
Here you go:

[emparq@bart:~]$ rpm -qa sqlite

Note You need to log in before you can comment on or make changes to this bug.