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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |