On Tue, Jan 24, 2023 at 7:42 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
On Tue, Jan 24, 2023 at 1:39 PM Jaroslav Skarvada <jskarvad(a)redhat.com> wrote:
>
> Hi,
>
> I need to bootstrap package which has bootstrap support written
> according to the [1]. I am able to bootstrap it locally (rpmbuild,
> mock, ...) with the "--with bootstrap" or "-D '_with_bootstrap
1'". Is
> there support for it in koji? E.g. something like:
> koji build SIDE-TAG PACKAGE --bootstrap? Or do I have to manually do:
> 1. patch:
> - %bcond_with bootstrap
> + %bcond_without bootstrap
> 2. koji build SIDE-TAG SCM
> 3. update&build the circular dep
> 4. unpatch:
> - %bcond_without bootstrap
> + %bcond_with bootstrap
> 5. release bump
> 6. koji build SIDE-TAG SCM
>
> Or is there some better way?
>
> thanks & regards
>
> Jaroslav
>
> [1]
https://docs.fedoraproject.org/en-US/packaging-guidelines/#bootstrapping
You might be able to set macros in your build tags to switch back and
forth between bootstrap mode. I don't recall exactly how this is done
from the koji CLI though...
I initially thought about:
release bump
$ koji edit-tag SIDETAG -x %_with_bootstrap=1
build
handle circular dep
$ koji edit-tag SIDETAG -r %_with_bootstrap
build
But I haven't tried it yet because I didn't want to break anything :)
Is this the correct way to do it?