Skip to content
UTMSitPublic

About

upac - package manager for comrun7/UTMS7

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

upac (Wand rewrite)

upac is the Comrun7 package manager, rewritten from C to Wand for portability to Linux-like environments, including UTMS7 (non-Linux OS with Linux-compatible syscalls).

Build

Requires wand2c and the installed libw standard library.

wand2c main.w -o upac -fp
# or
umk build

Install

sudo umk install

Commands

upac ogr:<category>/<package>   Install from official repo
upac local:<package>            Install from local build file
upac -r <package>               Remove package
upac -U [package]               Update all or specific package
upac -s ogr:<query>             Search official repo (fuzzy)
upac -s local:<query>           Search local packages
upac -l                         List installed packages
upac -u                         Update package database
upac help                       Show this help

Layout

  • main.w - CLI entry point
  • upac.wh - shared types/constants
  • util.w - common helpers, path/fs/string utilities
  • sysx.w - extra syscall wrappers not covered by current libw
  • db.w - installed package database
  • build.w - .build parsing, version/dependency helpers
  • repo.w - repository sync/search/load
  • install.w - fetch/build/stage/install, transaction graph
  • remove.w - package removal
  • search.w - local package search
  • update.w - package updates
  • archive.w - native tar/stored-zip extraction, bounded fallback for compressed formats
  • net.w - native DNS + HTTP downloader (no curl for plain HTTP URLs)

Tests

umk test
# or, after building:
./tests/run.sh

The test suite uses user namespaces and bind mounts, so it does not modify host system directories. It covers CLI basics, repository install/search, file ownership tracking, conflict detection, removal, local installs, native HTTP download, and native tar extraction.

UTMS7 / Porting Notes

The code targets Linux syscall ABI semantics through Wand/libw syscall wrappers. For UTMS7 porting:

  • Keep syscall-number-specific code isolated in sysx.w and libw syscall module.
  • Filesystem/process behavior assumes Linux-like syscalls: open/read/write/stat/lstat/getdents64/fork/execve/wait4/rename/symlink/flock.
  • Plain http:// source downloads use the native DNS/HTTP client in net.w. HTTPS URLs still fall back to curl until a native TLS backend is available.
  • Repository sync still uses git for the HTTPS GitHub repository. A local HTTP mirror can be used by pointing package URLs at http:// sources.
  • Compressed archives (.tar.gz, .tar.xz, .tar.bz2, deflated ZIP) still use system tar/unzip; plain .tar and stored .zip are extracted natively.
  • Build/install scripts in package .build files still execute via /bin/sh; UTMS7 should provide a compatible shell or replace command execution backend.
  • Paths (/var/lib/upac, /var/cache/upac, /tmp) are centralized as constants in upac.wh.

About

upac - package manager for comrun7/UTMS7

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages