On Tue, Oct 12, 2010 at 11:02:05AM +0200, Vincent Untz wrote:
Usage of quotes in scriptlets =============================
I initially wanted to write something like: %if "%_lib" == "lib64" So I tried the following: post "%if \"%_lib\" == \"lib64\"" post "%if \\"%_lib\\" == \\"lib64\\"" post "%if \\\"%_lib\\\" == \\\"lib64\\\"" post '%if "%_lib" == "lib64"' They all caused failures. I worked around the issue by just removing the quotes: post "%if %_lib == lib64"
But is there anyway to use quotes there?
I think post "%if "%_lib" == "lib64"" should work.
Paths for x86 packages ======================
The files in x86 packages are all put in a /emul/ia32-linux prefix. So I get /emul/ia32-linux/usr/bin/gtk-query-immodules-2.0 and /emul/ia32-linux/etc/gtk-2.0/gtk.immodules.
However, the post scriplet above will expand to: /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
So it will just not do what is intended.
So what's intended? Would the x86 packages look at a /emul/ia32-linux/etc/gtk-2.0/gtk.immodules file? Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org