[mythtv-users] 0.23-fixes and build_myth.sh

David Knight dlknight at sdf.lonestar.org
Fri Jun 4 14:28:49 UTC 2010


Hey Folks,

   Up until recently I have been running Fedora 12 and 0.22-fixes. I use
the SVN version of MythTV and just compile and install from source.

However I recently stumbled across a thread discussing the build_myth.sh
script. I thought that this would be a good idea as creating RPM packages
will hopefully prevent stale libraries and binaries from being left behind
after an upgrade/uninstall.

After a few dependency issues I managed to build and install the main RPM
packages apart from mythnetvision (which I disabled as it was causing the
build to fail).

I noticed that the buildthemes function is currently commented out within
the build_myth.sh script. So I modified the script enough so that it would
create the tar balls myththemes-0.23.tar.bz2 and themes-0.23.tar.bz2 (see
below).

#Modified buildthemes function
# Function to build mythtv themes packages
    function buildthemes {
    # Update the SVN checkout -- make sure not to
        updatesvn mythtv-themes "$1"
    # Update the spec
        updatespec $REL "$ABSPATH/mythtv-themes.spec"
    # Clean up any old tar balls that might exist
        rm -f "$ABSPATH"/mythtv-themes/*themes*.tar.bz2
    # Create the appropriate tar balls
        for file in myththemes themes; do
            if [ -d "$file-$VERSION" ]; then
                rm -rf "$file-$VERSION"
            fi
            echo -n "    "
            mv "$file" "$file-$VERSION"
            tar jcf "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2"
--exclude .svn "$file-$VERSION"
            mv "$file-$VERSION" "$file"
            echo "$ABSPATH/mythtv-themes/$file-$VERSION.tar.bz2"
        done
    # Disabled until I can clean this up later -- themes now require
libmyth in
    # order to compile.
    #
    ## Build MythTV Themes
    #    rpmbuild -bb /usr/src/redhat/SPECS/mythtv-themes.spec
    ## Error?
    #    if [ "$?" -ne 0 ]; then
    #        echo "MythTV Themes build error."
    #        return
    #    fi
    }


I then tried to use the following rpmbuild command to create the
mythtv-themes RPM package but it fails to build the second (empty) themes
directory:

[mythtv at magnolia rpm]$ rpmbuild -bb mythtv-themes.spec --define
"_sourcedir /home/mythtv/release-0-23-fixes/packaging/rpm/mythtv-themes"
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3h5d8m
+ umask 022
+ cd /home/mythtv/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/mythtv/rpmbuild/BUILD
+ rm -rf mythtv-themes-0.23
+ /bin/mkdir -p mythtv-themes-0.23
+ cd mythtv-themes-0.23
+ /usr/bin/bzip2 -dc
/home/mythtv/release-0-23-fixes/packaging/rpm/mythtv-themes/myththemes-0.23.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/bzip2 -dc
/home/mythtv/release-0-23-fixes/packaging/rpm/mythtv-themes/themes-0.23.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8x8WlB
+ umask 022
+ cd /home/mythtv/rpmbuild/BUILD
+ cd mythtv-themes-0.23
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd myththemes-0.23
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=noarch-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info
+ cd ..
+ cd themes-0.23
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ ./configure --build=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --target=noarch-redhat-linux-gnu
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info
Nothing to do here.
There are no themes in this directory.  It is just a placeholder.
error: Bad exit status from /var/tmp/rpm-tmp.8x8WlB (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.8x8WlB (%build)

Cheers

Dave K.




More information about the mythtv-users mailing list