xmore crashing in Ubuntu? Here's how to fix it.

I find that sometimes I revert to the older, simpler tools, despite the fact that there are many newer ones available. Why? They’re standardized. They’ll be everywhere. This means you can almost guarantee they’ll be available for you. This, as they say, is a good thing.

Such is the case of ‘xmore.’ xmore is a simple program that provides a scrolling window you can read text in on an X11 display. It’s tiny, and considered to be a core part of X.

I was a bit shocked when I discovered that the default xmore package in Ubuntu dropped core. It was having issues with the Xaw library. So, I looked around, and found a patch for Debian, and modified, then applied it to Ubuntu’s source package.

If you want to install my prebuilt (unofficial) package, it’s available, here’s how to get, and make sure it’s good:

I’ve signed my build with dpkg-sig:

%wget http://www.holwegner.com/files/xmore_1.0.1-0ubuntu2_i386.deb

You will want to get my key and add it to your keyring:

%gpg --keyserver wwwkeys.eu.pgp.net --recv-keys F8C314E3
gpg: requesting key F8C314E3 from hkp server wwwkeys.eu.pgp.net
gpg: key F8C314E3: public key "Shawn Holwegner (GPG Signing Key) <me@mydomain.com>" imported (edited to thwart spambots)
%gpg --armor --export F8C314E3 | sudo apt-key add -
OK

Now, you can check my signature; I’ve tagged this release as ‘feisty’ (Note that I have left the response of GPG here so you can ensure the values match):

%dpkg-sig -c xmore_1.0.1-0ubuntu2_i386.deb
Processing xmore_1.0.1-0ubuntu2_i386.deb...
GOODSIG _gpgfeisty 743D4D271144FB13C788D9F3B4B33515F8C314E3 1184151679

Now, install it:

%sudo dpkg -i xmore_1.0.1-0ubuntu2_i386.deb

Enjoy having a functional ‘xmore’!

However, if you want to install your own rebuild, here’s how.

#Make sure we have all of our required utilities
%sudo apt-get install build-essential wget patchutils fakeroot
#Make sure we have the headers and libraries required
%sudo apt-get build-dep xmore
#Get the source.
%sudo apt-get source xmore
Now, get my patch at https://bugs.launchpad.net/ubuntu/+source/xmore/+bug/72560/comments/6.
# Apply patch:
%cd xmore-1.0.1; sudo patch -p1 < ../path/to/saved/patch.diff
# Build xmore
%fakeroot debian/rules binary
# (Re) Install xmore
%sudo dpkg -i ../xmore_1.0.1-0ubuntu1_i386.deb
# Clean up.
# cd ..; sudo rm -rf xmore*

Remember that this will be divergent, so you’ll want to add it to a ‘hold’ so it doesn’t get overwritten next time you do an update, this can be done with:

%echo xmore hold | dpkg --set-selections

Hopefully this entry will help others plagued by the same problem I was facing.