"refs/tags/upstream/*"
### Using locally built packages
-Except for `ggml` itself, pbuilder/cowbuilder needs to be configured appropriately
+Except for the `ggml` layer itself, pbuilder/cowbuilder needs to be configured appropriately
in order to use either a local repository with the `ggml` packages you just built,
or a remote repository with the required `ggml`-related packages.
-To configure a local repository, update `/etc/pbuilderrc`. For example:
+Below is a basic approach to configure a local repository, as an illustration
+ to be adapted to your own build infrastructure and procedures.
+
+Update `/etc/pbuilderrc`. For example:
...
BINDMOUNTS="/srv/repo/deb/bullseye/ml/1.1 /srv/repo/deb/bookworm/ml/1.1 /srv/repo/deb/sid/ml/1.1"
...
-and create a `create-pbuilder.settings` file which will be sourced by the script:
+and create a `create-pbuilder.settings` file which will be sourced by the `create-pbuilder` script:
+
+ export GIT_PBUILDER_OPTIONS="--aptcache /var/cache/pbuilder/aptcache --othermirror 'deb [trusted=yes] file:/srv/repo/deb/$DIST/ml/1.1/ ./'"
+
+Apply the same procedure for the `build-pbuilder` script by editing build-pbuilder.settings:
- export GIT_PBUILDER_OPTIONS="--aptcache /var/cache/pbuilder/aptcache --othermirror 'deb [trusted=yes] file:/srv/repo/deb/$1/ml/1.1/ ./'"
+ export GIT_PBUILDER_OPTIONS="--aptcache /var/cache/pbuilder/aptcache --buildresult /srv/repo/deb/$DIST/ml/1.1/"
-The `Packages` file needs to be generated after each build. For example:
+Please note that the `Packages` file needs to be generated after each build. For example:
cd /srv/repo/deb/sid/ml/1.1
apt-ftparchive packages . > Packages
-(Or [hooks](https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build) can be used.)
+Or [pbuilder hooks](https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build) can be used.
## Development ##
When developing the packaging, cd to a layer directory and [use git-buildpackage as usual](https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/).