Re: fedora-review broken?

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

 



On Wednesday, 28 August 2019 19:30:28 CEST Richard Shaw wrote:
> On Wed, Aug 28, 2019 at 11:53 AM Bob Mauchin <zebob.m@xxxxxxxxx> wrote:
> > What's the mock config file you are using? From the error it seems it's
> > missing config_opts['root']
> 
>  I should have posted the full command anyway so here it is:
> 
> $ fedora-review --rpm-spec -n plex-media-player-2.40.0-2.fc29.src.rpm -m
> fedora-30-x86_64-rpmfusion_free
> 
> Since I'm getting an error when I just run "fedora-review --help" I didn't
> attribute it to the mock config... The RPM Fusion usually just extend on
> the base Fedora config including the free and/or non-free repositories on
> top of it.
> 
> Thanks,
> Richard

Probably a FedoraReview bug, it reads the cfg file from fedora-30-x86_64-
rpmfusion_free.cfg to search for config_opts['root'], but doesn't resolve the 
include.

It seems there is a bug opened already for this issue:
https://pagure.io/FedoraReview/issue/359
The bug was introduced by me to solve another one apparently.

Until this bug is solved, I'm joining my cfg file for RPMFusion to use with 
FedoraReview. Use it with -m pathtocfgfile.cfg.

Best regards,

Robert-André
# Auto-generated by the Koji build system

config_opts['chroothome'] = '/builddir'
config_opts['use_host_resolv'] = False
config_opts['basedir'] = '/var/lib/mock'
config_opts['rpmbuild_timeout'] = 86400
config_opts['chroot_setup_cmd'] = 'install @buildsys-build pigz lbzip2'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['root'] = 'f32-candidate-x86_64_rpmfusion'
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
config_opts['package_manager'] = 'dnf'
config_opts['use_bootstrap_container'] = False
config_opts['environment']['LANG'] = 'C.UTF-8'
config_opts['releasever'] = '32'
config_opts['rpmbuild_networking'] = True
config_opts['dynamic_buildrequires'] = True
config_opts['dynamic_buildrequires_max_loops'] = 10

config_opts['plugin_conf']['root_cache_enable'] = True
config_opts['plugin_conf']['yum_cache_enable'] = True
config_opts['plugin_conf']['ccache_enable'] = True

config_opts['macros']['%_host'] = 'x86_64-koji-linux-gnu'
config_opts['macros']['%_host_cpu'] = 'x86_64'
config_opts['macros']['%vendor'] = 'Koji'
config_opts['macros']['%distribution'] = 'fc32'
config_opts['macros']['%_topdir'] = '/builddir/build'
config_opts['macros']['%_rpmfilename'] = '%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'
config_opts['macros']['%packager'] = 'Koji'

config_opts['plugin_conf']['package_state_enable'] = False
config_opts['plugin_conf']['ccache_opts']['compress'] = True
config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "pigz"
config_opts['macros']['%__gzip'] = '/usr/bin/pigz'
config_opts['macros']['%__bzip2'] = '/usr/bin/lbzip2'


config_opts['yum.conf'] = """
[main]
keepcache=1
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
install_weak_deps=0
metadata_timer_sync=80000
metadata_expire=80000
mdpolicy=group:primary
best=1
module_platform_id=platform:f32
fastestmirror=1
max_parallel_downloads=8

# repos

[fedora]
name=fedora
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=$basearch
gpgkey=file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-$releasever-primary file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-31-primary
gpgcheck=1
skip_if_unavailable=False

[local]
name=local
baseurl=https://kojipkgs.fedoraproject.org/repos/f32-build/latest/$basearch
skip_if_unavailable=False

[build-free]
name=build
baseurl=http://koji.rpmfusion.org/kojifiles/repos/f32-free-build/latest/$basearch

[build-nonfree]
name=build
baseurl=http://koji.rpmfusion.org/kojifiles/repos/f32-nonfree-build/latest/$basearch
"""

_______________________________________________
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