Comment 42 for bug 209483

Revision history for this message
Benjamin Delagoutte (benjamin-delagoutte) wrote :

TheFluffyOne,

Here is what I did to recompile a HAL package with the modification :

# get the source package
apt-get source hal
# install build dependencies
sudo apt-get build-dep hal
cd hal-0.5.11~rc2/
# use strtoul() instead of strtol() in util.c
sed -i '201s/strtol/strtoul/' hald/util.c
# recompile HAL and build a brand new package
dpkg-buildpackage -us -uc -rfakeroot
cd ..
# install the package
sudo dpkg -i hal_0.5.11~rc2-1ubuntu8.1_i386.deb

To get the A818 recognized by Rhythmbox as a UMS digital audio player, you'll also have to put a FDI in /etc/hal/fdi/information/. You can find a sample one at http://www.delagoutte.net/wordpress/wp-content/uploads/20-sony-a818.fdi

Corresponding process for french readers :
http://www.delagoutte.net/122-les-walkmans-sony-sous-ubuntu-hardy/