Why we need redhat_lsb_trigger.c in redhat-lsb package?

Niels de Vos devos at fedoraproject.org
Wed Mar 14 16:49:12 UTC 2012

On Wed, Mar 14, 2012 at 10:13 AM, Jakub Jelinek <jakub at redhat.com> wrote:
> On Wed, Mar 14, 2012 at 10:08:32AM +0100, Niels de Vos wrote:
>> On 03/13/2012 07:04 AM, Xibo Ning wrote:
>> The best solution would probably be to replace the %triggerpostun
>> with a lua scriptlet, something like this (totally untested and
>> you'll need to add the LSB-version somewhere too):
>> %triggerpostun -p <lua> -- glibc
>> LDSO = "/usr/lib/ld.so"
>> LSBLDSO = "/usr/lib/ld." + LSB_VERSION + ".so"
>> %ifarch ia64
>> LDSO = "/emul/ia32-linux/lib" + LSBLDSO
>> %fi
>> posix.symlink(LDSO, LSBLDSO)
> That is not equivalent.  is_ia64 () is true in the statically linked
> binary for %ifarch %{ix86} if running on the ia64 CPU (software emulated).

Aha, so is_ia64() does some checks and that makes the decision to have
the symlink point to one ld.so or the other.
If those checks can be written in lua, replacing redhat_lsb_trigger.c
would make sense.


More information about the devel mailing list