OK, I've fixed firefly for Ubuntu 11.10 (Oneric Ocelot) with some slightly modifications for this post
https://discussions.apple.com/thread/3372281?answerId=16577371022#16577371022
I have ubuntu 10.04 running to, on this box I added
deb http://ftp.debian.org/debian squeeze main
to /etc/apt/sources.list
I did on that machine a
sudo apt-get update
sudo apt-get upgrade
but I didn't installed some missing dependencies.
I got the mt-daapd source with
sudo apt-get source mt-daapd
this will download the necessaty files into the working directory. I compiled ist on my 10.04 ubuntu and everything was fine. I put the whole stuff into an tar archive and transfered it to the ubuntu 11.10 box.
I was able to follow the 7 steps written by thomas, so I will only(!) describe the changes I made furthermore:
Step 1: Install the required packages
gpa is not available for 11.10, it's broken like written on some posts. Therefore you oinly need to install the rest via
$ sudo aptitude install devscripts debhelper dpatch libflac-dev libvorbis-dev libmpcdec-dev libavcodec-dev libavformat-dev libid3tag0-dev libtagc0-dev libavahi-client-dev libsqlite3-dev libjs-prototype libjs-scriptaculous avahi-daemon
Step 3: Create a temporary directory for the MT-daapd source files
Instead of sudo apt-get source mt-daapd untar the archive you made prior. I didn't check it adding the debian source to ubuntu 11.10 source.list will do the job too.
$ mkdir ~/mt-daapd
$ cd ~/mt-daapd
$ tar xzfv <name_of_your_archive>
4. Download the Patch in the Patch directory
$ cd ~/mt-daapd/mt-daapd-0.9~r1696.dfsg/debian/patches/
$ wget http://www.zero-factorial.com/coding/21_itunes10.5.dpatch
$ echo 21_itunes10.5.dpatch >> 00list
$ cd ../..
There is a need of a further patch for ubuntu 11.10, because it comes with a newer ffmpeg library. The patch is easy, so I skipped to make a patch-file.
$ cd src/plugins
open ssc-ffmpeg.c with your favorite editor and search for CODEC_TYPE_AUDIO (it's in line 281). Change this to AVMEDIA_TYPE_AUDIO
$ cd ../..
$ cd configure --enable-sqlite3
(maybe last step is optional, I needed it for my AMD64 box)
From this point, you can follow https://discussions.apple.com/thread/3372281?answerId=16577371022#16577371022