Package: libmusicbrainz-2.1 Severity: important Version: 2.1.2-4 Tags: patch
Hi, the current version fails to build on GNU/kFreeBSD with: Traceback (most recent call last): File "setup.py", line 8, in ? import musicbrainz File "/build/manual/libmusicbrainz-2.1-2.1.2/python/musicbrainz.py", line 57, in ? mbdll = cdll.LoadLibrary(findLibrary()) File "/build/manual/libmusicbrainz-2.1-2.1.2/python/musicbrainz.py", line 36, in findLibrary raise MusicBrainzError, "Unknown platform: " + sys.platform musicbrainz.MusicBrainzError: Unknown platform: gnukfreebsd5 make: *** [install-indep] Error 1 Please, use attached patch to fix that. It would also be nice if you can ask upstream to include this change. Thanks in advance Petr
--- python/musicbrainz.py~ 2006-05-26 14:11:34.000000000 +0200 +++ python/musicbrainz.py 2006-05-26 14:11:34.000000000 +0200 @@ -30,10 +30,7 @@ if sys.platform == "darwin": lib = "libmusicbrainz.4.dylib" else: - if sys.platform == "linux2": - lib = "libmusicbrainz.so.4" - else: - raise MusicBrainzError, "Unknown platform: " + sys.platform + lib = "libmusicbrainz.so.4" path = "/usr/lib/" + lib if os.access(path, os.F_OK): @@ -47,7 +44,7 @@ if os.access(path, os.F_OK): return path; - raise MusicBrainzError, "Cannot find MusicBrainz share library: " + lib + raise MusicBrainzError, "Cannot find for platform " + sys.platform + " MusicBrainz share library: " + lib if sys.platform == "win32": mbdll = cdll.LoadLibrary("libmusicbrainz.dll")