linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] ldconfig.8: Document file filter and symlink pattern expectations
@ 2019-12-02 20:32 DJ Delorie
  2019-12-02 21:41 ` Carlos O'Donell
  2019-12-14  4:54 ` Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 4+ messages in thread
From: DJ Delorie @ 2019-12-02 20:32 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, libc-alpha


Information gleaned from comments in glibc's elf/ldconfig.c

diff --git a/man8/ldconfig.8 b/man8/ldconfig.8
index 4f799962c..15585243c 100644
--- a/man8/ldconfig.8
+++ b/man8/ldconfig.8
@@ -93,6 +93,28 @@ option.
 .B ldconfig
 should normally be run by the superuser as it may require write
 permission on some root owned directories and files.
+.PP
+Note that
+.B ldconfig
+will only look at files that are named
+.I lib*.so*
+(for regular shared objects) or
+.I ld-*.so*
+(for the dynamic loader itsef).  Other files will be ignored.  Also,
+.B ldconfig
+expects a certain pattern to how the symlinks are set up, like this
+example, where the middle file
+.RB ( libfoo.so.1
+here) is the SONAME for the library:
+.PP
+.in +4n
+.EX
+libfoo.so -> libfoo.so.1 -> libfoo.so.1.12
+.EE
+.in
+.PP
+Failure to follow this pattern may result in compatibility issues
+after an upgrade.
 .SH OPTIONS
 .TP
 .BR \-c " \fIfmt\fP, " \-\-format=\fIfmt\fP


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-14  4:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02 20:32 [patch] ldconfig.8: Document file filter and symlink pattern expectations DJ Delorie
2019-12-02 21:41 ` Carlos O'Donell
2019-12-14  4:54   ` Michael Kerrisk (man-pages)
2019-12-14  4:54 ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).