]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Extend arch build script comment about symlinks
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Jul 2024 14:42:00 +0000 (16:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 15 Jul 2024 14:17:33 +0000 (16:17 +0200)
mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot

index 7798e78dda488bd486d489d96d4617bcd8f79a11..444f069b6f9e205eb2eca07cb8e3b6db0ac7d403 100755 (executable)
@@ -11,10 +11,13 @@ if [[ ! -f "pkg/$ID/PKGBUILD" ]]; then
 fi
 
 # We can't configure the source or build directory so we use symlinks instead to make sure they are in the
-# expected locations.
+# expected locations. Because we run with --noextract we are responsible for making sure the source files
+# appear in src/. This means not only the systemd source directory, but also the patches and configuration
+# files that are shipped in the packaging repository. To achieve this, instead of symlinking the systemd
+# sources and build directory directly into "pkg/$ID/src", we symlink them into "pkg/$ID" and then symlink
+# "pkg/$ID" to "pkg/$ID/src".
 ln --symbolic "$SRCDIR" "pkg/$ID/systemd"
 ln --symbolic "$BUILDDIR" "pkg/$ID/build"
-# Because we run with --noextract we are responsible for making sure the source files appear in src/.
 ln --symbolic . "pkg/$ID/src"
 
 MKOSI_CFLAGS="-O0 -Wp,-U_FORTIFY_SOURCE"