microchip-libraries-for-applications-legacy
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
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)
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# Maintainer: Markus Heidelberg <markus dot heidelberg at web dot de>
pkgname=microchip-libraries-for-applications-legacy
pkgver=v2013_06_15
pkgrel=4
pkgdesc="Microchip Libraries for Applications (Legacy)"
arch=('i686' 'x86_64')
url="http://www.microchip.com/MLA"
license=('custom')
optdepends=('java-runtime: Graphics and TCP/IP utilities support')
makedepends=('fakechroot')
makedepends_x86_64=('lib32-fakechroot' 'lib32-fakeroot')
depends_x86_64=('lib32-glibc')
options=(!strip libtool staticlibs emptydirs !zipman)
install=$pkgname.install
_instdir=/opt/microchip_solutions
_installer=${pkgname//-legacy/}-${pkgver//_/-}-linux-installer.run
source=(http://ww1.microchip.com/downloads/en/softwarelibrary/$_installer
LICENSE)
md5sums=('d3d6597c7aebe122325dd491b41022d6'
'dd2eec20ed33d2924fa301cea78467fa')
package() {
cd "$srcdir"
mkdir -p "$pkgdir"/{bin,etc,usr/{bin,lib,local/lib},tmp}
ln -s /bin/bash "$pkgdir/bin/"
echo "root:x:0:0:root:/root:/bin/bash" > "$pkgdir/etc/passwd"
echo "root:x:0:root" > "$pkgdir/etc/group"
cp "$srcdir/$_installer" "$pkgdir/"
chmod 0755 "$pkgdir/$_installer"
# 10x enter: read license
# 1x y + enter: accept license [y/n]
# 1x enter: accept installation directory
# 13x enter: select components [Y/n]
# 1x enter: confirm selection [Y/n]
# 1x enter: start installation [Y/n]
# 1x enter: continue
# 1x n + enter: download JRE [Y/n]
# 1x n + enter: open ReadMe [Y/n]
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"
# do not use $pkgdir$_instdir as installation directory because of the fakechroot environment
echo "#!/bin/bash
./$_installer --prefix "$_instdir" --mode text < inst_input &> /dev/null || true"> "$pkgdir/chroot_input.sh"
chmod 0755 "$pkgdir/chroot_input.sh"
echo -e "Creating the Package\n Please wait..."
fakechroot chroot "$pkgdir" ./chroot_input.sh
rm "$pkgdir"/{chroot_input.sh,inst_input,$_installer,etc/{group,passwd}}
rm -r "$pkgdir"/{bin,tmp}
# remove unwanted files created by the installer, already available in package "microchip-mplabx-bin"
rm -r "$pkgdir"/{etc,usr/{bin,lib,local}}
rm "$pkgdir$_instdir"/Uninstall*
# fix totally messed up file permissions
find "$pkgdir$_instdir" -type d -exec chmod 0755 '{}' \; -exec chmod ug-s '{}' \;
find "$pkgdir$_instdir" -type f -exec chmod 0644 '{}' \;
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# executable files
install -d "$pkgdir/usr/bin"
# Graphics Resource Converter
cat << EOF > "$pkgdir/usr/bin/grc-legacy"
#!/bin/sh
java -jar "$_instdir/Microchip/Graphics/bin/grc/grc.jar" "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/grc-legacy"
# External Memory Programmer
cat << EOF > "$pkgdir/usr/bin/memory_programmer-legacy"
#!/bin/sh
java -jar "$_instdir/Microchip/Graphics/bin/memory_programmer/memory_programmer.jar" "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/memory_programmer-legacy"
# Microchip 2 Binary Information Base
cat << EOF > "$pkgdir/usr/bin/mib2bib"
#!/bin/sh
java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/mib2bib.jar" "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/mib2bib"
# Microchip MPFS Generator
cat << EOF > "$pkgdir/usr/bin/mpfs2"
#!/bin/sh
java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/MPFS2.jar" "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/mpfs2"
# Microchip Hash Table Filter Entry Calculator"
cat << EOF > "$pkgdir/usr/bin/hash_calculator"
#!/bin/sh
java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/Hash Calculator.jar"
EOF
chmod 755 "$pkgdir/usr/bin/hash_calculator"
# Microchip TCPIP Discoverer
cat << EOF > "$pkgdir/usr/bin/tcpip_discoverer"
#!/bin/sh
java -jar "$_instdir/Microchip/TCPIP Stack/Utilities/TCPIP Discoverer.jar"
EOF
chmod 755 "$pkgdir/usr/bin/tcpip_discoverer"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |