canon-pixma-ip1500
maintainer severach
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source RPM from Canon's official gdlp01.c-wss.com domain, which is plausibly Canon's own software distribution infrastructure; building and installing printer driver components from this source is normal and low-risk, even though the host is not on a standard whitelist.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a source RPM from Canon's official gdlp01.c-wss.com domain, which is plausibly Canon's own software distribution infrastructure; building and installing printer driver components from this source is normal and low-risk, even though the host is not on a standard whitelist.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:20
source=("http://gdlp01.c-wss.com/gds/7/0900007177/01/bjfilter-common-2.50-3.src.rpm")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
2
# Contributor: Roman Abreu <romanlx at gmail.com>
3
4
set -u
5
pkgname='canon-pixma-ip1500' # pixmaip1500
6
_casepkgname=iP1500Linux
7
pkgver='2.50'
8
pkgrel='3'
9
pkgdesc="Canon BJ Printer Driver for Pixma ip1500"
10
arch=('i686' 'x86_64')
11
url='https://www.canon.co.uk/support/consumer_products/products/printers/inkjet/pixma_ip_series/pixma_ip1500.aspx' # Software, not drivers
12
license=('GPL2' 'LGPL2' 'custom')
13
depends=('cups' 'ghostscript' 'libglade' 'avahi' 'lz4') # 'hplip' 'foomatic'
14
_libpng='libpng12'
15
depends_i686=('glibc' 'popt' "${_libpng}" 'xz' 'libjpeg-turbo' 'zlib' 'libtiff')
16
depends_x86_64=("${depends_i686[@]/#/lib32-}")
17
makedepends_x86_64=("${_libpng}")
18
_srcdir='bjfilter-common-2.50'
19
#source=("http://software.canon-europe.com/files/soft22415/software/${_casepkgname}.tar.gz")
20
source=("http://gdlp01.c-wss.com/gds/7/0900007177/01/bjfilter-common-2.50-3.src.rpm")
21
md5sums=('2c702ccf2bea05d3d585325f148a044f')
22
sha256sums=('925b17953348953546781bb08efd1d48227f97cfe234e749d289496efae3bdb5')
23
24
prepare() {
25
set -u
26
bsdtar -xf 'bjfilter-common-2.50-3.tar.gz'
27
28
cd "${_srcdir}"
29
sed -e '# Fix many clib prototype warnings' \
30
-e 's:^#include <stdlib.h>$:&\n#include <unistd.h>\n#include <string.h>\n#include <ctype.h>:g' \
31
-e '# Set version of libpng' \
32
-e 's:^#include <png.h>$:'"#include <${_libpng}/png.h>:g" \
33
-i 'bjfilter/src/bjfimage.c'
34
35
# Fix /usr/local/bin
36
sed -e 's:/usr/local:/usr:g' -i $(grep --include '*.c' --include '*.h' --include 'Makefile' --include '_*' --include 'configure.in' -larF '/local' .)
37
set +u
38
}
39
40
package() {
41
set -u
42
cd "${_srcdir}"
43
44
set +u; msg2 'Installing ppd and common'; set -u
45
install -d "${pkgdir}/usr/share/cups/model"
46
cp 'ppd/canonpixmaip1500.ppd' "${pkgdir}/usr/share/cups/model"
47
install -Dp '214/libs_bin'/** -t "${pkgdir}/usr/lib"
48
install -Dp '214/database'/* -t "${pkgdir}/usr/lib/bjlib"
49
50
set +u; msg2 'Building libs'; set -u
51
cd "${srcdir}/${_srcdir}/libs"
52
./autogen.sh --prefix="${pkgdir}/usr"
53
make
54
make install
55
56
set +u; msg2 'Building bjfilter'; set -u
57
cd "${srcdir}/${_srcdir}/bjfilter"
58
./autogen.sh --prefix="${pkgdir}/usr" --program-suffix='pixmaip1500'
59
sed -e 's:CFLAGS =.*$:& -Wno-unused-result -m32:g' \
60
-e "s:-lpng:-l${_libpng#lib}:g" \
61
-i 'src/Makefile'
62
make
63
make install
64
65
set +u; msg2 'Building pstocanonbj'; set -u
66
cd "${srcdir}/${_srcdir}/pstocanonbj"
67
install -d "${pkgdir}/usr/lib/cups/filter/"
68
./autogen.sh --prefix="${pkgdir}/usr"
69
make
70
make install
71
72
cd "${pkgdir}/usr/lib"
73
local _l
74
for _l in *.so.*; do
75
ln -sf "${_l}" "${_l%%.so*}.so"
76
done
77
78
cd "${pkgdir}"
79
80
# I can't find this /usr/local to fix it
81
install -d "${pkgdir}/usr/local/bin"
82
ln -s '/usr/bin/bjfilterpixmaip1500' -t "${pkgdir}/usr/local/bin"
83
84
gzip 'usr/share/cups/model'/*.ppd
85
86
if ! :; then
87
depends+=('strace')
88
mv 'usr/lib/cups/filter/pstocanonbj'{,.arch}
89
install -Dm755 <(cat << EOF
90
#!/bin/bash
91
umask 000
92
set > "/tmp/pstocanonbj.\$\$.env"
93
echo -n 'strace -o foo -f ' > "/tmp/pstocanonbj.\$\$.cmd"
94
printf '%s' "\$0.arch" >> "/tmp/pstocanonbj.\$\$.cmd"
95
printf ' %q' "\$@" >> "/tmp/pstocanonbj.\$\$.cmd"
96
echo "" >> "/tmp/pstocanonbj.\$\$.cmd"
97
cat > "/tmp/pstocanonbj.\$\$.prn"
98
<"/tmp/pstocanonbj.\$\$.prn" \
99
strace -f -o "/tmp/pstocanonbj.\$\$.strace" '/usr/lib/cups/filter/pstocanonbj.arch' "\$@" 2>"/tmp/pstocanonbj.\$\$.debug" | tee "/tmp/pstocanonbj.\$\$.ufr"
100
EOF
101
) 'usr/lib/cups/filter/pstocanonbj'
102
fi
103
set +u
104
}
105
set +u
106
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |