microchip-libraries-for-applications-legacy

LOW
maintainer mawe 1 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a legitimate Microchip installer from the official microchip.com domain, which is plausibly the project's own source; despite the static analyzer flag for a non-standard host, the installer is a vendor-provided binary used to build the package, and no untrusted or obfuscated code is executed.

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 legitimate Microchip installer from the official microchip.com domain, which is plausibly the project's own source; despite the static analyzer flag for a non-standard host, the installer is a vendor-provided binary used to build the package, and no untrusted or obfuscated code is executed.

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:18 source=(http://ww1.microchip.com/downloads/en/softwarelibrary/$_installer

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Markus Heidelberg <markus dot heidelberg at web dot de>
2
3pkgname=microchip-libraries-for-applications-legacy
4pkgver=v2013_06_15
5pkgrel=4
6pkgdesc="Microchip Libraries for Applications (Legacy)"
7arch=('i686' 'x86_64')
8url="http://www.microchip.com/MLA"
9license=('custom')
10optdepends=('java-runtime: Graphics and TCP/IP utilities support')
11makedepends=('fakechroot')
12makedepends_x86_64=('lib32-fakechroot' 'lib32-fakeroot')
13depends_x86_64=('lib32-glibc')
14options=(!strip libtool staticlibs emptydirs !zipman)
15install=$pkgname.install
16_instdir=/opt/microchip_solutions
17_installer=${pkgname//-legacy/}-${pkgver//_/-}-linux-installer.run
18source=(http://ww1.microchip.com/downloads/en/softwarelibrary/$_installer
19 LICENSE)
20
21md5sums=('d3d6597c7aebe122325dd491b41022d6'
22 'dd2eec20ed33d2924fa301cea78467fa')
23
24package() {
25 cd "$srcdir"
26
27 mkdir -p "$pkgdir"/{bin,etc,usr/{bin,lib,local/lib},tmp}
28
29 ln -s /bin/bash "$pkgdir/bin/"
30
31 echo "root:x:0:0:root:/root:/bin/bash" > "$pkgdir/etc/passwd"
32 echo "root:x:0:root" > "$pkgdir/etc/group"
33
34 cp "$srcdir/$_installer" "$pkgdir/"
35 chmod 0755 "$pkgdir/$_installer"
36
37 # 10x enter: read license
38 # 1x y + enter: accept license [y/n]
39 # 1x enter: accept installation directory
40 # 13x enter: select components [Y/n]
41 # 1x enter: confirm selection [Y/n]
42 # 1x enter: start installation [Y/n]
43 # 1x enter: continue
44 # 1x n + enter: download JRE [Y/n]
45 # 1x n + enter: open ReadMe [Y/n]
46 echo -e "\n\n\n\n\n\n\n\n\n\ny\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nn\nn" > "$pkgdir/inst_input"
47
48 # do not use $pkgdir$_instdir as installation directory because of the fakechroot environment
49 echo "#!/bin/bash
50 ./$_installer --prefix "$_instdir" --mode text < inst_input &> /dev/null || true"> "$pkgdir/chroot_input.sh"
51 chmod 0755 "$pkgdir/chroot_input.sh"
52
53 echo -e "Creating the Package\n Please wait..."
54
55 fakechroot chroot "$pkgdir" ./chroot_input.sh
56
57 rm "$pkgdir"/{chroot_input.sh,inst_input,$_installer,etc/{group,passwd}}
58 rm -r "$pkgdir"/{bin,tmp}
59
60 # remove unwanted files created by the installer, already available in package "microchip-mplabx-bin"
61 rm -r "$pkgdir"/{etc,usr/{bin,lib,local}}
62 rm "$pkgdir$_instdir"/Uninstall*
63
64 # fix totally messed up file permissions
65 find "$pkgdir$_instdir" -type d -exec chmod 0755 '{}' \; -exec chmod ug-s '{}' \;
66 find "$pkgdir$_instdir" -type f -exec chmod 0644 '{}' \;
67
68 install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
69
70 # executable files
71 install -d "$pkgdir/usr/bin"
72
73 # Graphics Resource Converter
74 cat << EOF > "$pkgdir/usr/bin/grc-legacy"
75#!/bin/sh
76java -jar "$_instdir/Microchip/Graphics/bin/grc/grc.jar" "\$@"
77EOF
78 chmod 755 "$pkgdir/usr/bin/grc-legacy"
79
80 # External Memory Programmer
81 cat << EOF > "$pkgdir/usr/bin/memory_programmer-legacy"
82#!/bin/sh
83java -jar "$_instdir/Microchip/Graphics/bin/memory_programmer/memory_programmer.jar" "\$@"
84EOF
85 chmod 755 "$pkgdir/usr/bin/memory_programmer-legacy"
86
87 # Microchip 2 Binary Information Base
88 cat << EOF > "$pkgdir/usr/bin/mib2bib"
89#!/bin/sh
90java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/mib2bib.jar" "\$@"
91EOF
92 chmod 755 "$pkgdir/usr/bin/mib2bib"
93
94 # Microchip MPFS Generator
95 cat << EOF > "$pkgdir/usr/bin/mpfs2"
96#!/bin/sh
97java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/MPFS2.jar" "\$@"
98EOF
99 chmod 755 "$pkgdir/usr/bin/mpfs2"
100
101 # Microchip Hash Table Filter Entry Calculator"
102 cat << EOF > "$pkgdir/usr/bin/hash_calculator"
103#!/bin/sh
104java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/Hash Calculator.jar"
105EOF
106 chmod 755 "$pkgdir/usr/bin/hash_calculator"
107
108 # Microchip TCPIP Discoverer
109 cat << EOF > "$pkgdir/usr/bin/tcpip_discoverer"
110#!/bin/sh
111java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/TCPIP Discoverer.jar"
112EOF
113 chmod 755 "$pkgdir/usr/bin/tcpip_discoverer"
114}
115

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion