LinHES Forums
http://forum.linhes.org/

R5F27's patcher
http://forum.linhes.org/viewtopic.php?f=3&t=16709
Page 1 of 3

Author:  Human [ Mon Sep 24, 2007 10:23 am ]
Post subject:  R5F27's patcher

This is a list of all fixes done by R5F27's patcher. It will be updated as new patches are created. The latest patcher is downloaded automatically by LivePatch.sh, which is invoked during new installations of R5F27 or upgrades to R5F27. If you see a patch here that you need, and you installed or upgraded after the patch was created, the safest bet is to cut and paste the relevant code block and run the commands individually, but it is usually safe to run LivePatch.sh yourself, as root.

1-8 were done on or before 2007/09/20. 9 was done on 2007/10/08. 8 was updated on 2007/10/20. 10 was done on 2007/11/01. 11 was done on 2007/11/09.

1: Change default Qt font for MythTV, to add Anti-Aliasing back.
Code:
# anti-aliased fonts
# --

# The new qtrc uses a bad font for AA.  Tweak it in GlobalTweaker.sh,
# forcing it to be Sans Serif.

GLOBALTWEAKER=/usr/bin/GlobalTweaker.sh
QTRC=/home/mythtv/.qt/qtrc

if [ `grep -c "Force Sans Serif" $GLOBALTWEAKER` -eq 0 ]; then
    echo "#" >> $GLOBALTWEAKER
    echo "# patcher.sh" >> $GLOBALTWEAKER
    echo "#" >> $GLOBALTWEAKER
    echo "# Force Sans Serif since it does AA" >> $GLOBALTWEAKER
    echo "if [[ \`grep -c \"Sans Serif\" $QTRC\` -eq 0 ]];" then >> $GLOBALTWEAKER
    echo    "sed -i \"s/font=.*/font=Sans Serif,12,-1,5,50,0,0,0,0,0/g\" $QTRC" >> $GLOBALTWEAKER
    echo "fi" >> $GLOBALTWEAKER
fi


2: Remove dangerous and broken move_recordings.sh script
Code:
/bin/rm -f /usr/local/bin/move_recordings.sh


3: Fix XMLTV bug by upgrading it
Code:
cd /root
wget http://internap.dl.sourceforge.net/sourceforge/xmltv/xmltv-0.5.48.tar.bz2
tar xjf xmltv-0.5.48.tar.bz2
cd xmltv-0.5.48/
perl Makefile.PL PREFIX=/usr --default
make
make install
cd /usr/share/perl5
/bin/mv -f XMLTV XMLTV.orig
/bin/mv -f XMLTV.pm XMLTV.pm.orig


4: Use a fixed listings grabber for Australia
Code:
cd /usr/bin
/bin/mv -f tv_grab_au tv_grab_au.orig
wget --timeout=30 http://www.better-access.com/KM/tv_grab_au_reg
/bin/mv -f tv_grab_au_reg tv_grab_au
chmod a+x tv_grab_au


5: Use resuming mplayer as default player for Dragon
Code:
sed -i "s/mplayer -fs/mplayer-resumer.pl -fs/g" /usr/bin/DragonSQLtweaker.sh


6: Fix a bug if someone runs shootscreens.sh by hand
Code:
sed -i "s/OSD=1/OSD=1\nelse\n    OSD=0/g" /usr/local/bin/shootscreens.sh


7: Import Files in optical disk menu failed horribly when no media was present. This new version fixes that.
Code:
cd /usr/local/bin
/bin/rm -f importfiles.sh
wget ftp://ftp.knoppmyth.net/R5/R5F27/importfiles.sh
chmod a+x importfiles.sh


8: Onboard audio for Biostar TF7025/7050 and other motherboards needs Realtek ALSA drivers.
Code:
if [[
       (`lspci -mn | grep -c -e ".*0403.*10de.*055c.*-ra1.*1565.*820c.*"` -ge 1) ||
       (`lspci -mn | grep -c -e ".*0403.*8086.*293e.*-r02.*1043.*829f.*"` -ge 1)
       ]]; then
    echo "Your sound device needs newer Realtek ALSA drivers."
    echo "Downloading and installing them now."
    cd /tmp
    /bin/mv /lib/modules/2.6.18.chw-13/updates/alsa .
    # The numeric IP address comes from a link on Realtek's site
    wget ftp://209.216.61.149/pc/audio/realtek-linux-audiopack-4.06b.tar.bz2
    tar xfj realtek-linux-audiopack-4.06b.tar.bz2
    cd realtek-linux-audiopack-4.06b
    sed -i "s/^\(alsaconf\)/#\1/g" install
    ./install
    NEED_TO_REBOOT=1
fi


9: Add the KnoppMyth menu to the Classic MythTV menu layout
Code:
tail -48 /usr/src/mythtv/source/knoppmyth_tv_0.20.0-9_km.diff | patch -d /usr/share/mythtv -p1


10: Fix missing i2c-id.h
Code:
cd /usr/src/linux-headers-2.6.18-chw-13/include/linux/
/bin/rm -f i2c-id.h
wget http://lm-sensors.org/svn/i2c/trunk/kernel/i2c-id.h


11: Change bad DEVICE file references in some hardware.conf files from /dev/usb/hiddev0 to lirc0
Code:
echo "Changing bad DEVICE file references in some hardware.conf files from /dev/usb/hiddev0 to lirc0..."
find /usr/local/share/knoppmyth/remotes -name 'hardware.conf' -exec grep hiddev0 {} \; -exec sed -i "s/DEVICE=.*/DEVICE=\"\/dev\/lirc0\"/g" {} \;

Author:  jzigmyth [ Mon Sep 24, 2007 2:12 pm ]
Post subject: 

Adding each patch's creation date might be useful for those who find this post at some future date.
Should I assume that the first 8 patches listed were the original patches available at the release of R5F27? Or have some been added since then?

Thanks!

Author:  Human [ Mon Sep 24, 2007 2:31 pm ]
Post subject: 

jzigmyth wrote:
Adding each patch's creation date might be useful for those who find this post at some future date.

True. I didn't keep track of this, though.
jzigmyth wrote:
Should I assume that the first 8 patches listed were the original patches available at the release of R5F27? Or have some been added since then?

IIRC, most of the patches were done at the same time, and #8 was done last. If you run LivePatch.sh, it'll check the latest patcher.sh against the one you have and run the new one if yours isn't the latest. Otherwise it does nothing.

Author:  ayourk [ Sun Sep 30, 2007 1:41 am ]
Post subject:  Re: R5F27's patcher

You may want to add this to the patcher to fix a bug in the missing KnoppMyth menu for the Classic style menus:

Code:
tail -48 /usr/src/mythtv/source/knoppmyth_tv_0.20.0-9_km.diff | patch -d /usr/share/mythtv -p1

Author:  Human [ Mon Oct 08, 2007 12:31 pm ]
Post subject:  Re: R5F27's patcher

ayourk wrote:
You may want to add this to the patcher to fix a bug in the missing KnoppMyth menu for the Classic style menus:

Code:
tail -48 /usr/src/mythtv/source/knoppmyth_tv_0.20.0-9_km.diff | patch -d /usr/share/mythtv -p1

Added! Thanks for the contribution!

Author:  TVBox [ Thu Nov 01, 2007 3:58 am ]
Post subject:  Missing Kernel file i2c-id.h

You may want to add this to the patcher to fix
Missing Kernel file i2c-id.h

usr/src/linux-headers-2.6.18-chw-13/include/linux/i2c-id.h is a dead end symbolic link that points at /root/v4l-dvb-1387dc197077/linux/include/linux/i2c-id.h. It has caused problems with persons trying to recompile Lirc and other updates / installs. Search for i2c-id.h and you will find the problems if you have any questions.

Code:
cd /usr/src/linux-headers-2.6.18-chw-13/include/linux/
/bin/rm -f i2c-id.h
wget http://lm-sensors.org/svn/i2c/trunk/kernel/i2c-id.h


TVBox

Author:  Human [ Thu Nov 01, 2007 9:35 am ]
Post subject: 

Added! Thanks!

Author:  TVBox [ Wed Nov 07, 2007 9:54 pm ]
Post subject: 

Human
Do you have a place to host small files to do other corrections?
TVBox

Author:  tjc [ Wed Nov 07, 2007 11:18 pm ]
Post subject: 

You can always create a wiki page for them and attach the file.

Author:  Human [ Thu Nov 08, 2007 9:04 am ]
Post subject: 

TVBox wrote:
Human
Do you have a place to host small files to do other corrections?
TVBox

I put most of them on ftp.knoppmyth.net, but please send them to me first so I can review them.

Author:  TVBox [ Fri Nov 09, 2007 9:35 am ]
Post subject: 

Human

In the last couple of releases a few of the remotes had incorrect device statements in the hardware.conf file. I went through all of them and here is the ones I found

/usr/local/share/knoppmyth/remotes/AMCEUSB-new/hardware.conf
/usr/local/share/knoppmyth/remotes/Dvico/hardware.conf
/usr/local/share/knoppmyth/remotes/MCEUSB-new/hardware.conf
/usr/local/share/knoppmyth/remotes/MCEUSB-old/hardware.conf

The statement DEVICE="/dev/usb/hiddev0" should be DEVICE="/dev/lirc0"

I have corrected the four files and have emailed them to you.
My thought was to host the files and use wget.
Example for MCEUSB-new

Code:
cd /usr/local/share/knoppmyth/remotes/MCEUSB-new/
/bin/rm -f hardware.conf
wget http://WhereYouPutIt/hardware.conf


If you can do the changes with command line code great but that is beyond my skills.
When all you have is a hammer, everything looks like a nail.

Thanks
TVBox

Author:  Human [ Fri Nov 09, 2007 9:54 am ]
Post subject: 

Thanks! I'll add those in as sed commands, since the changes are small.

Author:  ayourk [ Thu Nov 15, 2007 5:15 am ]
Post subject:  Re: R5F27's patcher

Human wrote:
...

3: Fix XMLTV bug by upgrading it
Code:
cd /root
wget http://internap.dl.sourceforge.net/sourceforge/xmltv/xmltv-0.5.48.tar.bz2
tar xjf xmltv-0.5.48.tar.bz2
cd xmltv-0.5.48/
perl Makefile.PL PREFIX=/usr --default
make
make install
cd /usr/share/perl5
/bin/mv -f XMLTV XMLTV.orig
/bin/mv -f XMLTV.pm XMLTV.pm.orig

...


Why not use the xmltv, xmltv-gui, & xmltv-util debs from unstable/main? They are up to version 0.5.50 now.

As for i2c-id.h, you may want to grab the version from:

http://linuxtv.org/hg/v4l-dvb/raw-file/ ... x/i2c-id.h, or better yet:

Code:
if [ ! -x /root/v4l-dvb-1387dc197077 ]; then
    cd /root
    wget http://linuxtv.org/hg/v4l-dvb/archive/1387dc197077.tar.bz2
    tar -jxf 1387dc197077.tar.bz2
fi

Author:  Human [ Thu Nov 15, 2007 10:39 am ]
Post subject: 

Hi, ayourk!

I can make those changes, but I'd need them to be tested by the people who requested the original changes, just to make sure they still work. So if someone who needed the XMLTV upgrade can install 0.5.50 and not have problems, I can add that. Similarly, if people who needed i2c-id.h can confirm that ayourk's recommended version works just as well, I'll add that in.

Author:  TVBox [ Fri Nov 16, 2007 6:27 am ]
Post subject: 

Human
I think ayourk has a excellent idea. I have bumped into the missing root/v4l-dvb-1387dc197077 problem a couple of times with different equipment. The i2c-id.h file workaround was only one part of a bigger problem with all the dead links in the /usr/src/linux-headers-2.6.18-chw-13/include/linux folder. I will try to get time tonight to try it out

TVBox

Page 1 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/