Skip to contentSkip to conversation

Issue: ldconfig postinst and uclibc

DISCUSSION Paul Sokolovsky 3 participants 5 messages Feb 20, 2008 – Feb 24, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

It appears that ldconfig is not available / optional for uclibc. And yet currently package.bbclass adds calling it unconditionally to lib packages' postinst, which causes error messages during install.

Two solutions:

1. Add corresponding logic to package.bbclass. But it appears to be hacky to encode such facts there.

2. Use "[ -x /sbin/ldconfig ] && /sbin/ldconfig" in postinst. Note:
currently ldconfig is called without a path.

Thoughts?

Signature · 2 lines
Best regards,
 Paul                          mailto:[email protected]
#1 lore raw

Hi Paul

ldconfig is provided by uclibc. Maybe we should enable UCLIBC_STATIC_LDCONFIG=y in default config for uclibc. Idea 2 looks good to me.

-Khem

Quoted 26 lines · Paul Sokolovsky

Hello,

It appears that ldconfig is not available / optional for uclibc. And yet currently package.bbclass adds calling it unconditionally to lib packages' postinst, which causes error messages during install.

Two solutions:

1. Add corresponding logic to package.bbclass. But it appears to be hacky to encode such facts there.

2. Use "[ -x /sbin/ldconfig ] && /sbin/ldconfig" in postinst. Note:
currently ldconfig is called without a path.

Thoughts?

--
Best regards,
Paul mailto:[email protected]

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

Hello,

Quoted 5 lines · On Fri, 22 Feb 2008 22:53:02 -0800 "Khem Raj" <[email protected]> wrote:

Hi Paul

ldconfig is provided by uclibc. Maybe we should enable UCLIBC_STATIC_LDCONFIG=y in default config for uclibc. Idea 2 looks good to me.

I hit this problem building packages for OpenWRT - they don't ship ldconfig. So, solution #2 would indeed be better. So, I'm going to apply it, unless there're late objections.

Quoted 22 lines

-Khem

Quoted 17 lines · Paul Sokolovsky

Hello,

It appears that ldconfig is not available / optional for uclibc.
And yet currently package.bbclass adds calling it unconditionally to lib packages' postinst, which causes error messages during install.

Two solutions:

1. Add corresponding logic to package.bbclass. But it appears to be hacky to encode such facts there.

2. Use "[ -x /sbin/ldconfig ] && /sbin/ldconfig" in postinst. Note:
currently ldconfig is called without a path.

Thoughts?

[]

Signature · 2 lines
Best regards,
 Paul                          mailto:[email protected]
#3 lore raw

Hello all,

Quoted 5 lines · Paul Sokolovsky
Quoted 5 lines
Quoted 5 lines

2. Use "[ -x /sbin/ldconfig ] && /sbin/ldconfig" in postinst. Note:
currently ldconfig is called without a path.

Thoughts?

Yes, apparently we have two cases:

(1) build-time package installation only. Typically people building firmware for embedded systems.
(2) both build-time and run-time package installation. Handhelds etc. where users can deploy packages afterwards.

Can we distuingish those two cases and then make OE
(1) not install ipkg, ldconfig, package info, feed info etc/
(2) do install ipkg, ldconfig, etc.

Regards,

Signature · 1 line
Leon
#4 lore raw

Hello,

Quoted 12 lines · On Sun, 24 Feb 2008 11:25:34 +0100 "Leon Woestenberg"…

Hello all,

Quoted 5 lines · Paul Sokolovsky
Quoted 5 lines
Quoted 5 lines

2. Use "[ -x /sbin/ldconfig ] && /sbin/ldconfig" in postinst.
Note: currently ldconfig is called without a path.

Thoughts?

Yes, apparently we have two cases:

Quoted 7 lines

(1) build-time package installation only. Typically people building firmware for embedded systems.
(2) both build-time and run-time package installation. Handhelds etc. where users can deploy packages afterwards.

Can we distuingish those two cases and then make OE
(1) not install ipkg, ldconfig, package info, feed info etc/

Well, this question is not directly related to the original topic, IMHO. There're already ways to do that, including multiple. See initramfs-minimal-image.bb (installs only explicitly selected packages, doesn't even pull their dependencies) and initramfs-bootmenu-image.bb (force-removes known unneeded packages). I'll intend to generalize postprocess commands from the latter, making them "OE-global" (like zap_root_password) for easier reuse.

Quoted 10 lines

(2) do install ipkg, ldconfig, etc.

Regards,

Signature · 6 lines
Leon

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
Best regards,
 Paul                          mailto:[email protected]