summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2022-10-06 18:52:52 +0200
committerJean Delvare <jdelvare@suse.de>2022-10-06 18:52:52 +0200
commitb73e4afa7e4c28a981430c5b80a95254f2ed6b77 (patch)
tree7db44f74b34c9b7021ea30b334ba06c2539d219a
parentb01a73783d9e1e2592d3a4c5d95a377ec13d8339 (diff)
downloadquilt-b73e4afa7e4c28a981430c5b80a95254f2ed6b77.tar.gz
setup: Document the limitation of spec file support
Quilt setup can't be used on arbitrary spec files. Due to the fact that quilt only deals with patches, every other modification to the working tree has to happen first, and the patches must be applied last. This is a design limitation and not a bug, but document it so that the users are aware of it and can adjust the %prep section of their spec file if needed. Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--quilt/setup.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/quilt/setup.in b/quilt/setup.in
index fc0a2c9..d3a97f0 100644
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -279,7 +279,13 @@ Initializes a source tree from an rpm spec file or a quilt series file.
--fast Use the new, faster method to process the spec file. In this mode,
rpmbuild is told to generate a working tree directly in the target
- directory. This is now the default.
+ directory. This is the default (since quilt version 0.67).
+
+The setup command is only guaranteed to work properly on spec files where
+applying all the patches is the last thing done in the %%prep section. This is
+a design limitation due to the fact that quilt can only operate on patches. If
+other commands in the %%prep section modify the patched files, this must
+happen first, otherwise you won't be able to push the patch series.
"
exit 0
else