Skip to content

Commit

Permalink
support latest mock version (2.1) for MythTV builds
Browse files Browse the repository at this point in the history
The latest mock version (2.x) has introduced a number
of significant changes to the mock build environment.
Some of this patch set may eventually be able to be
reverted or modified if/when the upstream makes
further changes, but this works for now with mock 2.1
  • Loading branch information
garybuhrmaster committed Mar 12, 2020
1 parent 7849940 commit e490300
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions MythTV/rpm/BUILD_MYTHTV_RPMS
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ TMPSRCRPMDIR=`mktemp -d`
#
# Build buildable src.rpms
#
mock $MOCKOPTS --define="dist %{nil}" --spec=$TMPSDIR/SPECS/mythtv.spec --sources=$TMPSDIR/SOURCES --resultdir=$TMPSRCRPMDIR --buildsrpm
mock $MOCKOPTS --no-bootstrap-chroot --isolation simple --define="dist %{nil}" --spec=$TMPSDIR/SPECS/mythtv.spec --sources=$TMPSDIR/SOURCES --resultdir=$TMPSRCRPMDIR --buildsrpm
if [ $? -ne 0 ]; then
echo "Unable to build source rpm"
exit 1
Expand All @@ -149,7 +149,7 @@ if [ ! -f "$SRCBASERPM" ]; then
exit 1
fi

mock $MOCKOPTS --define="dist %{nil}" --spec=$TMPSDIR/SPECS/mythtv-plugins.spec --sources=$TMPSDIR/SOURCES --resultdir=$TMPSRCRPMDIR --buildsrpm
mock $MOCKOPTS --no-bootstrap-chroot --isolation simple --define="dist %{nil}" --spec=$TMPSDIR/SPECS/mythtv-plugins.spec --sources=$TMPSDIR/SOURCES --resultdir=$TMPSRCRPMDIR --buildsrpm
if [ $? -ne 0 ]; then
echo "Unable to build source rpm"
exit 1
Expand All @@ -170,7 +170,7 @@ TMPLOCALREPODIR=`mktemp -p /var/tmp -d`
#
# Build the mythtv rpms
#
mock $MOCKOPTS --chain --localrepo=$TMPLOCALREPODIR $SRCBASERPM $SRCPLUGINSRPM
mock $MOCKOPTS --no-bootstrap-chroot --isolation simple --chain --localrepo=$TMPLOCALREPODIR $SRCBASERPM $SRCPLUGINSRPM
if [ $? -ne 0 ]; then
echo "Unable to build mythtv rpms"
exit 1
Expand Down
4 changes: 2 additions & 2 deletions MythTV/rpm/BUILD_MYTHWEB_RPMS
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fi
#
TMPSRCDIR=`mktemp -d`
# Build src.rpm
mock $MOCKOPTS --define="dist %{nil}" --resultdir=$TMPSRCDIR --spec=$TMPSDIR/SPECS/mythweb.spec --sources=$TMPSDIR/SOURCES --buildsrpm
mock $MOCKOPTS --no-bootstrap-chroot --isolation simple --define="dist %{nil}" --resultdir=$TMPSRCDIR --spec=$TMPSDIR/SPECS/mythweb.spec --sources=$TMPSDIR/SOURCES --buildsrpm
if [ $? -ne 0 ]; then
echo "Unable to build source rpm"
exit 1
Expand All @@ -141,7 +141,7 @@ if [ ! -f "$SRCRPM" ]; then
fi

TMPTGTDIR=`mktemp -d`
mock $MOCKOPTS --resultdir=$TMPTGTDIR --rebuild $SRCRPM
mock $MOCKOPTS --no-bootstrap-chroot --isolation simple --resultdir=$TMPTGTDIR --rebuild $SRCRPM
if [ $? -ne 0 ]; then
echo "Unable to build rpm"
exit 1
Expand Down

0 comments on commit e490300

Please sign in to comment.