Dependency-oriented build order #14

Closed
opened 2021-07-09 17:29:35 +02:00 by anonfunc · 1 comment
Owner

Currently, ALHP builds all updated packages (or PKGBUILDs to be exact) to [core], [extra] and [community] as soon as they are in their respective /repo folder in randomized order.

What ALHP should do instead:

  1. Find all PKGBUILDs which need building (new pkgrel, pkgver)
  2. Build a tree based on (make-)depends (doesn't have to be a tree, sorted list would do the same on a functional level)
  3. Build from root up
Currently, ALHP builds all updated packages (or `PKGBUILD`s to be exact) to **[core]**, **[extra]** and **[community]** as soon as they are in their respective `/repo` folder in [*randomized* order](https://git.harting.dev/anonfunc/ALHP.GO/src/commit/9a0dc876592107aad538230f65603d375e424d3d/main.go#L660). What ALHP should do instead: 1. Find all PKGBUILDs which need building (new pkgrel, pkgver) 2. Build a tree based on `(make-)depends` (doesn't have to be a tree, sorted list would do the same on a functional level) 3. Build from root up
anonfunc added this to the beta milestone 2021-07-09 17:29:41 +02:00
Author
Owner

Never mind, I just realized that since we build in a clean chroot with (hopefully, depends on the mirror somewhat) up to date packages from [core], [extra] and [community], this should be no problem.

It would be a problem if we use x86-64-vN packages as chroot sync mirror, which we don't.

What we should do instead is check if packages in (make-)depends are the lastest ones from the repo, and our mirror is not lagging behind or try again later if he does.

Never mind, I just realized that since we build in a clean chroot with (hopefully, depends on the mirror somewhat) up to date packages from [core], [extra] and [community], this should be no problem. It would be a problem if we use x86-64-vN packages as chroot sync mirror, which we don't. What we should do instead is check if packages in `(make-)depends` are the lastest ones from the repo, and our mirror is not lagging behind or try again later if he does.
anonfunc removed this from the beta milestone 2021-07-09 17:43:32 +02:00
Sign in to join this conversation.
No description provided.