# S045 — installer.sh and Arch package: test file Run by the S045 worker with throwaway roots. Dist files: `dist/Medlar-0.1.0-*`. ## Built `installer.sh` · install from tar.gz/AppImage, `--user`/`--system`/`--prefix`, DESTDIR, `--uninstall [--purge]`, glibc and SHA256SUMS checks, `--url`. `packaging/arch/PKGBUILD`, `.SRCINFO` · `medlar-bin` from the release tar.gz. `tools/package.sh` · `ARCH_ONLY=1` adds the Arch package to existing dist/. ## Checks | # | Risk | Do this | Expect | How | Result | |---|---|---|---|---|---| | 1 | HIGH | `HOME= ./installer.sh dist/...tar.gz` | bin, desktop (Exec absolute), icon, metainfo, licence under `/.local`; `medlar --version` works | by hand | pass | | 2 | HIGH | then `--uninstall --purge` with config/data dirs present | our files and data dirs gone; no medlar files left | by hand | pass (empty dirs and tool-made caches stay) | | 3 | HIGH | `DESTDIR= ./installer.sh --system tar.gz`, then `--system --uninstall` | files under `/usr/local`, no sudo; uninstall leaves no files | by hand | pass | | 4 | HIGH | AppImage install and uninstall in temp HOME | bin, desktop, icon, metainfo installed; removed after | by hand | pass | | 5 | HIGH | `MEDLAR_GLIBC=2.39` install | plain message, exit 1, nothing installed | by hand | pass | | 6 | HIGH | SHA256SUMS with a wrong sum | refuses, exit 1 | by hand | pass | | 7 | MED | installer copied next to dist files, no argument | finds the tar.gz, checks sums, installs | by hand | pass | | 8 | MED | installer alone in a folder, no argument | "No Medlar tar.gz..." exit 1 | by hand | pass | | 9 | MED | `makepkg` with `MEDLAR_TARBALL=file://...` | builds offline; binary bytes equal the tar.gz's | by hand | pass | | 10 | MED | `bsdtar -tf` the package; `.PKGINFO` | usr/bin/medlar, desktop, icon, metainfo, licences, README; depends glibc>=2.44, gcc-libs; optdepends yt-dlp, ffmpeg | by hand | pass | | 11 | MED | `ARCH_ONLY=1 tools/package.sh` | pkg added, SHA256SUMS lists 3 files, tar.gz and AppImage hashes unchanged | by hand | pass | | 12 | LOW | `--url` with a local file server | downloads and installs | by hand | not run: no network use; code path unexercised | | 13 | LOW | `pacman -U` the package; shellcheck; namcap | — | by hand | not run: real system must not be touched; shellcheck and namcap not installed | ## Needs Throwaway HOME and DESTDIR only. Never the real ~/.local, /usr or pacman db. ## Doubts - `--system` with real sudo was not run. Uninstall now removes empty folders and its mimeapps.list line (checked with AppImage in a temp HOME). Depends include the dlopened libs (libxkbcommon, libglvnd, wayland, X11 libs, fontconfig) found in the binary strings. - `makepkg --nodeps` was used (glibc>=2.44 is met here). Package has no real LICENSE file: a short MIT notice is generated (project has none). - PKGBUILD pins the sha256 of the released tar.gz; package.sh uses a skip-free build with `-C` and the same tarball, so a rebuilt tar.gz needs the sum updated. - Package is `medlar-bin` but the file is named `Medlar-0.1.0-arch-x86_64.pkg.tar.zst` per release naming; pacman accepts it.