Package Details: scangearmp2 4.80-1

Git Clone URL: https://aur.archlinux.org/scangearmp2.git (read-only, click to copy)
Package Base: scangearmp2
Description: Canon ScanGear MP v2 scanner driver.
Upstream URL: https://www.canon.co.uk
Licenses: GPL, custom:canon
Provides: scangearmp2
Submitter: iAndrewT
Maintainer: pvdl1984
Last Packager: pvdl1984
Votes: 22
Popularity: 0.000711
First Submitted: 2016-12-22 23:29 (UTC)
Last Updated: 2026-02-24 19:00 (UTC)

Pinned Comments

pvdl1984 commented on 2022-03-26 11:26 (UTC)

I also created the AUR scangearmp2-sane-git which uses the github repository below. It includes a slightly upgraded GUI for scangearmp2, but more importantly provides a sane driver.

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

pvdl1984 commented on 2022-03-26 07:55 (UTC) (edited on 2022-03-26 07:55 (UTC) by pvdl1984)

This should all be working now. When I have the time I will be looking at the sane version as well. Thanks @dequis for the solution

pvdl1984 commented on 2022-03-26 07:36 (UTC)

Just adopted the package, thanks livix. I will update this over the next few days. And might have some time to make a package for the sane backend as well

livix commented on 2022-03-06 13:31 (UTC)

package disowned

livix commented on 2022-03-06 13:30 (UTC)

see also https://github.com/Ordissimo/scangearmp2

8472 commented on 2022-03-05 15:18 (UTC)

@lesebas: works fine, thank you!

lesebas commented on 2022-03-05 11:51 (UTC)

Ok I finally manage to build the package 4.30 with the patch and it works for me too.

here is my PKGBUILD :

https://pastebin.com/DUyLwsAy

You can download the patch file here (to be placed into the same directory as the PKGBUILD):

https://drive.google.com/file/d/1ItJtu_7K_thdz5auBoV43M0eisC01luk/view?usp=sharing

lesebas commented on 2022-03-05 10:25 (UTC)

@dequis Could you share the modified PKGBUILD to apply the patch?

@livix, could you please update?

bastimo commented on 2022-03-03 23:45 (UTC)

@dequis Thank you! Just tried out the fix (with v4.30 sources) and it is working well. @livix Please update :)

Best regards

dequis commented on 2022-02-11 11:03 (UTC)

New version: https://gdlp01.c-wss.com/gds/2/0100011322/01/scangearmp2-source-4.30-1.tar.gz sha256 ae337238379541d8f99f09bf24e82d291b8141e5a7758d46c0002a9becb828b8

Doesn't actually fix the segfault issue, but it's newer.

Patch to fix the issue:

--- src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c     2021-06-08 12:01:24.000000000 +0200
+++ patched_src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c     2022-02-11 11:54:38.234035119 +0100
@@ -394,7 +394,7 @@
                goto onErr;
        }
        /* search canon mfp */
-       numdev = libusb_get_device_list(NULL, &g_devlist);
+       numdev = libusb_get_device_list(g_context, &g_devlist);
        if((int)numdev == 0) {
                err = CN_USB_WRITE_ERROR;
                goto onErr;

I don't use usb so I can't guarantee everything else works there. This code assumes libusb will grab the default context, but libusb_init is called with g_context instead of NULL, so the default is never initialized.

8472 commented on 2022-02-07 08:39 (UTC) (edited on 2022-02-07 10:04 (UTC) by 8472)

Hello, after some recent update, I'm now getting:

$ scangearmp2

Segmentation fault (core dumped)

Any idea how to fix it pls?