[mythtv] rpm build of master using mockchain. git help needed

John Pilkington johnpilk222 at gmail.com
Sun Jun 3 08:52:59 UTC 2018


On 14/05/18 17:16, Gary Buhrmaster wrote:
> On Sat, May 12, 2018 at 3:15 PM, John Pilkington <johnpilk222 at gmail.com> wrote:

I've just come back to this with the new ffmpeg4 master and my build 
system upgraded to f27 - which overwrote the mythchain patch #65

After mending that I now have two SRPMS (mythtv and plugins, maybe 
identical) and a new problem:

Start: buildsrpm
Start: rpmbuild -bs
Building target platforms: x86_64
Building for target x86_64
Wrote: 
/builddir/build/SRPMS/mythtv-plugins-30.Pre.650.g9dee6dd8e7-100.src.rpm
Finish: rpmbuild -bs
Finish: buildsrpm
INFO: Done(/tmp/tmp.jiWL9oZt0i/SPECS/mythtv-plugins.spec) 
Config(fedora-27-x86_64-rpmfusion_free) 0 minutes 46 seconds
INFO: Results and/or logs in: /tmp/tmp.DDQUrvUsgG
INFO: Cleaning up build root ('cleanup_on_success=True')
Start: clean chroot
Finish: clean chroot
Finish: run
starting logfile: None
results dir: /tmp/tmp.I7UUmOVKoi/results/fedora-27-x86_64-rpmfusion_free
config dir: /tmp/tmp.I7UUmOVKoi/configs/fedora-27-x86_64-rpmfusion_free
Traceback (most recent call last):
   File "/usr/bin/mockchain", line 419, in <module>
     sys.exit(main(sys.argv))
   File "/usr/bin/mockchain", line 301, in main
     res, msg = add_local_repo(config_opts['config_file'], 
my_mock_config, local_baseurl, 'local_build_repo')
   File "/usr/bin/mockchain", line 145, in add_local_repo
     exec(code)
   File "/etc/mock/fedora-27-x86_64-rpmfusion_free.cfg", line 1, in <module>
     include('/etc/mock/fedora-27-x86_64.cfg')
   File "<string>", line 1, in <module>
NameError: name 'config_opts' is not defined
Unable to build rpm

Gary:  As I have said elsewhere in this 'thread' I'm now running master 
(without plugins) from rpms built from this point on outside your 
script.  I was not using your fix for the mockchain#65 'include' 
problem, but the later post by Sergio.  I suppose it might not do 
exactly the same.

But in trying to understand what was required I came across the last 
paragraph here, and wondered if it's relevant.  It's for mock, not 
mockchain.

https://github.com/rpm-software-management/mock/wiki

> Using file:// URLs in configs
> 
> Since version 1.4.1 you cannot use file:// in baseurl in Mock config's. If you want to use your local repo, you have to make it available inside of chroot using bind_mount plugin.

Cheers,

John





More information about the mythtv-dev mailing list