]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add note on BuildSources= being required to install local packages.
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Jan 2024 12:10:09 +0000 (13:10 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 12 Jan 2024 12:56:15 +0000 (13:56 +0100)
mkosi/resources/mkosi.md

index 14184a360c6634c726532edcdbf8366d85056029..ccf158c2e0b3458c44486d5e1e7f3ceba8e34659 100644 (file)
@@ -834,7 +834,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
   packages that provides `/usr/bin/ld`, the packages in the *Development Tools*
   group, and the package that contains the `mypy` python module.
 
-  ```
+  ```conf
   Packages=meson
            libfdisk-devel.i686
            git-*
@@ -844,6 +844,16 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
            python3dist(mypy)
   ```
 
+: Note that since mkosi runs in a sandbox with most of the host files
+  unavailable, any local packages have to be mounted into the sandbox
+  explicitly using `BuildSources=`. For example, let's say we have a
+  local package located at `../my-packages/abc.rpm` relative to the mkosi
+  working directory, then we'd be able to install it as follows:
+
+  ```conf
+  BuildSources=../my-packages:my-packages-in-sandbox
+  Packages=my-packages-in-sandbox/abc.rpm
+  ```
 
 `BuildPackages=`, `--build-package=`