[opensuse-packaging] query immodule for -32bit packages
Hi, all, some bugs occurred because I haven't query immodule after fcitx-gtk2-32bit, so 32-bit gtk application can't recognize it. But when I use: %ifarch i586 %post gtk2-32bit %{_gtk2_query_immodule_update_cache} %postun gtk2-32bit %{_gtk2_query_immodule_update_cache} %endif OBS tolds me it can't find package gtk2-32bit... Anyone knows any workaround ? Thanks Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Marguerite Su <i@marguerite.su> writes:
%ifarch i586 %post gtk2-32bit %{_gtk2_query_immodule_update_cache} %postun gtk2-32bit %{_gtk2_query_immodule_update_cache} %endif
You need to put that in baselibs.conf. See gtk3/baselibs.conf for an example. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mon, Feb 4, 2013 at 10:33 PM, Andreas Schwab <schwab@suse.de> wrote:
You need to put that in baselibs.conf. See gtk3/baselibs.conf for an example.
Hi, Andreas, Very helpful! That's just what I need! There's still one question: How to add "Requires: libfcitx-4_2_7-32bit" for fcitx package built for x86_64? I mean: %package -n fcitx Requires: libfcitx-4_2_7 %ifarch x86_64 Requires: libfcitx-4_2_7-32bit %endif something similar. There's no fcitx-32bit package, all the libs needs to be 32bit are already split to libfcitx-4_2_7. so I can't write anything like: fcitx requires "libfcitx-4_2_7-<targettype> = <version>" in baselibs.conf Is it possible? Thanks Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Marguerite Su <i@marguerite.su> writes:
How to add "Requires: libfcitx-4_2_7-32bit" for fcitx package built for x86_64?
Why do you need that? All library dependencies should be automatic. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
At Mon, 4 Feb 2013 22:23:05 +0800, Marguerite Su wrote:
Hi, all,
some bugs occurred because I haven't query immodule after fcitx-gtk2-32bit, so 32-bit gtk application can't recognize it.
But when I use:
%ifarch i586 %post gtk2-32bit %{_gtk2_query_immodule_update_cache} %postun gtk2-32bit %{_gtk2_query_immodule_update_cache} %endif
OBS tolds me it can't find package gtk2-32bit...
Anyone knows any workaround ?
Any reason not to use the standard %gtk2_immodule_post macro? It should suffice for 32bit package builds, too. Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mon, Feb 4, 2013 at 11:28 PM, Takashi Iwai <tiwai@suse.de> wrote:
At Mon, 4 Feb 2013 22:23:05 +0800, Any reason not to use the standard %gtk2_immodule_post macro? It should suffice for 32bit package builds, too.
Hi, ftake, Are you sure this macro can do the trick? because in http://en.opensuse.org/openSUSE:Build_Service_baselibs.conf it explicitly said, "Packages modified by baselibs.conf have their pre-/post- scripts removed; any desired relationships must be set in the baselibs.conf file" or do you mean to use the macro in baselibs.conf, replacing my current hack? by the way, where's the macro? I can't find it on my system. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
At Mon, 4 Feb 2013 23:42:45 +0800, Marguerite Su wrote:
On Mon, Feb 4, 2013 at 11:28 PM, Takashi Iwai <tiwai@suse.de> wrote:
At Mon, 4 Feb 2013 22:23:05 +0800, Any reason not to use the standard %gtk2_immodule_post macro? It should suffice for 32bit package builds, too.
Hi, ftake,
I think you mixed up different names ;)
Are you sure this macro can do the trick?
because in http://en.opensuse.org/openSUSE:Build_Service_baselibs.conf
it explicitly said, "Packages modified by baselibs.conf have their pre-/post- scripts removed; any desired relationships must be set in the baselibs.conf file"
Oh well, there are lots of workarounds in baselibs.conf, indeed, I forgot. Take a look at baselibs.conf in ibus package.
or do you mean to use the macro in baselibs.conf, replacing my current hack?
The macro isn't available for baselibs.conf, unfortunately. It has to be more or less open-coded.
by the way, where's the macro? I can't find it on my system.
Found in /etc/rpm/macros.gtk[23] Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mon, Feb 4, 2013 at 11:49 PM, Takashi Iwai <tiwai@suse.de> wrote:
Hi, ftake,
I think you mixed up different names ;)
oh yes...sorry, you're the hidden boss, tiwai san. I didn't notice that.
Oh well, there are lots of workarounds in baselibs.conf, indeed, I forgot. Take a look at baselibs.conf in ibus package.
I just learn that lesson and submit my "too late" paper, hope it doesn't affect my score.
or do you mean to use the macro in baselibs.conf, replacing my current hack?
The macro isn't available for baselibs.conf, unfortunately. It has to be more or less open-coded.
okay I'll try to simplify my current ones. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Marguerite Su
-
Takashi Iwai