Package Details: cnrdrvcups-sfp 5.00-3

Git Clone URL: https://aur.archlinux.org/cnrdrvcups-sfp.git (read-only, click to copy)
Package Base: cnrdrvcups-sfp
Description: Canon UFRII LT Printer Driver for Linux (LBP112/912, LBP113/913, LBP151dw, LBP6030/LBP6040/LBP6018L, LBP6230/LBP6240, LBP7100C/LBP7110C, LBP8100)
Upstream URL: https://www.canon-europe.com
Licenses: GPL2, custom, MIT
Conflicts: cndrvcups-common-lb, cndrvcups-lb
Submitter: Linaro
Maintainer: Linaro
Last Packager: Linaro
Votes: 2
Popularity: 0.000010
First Submitted: 2020-06-09 09:45 (UTC)
Last Updated: 2020-08-24 04:48 (UTC)

Dependencies (8)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

elelay commented on 2024-08-25 20:15 (UTC) (edited on 2024-08-25 20:16 (UTC) by elelay)

Hi, some more fixes are needed to build now.

replace_incorrect_int_with_char.patch comes from https://aur.archlinux.org/packages/cnrdrvcups-lb

pipefail is to avoid missing compile errors (filter/rastertosfp was missing from the build due to errors)

diff --git a/PKGBUILD b/PKGBUILD
index aada991..13b0882 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,10 +26,13 @@ optdepends=('libjpeg6-turbo: improves printing results for color i-SENSYS LBP de
 conflicts=('cndrvcups-lb' 'cndrvcups-common-lb')
 options=('!emptydirs' '!strip' '!libtool')

-source=(  "http://gdlp01.c-wss.com/gds/${_dl}/linux-UFRIILT-drv-v${_pkgver//\./}-uken-18.tar.gz")
-md5sums=('8bc3a4e3c372bb4d1b9af2cc012c720b')
-sha512sums=('e7b964f3d4541e1ec9ba07eac17559233ab2db16d1f025ffd8a46a65297c63205b7a3cdc031d95f04d719e97eaf93fd763bdc6c27f12c5aac346bb4f204d5967')
-
+source=(  "http://gdlp01.c-wss.com/gds/${_dl}/linux-UFRIILT-drv-v${_pkgver//\./}-uken-18.tar.gz"
+                replace_incorrect_int_with_char.patch
+)
+md5sums=('8bc3a4e3c372bb4d1b9af2cc012c720b'
+         '8bc26ff46bf5877b5800b77685d5d917')
+sha512sums=('e7b964f3d4541e1ec9ba07eac17559233ab2db16d1f025ffd8a46a65297c63205b7a3cdc031d95f04d719e97eaf93fd763bdc6c27f12c5aac346bb4f204d5967'
+            '1d118eeee1ce069b59db00cba5b534986ccbd1da3a9c4a4ba6892be4a478c2dac4bd83dae1b2dd28f0e58a145609c60940cd661fee87d025a12f856e161b1f65')

 # Canon provides the sourcecode in a tarball within the dowload and we need to extract the code manually
 # In order to keep the $srcdir structure tidy we put the extracted files in "extracted-${pkgname}-${_pkgver}" aka _srcdir
@@ -51,6 +54,13 @@ prepare() {
     cd "${_srcdir}"
     bsdtar -xf "${srcdir}/linux-UFRIILT-drv-v${_pkgver//\./}-uken/Sources/${pkgname}-${pkgver}-1.tar.gz"

+    for topatch in $(grep -rl cups.h . | grep '\.c'); do
+      sed -i 's,#include <cups/cups.h>,#include <cups/ppd.h>,' $topatch
+    done
+
+    # Fix main.c:70:5: error: type of ‘mode’ defaults to ‘int’
+    sed -i "s/int StartProcess(mode)/int StartProcess(int mode)/" cnrdrvcups-sfp-5.00/StatusMonitor/src/main.c
+
     local _specs=(cnrdrvcups-ncap.spec)

     # cngplp/autogen.sh fails to find several libraries.
@@ -61,6 +71,9 @@ prepare() {

     # the autogen.sh files from canon target an old automake/autoconf version
     # autoreconf converts them to a form compatible with archlinux autoconf/automake
+
+    # fix execjob.c:1154:108: error: passing argument 3 of 'add_param_int' makes integer from pointer without a cast
+    patch --directory="${srcdir}"/$_srcdir/$_driver_dir/cngplp/cngplpmod/ --forward --input="$srcdir"/replace_incorrect_int_with_char.patch

     pushd "${_common_dir}"
     for i in "backend" "buftool" "cngplp" "cnjbig" "rasterfilter"
@@ -95,6 +108,7 @@ prepare() {
         -e 's:^./autogen.sh:& --prefix=${_prefix}:g' \
         -e 's:${LIBS}:${_libsarch}:g' \
         > 'make.Arch'
+     sed -i '1iset -e o pipefail' make.Arch

     # Generate make install from spec %install
     sed -n -e '/^%install/,/^%clean/ p' "${_specs[@]}" | \
@@ -107,6 +121,7 @@ prepare() {
         -e 's:ln -sf :ln -s :g' \
         -e 's:${LIBS}:${_libsarch}:g' \
         > 'make.install.Arch'
+    sed -i '1iset -e o pipefail' make.install.Arch

 }

@@ -139,6 +154,7 @@ _setvars() {

 build() {

+  set -e o pipefail
   cd "${_srcdir}"
   local _vars; _setvars
   # Bash does not recognize var assigments hidden by array expansion so we use env.

HeavyRootsDub commented on 2022-11-19 16:55 (UTC)

@Linaro Hi, It is possible to replace python2 dependencie (libglade need-it), since python2 move to AUR, i always get trouble and had to install python2 before cnrdrvcups-sfp, otherwise some tests during python2 building fails and installation is aborted, i use yay -S python2 --mflags "--nocheck" to success but i don't know if it's the right way to install-it. With Regards.

mokkurkalve commented on 2021-09-28 02:10 (UTC)

This package and cndrvcups-lt conflicts.

jsutton commented on 2021-04-26 21:02 (UTC) (edited on 2021-04-27 13:40 (UTC) by jsutton)

@KatsuroKurosaki I also have a LBP7110Cw, and was able to get my printer working. After installing CUPS + this package, I ran "sudo cnsetuputil2l" (which I found had been added after I installed this package).

  1. Click Add
  2. I picked the 3rd entry for entry for "Canon LBP7100C/7110C", as there are 3 identical looking entries. I don't know if I picked "the right one", but they do correspond to 3 PPD files in /usr/share/cups/model.
  3. I selected "lpd" as the protocol (I ensured that LPD was enabled in the printer's web UI), and I specified the static IP that I had assigned to my printer previously.
  4. Click Register

This should add a new CUPS printer, which you can then try printing to. You may want to adjust default settings in CUPS, such as default paper size.

KatsuroKurosaki commented on 2021-01-09 11:59 (UTC)

I installed cups, ghostscript and this package. Sadly my printer is a LBP7110Cw and none of the three provided ppd files work, and the driver downloaded from Canon is the same: linux-UFRIILT-drv-v500-uken-18.tar.gz Printer is connected via network. Any help to diagnose the issue would be appreciated.

andreagi commented on 2020-08-20 18:57 (UTC) (edited on 2020-08-20 19:00 (UTC) by andreagi)

In the .srcinfo:

pkgver = 5.00
pkgrel = 3

but in the PKGBUILD:

_pkgver='5.00';  _dl='0/0100005950/10'
pkgver="${_pkgver}"
pkgrel='1'

please can you fix the 'pkgrel'?

Linaro commented on 2020-07-08 06:31 (UTC)

Thanks! I hope now it's fixed.

Lone_Wolf commented on 2020-07-07 11:09 (UTC)

Thanks for adding the names of previous contributors, but you should put your own name back as maintainer and on first line.

Change maintainer on the lines with severach and my name to contributor, then the PKGBUILD gives the correct impression .

Lone_Wolf commented on 2020-07-07 10:43 (UTC) (edited on 2020-07-07 10:43 (UTC) by Lone_Wolf)

I looked a bit further and now understand this does seem to be a different driver, the name you choose does match with the contents of the source file.

The other things I mentioned still stand.

Maybe I can help to find a better choice for upstream url, which printer has this been tested with ?

Linaro commented on 2020-07-07 10:16 (UTC)

This package was made for itself first, since 5.10 is not suitable for my printer. In this case, another version of the driver (sfp) is required. At the end, I just posted what I did in the hope that someone would use it.