From: Mathieu Baudier Date: Sat, 15 Feb 2025 07:11:46 +0000 (+0100) Subject: Improve README X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=df48a712db293b3d56f8042c4aea85d58a16b010;p=pkg%2Fggml Improve README --- diff --git a/README.md b/README.md index 1747b89..1338c42 100644 --- a/README.md +++ b/README.md @@ -35,28 +35,6 @@ or: cd sources/llama.cpp ../build-pbuilder bullseye amd64 debian/bullseye -## Using locally built packages ## -Except for `ggml` 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: - - ... - 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: - - export GIT_PBUILDER_OPTIONS="--aptcache /var/cache/pbuilder/aptcache --othermirror 'deb [trusted=yes] file:/srv/repo/deb/$1/ml/1.1/ ./'" - -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.) - ## 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/). @@ -98,3 +76,25 @@ Edit `debian/changelog` and perform packaging-specific changes. Test the build locally: ../build-pbuilder bookworm amd64 + +## Using locally built packages ## +Except for `ggml` 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: + + ... + 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: + + export GIT_PBUILDER_OPTIONS="--aptcache /var/cache/pbuilder/aptcache --othermirror 'deb [trusted=yes] file:/srv/repo/deb/$1/ml/1.1/ ./'" + +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.) \ No newline at end of file