me

/

vpac Public
36 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

update README

diviocity committed last Nov 11 · bf5fb36aaa95aaeedc035394af21fd754c2860e1 View patch
Unverified signature 2 files changed +21 -12
AGENTS.md +12 -8

@@ -2,8 +2,8 @@

22

33for agents landing in this repository cold.

44

5-vpac is a package manager written in V on top of libalpm, the library that

6-backs pacman. it is a frontend of its own — its own listings, prompts,

5+vpac is a package manager written in V on top of the native `alpm` engine

6+in alpm.v, which follows pacman/libalpm behavior. it is a frontend of its own — its own listings, prompts,

77progress drawing, and a json event protocol for other frontends — with a

88config file of its own, and two package sources beyond the sync dbs: the

99pkgbuild repos and arbitrary git repos built with vpac itself.

@@ -26,7 +26,7 @@ src/trans.v transaction begin/prepare/commit/cleanup and the interrupt

2626 freshness; src/db_check.v is verify's -D modes.

2727src/ipc.v --ui ipc: the event protocol (one json object per line) and

2828 the prompter a frontend answers questions with.

29-src/ui.v the shared progress display and callback wiring for libalpm;

29+src/ui.v the shared progress display and callback wiring for alpm.v;

3030 src/prompt.v the terminal's side of every question.

3131(the rest of src/)

3232 one file per command. install is remote.v, and remove.v

@@ -49,11 +49,15 @@ src/testdb/ a module only the tests import: the one writer of libalpm

4949

5050## the cross-references, and the rule about them

5151

52-the binary links libalpm through the V module `alpm` (a file that begins

53-`module alpm`), evaluates its config and lip files through the module

52+the binary uses the native V module `alpm` (a file that begins `module alpm`),

53+evaluates its config and lip files through the module

5454`blip.vlib.blip`, and reuses this repo's own `vmakepkg`. these dependencies

5555live outside the repository: on a machine, V finds them under its module

5656directory (typically ~/.vmodules), often as symlinks to checkouts beside vpac.

57+the native backend uses libarchive, curl, GPGME/GnuPG, seccomp on Linux and libc;

58+production builds have no libalpm header or link dependency. alpm.v keeps its C

59+reference under tests/coracle; never substitute it for the production backend.

60+the complete public parity/logging audit is still tracked in alpm.v issue #1.

5761

5862- if a build cannot resolve `alpm`, `blip` or `vmakepkg`, find where those

5963 checkouts are on this machine (ask, or look in V's module directory) —

@@ -88,7 +92,7 @@ directory (typically ~/.vmodules), often as symlinks to checkouts beside vpac.

8892 pacman or posix cross-reference, the data's shape — not what the line does.

8993 when you change behavior, move the comment with it.

9094- error discipline: no panics behind doors a user walks through; every

91- libalpm call's error is handled; a housekeeping failure the run goes on

95+ alpm call's error is handled; a housekeeping failure the run goes on

9296 from (a handle's release, a temp dir's removal) is not `or {}` but

9397 `or { went_on('release the alpm handle', err) }`, which --verbose says;

9498 ?T (may be none) and !T (may fail) are unwrapped with their own syntax

@@ -112,7 +116,7 @@ directory (typically ~/.vmodules), often as symlinks to checkouts beside vpac.

112116 the error inline or widen the return.

113117- defer always runs, including through `or { return err }`: pair

114118 trans_begin with `defer { trans_cleanup(handle) }` at the moment of begin

115- and never also release by hand (alpm_release is not idempotent).

119+ and never also release by hand (Handle.release is not idempotent).

116120- assigning one array to another needs the checker's `.clone()`; a borrowed

117121 &T passed to a mut method is the local copy, never a write to the C side.

118122- the repo's __global config values are the whole config surface:

@@ -139,7 +143,7 @@ directory (typically ~/.vmodules), often as symlinks to checkouts beside vpac.

139143 the build mode run as that invoking user, never as root. --lip-run is vpac

140144 internal: the entry generated PKGBUILDs call back through, not a mode.

141145- read-only modes may open a lean alpm.initialize handle; anything that

142- writes goes through init_handle so libalpm's callbacks and the

146+ writes goes through init_handle so alpm's callbacks and the

143147 configured siglevel, cachedirs, ignores and parallelism attach.

144148

145149## the issue tracker

README.md +9 -4

@@ -1,6 +1,6 @@

11## introduction

22

3-[vpac](https://vpac.vorelabs.dev/) is a *versatile* package manager based on [libalpm](https://man.archlinux.org/man/libalpm.3)

3+[vpac](https://vpac.vorelabs.dev/) is a *versatile* package manager using the native V engine in [alpm.v](https://git.vorelabs.dev/diviocity/alpm.v), following pacman/libalpm behavior.

44

55## features

66

@@ -28,14 +28,19 @@ vpac s -r linux-lts # search the sync databases

28

129`install.vsh` also asks whether to keep vpac's database, cache, keys and hooks

230in pacman's directories, whether to add the distro's repo of 32-bit libraries

3-(`multilib` on arch, `lib32` on artix), and whether to turn libalpm's download

31+(`multilib` on arch, `lib32` on artix), and whether to turn alpm.v's download

432sandbox off.

533Answer no to the first only if you mean to keep vpac's state apart from

634pacman's: a separate database does not know the packages pacman installed.

735

836Building needs the V compiler, `v`. It also needs the `alpm` and `blip`

9-modules, which V finds under its module directory, and libalpm's headers and

10-library.

37+modules, which V finds under its module directory. The native `alpm` backend

38+uses libarchive, libcurl, GPGME/GnuPG, libseccomp on Linux and libc. Production

39+builds no longer require libalpm headers or library. The alpm.v differential

40+suite deliberately keeps libalpm as an independent test reference.

41+

42+The native backend switch is implemented; its complete public behavior and

43+logging audit remains tracked in [alpm.v issue #1](https://git.vorelabs.dev/diviocity/alpm.v/issues/1).

1144

1245`v test src` and `v test vmakepkg` run the test suites.

1346