Closed Bug 630963 Opened 14 years ago Closed 14 years ago

about:support doesn't work on some Linux distributions

Categories

(Thunderbird :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(blocking-thunderbird5.0 alpha3+)

RESOLVED FIXED
Thunderbird 3.3a3
Tracking Status
blocking-thunderbird5.0 --- alpha3+

People

(Reporter: rain1, Assigned: rain1)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently we assume that the libraries libglib-2.0.so, libgobject-2.0.so, and libgio-2.0.so exist. Turns out that it isn't the case for Fedora 12 and probably other distros -- the files that they do have are called libglib-2.0.so.0 etc. We could either remove the Linux code entirely, or catch the exceptions and display "(Unknown location)" if any of the libraries we need aren't found.
Attached patch Option 1: Remove Linux code (obsolete) — Splinter Review
Roland, thoughts? Or would you rather we fix it instead? :)
Assignee: nobody → sid.bugzilla
Status: NEW → ASSIGNED
Attachment #509189 - Flags: feedback?(roland)
Blocks: 628204
This is the other thing we could do, though I think it makes our code significantly more complex.
Comment on attachment 509205 [details] [diff] [review] Option 2: fix library names and handle missing libraries This passed try server.
Attachment #509205 - Flags: review?(bwinton)
OpenSUSE has both libg*-2.0.so and libg*-2.0.so.0 versions (as symlinks); is it certain that libg*-2.0.so.0 exist or may it be needed to probe for either?
the .0 version should always exist, see <http://www.faqs.org/docs/Linux-HOWTO/Program-Library-HOWTO.html#AEN46>. The non-.0 version doesn't seem to be as widely available.
my thoughts: 1. if it's a pain, *temporarily* remove the linux code (or just the code for displaying profile whatever is easier or just display unknown location; again whatever is easiest) since linux users are less than 5% of our users 2. in the long term,though, i.e. when we release 3.3, we need to support Ubuntu and hopefully (I guess thinking out loud) the top 3 other desktop Linux distros whatever they may be (I am quite happy with Ubuntu for desktop and haven't used other distros for the desktop recently)
Comment on attachment 509189 [details] [diff] [review] Option 1: Remove Linux code OK, I'm going to count that as a negative then.
Attachment #509189 - Attachment is obsolete: true
Attachment #509189 - Flags: feedback?(roland)
blocking-thunderbird5.0: --- → alpha3+
(In reply to comment #0) > Currently we assume that the libraries libglib-2.0.so, libgobject-2.0.so, and > libgio-2.0.so exist. Turns out that it isn't the case for Fedora 12 and > probably other distros -- the files that they do have are called > libglib-2.0.so.0 etc. Only the versioned library names are supposed to be used. The non versioned ones are not installed usually as they are only used for development. So accessing libXYZ-2.0.so is just wrong at runtime. That holds true for "normal" Linux libraries (not talking about nspr or nss ;-)). A disadvantage is that those version symbols (aka filenames) change when API changes occur in future versions.
Note there is a related bug: bug 624530
Thanks for the details, Mike. I think the version bump due to the API change is unavoidable, since then our ctypes defs might need to change too.
Comment on attachment 509205 [details] [diff] [review] Option 2: fix library names and handle missing libraries Sorry about the delay on this review. The code looks good, and the changes make sense to me. r=me. Thanks, Blake.
Attachment #509205 - Flags: review?(bwinton) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: