xulrunner 1.9 support for chmsee 1.0.0

Bug #232402 reported by Saivann Carignan
70
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chmsee (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Fix Released
Medium
Unassigned

Bug Description

I would like to ask for a SRU for chmsee 1.0.0 for Hardy.

PROBLEM : Current chmsee 1.0.0-1ubuntu1 FTBFS and crashes at start in Hardy because it can't find xulrunner 1.9 libraries. We can consider that this package currently comes in Hardy in a broken state. Creating links to the correct xulrunner paths is a workaround that works to avoid crash at start.

SOLUTION : Use XPCOM standalone glue, as described in ubuntu wiki : https://wiki.ubuntu.com/XulrunnerGecko

Static obsolete W-rpath,/usr/lib/xulrunner-1.9b3" in debian/rules has been dropped and DEB_CONFIGURE_EXTRA_FLAGS += --with-gecko=libxul has been added.

chmsee 1.0.1 is available in intrepid and support xulrunner 1.9 standalone glue. Relevant parts of the source code of chmsee 1.0.1 has been imported as a patch for the current 1.0.0 package to fix compatibility with xulrunner 1.9.

Proposed patches built successfully in my Hardy PPA :
deb http://ppa.launchpad.net/saivann/ubuntu hardy main
deb-src http://ppa.launchpad.net/saivann/ubuntu hardy main

description: updated
Changed in chmsee:
importance: Undecided → Medium
Changed in chmsee:
assignee: nobody → saivann
status: New → In Progress
Revision history for this message
Saivann Carignan (oxmosys) wrote :

This will be fixed when final xulrunner release will be included in Hardy (not the b5)

Revision history for this message
Saivann Carignan (oxmosys) wrote :

I would like to ask the Sponsors for universe and MOTU SRU to look at the patches that I provided which fix this issues for intrepid and as a SRU for hardy.

This debdiff also close bug 204487 which prevent the use of chmsee in hardy.

Changed in chmsee:
assignee: saivann → nobody
status: In Progress → Confirmed
Revision history for this message
Saivann Carignan (oxmosys) wrote :
Revision history for this message
Saivann Carignan (oxmosys) wrote :
description: updated
Changed in chmsee:
status: Confirmed → Triaged
Revision history for this message
Luca Falavigna (dktrkranz) wrote : Re: chmsee FTBFS in Hardy

ACK from motu-sru given that it will fix bug #204487 too.

Changed in chmsee:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
StefanPotyra (sistpoty) wrote :

intrepid: doesn't seem to work:
>> chmsee
chmsee: symbol lookup error: chmsee: undefined symbol: gtk_moz_embed_set_comp_path

let's take a look:

corresponding Depends line of resulting deb:
Depends: libc6 (>= 2.7-1), libchm1 (>= 0.39-5), libgcc1 (>= 1:4.1.1-21), libglade2-0 (>= 1:2.6.1), libglib2.0-0 (>= 2.15.6), libgtk2.0-0 (>= 2.12.0), libpango1.0-0 (>= 1.19.4), libssl0.9.8 (>= 0.9.8f-1), libstdc++6 (>= 4.1.1-21), libxml2 (>= 2.6.27), python, python-chm

comparing to NEEDED entries of chmsee
objdump -p $(which chmsee) | grep NEEDED
  NEEDED libgthread-2.0.so.0
  NEEDED libglade-2.0.so.0
  NEEDED libgtk-x11-2.0.so.0
  NEEDED libxml2.so.2
  NEEDED libgdk-x11-2.0.so.0
  NEEDED libgdk_pixbuf-2.0.so.0
  NEEDED libpango-1.0.so.0
  NEEDED libgobject-2.0.so.0
  NEEDED libglib-2.0.so.0
  NEEDED libchm.so.1
  NEEDED libcrypto.so.0.9.8
  NEEDED libxul.so
  NEEDED libxpcom.so
  NEEDED libpthread.so.0
  NEEDED libstdc++.so.6
  NEEDED libgcc_s.so.1
  NEEDED libc.so.6

so why is libxul.so not found in the package's depends line (or rather why does it show libxul.so instead of libxul.so.0d?)

Revision history for this message
StefanPotyra (sistpoty) wrote :

aha. so xulrunner-1.9b5 also ships a libxul.so inside /usr/lib/xulrunner-1.9b5/libxul.so. During package build, *this* gets used as a dependency of xulrunner-1.9-dev.

Too sad, but that's not what is getting used for the result on my system:
ldd $(which chmsee)
        libxul.so => /usr/lib/libxul.so (0x00007f3380266000)

Revision history for this message
StefanPotyra (sistpoty) wrote :

Alexander, maybe you can shed some light on this?

Revision history for this message
Alexander Sack (asac) wrote :

As long as you try to use -rpath in your LDFLAGS, you are doing something wrong. You have to use the standalone glue, which wouldn't attempt to link against libxul.so at all.

Look https://wiki.ubuntu.com/XulrunnerGecko to get some basic infos.

Revision history for this message
Alexander Sack (asac) wrote :

same for bug #204487 ... if you use standalone glue you wont see those issues at all.

Revision history for this message
Saivann Carignan (oxmosys) wrote :

Asac : Thanks for this relevant help. However, I'm still not able to create a correct package using the standalone glue.

If I change :
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=" -Wl,--as-needed,-rpath,/usr/lib/xulrunner-1.9

to :
CFLAGS=pkg-config --cflags libxul-embedding-unstable

or just add :
CFLAGS=pkg-config --cflags libxul-embedding-unstable

I always end with that error :
configure: error: C compiler cannot create executables
See `config.log' for more details.

I'm pretty sure that I do something wrong, any clue?

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package compiles successfully in Intrepid.

Changed in chmsee:
status: Triaged → Fix Released
Changed in chmsee:
assignee: nobody → saivann
status: Confirmed → In Progress
description: updated
Revision history for this message
Saivann Carignan (oxmosys) wrote :
Changed in chmsee:
assignee: saivann → nobody
status: In Progress → New
Revision history for this message
Saivann Carignan (oxmosys) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

the patch looks good. Given that chmsee currently doesnt work, lets initiate SRU process for hardy/universe.

Changed in chmsee:
status: New → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

ok, i fixed the Maintainer field to be:
 Maintainer: Ubuntu MOTU Developers <email address hidden>

and uploaded that to hardy-proposed. Thanks for your work.

Changed in chmsee:
status: Confirmed → In Progress
Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted into -proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in chmsee:
status: In Progress → Fix Committed
Revision history for this message
Saivann Carignan (oxmosys) wrote :

From my side, I clicked on almost every button and options available in chmsee and opened a few chm files and chmsee in hardy-proposed works as expected.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Its certainly an improvement from current chmsee in hardy which doesn't even start but segfaults on any chm file I tried to open (or segfaults on exit). This is on amd64 arch.

Revision history for this message
ShadowMax76 (shadowmax76) wrote :

Verification done (x86):

- chmsee 1.0.0-1ubuntu1 (hardy): crash at startup;
- chmsee 1.0.0-1ubuntu1.8.04.1 (hardy-proposed): correctly start, stop and open chm files.

Revision history for this message
Saivann Carignan (oxmosys) wrote :

To SRU team and ShadowMax : Verification seems to be complete, can you set the "verification-done" tag and push to hardy-updates?

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in chmsee:
status: Fix Committed → Fix Released
Revision history for this message
Marlin Forbes (datashaman) wrote :

I'm having similar problems with starting thunderbird, which emits warnings about not finding libxul.so. I solved the issue by adding a file /etc/ld.so.conf.d/xulrunner.conf with the folder for the latest xulrunner:

/usr/lib/xulrunner-1.9.2.3

This solved my problem with ThunderBird 3.0.4.

Perhaps the xulrunner .deb can create this file on installation?

Revision history for this message
Marlin Forbes (datashaman) wrote :

Oops, I'm running:

lucid with kernel:

Linux istio 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux

Revision history for this message
Marlin Forbes (datashaman) wrote :

Soz, the original error I received is:

LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so [libxul.so: cannot open shared object file: No such file or directory]

when executing thunderbird.

Revision history for this message
Micah Gersten (micahg) wrote :

@Marlin Forbes

Please file a new bug against thunderbird.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.