Re: Mock build Fedora package on CentOS 7

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

 



This is turning into a "debug mock on CentOS" discussion, not a Fedora
discussion per se. Please let me know if it should be over in the mock
github.com issues instead.

On Sat, Jan 18, 2020 at 10:56 AM Ian Pilcher <arequipeno@xxxxxxxxx> wrote:
>
> On 1/18/20 5:07 AM, Nico Kadel-Garcia wrote:
> > The inserted arguments are order sensitive, and need to be in the
> > right place in fedora-31.tmpl on the latest release of mock and
> > mock-core-cnfigs. See my notes at:
> >
> >      https://github.com/rpm-software-management/mock/issues/390
> >
> > And use this in /etc/mock/templates/fedora-31.tmpl
> >
> >      config_opts['bootstrap_image'] = 'fedora:31'
> >      config_opts['use_bootstrap_image'] = True
> >      config_opts['use_bootstrap_container'] = True
> >
> > This uses podman to download an OS image, installs that, uses that to
> > run mock tools to build a new image, etc. It's a bootstrap process,
> > it's slow, and I've found it to be burdensome and fragile, not
> > allowing operation on certain host server filesystems. And no, I don't
> > remember the list of forbidden filesystems.
>
> I was aware of that issue, but I wasn't aware that it affected the
> command-line options.  After editing fedora-31.tpl, I can now see mock
> pulling the container image and rebuilding the root cache.

I don't use the command line options for this. Since I found the
selected options in the config files to be order sensitive and
unstable unless inserted in certain order in certain places, I don't
have complete confidence in the Python command line options and simply
write my own config files. Since mock lets you select a locally edited
and source controlled config file, this is much safer for me.

> Unfortunately, I still get the same error in the end:
>
>   Start: build phase for thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
>   Start: build setup for thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
>   warning: line 206: It's not recommended to have unversioned Obsoletes:
> Obsoletes:      thunderbird-lightning
>   warning: extra tokens at the end of %endif directive in line 625:
> %endif # build_langpacks

Yeah Fedora 31 rpmbuild is a lot nosier about these.

>   Building target platfms: x86_64
>   Building for target x86_64
>   setting SOURCE_DATE_EPOCH=1578960000
>   Wrote: /builddir/build/SRPMS/thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
>   Failed to set locale, defaulting to C.UTF-8
>   No matches found for the following disable plugin patterns: local,
> spacewalk
>   No such command: builddep. Please use /usr/bin/dnf --help
>   It could be a DNF plugin command, try: "dnf install
> 'dnf-command(builddep)'"
>   Finish: build setup for thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
>   Finish: build phase for thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm
>   ERROR: Exception(thunderbird-68.4.1-1.mzbz1526765.fc31.src.rpm)
> Config(fedora-31-x86_64) 3 minutes 5 seconds
>   INFO: Results and/or logs in: /var/lib/mock/fedora-31-x86_64/result
>   ERROR: builddep command missing.
>   Please install package dnf-plugins-core.

I think you're missing some of the options I've suggested for dnf
based operating systems, or fedora-31.tmpl in particular in my
published mock-core-configs.spec file.  And is you "mock" up to the
latest reason from EPEL I'll urge you to publish a diff between the
RPM published fedora-31.tmpl and yours to isolate the issue.
_______________________________________________
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




[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