Skip to content

Latest commit

 

History

History
96 lines (57 loc) · 3.49 KB

TODO.md

File metadata and controls

96 lines (57 loc) · 3.49 KB

Fix all bugs reported

This is the number one requirement :)

Replace dependencies by dep formula

Dep formula is a definition of a formula where can represent requirements (keyword) and packages but also can define alternatives of those:

name1 = 1.0 | name2 != 1.0, name3 > 1.0 < 2.0 != 1.5, name4 +opt1 -opt2

Difficulty: hard

Remove sqlite calls from frontend for (r)query

sqlite should be a technical detail and thus should not be exposed by the library

Difficulty: hard

Explore a rework of the library dependencies

Would be nice to have a better mechanism that could track the symbols of the libraries (including versions)

RPM already does this

Allow duplicate package handling

Allow multiple packages having the same name as long as they don't conflict

  • pkg.conf:

    duplicatenumber: 2 duplicate: { FreeBSD-kernel-*: 3, clibs: 5 }

  • Drop unique index on packages(name) or make it on name,version

  • annotation saveme

  • Upgrade:

    • get_local_pkg()

      • check saveme
      • ensure only one
      • in summary: check for saveme annotation, change to install
    • pkg_add()

      • check for saveme annotation, remove upgrade flag

Teach pkg repo to keep a list of unavailable packages

When a build fail the package is not added to the repository. As such, a user who attempts to install the package is told that it does not exist, rather than it is just temporarily unavailable.

The repo building process could create a list of failed packages during the build, and provide that as part of the repo in the form of a UCL file. If there are no result when looking for a package, we could check the failed packages list, and provide the user with a reason why the package is not available (build failed, RESTRICTED, BROKEN, EXPIRED, etc)

A similar process may also make sense for the MOVED file.

Add a mechanism to allow a user to know when a package no longer exists in the remote repos

pkg upgrade could grow a way to complain about packages it cannot upgrade because they no longer exist in the repo. When combined with the 'failed packages' list, and possibly the MOVED list, this could provide a reliable mechanism for the user to know that the package they have no longer exists in the ports tree.

Add a periodic script for reporting pkg check -d output

add a pkg wrongabi alias if possible in pkg.conf

This would allow after a major upgrade to check what packages are still on the old ABI

Add a FreeBSD only check on FreeBSD version (which should also be added to packages)

This would allow to only install packages for the right ABI and only if the binary was built on an OS version which is lower or equal that the one we are running on.

new groupinstall concept

Add some new ucl files in the ports tree do define groups of files instead of meta ports

Test suite

  • Tests for pkg audit
  • Improve tests for triggers

pkg reposync/repomerge

Currently there is a race easily obtain when you pkg install blah and the remote repository is synced. The idea of reposync/repomerge is to address this issue by having a command that takes two repository directories, one being the directory served by the webserver (named www below) and the other being the newly created repository (named new below) and does:

  • Open www/packagesite and rm all packages in www/All/ that aren't in it (this clean pkgs-1)
  • Copy all new/All/* to www/All/
  • Copy atomically meta.conf/meta.XXX/packagesite.XXX from new/ to www/

This leaves the new/ directory with the new packagesite, the new pkgs and the pkgs-1 from the previous run.