Add documentation on how to bootstrap packages with Koji #1308
No reviewers
Labels
No labels
announce
bootstrap
Closed As
accepted
Closed As
duplicate
Closed As
exceptionexpired
Closed As
fixed
Closed As
invalid
Closed As
nothingtodo
Closed As
permanentexception
Closed As
rejected
Closed As
temporaryexception
Closed As
wontfix
cmake
committee
draftneeded
hasdraft
meeting
meson
needinfo
Priority
In Committee
Priority
Needs Review
Priority
Waiting For Reporter
rust
writeup
No milestone
No project
No assignees
7 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
packaging/guidelines!1308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bootstrap_doc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Following the changes in 1.33.0:
https://docs.pagure.org/koji/release_notes/release_notes_1.33/#plugins
s/cam/can/, s/packagse/package/
Thanks!
releng#11254 doesn't fully explain how to use the feature, and we shouldn't force contributors to dig in the releng archives for this info.
I don't have a voting power here, but I'd like to see this section in the docs.
There's a TIP: a few lines above which says
It would be nice to a) adjust the tip text and b) for absolute clarity, reiterate in the
== Using bootstrapping with Kojisection that the method does not require touching bcond in the spec or committing/reverting anything.That's not accurate;
%bcond bootstrap 0only checks if_with_bootstrapis defined and doesn't look at the value. E.g.rpmbuild --define '_with_bootstrap 0' ...would continue as if the bootstrap option was enabled.Please, remove this and leave
--remove-rpm-macroas the only option.rebased onto 0e681dfc9f248340afdd3c4f1306a3bf182c6c9b
rebased onto b55052d92444980df8947fbbdac2e4d00507e5bc
I updated the text as specified.
rebased onto a405a74508272c17e3408ab52b3f90705559af08
rebased onto
0670ca3d04I just tried following these instructions, and I found that that a (scratch) build issued immediately after
koji edit-sidetag --rpm-macro _with_bootstrap=1 f41-build-side-91021was still a non-bootstrap build. I tried again ten or twenty minutes later, and it worked just fine. So if I am not confused or mistaken, it takes some time for the RPM macro to take effect in the side tag. I wonder if there is any way to know when it is ready (other than firing off builds and hoping for the best).s/unboostrapped/unbootstrapped/koji edit-sidetag --rpm-macro _with_bootstrap=1 f41-build-side-91021koji wait-repo f41-build-side-91021The only downside is that you cannot tell
koji wait-repowhat you are waiting for (unlike with builds), so it waits for a first regen-repo after the command. If a regen-repo happened between 1) and 2), you are needlessly waiting for a second regen-repo to happen.Note that this is already documented at https://docs.fedoraproject.org/en-US/package-maintainers/Package_Update_Guide/#_using_macros_in_a_side_tag
The only macro allowed is _with_bootstrap though, all others are forbidden for common people.
Ping? It's challenging pulling together how to properly do this from the disparate sources..
Sorry, it looks like this PR has fallen through the cracks.
That said, I don't think the packaging guidelines is the correct place for this. They're for how packages should be done, not how they can be built. IMO the documentation for Package Maintainers would be more appropriate - other HOWTO style docs are already there.
I hope that most people are using
mockthese days and in that case, this can enabled by mock--with=bootstrapoption. No need to change .spec fileView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.