Bug 12035 - Compile gtk against libcups2-dev
: Compile gtk against libcups2-dev
Status: NEW
Product: Maemo 5 Community SSU
general
: unspecified
: N900 Maemo
: Unspecified enhancement (vote)
: ---
Assigned To: unassigned
: general
:
:
:
:
  Show dependency tree
 
Reported: 2011-03-10 18:51 UTC by mase
Modified: 2011-04-26 15:49 UTC (History)
3 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description mase (reporter) 2011-03-10 18:51:47 UTC
SOFTWARE VERSION: 
(Settings > General > About product)

EXACT STEPS LEADING TO PROBLEM: 
1. Installed cups packages
2. Select "print" in gtk applications, or press ctrl+p

EXPECTED OUTCOME: 
Printing dialog opens. I can select a printer. The document will be printed.

ACTUAL OUTCOME: 
Either no printing dialog shown, or no printer selectable. Printing is not
possible.

REPRODUCIBILITY: 
always

EXTRA SOFTWARE INSTALLED: 
libcups2, cups-client, cups-common

OTHER COMMENTS: 
I tested recompiling the gtk packages with libcups2-dev installed.
This solves the avove issue. I can select a printer and printing
works. Applications like leafpad, abiword, etc. have to be recompiled
against the new gtk libraries. Some have printing disabled in the
configure line, but removing this option works.
Maybe you can have a look at this.
The rebuilt packages I used are here:
http://talk.maemo.org/showthread.php?t=56932&page=12
Comment 1 Andre Klapper maemo.org 2011-03-11 11:04:45 UTC
[Please do not change the severity field. See
https://bugs.maemo.org/page.cgi?id=fields.html#importance ]
Comment 2 Andre Klapper maemo.org 2011-03-11 11:15:10 UTC
[I'm sorry, please ignore my last comment - wrong bug number.]

It's unlikely that Nokia themselves will introduce such a change at this time
for Maemo5, but considering this for the CSSU could be an option, hence I am
moving this to CSSU product for the time being.
Comment 3 Andrew Flegg maemo.org 2011-03-11 11:50:49 UTC
Questions relevant to this being included in the CSSU:

* Does it introduce additional dependencies (such as libcups2) into the base
system?
* Are there ABI considerations?
Comment 4 mase (reporter) 2011-03-11 15:31:27 UTC
There are not more considerations than the original debian packages
of cups.
Comment 5 Andrew Flegg maemo.org 2011-03-11 16:11:49 UTC
(In reply to comment #4)
> There are not more considerations than the original debian packages
> of cups.

I'm not sure I follow. There are lots of applications compiled against the
existing libgtk for Maemo; will there be any issues with this recompile? Will
additional packages, such as cups, be required at runtime - and therefore as
dependencies on mp-fremantle-community-pr?
Comment 6 mase (reporter) 2011-03-11 16:47:47 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > There are not more considerations than the original debian packages
> > of cups.
> 
> I'm not sure I follow. There are lots of applications compiled against the
> existing libgtk for Maemo; will there be any issues with this recompile? Will
> additional packages, such as cups, be required at runtime - and therefore as
> dependencies on mp-fremantle-community-pr?

I did not have any problems with other gtk applications.
To be more sure, it could be compiled against libcups2,
but without dependency on it.
Comment 7 Kaj-Michael Lang 2011-04-26 11:53:50 UTC
Afaik, the main gtk package does not need to depend on cups (only for
building), as the printing backends are separate modules, in
/usr/lib/gtk-2.0/[VERSION]/printbackends/ and could be packaged in separate
packages, that the applications enabled for printing could depend on and drag
into the system.

API/ABI considerations, software built against print enabled gtk wouldn't work
with the stripped maemo version, afaik.
Comment 8 mase (reporter) 2011-04-26 15:49:57 UTC
(In reply to comment #7)
> Afaik, the main gtk package does not need to depend on cups (only for
> building), as the printing backends are separate modules, in
> /usr/lib/gtk-2.0/[VERSION]/printbackends/ and could be packaged in separate
> packages, that the applications enabled for printing could depend on and drag
> into the system.
> 
> API/ABI considerations, software built against print enabled gtk wouldn't work
> with the stripped maemo version, afaik.

The main gtk packages do not depend on libcups2 at all. cups is completely
disabled. I think, cups will not make it to CSSU. If you want to use it, you
have to rebuild gtk with libcups2-dev installed. I uploaded experimental
packages. Look for them here:
http://talk.maemo.org/showthread.php?t=56932&highlight=cups+gtk&page=12