[Zlib-devel] [PATCH] Makefile.in: removed call to ldconfig

Enrico Weigelt weigelt at metux.de
Fri Jul 23 12:10:50 EDT 2010


* Mike Frysinger <vapier at gentoo.org> schrieb:

> > Actually, I'd like to reduce complexity as much as possible, so
> > please, please no non-standard options/variables.
> 
> DESTDIR is not non-standard in any way.  do some research eh.

But running certain additional commands on the live system when
DESTDIR is not set is not actually very standard ...
 
> in general you're wrong here (read the ldconfig manual), 

Why exactly ?

ldconfig does fixups for the live system. they're target and distro
dependent. oh, btw, according to the manpage, it's ELF specific.

> but specifically to zlib's usage, the invocation most of the 
> time has no use when the libs are installed outside of the build 
> system's configure paths. 

Unless you're installing directly into the livesystem, the individual 
package doesn't even know when/how to do that (it would have to try
some guessing or need some clean interface). those things are naturally
out the individual package's scope, but belong into the package 
management.

> it is conceivable that the builder would do something exotic like 
> create a cross-ldconfig and point LDONFIG at it, but i dont see 
> any value in supporting that scenario.

Someone would have to support it. Either we have a generic interface
or the crosscompile folks need very special tweaking. This also
applies to people running the build on unprivileged users. Oh, and
guess what: gentoo's ebuild has such an an special tweaking.


So, for the vast majority of cases, running ldconfig directly in
an individual package's install rules is totally useless at best
or even completely broken.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt at metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------




More information about the Zlib-devel mailing list