SPECS (AC-branch): glibc.spec - workaround to be able upgrade

Elan Ruusamäe glen at delfi.ee
Wed Dec 29 16:35:17 CET 2004


On Wednesday 29 December 2004 18:04, Artur Frysiak wrote:
> On Mon, Dec 20, 2004 at 10:28:41AM +0100, Andrzej Krzysztofowicz wrote:
> > > looks like dead end, only way to solve it is dependancy of package
> > > containing static binary.
> >
> > This is the reason the "base" packages (like glibc, FHS, setup, etc.) do
> > not contain %pre/%post shell scripts.
> > The only acceptable script may be a LUA script.
> > Or just a static binary program call.
>
> LUA script attached (only example not complet solution)
thanks. was helpful. but the problem is that at that time no dynamic program 
can be executed. (because half of the symbols are resolved from wrong libc)

and lua50 i checked does not have static lua executable (and -static is devel 
libraries)


$ rpm -ql lua50-static
/usr/lib/liblua50.a
/usr/lib/liblualib50.a
$ ldd /usr/bin/lua50 
        liblua.so.5.0 => /usr/lib/liblua.so.5.0 (0x00faa000)
        liblualib.so.5.0 => /usr/lib/liblualib.so.5.0 (0x00aeb000)
        libm.so.6 => /lib/libm.so.6 (0x007cf000)
        libc.so.6 => /lib/libc.so.6 (0x00111000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00960000)
$ ldd /usr/bin/luac50 
        liblua.so.5.0 => /usr/lib/liblua.so.5.0 (0x002f6000)
        liblualib.so.5.0 => /usr/lib/liblualib.so.5.0 (0x00989000)
        libm.so.6 => /lib/libm.so.6 (0x004d6000)
        libc.so.6 => /lib/libc.so.6 (0x00729000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00e06000)

-- 
glen




More information about the pld-devel-en mailing list