Hi, On Tue, 12 Oct 2010, Vincent Untz wrote:
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?
Hrm, right. We probably want: /emul/ia32-linux/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
[I think I now understand what you want to achieve in the %post, you really want to call that program redirecting the output] The above will overwrite /etc/gtk-2.0/gtk.immodules from the normal installed libgtk2 package. I think you'd rather want to write to /emul/ia32-linux/etc/gtk-2.0/gtk.immodules. FYI: the i?86 emulation on ia64 is somewhat special: the kernel implicitely prepends the /emul/ia32-linux to all file opens with absolute path (and if not found retries without that prefix), i.e. /emul/ia32-linux acts like an implicit chroot for x86 programs on ia64. Hence x86 gtk2 programs from /emul/ia32-linux, when trying to open /etc/gtk-2.0/gtk.immodules will first search for /emul/ia32-linux/etc/gtk-2.0/gtk.immodules. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org