Showing posts with label wine. Show all posts
Showing posts with label wine. Show all posts

Thursday, September 30, 2010

Audible Manager on Ubuntu (requires patching/compilation of wine)

Apparently Audible.com is working with open-source providers to give us a native Audible Manager for Linux. Recently, they released an Audible application for Android phones, so that seems like they are at least working with Linux in some form or fashion.

But I am impatient and don't like waiting for corporate bureaucracy to "fix" things that are broken. (How does that go again? Whatever cuts least into our bottomline...)

So, there is a patch proposed here that fixes the shortcoming (bug) in the API that wine had when dealing with SSL/TLS connections. Right off the bat, the patch does not work for the latest wine release (1.3.3). A little editing was required to patch the right files (dlls/wininet/internet.c iirc).


I fixed up the patch (which you can download by clicking here) so that after downloading the wine 1.3.3 tarball, I unpacked the tarball, patched, compiled, and indeed the patch works.

Specific commands used...


wget http://files.volatileminds.net/misc/audible_wine-1.3.3.patch
tar xjf wine-1.3.3.tar.bz2
cd wine-1.3.3/
patch -p0 < ../audible_wine-1.3.3.patch
./configure --prefix=$HOME/wine
make && make install


I did however need to get the wine dependencies from apt...


apt-get build-dep wine


Hope this helps others in the same boat as me! I hate waiting for companies to find time to appease the customers rather than making time.

Wednesday, September 16, 2009

AudibleManager in Ubuntu

So, it turns out that the AudibleManager software that Audible.com uses for it's audiobooks runs in wine for the most part. The one part that doesn't work is the one part that makes the actual software useful to install, and it looks like it is a bad API implemenation of InternetCrackUrlW() within the Windows inet libraries. It is taking a TLS session and assuming it is SSL, making an SSL request on the audible servers, with no SSL port being used on the Audible servers in the first place, causing a time out on authentication.

A few patches have been proposed on the bug page (http://bugs.winehq.org/show_bug.cgi?id=16831), but I was hoping that the last patch that seems to work had been employed into the latest stable version (it hasn't, quite a disappointment), so even using the wine apt repos rather than the ubuntu ones doesn't fix this for you. You have to patch it yourself.

No esta bien. And I am a big fan of audiobooks, so, please, no posts on how Audible.com is evil for it's DRM.