Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448774 - x11-drivers/nvidia-drivers: nvidia-settings breaks with x11-libs/pango-1.32.5 due to renamed libpangox.so
Summary: x11-drivers/nvidia-drivers: nvidia-settings breaks with x11-libs/pango-1.32.5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-27 06:09 UTC by Nikos Chantziaras
Modified: 2013-03-06 03:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against nvidia-drivers-310.19.ebuild (nvidia-drivers-310.19-libpango.patch,328 bytes, patch)
2012-12-27 06:18 UTC, Nikos Chantziaras
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2012-12-27 06:09:49 UTC
x11-libs/pango got updated from 1.30.1 to 1.32.5. The new version does not provide a libpangox.so library anymore. The new name is libpango.so. nvidia-settings can't be executed anymore because of that:

nvidia-settings: error while loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory

As a workaround, I did:

  ln -s /usr/lib64/libpango-1.0.so.0 /usr/local/lib/libpangox-1.0.so.0

And added /usr/local/lib in an ld.so.conf.d/ file.

Patching the nvidia-settings binary to use the new name also works:

  sed -i 's/libpangox-1.0.so.0/libpango-1.0.so.0\x00/g' nvidia-settings
Comment 1 Nikos Chantziaras 2012-12-27 06:18:06 UTC
Created attachment 333438 [details, diff]
Patch against nvidia-drivers-310.19.ebuild

This is a patch for nvidia-drivers-310.19.ebuild that modifies the nvidia-settings binary to load libpango instead of libpangox.
Comment 2 Paul Bredbury 2012-12-28 05:40:06 UTC
Just recompile nvidia-settings. Far better than hacking a binary.

Source code is in ftp://download.nvidia.com/XFree86/nvidia-settings/
Comment 3 Nikos Chantziaras 2012-12-28 09:37:57 UTC
(In reply to comment #2)
> Just recompile nvidia-settings. Far better than hacking a binary.
> 
> Source code is in ftp://download.nvidia.com/XFree86/nvidia-settings/

I know. There's media-video/nvidia-settings already for that. But it's not maintained together with nvidia-driver and often breaks stuff. Also, there are instances where NVidia is slow in releasing nvidia-settings. This block the driver then.

The ugly solution seems to be the best in this case.
Comment 4 Paul Bredbury 2012-12-28 11:47:11 UTC
(In reply to comment #3)
> But it's not
> maintained together with nvidia-driver and often breaks stuff. Also, there
> are instances where NVidia is slow in releasing nvidia-settings.

Can you clarify and back up those statements? Not maintained? Surely they are what Nvidia's nvidia-settings binary are compiled from, so how could Nvidia's binary be better?

I've only noticed a delay of a small number of days in Nvidia's other files being made available, in the last year. Hardly a problem, and nudging the Nvidia guys does the trick, e.g.:

http://www.nvnews.net/vbulletin/showthread.php?t=184405
Comment 5 Nikos Chantziaras 2012-12-28 11:52:51 UTC
I meant not maintained together with x11-drivers/nvidia-drivers. As in Gentoo, not upstream.

Also, "hardly a problem" is subjective. Currently, I run 313.09 by copying the 310.19 ebuild. So it might not be a problem for you, but it would be for me :-)
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-28 12:40:28 UTC
> Just recompile nvidia-settings.

This doesn't solve the problem as not everyone emerges nvidia-settings alongside nvidia-drivers; nor does every user track what upstream provides.

> Far better than hacking a binary.

More interesting would be to see whether applying this "hack" or "fix" is permitted by license, adapting the system is also not really an option; perhaps would be best to contact nvidia about this. Just have older nvidia-drivers versions depend on older pango releases and newer nvidia-drivers versions on newer pango releases.

> I've only noticed a delay of a small number of days in Nvidia's other files being made available, in the last year.

It's not upstream that the problem lies, but downstream; the version difference has been more than a small number of days.

> I meant not maintained together with x11-drivers/nvidia-drivers. As in Gentoo, not upstream.

Indeed, there are multiple maintainers for nvidia-drivers and there's a single maintainer doing nvidia-settings that's not in the list of maintainers for nvidia-drivers.
Comment 7 Mikael Magnusson 2013-01-15 17:35:51 UTC
Can't you just install the x11-libs/pangox-compat package?
Comment 8 Nikos Chantziaras 2013-01-16 01:12:22 UTC
(In reply to comment #7)
> Can't you just install the x11-libs/pangox-compat package?

I don't know what that is, what it does, why I would need it, and what effects it will have on my system.
Comment 9 poncho 2013-01-16 07:18:41 UTC
(In reply to comment #5)

> Currently, I run 313.09 by copying
> the 310.19 ebuild. So it might not be a problem for you, but it would be for
> me :-)

This should be fixed in tree. May be you need to sync your ebuild.

See: Depend on pangox-compat if using pango-1.32.
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-310.19.ebuild?r1=1.3&r2=1.4
Comment 10 Nikos Chantziaras 2013-01-16 18:39:00 UTC
(In reply to comment #9)
> (In reply to comment #5)
> 
> > Currently, I run 313.09 by copying
> > the 310.19 ebuild. So it might not be a problem for you, but it would be for
> > me :-)
> 
> This should be fixed in tree. May be you need to sync your ebuild.
> 
> See: Depend on pangox-compat if using pango-1.32.
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-
> drivers/nvidia-drivers-310.19.ebuild?r1=1.3&r2=1.4

Thanks. I'll keep my current ebuild though, since pangox-compat is not needed at all. Why install something that's not needed.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2013-01-16 19:13:24 UTC
This issue is fixed in the tree with the updated depends.
Comment 12 Nikos Chantziaras 2013-03-06 03:55:25 UTC
Not sure if worth opening a new bug for this, but 313.26 does not need x11-libs/pangox-compat anymore. It should be removed from the deps.

https://devtalk.nvidia.com/default/topic/533558