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

Bug#394255: marked as done (libcupsys2: ppd API fails to discover printer nickname and options)



Your message dated Fri, 20 Oct 2006 21:02:24 -0700
with message-id <E1Gb840-0005mO-CM@spohr.debian.org>
and subject line Bug#394255: fixed in cupsys 1.2.5-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libcupsys2
Version: 1.2.4-2+b1
Severity: important

Hello,

I have discovered a problem in the ppd cups API. The new API of cups ppd does
not correctly detect nickname and options of the printer.

I have tested on many ppds like
http://www.linuxprinting.org/foomatic-db/db/source/PPD/HP/mono_laser/hp_LaserJet_2300.ppd. And it does not work.

I have tried to patch it but I have failed.
For the nickname, the problem is due to the function ppdOpen2(). This function
does not check the return code of the function cupsCharsetToUTF8(). In this case,
this function returns -1.

I joined a program that reproduces the bug. Called with the previous ppd, the
program must print "HP LaserJet 2300 Postscript (recommended)" and he prints
nothing. This code worked perfectly with the version 1.1.23-12.


Thanks.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages libcupsys2 depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libgnutls13                  1.4.4-1     the GNU TLS library - runtime libr
ii  zlib1g                       1:1.2.3-13  compression library - runtime

libcupsys2 recommends no packages.

-- no debconf information
/* gcc -Wall test-cups.c -o test-cups -lcups */
#include <cups/ppd.h>
#include <cups/cups.h>

int main(int argc,char** argv){
    ppd_file_t *ppd;

    if(argc<2){
        fprintf(stderr, "Usage: %s nom.ppd \n",argv[0]);
        return 1;
    }
    if( (ppd = ppdOpenFile(argv[1])) == NULL){
        printf("Failed to open: %s \n",argv[1]);
        return 2;
    }
    printf("nickname: %s\n", ppd->nickname);
    ppdClose(ppd);
    return 0;
}



--- End Message ---
--- Begin Message ---
Source: cupsys
Source-Version: 1.2.5-1

We believe that the bug you reported is fixed in the latest version of
cupsys, which is due to be installed in the Debian FTP archive:

cupsys-bsd_1.2.5-1_i386.deb
  to pool/main/c/cupsys/cupsys-bsd_1.2.5-1_i386.deb
cupsys-client_1.2.5-1_i386.deb
  to pool/main/c/cupsys/cupsys-client_1.2.5-1_i386.deb
cupsys-common_1.2.5-1_all.deb
  to pool/main/c/cupsys/cupsys-common_1.2.5-1_all.deb
cupsys-dbg_1.2.5-1_i386.deb
  to pool/main/c/cupsys/cupsys-dbg_1.2.5-1_i386.deb
cupsys_1.2.5-1.diff.gz
  to pool/main/c/cupsys/cupsys_1.2.5-1.diff.gz
cupsys_1.2.5-1.dsc
  to pool/main/c/cupsys/cupsys_1.2.5-1.dsc
cupsys_1.2.5-1_i386.deb
  to pool/main/c/cupsys/cupsys_1.2.5-1_i386.deb
cupsys_1.2.5.orig.tar.gz
  to pool/main/c/cupsys/cupsys_1.2.5.orig.tar.gz
libcupsimage2-dev_1.2.5-1_i386.deb
  to pool/main/c/cupsys/libcupsimage2-dev_1.2.5-1_i386.deb
libcupsimage2_1.2.5-1_i386.deb
  to pool/main/c/cupsys/libcupsimage2_1.2.5-1_i386.deb
libcupsys2-dev_1.2.5-1_i386.deb
  to pool/main/c/cupsys/libcupsys2-dev_1.2.5-1_i386.deb
libcupsys2-gnutls10_1.2.5-1_all.deb
  to pool/main/c/cupsys/libcupsys2-gnutls10_1.2.5-1_all.deb
libcupsys2_1.2.5-1_i386.deb
  to pool/main/c/cupsys/libcupsys2_1.2.5-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 394255@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kenshi Muto <kmuto@debian.org> (supplier of updated cupsys package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 21 Oct 2006 01:18:34 +0000
Source: cupsys
Binary: libcupsys2-dev cupsys libcupsys2 libcupsimage2 cupsys-common cupsys-client cupsys-dbg cupsys-bsd libcupsys2-gnutls10 libcupsimage2-dev
Architecture: source i386 all
Version: 1.2.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian CUPS Maintainers <pkg-cups-devel@lists.alioth.debian.org>
Changed-By: Kenshi Muto <kmuto@debian.org>
Description: 
 cupsys     - Common UNIX Printing System(tm) - server
 cupsys-bsd - Common UNIX Printing System(tm) - BSD commands
 cupsys-client - Common UNIX Printing System(tm) - client programs (SysV)
 cupsys-common - Common UNIX Printing System(tm) - common files
 cupsys-dbg - Common UNIX Printing System(tm) - debugging symbols
 libcupsimage2 - Common UNIX Printing System(tm) - image libs
 libcupsimage2-dev - Common UNIX Printing System(tm) - image development files
 libcupsys2 - Common UNIX Printing System(tm) - libs
 libcupsys2-dev - Common UNIX Printing System(tm) - development files
 libcupsys2-gnutls10 - Common UNIX Printing System(tm) - dummy libs for transition
Closes: 392142 394255
Changes: 
 cupsys (1.2.5-1) unstable; urgency=medium
 .
   * New upstream release.
 .
   [ Kenshi Muto ]
   * 00_r6052: Apply SVN r6052 to pass the compile with libpaper.
   * provides /etc/pam.d/cupsys correctly. (closes: #392142)
     (renamed debian/pam to debian/cupsys.pam)
   * fixed "ppd API fails to discover printer nickname and options"
     problem" by upstream (closes: #394255)
Files: 
 50df200fbd9a997c94b9722042fcab1e 1081 net optional cupsys_1.2.5-1.dsc
 8a648aed44b7992e8e5c8e5e61ace113 4150497 net optional cupsys_1.2.5.orig.tar.gz
 240a413512daf4764adfdb2dad7e7376 90251 net optional cupsys_1.2.5-1.diff.gz
 55bf066aac6f9410d7c02b4869e02f8f 43800 libs optional libcupsys2-gnutls10_1.2.5-1_all.deb
 b3d58e4aa8d3ba88e51407a0934decc6 875146 net optional cupsys-common_1.2.5-1_all.deb
 d776733c4cd3610e9f5e5516afe4d61a 157682 libs optional libcupsys2_1.2.5-1_i386.deb
 b5eda0a612600b0ad515f220a84975b6 84366 libs optional libcupsimage2_1.2.5-1_i386.deb
 c484fd3882bd6c151c9810ac991535db 1495014 net optional cupsys_1.2.5-1_i386.deb
 0ad378d50d7acec9c19d7c0adf832a54 79900 net optional cupsys-client_1.2.5-1_i386.deb
 e875750853c9f9250fa64098c4e10d16 137350 libdevel optional libcupsys2-dev_1.2.5-1_i386.deb
 3bf32878433bdca475775879ae77888b 53206 libdevel optional libcupsimage2-dev_1.2.5-1_i386.deb
 0c419acb23e48fd60bc4446f0bb3a02d 36254 net extra cupsys-bsd_1.2.5-1_i386.deb
 e9216fd68863a8ecfb8109f0c4732e9f 993658 libdevel extra cupsys-dbg_1.2.5-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iEYEARECAAYFAkU5lzIACgkQQKW+7XLQPLGcLgCfWB10afJcKXWyEWruCGvbbyeX
+UcAnjQaOfDznqH8t4oyDs+LE35HBM10
=rf93
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: