Package Details: scangearmp2-sane-git 4.60.2+2.r204.20230920.78ec743-1

Git Clone URL: https://aur.archlinux.org/scangearmp2-sane-git.git (read-only, click to copy)
Package Base: scangearmp2-sane-git
Description: Canon ScanGear MP v2 scanner utility and sane backend
Upstream URL: https://github.com/ThierryHFR/scangearmp2
Licenses: GPL, custom:canon
Conflicts: scangearmp2
Provides: scangearmp2
Submitter: pvdl1984
Maintainer: pvdl1984
Last Packager: pvdl1984
Votes: 2
Popularity: 0.000840
First Submitted: 2022-03-26 10:57 (UTC)
Last Updated: 2023-09-21 14:17 (UTC)

Required by (0)

Sources (1)

Latest Comments

titi1970 commented on 2024-05-09 20:44 (UTC) (edited on 2024-05-09 20:47 (UTC) by titi1970)

I just updated to version 4.71 with https://gdlp01.c-wss.com/gds/5/0100012305/01/scangearmp2-source-4.71-1.tar.gz
I have prepared packaging for various linux distributions: https://download.opensuse.org/repositories/home:/thierry1970/

titi1970 commented on 2023-11-03 10:12 (UTC)

I just updated to version 4.70a with https://gdlp01.c-wss.com/gds/0/0100012140/01/scangearmp2-source-4.70-1.tar.gz

pvdl1984 commented on 2023-09-21 14:20 (UTC)

@dreieck all updated now. Thanks for letting me know of the issues

titi1970 commented on 2023-09-20 22:17 (UTC)

I've removed the erroneous debug message when no device is found. I've corrected the PKGBUILD file I renamed my Ordissimo git to ThierryFR

dreieck commented on 2023-09-20 10:27 (UTC) (edited on 2023-09-20 10:27 (UTC) by dreieck)

$url is https://github.com/Ordissimo/scangearmp2, but github.com redirects that to https://github.com/ThierryHFR/scangearmp2. Maybe you adapt $url and the source-entry to the new location?

Regards!

dreieck commented on 2023-09-20 10:18 (UTC) (edited on 2023-09-20 10:25 (UTC) by dreieck)

With this package installed, xsane and scanimage -L print out a message

Error my backend :  out of memory

Running strace scanimage -L gives a few more details:

[...]
openat(AT_FDCWD, "/usr/lib64/bjlib/canon_mfp2.conf", O_RDONLY) = 14
newfstatat(14, "", {st_mode=S_IFREG|0644, st_size=4278, ...}, AT_EMPTY_PATH) = 0
read(14, "#\n# Canon MFP conf file\n#\n\n#----"..., 4096) = 4096
read(14, "1\n[MG2900 series] 0x1780 0x0131\n"..., 4096) = 182
read(14, "", 4096)                      = 0
close(14)                               = 0
newfstatat(AT_FDCWD, "/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=46, ...}, AT_SYMLINK_NOFOLLOW) = 0
access("/var/tmp", W_OK)                = 0
newfstatat(AT_FDCWD, "/var/tmp/canon_sgmp2_setting.ini", {st_mode=S_IFREG|0666, st_size=67, ...}, AT_SYMLINK_NOFOLLOW) = 0
access("/var/tmp/canon_sgmp2_setting.ini", W_OK) = 0
openat(AT_FDCWD, "/var/tmp/canon_sgmp2_setting.ini", O_RDONLY) = 14
lseek(14, 0, SEEK_CUR)                  = 0
read(14, "/***** Do not edit this file. **"..., 256) = 67
lseek(14, 37, SEEK_SET)                 = 37
lseek(14, 0, SEEK_CUR)                  = 37
read(14, "MAC Address:00-00-00-00-00-00\n", 256) = 30
lseek(14, 67, SEEK_SET)                 = 67
lseek(14, 0, SEEK_CUR)                  = 67
read(14, "", 256)                       = 0
close(14)                               = 0
write(2, "Error my backend :\t", 19Error my backend :   )    = 19
write(2, "out of memory", 13out of memory)           = 13
write(2, "\n", 1
)                       = 1
openat(AT_FDCWD, "/usr/lib/sane/libsane-brother5.so.1", O_RDONLY) = 14
close(14)  
[...]

Removing the package scangearmp2-sane-git makes this message going away.

↗ Upstream report.

Regards!

dreieck commented on 2023-09-20 10:14 (UTC)

libusb is needed as dependency.

Thanks for maintaining!

dreieck commented on 2023-09-20 10:13 (UTC)

You need to install a license file:

scangearmp2-sane-git E: Missing custom license directory (usr/share/licenses/scangearmp2-sane-git)

Regards!

dreieck commented on 2023-09-20 10:12 (UTC) (edited on 2023-09-20 10:20 (UTC) by dreieck)

As this is a VCS package, you must provide a proper pkgver() function.

e.g.:

pkgver() {
  cd "${srcdir}/${pkgname}"

  _ver="$(git describe  --tags | sed 's|^[vV]||' | sed 's|-g[0-9a-fA-F]*$||' | tr '-' '+')"
  _rev="$(git rev-list --count HEAD)"
  _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
  _hash="$(git rev-parse --short HEAD)"

  if [ -z "${_ver}" ]; then
    error "Version could not be determined."
    return 1
  else
    printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
  fi
}

which currently produces 4.60.0+4.r199.20230814.3e7b771.

Regards and thanks for maintaining!