upgrading a Slackware kernel
Joseph C. Lininger
jbahm at pcdesk.net
Sun Feb 6 19:25:27 EST 2005
One option you have is to build your own patch against the kernel source
tree. This will most likely only allow you to apply the patch to the version
of the kernel for which you build the patch, but it will at least provide a
way to install speakup into your source tree should you need to. I do this
for a distro I work on, and it works well. We have a script that
automatically applies all of the patches we want to use in the source tree,
and speakup is one of them. Here's how I generate the patch.
1. Download and unpack the kernel source tree. I'll assume Linux 2.6.10 for
this example.
cd /usr/src
wget --passive-ftp
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2
tar -xjf linux-2.6.10.tar.bz2
ln -s linux-2.6.10 linux
2. Make a copy of the source tree. You'll need this to generate the patch.
cp -a linux-2.6.10 linux-2.6.10.orig
3. Use the checkout script to install speakup.
cd linux
wget --passive-ftp ftp://bumpy.braille.uwo.ca/pub/speakup/checkout
chmod 755 checkout
./checkout
4. Generate the patch.
cd ../
diff -urN linux-2.6.10.orig/ linux-2.6.10/ > speakup.patch
You can now remove the .orig directory if you want, as you don't need it any
more. Now, all you have to do when you unpack a new copy of the source tree
that hasn't been patched is the following, assuming that you have
speakup.patch in your home directory:
cd /usr/src
tar -xjf linux-2.6.10.tar.bz2
ln -s linux-2.6.10 linux
cd linux
patch -p1 -s < ~/speakup.patch
--
Profanity is the language all programmers know best.
Joseph C. Lininger
jbahm at pcdesk.net
Verification: 5eab38a77ac40416e075be8f50607ff7
----- Original Message -----
From: "Steve Holmes" <steve at holmesgrown.com>
To: <speakup at braille.uwo.ca>
Sent: Sunday, February 06, 2005 7:32 AM
Subject: Re: upgrading a Slackware kernel
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This does bring up a slightly different angle on this question. Is
> there a simple way to isolate the speakup patches and hand apply them
> to my newest kernel of choice? I recall trying something like this a
> ways back unsuccessfully. The resulting download from CVS is
> apparently not exactly like the tarball that gets built about every 3
> years <sigh>. I guess another question might be: how can we build our
> own tarballs of speakup that we might be able to apply at any time CVS
> is unavailable like now?
>
> On Fri, Feb 04, 2005 at 08:14:03PM -0700, Joseph C. Lininger wrote:
>> Hello,
>> I would be happy to send you a 2.6.10 kernel tree with speakup patches
>> as well as other patches that I use on my system. Most of them come
>> from the gentoo-dev-sources package from Gentoo Linux, but there are
>> a couple that I have applied by hand like grsecurity. Let me know if
>> you're interested.
>>
>> --
>> Profanity is the language all programmers know best.
>> Joseph C. Lininger
>> jbahm at pcdesk.net
>> Verification: 5eab38a77ac40416e075be8f50607ff7
>>
>> On Thu, 3 Feb 2005, Stephen Clower wrote:
>>
>> >Hello folks,
>> >
>> > Normally I wouldn't be asking this question, but since Linux-Speakup
>> > appears to be down indefinitely I could use some pointers. I am
>> > running Slackware 10.0 with the Speakup enabled 2.4.26 kernel
>> > compiled
>> > by Joseph C. Lininger. Currently, there is no software synth support
>> > in the kernel, so I figured that if I'm going to recompile the
>> > kernel,
>> > I might as well upgrade to 2.6.7 for the sake of being up-to-date.
>> >
>> > Normally I would download the kernel sources from kernel.org and run
>> > the Speakup CVS checkout script, but for obvious reasons this won't
>> > work. Consequently, I've decided to download the 2.6.7 kernel source
>> > package from a Slackware 10.0 mirror along with the Speakup-2.4.26
>> > folder from the sources directory. Will I still be able to patch the
>> > 2.6.7 kernel with the Speakup source, or will there be something
>> > else
>> > I need to do?
>> >Thanks,
>> >Steve
>> >
>> >
>> >
>> >----------
>> >Stephen Clower
>> >Email/.Net Messenger: steve at steve-audio.net
>> >AIM: AudioRabbit03
>> >Skype: sclower
>> >
>> >Check out my little home on the web at http://www.steve-audio.net
>> >
>> >
>> >_______________________________________________
>> >Speakup mailing list
>> >Speakup at braille.uwo.ca
>> >http://speech.braille.uwo.ca/mailman/listinfo/speakup
>> >
>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup at braille.uwo.ca
>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>>
>>
>
> - --
> HolmesGrown Solutions
> The best solutions for the best price!
> http://ld.net/?holmesgrown
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFCBiphWSjv55S0LfERAvZjAKD3OCqw5Hcw4QjtxNl+aXc5lTODjACggYA/
> 4FvXRbZhOk5sjfysuMnXV/I=
> =q3Wl
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
More information about the Speakup
mailing list