[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CUPS vs lpd (was Re: Giving up on Iceweasel 3.0)



Ron Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/06/08 15:06, Jan Willem Stumpel wrote:
>> I'll just mention the follow-up. I just tried installing gtk+-2.10
>> (compiling source from http://www.gtk.org/) and indeed, "print to
>> lpr" now appears in the print dialog. Without cups or xprint. Just
>> lprng. So as soon as gtk+-2.10 appears in Sid, this problem will
>> be over.
> 
> You're a bit behind the times, Jan!  ;)
> 
> $ apt-cache policy libgtk2.0-0
> libgtk2.0-0:
>   Installed: 2.12.10-2
>   Candidate: 2.12.10-2
>   Version table:
>  *** 2.12.10-2 0
>         500 ftp://mirrors.kernel.org unstable/main Packages
>         100 /var/lib/dpkg/status

Indeed. Very strange. And I even have it installed. But ff3 can
print to lpr only when I install the compiled-from-source version
of 2.10 (in /usr/local). As soon as I uninstall it, lpr printing
on ff3 becomes unavailable.

/usr/lib/gtk-2.0 (the Debian version) contains subdirectories:
   2.10.0  2.2.0  2.4.0  include  modules

No 2.12.0! I don't understand this numbering system.

/usr/local/lib/gtk-2.0 contains: 2.10.0  2.2.0  2.4.0  include
(no "modules", but the same version numbers).

The real difference is probably to be found here: the Sid version has:

jws@vega:~$ ls -alG /usr/lib/gtk-2.0/2.10.0/printbackends/
total 104
drwxr-xr-x 2 root  4096 2008-06-09 17:32 .
drwxr-xr-x 9 root  4096 2007-04-15 14:58 ..
-rw-r--r-- 1 root 52980 2008-06-07 11:16 libprintbackend-cups.so
-rw-r--r-- 1 root 13044 2008-06-07 11:16 libprintbackend-file.so
-rw-r--r-- 1 root 10084 2008-06-07 11:16 libprintbackend-lpr.so
-rw-r--r-- 1 root 11140 2008-06-07 11:16 libprintbackend-test.so

While the compiled-from-source version (from gtk.org) has:

jws@vega:~$ ls -alG /usr/local/lib/gtk-2.0/2.10.0/printbackends/
total 92
drwxr-sr-x 2 root  4096 2008-07-06 21:26 .
drwxr-sr-x 6 root  4096 2008-07-06 21:26 ..
-rwxr-xr-x 1 root  1315 2008-07-06 21:26 libprintbackend-file.la
-rwxr-xr-x 1 root 37984 2008-07-06 21:26 libprintbackend-file.so
-rwxr-xr-x 1 root  1309 2008-07-06 21:26 libprintbackend-lpr.la
-rwxr-xr-x 1 root 34034 2008-07-06 21:26 libprintbackend-lpr.so

I compiled by just "./configure", "make", without setting any
options. So by default gtk does not have a cups print backend,
only "lpr" and "file" (when compiled on a cups-less system, I
presume). The Debian version has "lpr" and "file", as well as
"cups" and something called "test".

Maybe you can explain these findings. Anyway it seems that the bug
is not in ff3 but in libgtk2.0-0.

Regards, Jan


Reply to: