[Bug 504201] Re: okular prints landscape oriented document in portrait

Jonathan Thomas echidnaman at kubuntu.org
Fri Nov 11 17:57:37 UTC 2011


It depends. The easy, ostensible fix would be to just remove that line
from the symbols file, and the package would build. That may or may not
be a good idea, however. A library's .symbols file contains a list of
functions that the library exposes to the world. Applications that link
against a library use these functions, as they are described at the time
the application is built. If these function symbols change, though,
applications using the old symbols will crash if they are run against
the newer version of the library.

The purpose of a symbol file is to track changes within a library to
detect and prevent these incompatibilities between different  versions
of a library. In this case, a function appears to have been removed as a
result of the patch. If this really is the case, then any application
using libokularcore1 currently in the archive would crash if it tries to
invoke this function.

Looking at the patch[1], the cupsOptions() function being referenced by
the symbol has not been removed entirely, but has been prefixed with the
KDE_DEPRECATED macro to trigger a build-time warning about the use of
the function.  I imagine that in the build output of the package, there
are also symbols being added. I'd be interested to see if a cupsOptions
symbol pops up in the symbols added. If the symbol hasn't changed too
much, it might still be compatible with existing applications. If not,
it would break applications and other libraries currently using
libokularcore1.

So, in summary, it may be just as simple as updating the .symbols file
by removing missing symbols and adding new ones, but this might break
the binary compatibility of the library. For this reason, it may not be
feasible to issue an update with this patch as an official post release
update. (Which I suspect is why the Okular maintainers haven't
backported it to the KDE 4.7.x branch).

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdegraphics in Ubuntu.
https://bugs.launchpad.net/bugs/504201

Title:
  okular prints landscape oriented document in portrait

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdegraphics/+bug/504201/+subscriptions




More information about the kubuntu-bugs mailing list