Re: Bootstrapping package with circular dependencies in koji

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 24, 2023 at 7:42 PM Neal Gompa <ngompa13@xxxxxxxxx> wrote:
>
> On Tue, Jan 24, 2023 at 1:39 PM Jaroslav Skarvada <jskarvad@xxxxxxxxxx> 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?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux