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

John Pilkington johnpilk222 at gmail.com
Thu May 31 13:54: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:
> 
>> Hi Gary.  Sorry, I'm just blundering around with this and don't want to be a
>> pain after provoking your update.  I've applied Sergio's mockchain patch
> 
> I have not looked at the most recent proposals
> for the mockchain patch, but for EL7, that is
> likely a path not worth going down, since
> the issue is with the new capability to include
> other mock configs, and EL does not use that
> (only Fedora).  Sorry to lead you down that path.
> Just ignore that (for your use case).
> 
> And while checking things out, I noticed that
> I used features in my scripts only available in
> git released around 5 years ago (and EL lags
> significantly (5 yrs? come on!)) so I made some
> minor changes in my scripts to support the
> old/obsolete git that EL7 provides.  In addition,
> I presumed dnf was available (but EL7 is limited
> to yum), so I added in some code to test for that
> condition.  So pull the latest packaging repo code
> to get my adjustments (I do not really consider them
> as fixes, but tolerance of lack of RH progress).
> 
> So this is a (proposed, not fully tested)
> set of instructions for building on EL7
> for EL7:
> 
> 
> --- Get some needed toolchains (this is the only
> --- command you should need root for)
> 
> yum install git rpmdevtools mock yum-utils
> 
> --- you will need to add yourself to the
> --- the mock group if you are not already
> --- in it (and then refresh your group membership)
> 
> 
> --- And one time if you have not already done so:
> 
> git clone https://github.com/garybuhrmaster/packaging.git
> 
> --- Read the README in the packaging/MythTV/rpm directory
> 
> --- Repeat the following sequence as necessary for every rebuild
> --- Typically the git pull will pull in nothing, but just in case
> --- something does get updated....  You can specify specific
> --- commits if you want to, but I typically just rebuild the
> --- latest from a branch (fixes/29 in this case), or master
> --- (depending on what I am targeting.  The build (as you
> --- know) takes a long time depending on the usual variables.
> 
> cd packaging/MythTV/rpm
> 

> git pull
> 
> ./BUILD_MYTHTV_RPMS -r build_cfgs/centos-7-x86_64-rpmfusion_free.cfg fixes/29
> 
> --- Note that the EPEL/RPMFusion repos are sometimes
> --- "interestingly" challenged as far as reachability.  I
> --- have seen the mirrors fail and timeout.  Try the
> --- build again if you get a build failure due to repo access.
> --- I have sometimes had to retry the build half a dozen
> --- times to get the mirrors to be accessible.

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

Thanks, of course, for the instructions - and the scripts.  I'm happy 
running my current build at present, but a fix for this new buildsystem 
would be great.

John






More information about the mythtv-dev mailing list