The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

[11.52] libglib2 dependency changes and GTK dialog toolkit not working

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

27. October 2011, 11:03:15

hiraoka

zoom2qr

Posts: 11

[11.52] libglib2 dependency changes and GTK dialog toolkit not working

Hi,

I've noticed that some of the dependencies have bounced up and down:

opera_11.50.1074_i386.deb Depends: libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libglib2.0-0 (>= 2.16.0)
opera_11.51.1087_i386.deb Depends: libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.24.0)
opera_11.52.1100_i386.deb Depends: libfontconfig1 (>= 2.5.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.16.6)
opera_12.00.1116_i386.deb Depends: libfontconfig1 (>= 2.5.0), libfreetype6 (>= 2.2.1), libglib2.0-0 (>= 2.16.0)


Since I'm stuck with libglib2.0-0 (2.20.1), the GTK dialogs worked in 11.50 and didn't in 11.51. Now, with 11.52 I'd expect GTK dialogs to work, but with opera:config#FileSelector|DialogToolkit set to either 0 or 2, Opera still defaults to X11. I've tried a clean install, but still get the X11 dialogs. The GTK dialogs work exactly as expected with Opera Next.

Are the listed dependencies correct, or are there other config options that I may need to reset? For some reason the X11 dialogs don't show symlinks, which is particularly annoying since I use them a lot to speed up navigation across my file systems.

Thanks in advance,
H

Edited to add: Just read this Problems installing Opera 11.51 on Debian 5.0 (Lenny) or Mepis 8. Whenever I come across a problem, I first look in the forums, read the stickies, and then search the forums. I saw the blog post linked in the sticky, read it, and the previous/next linked posts. After posting, I went on to read more of the blog (and very interesting it is, too!), and found the linked post. I ended up using dpkg to modify the dependencies to get 11.51 to install. And, yes, some of us still use Jaunty.
--
Opera 11.52 Build 1100 for Linux i386.
OS: Linux 2.6.29-1-netbook
Architecture: i686
Compositor active: No
Toolkit: x11
Desktop environment: Gnome
Window manager: Metacity
Screens: 0: 1024x600 depth 24,32 (default)

27. October 2011, 16:43:58

Opera Software

ruario

Posts: 980

Originally posted by hiraoka:

After posting, I went on to read more of the blog (and very interesting it is, too!)

Thanks bigsmile

Firstly, we don't support Jaunty because Ubuntu/Canonical don't support it and haven't done since 2010-10-23. Are you sure all you packages are up to date and secure? wink

Anyway, that aside If Opera works then great but if it doesn't work or fails in the future on an unsupported distro we won't change Opera to work with that distro. You would need to reproduce in a distro we do support.

X11 support is the best you will get in your current distro as we need a more recent Gtk to be able to use it for styling. However, if you have a problem with how our X11 support works, please report it. I notice you stated "X11 dialogs don't show symlinks", however I cannot reproduce this. Two ideas. If the symlink starts with a '.' right click in the file selector and choose "show hidden" and secondly make sure the "Type" is set to "All files (*)".

27. October 2011, 16:47:13

Opera Software

ruario

Posts: 980

Originally posted by hiraoka:

Since I'm stuck with libglib2.0-0 (2.20.1), the GTK dialogs worked in 11.50 and didn't in 11.51.

Just to be clear GLib is not a Gtk library and hence is not really relevant to our optional Gtk support. Quoting from the package description on my system "GLib is a library which includes support routines for C such as lists, trees, hashes, memory allocation, and many other things."

P.S. We don't list Gtk dependencies in our deb package because Opera will run without Gtk, i.e. we don't depend on it. wink

27. October 2011, 16:56:46

Opera Software

ruario

Posts: 980

Sorry for yet another reply but I just noticed this:

Originally posted by hiraoka:

The GTK dialogs work exactly as expected with Opera Next.



I haven't tested this in Jaunty (since I don't have Jaunty installed any more) but I'll take your word for it. wink

I know we have been doing some work recently related to improved styling for Opera 12 so it may be that this actually inadvertently got older versions of Gtk working again because of changes in the way we do things. If so then great, there is a fair chance you will have Gtk support when 12.00 releases. However, we would not risk back porting those changes to the 11.5x series, so until 12.00 arrives you will have to use X11.

Also no actual guarantees that Gtk styling will work with 12.00 when it is final. If it does then great but if we break it again for Jaunty we won't fix.

27. October 2011, 19:50:05

hiraoka

zoom2qr

Posts: 11

Thanks for the replies.

I know Jaunty is obsolete, and it's usually Opera not working completely that forces an upgrade.whistle As soon as I can work out which release of Mint will have the longest lifespan, I'll go with that. (Crazy, but it looks like 9 will still be supported 6 months after 11 expires).

I can understand Opera not working on unsupported distros, but the dependencies being reverted gave me hope.

Regarding the dependencies, the only obvious dependency change was libglib2. According to its package description on my system, "it is a useful general-purpose C library used by projects such as GTK+, GIMP, and GNOME", so I assumed it was relevant.doh

P.S. We don't list Gtk dependencies in our deb package because Opera will run without Gtk, i.e. we don't depend on it.


Yeah, i read the blog post. wink And ldd doesn't give me any clues, either. With ldd /usr/lib/opera*/opera{,-next}, the only difference is that opera-next requires libXft. And there appears to be no difference between the requirements of liboperagtk.so and liboperagtk2.so.

I notice you stated "X11 dialogs don't show symlinks", however I cannot reproduce this. Two ideas. If the symlink starts with a '.' right click in the file selector and choose "show hidden" and secondly make sure the "Type" is set to "All files (*)".


The links don't start with a '.', and both options are checked. The same happens in Opera Next, so i guess it must be a Jaunty thing.

Anyway, thank you very much for taking the time to reply, and up for an excellent blog! The alpha of Opera Next already fixes several big issues, and if the tab-stacking bug gets unfixed, I'll take function over style every time.

27. October 2011, 20:44:11

hiraoka

zoom2qr

Posts: 11

Apologies for the double-reply, but I've proved that I'm very easily confused.

First, the confusion with the symlinks: because I'm so used to seeing the symlinks to directories with the Gtk dialog and 'HTML Files' in the selector, I expected to see the symlinks at the top with the X11 dialog. Of course, once I changed the X11 selector to '*', so the symlinks appeared. Is it possible to set the X11 to default to show all files? Presumably it's not possible to get the X11 dialog to check for symlinks pointing to directories and list them at the top by default.

Second, in the process of checking to see if the X11 non-issue occurred in 11.50 and 11.01, I wondered if liboperagtk.so from 11.50 would work with 11.52. Well, it looks like it does because I'm currently seeing Gtk dialogs. Anyway, just to be on the safe side, I'll swap the proper one back after I post this.

Thanks again for your time.

27. October 2011, 21:17:31

Opera Software

ruario

Posts: 980

Originally posted by hiraoka:

I wondered if liboperagtk.so from 11.50 would work with 11.52. Well, it looks like it does because I'm currently seeing Gtk dialogs. Anyway, just to be on the safe side, I'll swap the proper one back after I post this.



If it works, use it! We didn't make changes to gtk styling between 11.51 and 11.52 but the build servers did upgrade and hence got new Gtk libs, which they linked against. This probably caused the breakage on older distros. But in essence the code that was used to build liboperagtk.so should be the same. Neither of the security issues that prompted the 11.51 and 11.52 upgrades have anything to do with Gtk, so it should be fine to use the old liboperagtk.so.

P.S. Clever thinking! up

3. November 2011, 21:02:34

joebones

Posts: 1

How come i can start opera in as root but not as user since the latest updates?

3. November 2011, 22:58:47

Opera Software

ruario

Posts: 980

I suspect you started it once as root (generally a bad idea) and the preference directory ownership got changed to root.

I'll assume you run bash as your shell (the default) on Jaunty. In which case issue the following to fix the situation:

sudo chown -R $USER:$(id -gn) $HOME/.opera

This should set ownership of the preference directory from root back to your default user.

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD