Opened 11 years ago

Closed 10 years ago

#3449 closed bug (fixed)

Libraries installed with Net Surf cause trouble with Haiku built Firefox

Reported by: scottmc Owned by: mmu_man
Priority: normal Milestone: R1
Component: Applications Version: R1/pre-alpha1
Keywords: Cc: fredrik.holmqvist@…
Blocked By: Blocking: #3509
Has a Patch: no Platform: All

Description

Libexpat, libiconv, libjpeg, and/or libxml2 that get installed with net surf into /home/config/lib take priority over ones installed into /boot/common/lib. The ones included with net surf do not seem to have been compiled on haiku and cause libnetwork to drop into hrev5 compatibility mode. We tried removing these libs from /boot/home/config/lib and installing haiku built versions from haikuports into /boot/common/lib and all is fine with firefox again.

Attachments (1)

behappy-bt-with-new-netsurf.log (3.0 KB) - added by scottmc 10 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 11 years ago by mmadia

excellent! thanks for confirming this scott.

In the next day or so, I'll create an updated BonEcho package for use with OptionalPackages.

comment:2 Changed 11 years ago by scottmc

Perhaps we need to strip out the home folder from the netsurf.zip file and add shared-lib Optional Packages for dependent libs, such as libxml2 and libjpeg.

Then update OptionalPackage like so:

--- OptionalPackages	2009-02-10 22:18:06.000000000 +0000
+++ OptionalPackages.netsurf	2009-02-16 23:44:51.000000000 +0000
@@ -43,7 +43,7 @@
 OptionalPackageDependencies APR-util : APR ;
 OptionalPackageDependencies BeHappy : BeBook NetSurf ;
 OptionalPackageDependencies Development : Perl ;
+OptionalPackageDependencies Firefox : OpenSSL 
-OptionalPackageDependencies NetSurf : OpenSSL ;
+OptionalPackageDependencies NetSurf : OpenSSL libxml2 libjpeg;
 OptionalPackageDependencies OpenSSH : OpenSSL ;
 OptionalPackageDependencies Subversion : OpenSSL ;

Oh and I was wrong about libexpat, as netsurf just installs libiconv.so, libjpeg.so and libxml2.so. And since libiconv.so is already part of the HaikuImage with just need to add libxml2 and libjpeg for netsurf.

Note that vlc also makes use of libiconv.so but from its own lib folder.

comment:3 Changed 11 years ago by anevilyak

Component: - GeneralApplications
Owner: changed from axeld to mmu_man

comment:4 Changed 11 years ago by umccullough

Version: R1 development

Seems an even better solution would be to ditch the R5 version of NetSurf and replace it with a Haiku native version :) (both gcc2 and gcc4 would be awesome!)

comment:5 Changed 11 years ago by umccullough

Version: R1 development

dunno why it deleted the version

comment:6 Changed 11 years ago by mmu_man

Status: newassigned

Yes sorry the current package is built for R5 BONE, so it includes those libs. It also requires them there to work in BeHappy, else it doesn't find them in its own %A/lib. A quick workaround would be to repackage it without those. I don't have Haiku set for development yet.

comment:7 Changed 11 years ago by mmadia

Updating the NetSurf is something on my todo list. At the very latest, it'll be updated by the time I release a new BonEcho for OptionalPackages.

comment:8 Changed 10 years ago by mmadia

See #3488 for Haiku-gcc2 NetSurf package.

This updated package can co-exist peacefully with Haiku-gcc2 Bezilla builds.

Other than that, it has not been thoroughly tested.

comment:9 Changed 10 years ago by scottmc

BeHappy isn't happy, perhaps it's got hard coded links? Netsurf defaults to a missing webpage, remove the /welcome from the default url and it finds it. Also many of the menu items seem to be not working, including "about", quit is working though.

Changed 10 years ago by scottmc

comment:10 Changed 10 years ago by mmadia

Re: "defaults to a missing webpage" -- Try reloading the page a few times. It'll display.

#3488 explains why i believe NetSurf to be suffering from dropped network data.

Uninstalling NetSurf:

home/config/lib/libxml2.so
home/config/lib/libjpeg.so
home/config/lib/libiconv.so
apps/netsurf/

comment:11 Changed 10 years ago by anevilyak

Blocking: 3509 added

comment:12 Changed 10 years ago by tqh

This issue pops up far to often on #haiku, is there anything we/I can do to move this along?

comment:13 Changed 10 years ago by tqh

Cc: fredrik.holmqvist@… added

comment:14 Changed 10 years ago by mmadia

Resolution: fixed
Status: assignedclosed

fixed in changeset:30240 due to #3785

Note: See TracTickets for help on using tickets.