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

Bug#646247: marked as done ([libinklevel5] requires deprecated usblp devices for USB printers ("Could not access '/dev/usb/lp0' or '/dev/usblp0'."))



Your message dated Mon, 20 Oct 2014 12:00:12 +0000
with message-id <E1XgBdE-0005CH-St@franck.debian.org>
and subject line Bug#646247: fixed in pythondialog 3.2.0-1
has caused the Debian Bug report #646247,
regarding [libinklevel5] requires deprecated usblp devices for USB printers ("Could not access '/dev/usb/lp0' or '/dev/usblp0'.")
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
646247: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646247
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libinklevel5
Version: 0.8.0-1.1+b1
Severity: serious

libinklevel requires /dev/usb/lp? or /dev/usblp? for USB printers. Otherwise, it returns DEV_USB_LP_INACCESSIBLE:

     case DEV_USB_LP_INACCESSIBLE:
       printf("Could not access '/dev/usb/lp%d' or '/dev/usblp%d'.\n",
              portnumber, portnumber);
       break;

get_device_id() contains:

     if (port == USB) {
       sprintf(device_file1, "/dev/usb/lp%d", portnumber);
       sprintf(device_file2, "/dev/usblp%d", portnumber);
       fd = open(device_file1, O_RDONLY);
       if (fd == -1) {
         fd = open(device_file2, O_RDONLY);
       }
       if (fd == -1) {
         return DEV_USB_LP_INACCESSIBLE;
       }
     }

Therefore, polling ink levels on USB printers fails if the usblp LKM is not loaded:

$ ink -p usb
Could not access '/dev/usb/lp0' or '/dev/usblp0'.
Could not get ink level.
chealer@vinci:~$

Both ink and Qink fail with USB printers. qink just complains "Printer error No printers detected on this system". Launching it as root won't help. However, printing works...

usblp used to be loaded when a USB printer was plugged in. usblp is now blacklisted by cups, since CUPS switched from usblp to libusb:

Drop usb-backend-both-usblp-and-libusb.dpatch. It's causing crashes, and
      upstream does not want it either. Instead, add a blacklist file
      debian/local/blacklist-cups-usblp.patch and install it into
      /etc/modprobe.d/; that way, we don't require kernels to disable usblp, and
      allow other spoolers than cups to work.
http://packages.debian.org/changelogs/pool/main/c/cups/current/changelog#version1.4.6-8

# cat /etc/modprobe.d/blacklist-cups-usblp.conf
# cups talks to the raw USB devices, so we need to blacklist usblp to avoid
# grabbing them
blacklist usblp
root@vinci:/etc#

A workaround is to purge cups, or to manually load usblp.

This means that ink and Qink won't just work for the vast majority of printers.

--- System information. ---
Architecture: i386
Kernel: Linux 3.0.0-2-amd64

Debian Release: wheezy/sid
990 testing security.debian.org
990 testing ftp.ca.debian.org
500 unstable ftp.ca.debian.org
1 experimental ftp.ca.debian.org

--- Package information. ---
Depends (Version) | Installed
============================-+-===========
libc6 (>= 2.3) | 2.13-21
libieee1284-3 | 0.2.11-10


Package's Recommends field is empty.

Package's Suggests field is empty.






--- End Message ---
--- Begin Message ---
Source: pythondialog
Source-Version: 3.2.0-1

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

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 646247@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tristan Seligmann <mithrandi@debian.org> (supplier of updated pythondialog 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 19 Oct 2014 12:46:15 +0200
Source: pythondialog
Binary: python3-dialog
Architecture: source all
Version: 3.2.0-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Tristan Seligmann <mithrandi@debian.org>
Description:
 python3-dialog - Python module for making simple terminal-based user interfaces
Closes: 608408 615432 646247 673962
Changes:
 pythondialog (3.2.0-1) unstable; urgency=low
 .
   [ Florent Rougon ]
   * New upstream release.
 .
   * Add Build-Depends on python3-docutils,
     python3-sphinx (>= 1.0.7+dfsg-1~) and python3-pygments because this
     release brings a new Sphinx-based documentation.
 .
   * add-glossary-label: new patch to add a "glossary" label right before
     the Glossary (maybe upstream bug, but upstream-installed Sphinx didn't
     complain about the missing label!).
 .
   * Build-Depend on python3-doc so that intersphinx can use
     /usr/share/doc/python3/html/objects.inv (since downloading is
     prohibited during package build).
   * use-local-python3-doc-for-cross-references: new patch that:
       - uses /usr/share/doc/python3/html/objects.inv as the inventory file
         for Python cross-references;
       - resolves these references locally (with a
         file:///usr/share/doc/python3/html prefix)
   * Add a Suggests: python3-doc for these references to the local Python
     documentation.
 .
   * Add python3-dialog.doc-base.
 .
   [ Tristan Seligmann ]
   * Import packaging work by Florent Rougon.
     - python-dialog package removed, python3-dialog package added, since only
       Python 3 is supported upstream.
     - Reworked packaging fixes old bugs (closes: #608408, #615432, #646247)
   * Adopt package on behalf of DPMT (closes: #673962).
   * Add VCS control fields.
   * Check PGP signature in debian/watch.
Checksums-Sha1:
 68c7d334203312f247e01f845ac8d0c1b6e55ae6 2144 pythondialog_3.2.0-1.dsc
 68a031d21504b7b7953cd2ba4daee9ddc41658be 1393316 pythondialog_3.2.0.orig.tar.bz2
 78fc3b841054a3643a260288cf38a6ccde15751c 8380 pythondialog_3.2.0-1.debian.tar.xz
 d3aef3896536425271b4b7fb771e6eebc9dc2a40 1367386 python3-dialog_3.2.0-1_all.deb
Checksums-Sha256:
 7ffc20ddb1f9a2f7b6586617b9d7782f6c53a2e9e862036e2da34057ef6f79a0 2144 pythondialog_3.2.0-1.dsc
 134077eb260ca590ffa586a001d132ec01ea59e9a5b463ebcef2a0c73d71c0a4 1393316 pythondialog_3.2.0.orig.tar.bz2
 bfe2c4ce8f81b281fa471afc0da38e5d50d291d4af86f05643bf45553542c17d 8380 pythondialog_3.2.0-1.debian.tar.xz
 33d4b263c220eb066a05f2def483bf926b3269c639e4013797e56717035323f6 1367386 python3-dialog_3.2.0-1_all.deb
Files:
 76abda4fc5f27dd6d874013452153431 2144 python optional pythondialog_3.2.0-1.dsc
 08da131d12e00d86c1851c72119fbda3 1393316 python optional pythondialog_3.2.0.orig.tar.bz2
 53a28e99bebe97c5444c8ea241d6dc06 8380 python optional pythondialog_3.2.0-1.debian.tar.xz
 97cdcf25a7ef948bd7a5aacafc32e875 1367386 python optional python3-dialog_3.2.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJUQ8EuAAoJEFjA+xzeO3YAV2sP/0uFXmqYE3uY++b/kWgPMnVY
B9eFoc/lZEmweowHjmpWl+qA/gcz4PXTKnEufjij+Mhi0Ws7wziQRvbtxkuWwEsj
WKP6cIg2tsRm7jv+pkNZ2ngaJ9u+j5OXUOTr+R7v7ubucyvRjwKYH4IGkxKkJHLx
ME+Js/7Xz2QMEEY2oiYe2u2rzZ8KHBf4r5tZYbykOzEUhstPci5f5mOdfHJQRTEZ
EYlnBsW/xLG4fkoPg4nEhu0dvZe3ptMxJIjRCiS0g4VK/O9wekQ22kooQ1YHjAmu
o6hMxM9bfTNJLaX0QCpV5ESqxFQPymZ0+MUonIWJuzyjprnU7SEN5Hlws489Zp5d
1KbUzbVyKCaZJoV+U22/cqTMwOhnlPoLdGmettr3l4s/GFLrgDhKezeJKpJfVfyd
z61ceXVtA2G+sAv8Frr36U6ROGHhqNx8CQg9oqh6J1O4ZFCOzoWaib11vr9pYPZK
EI8/qvGW8pxgW6t8UbcCzLlKnxkTop0ntA7f+x039pXZa9HGzSarI4HcJa5mqP1B
wtBvHZ4583Q574Xtninpf3iBWNO2B1rVKmnsgvECOpchcq+Uy42z4PCYauK2BPyh
5DzUAnhnXb0cddnHIU+ui89LgheoIB9Alz6uB/abSo33+4pvPXUHwC2yPfFLdJxQ
4qC9mNSDhZdVtbvwYra7
=vaoE
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: