Hi, On Tue, 12 Oct 2010, Vincent Untz wrote:
Huh? x86-64 is 64bit and last I checked openSUSE supports that :)
Sorry, I wasn't clear. We don't generate 64bit packages out of baselibs.conf. At least, AFAIK.
We once did. Namely from the ppc64 packages into the ppc tree.
My two issues can be seen with this example from gtk2 (submitted to G:F):
post "%if %_lib == lib64" post "%{_bindir}/gtk-query-immodules-2.0-64 > %{_sysconfdir}/gtk-2.0/gtk64.immodules" post "%else" post "%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules" post "%endif"
Is the '>' supposed to be '->' ?
Hrm, no? Should it be? :-)
It it's supposed to be a normal baselibs conf directive, yes. I don't know about 'post'. Assuming it is what I think it is (simply putting something into the %post section of the generated temporary .spec file) I'd assume those strings have to be RPM directives mixed with shell code. "X > Y" looks like a shell redirection calling program X directing the output to file Y. I don't think this is what you want.
In any case I didn't even know that 'post ""' exists. You might want to look at gcc45 and glibc baselibs.conf.
I did look at packages using post in baselibs.conf. It turns out nearly no package does this, so I didn't find any great example.
Yeah, well, should be an indication that you don't need %post often. From what I assume from your snippets (lacking any explanation what you actually want to achieve) it seems that you want to create softlinks with a standard name pointing to a varying name. baselibs.conf has native support for that without post. Again, see the gcc45 and glibc baselibs.conf for some more complex examples.
In particular, for testing the target-system you can use
targettype <type> <some baselibs directive> or (target)?arch <arch> <some baselibs directive>
Where <arch> can be the usual archs, <type> can be 'x86' (that's the repackaged i?86 libs for ia64 (!)), 'ia32' (that matches all i?86) and some others. Note also the special variables like <prefix>.
Yeah, that was my first approach. But that assumes I write post scriptlets for all the targettypes we support.
Don't write post scriptlets at all I'd say, if you merely want to create some links. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org