https://bugzilla.novell.com/show_bug.cgi?id=197929 burnus@gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus@gmx.de ------- Comment #8 from burnus@gmx.de 2006-09-10 02:56 MST -------
This is the code that's in question: For me this is too short.
I need as test case: get_gtk_file_ver() {...} check_gtk_ver_and_set_lib_path() {...} MIN_GTK_VERSION="240" check_gtk_ver_and_set_lib_path "$MIN_GTK_VERSION" ### returns 0 if found gtk
= 2.4
The error occures here with the call of get_gtk_file_ver /opt/gnome/lib64/libgtk-x11-2.0.so this gets expanded to libgtk-x11-2.0.so.0.1000.2 The problem is that 1000 has one digit to much; sed uses: .\([0-9]\)00. which does not match 1000. Currently the sed returns for e.g. libgtk-x11-2.0.so.0.900.2 "2" + "9" + "2" = 292, which is then compared with "240". One could return for "1000" a "10" (-> "2102"), but then one should probably change the "240" into "2040"? A hackish solution is: --- acroread.old 2006-09-10 10:47:54.753812250 +0200 +++ acroread 2006-09-10 10:55:11.429102750 +0200 @@ -425 +425 @@ - echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g' + echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9][0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.