Merge lp:~deeack/ubuntu/maverick/mumble/fix-for-713693 into lp:ubuntu/maverick/mumble

Proposed by Ryan Short
Status: Needs review
Proposed branch: lp:~deeack/ubuntu/maverick/mumble/fix-for-713693
Merge into: lp:ubuntu/maverick/mumble
Diff against target: 45 lines (+15/-12)
2 files modified
debian/changelog (+6/-0)
scripts/mumble-overlay (+9/-12)
To merge this branch: bzr merge lp:~deeack/ubuntu/maverick/mumble/fix-for-713693
Reviewer Review Type Date Requested Status
Micah Gersten (community) Needs Information
Review via email: mp+48715@code.launchpad.net

Description of the change

Updated the mumble-overlay shell script to find the correct location of libmumble.so.1.

The script now checks to see if the full paths /usr/lib32/mumble and /usr/lib64/mumble exist instead of just /usr/lib32 and /usr/lib64 which was causing problems further on in the script when it assumed that because those folders existed that's where the file was located.

To post a comment you must log in.
Revision history for this message
Ryan Short (deeack) wrote :

Re-uploaded after noticed a stupid typo on my part!

Revision history for this message
Micah Gersten (micahg) wrote :

I'm sorry, but I don't see the benefit of this change. It is less lines of code, but it seems to accomplish the same goal.

review: Needs Information
Revision history for this message
Ryan Short (deeack) wrote :

My apologies I guess I need to explain what it does a little better, the problem is actually further down in the script.

If you try and run "mumble-overlay glxgears" you'll get an error message saying "Could not find 32-bit/64-bit libmumble.so.1". The reason for that is the Ubuntu install places the file under /usr/lib/mumble.

What's currently happening pre-patch is the script checks to see if the /usr/lib32 and /usr/lib64 directories exist and if they do it creates a variable to store their location in, then after it's created the variable it checks to see if the mumble subdirectory exists and updates the variable.

The problem is the variable gets created because further down in the script, it checks if those directories don't exist "if [ -z "$libdir_32" -o -z "$libdir_64" ]; then" and if they don't it uses the correct location of /usr/lib/mumble/libmumble.so.1 for the remainder of the script.

I did think about removing the references to /usr/lib32 and /usr/lib64 completely but it seemed to make more sense to me to leave them in just in case somebody wanted to have both 32 and 64 bit versions at hand.

Hope this clarifies the situation, here's a screen shot of it working as intended: http://i.imgur.com/wVqIA.png

Unmerged revisions

16. By Ryan Short

mumble-overlay: Updated script to find libmumble.so.1 (LP: #713693)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-01-19 19:10:04 +0000
3+++ debian/changelog 2011-02-05 21:47:56 +0000
4@@ -1,3 +1,9 @@
5+mumble (1.2.1-3ubuntu1) maverick; urgency=low
6+
7+ * mumble-overlay: Updated script to find libmumble.so.1 (LP: #713693)
8+
9+ -- Ryan Short <deeack@gmail.com> Sat, 05 Feb 2011 21:34:56 +0000
10+
11 mumble (1.2.1-3) unstable; urgency=low
12
13 [ Thorvald Natvig ]
14
15=== modified file 'scripts/mumble-overlay'
16--- scripts/mumble-overlay 2009-03-22 16:21:58 +0000
17+++ scripts/mumble-overlay 2011-02-05 21:47:56 +0000
18@@ -5,18 +5,15 @@
19 exit 1
20 fi
21
22-if [ -d /usr/lib64 ]; then
23- libdir_64=/usr/lib64
24- if [ -d "$libdir_64/mumble" ]; then
25- libdir_64="$libdir_64/mumble";
26- fi
27-fi
28-if [ -d /usr/lib32 ]; then
29- libdir_32=/usr/lib32
30- if [ -d "$libdir_32/mumble" ]; then
31- libdir_32="$libdir_32/mumble";
32- fi
33-fi
34+
35+if [ -d /usr/lib64/mumble ]; then
36+ libdir_64="/usr/lib64/mumble";
37+fi
38+
39+if [ -d /usr/lib32/mumble ]; then
40+ libdir_32="/usr/lib32/mumble";
41+fi
42+
43 if [ -z "$libdir_32" -o -z "$libdir_64" ]; then
44 tlibdir=/usr/lib
45 if [ -d "$tlibdir/mumble" ]; then

Subscribers

People subscribed via source and target branches

to all changes: