deb-symbols.5 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .\" Author: Raphaël Hertzog
  2. .TH deb\-symbols 5 "2011-08-14" "Debian Project" "dpkg utilities"
  3. .SH NAME
  4. deb\-symbols \- Debian's extended shared library information file
  5. .
  6. .SH SYNOPSIS
  7. symbols
  8. .
  9. .SH DESCRIPTION
  10. The format for an extended shared library dependency information entry
  11. in these files is:
  12. .PP
  13. .I library-soname main-dependency-template
  14. .br
  15. [ | \fIalternative-dependency-template\fP ]
  16. .br
  17. [ ... ]
  18. .br
  19. [ * \fIfield-name\fP: \fIfield-value\fP ]
  20. .br
  21. [ ... ]
  22. \fIsymbol\fP \fIminimal-version\fP[ \fIid-of-dependency-template\fP ]
  23. .P
  24. The \fIlibrary-soname\fR is exactly the value of the SONAME field
  25. as exported by \fBobjdump\fR(1). A \fIdependency-template\fR is a
  26. dependency where \fI#MINVER#\fR is dynamically replaced either by
  27. a version check like "(>= \fIminimal-version\fR)" or by nothing (if
  28. an unversioned dependency is deemed sufficient).
  29. .P
  30. Each exported \fIsymbol\fR (listed as \fIname\fR@\fIversion\fR, with
  31. \fIversion\fR being "Base" if the library is not versioned) is associated
  32. to a \fIminimal-version\fR of its dependency template (the main dependency
  33. template is used if \fIid-of-dependency-template\fR is not present). The
  34. first alternative dependency template is numbered 1, the second one 2,
  35. etc.
  36. .P
  37. Each entry for a library can also have some fields of meta-information.
  38. Those fields are stored on lines starting with an asterisk. Currently,
  39. the only valid field is \fIBuild\-Depends\-Package\fR, it indicates the name
  40. of the "\-dev" package associated to the library and is used by
  41. \fBdpkg\-shlibdeps\fP to make sure that the dependency generated is at least as
  42. strict as the corresponding build dependency.
  43. .SH EXAMPLES
  44. .SS Simple symbols file
  45. .PP
  46. libftp.so.3 libftp3 #MINVER#
  47. DefaultNetbuf@Base 3.1-1-6
  48. FtpAccess@Base 3.1-1-6
  49. [...]
  50. .SS Advanced symbols file
  51. .PP
  52. libGL.so.1 libgl1
  53. .br
  54. | libgl1\-mesa\-glx #MINVER#
  55. .br
  56. * Build\-Depends\-Package: libgl1\-mesa\-dev
  57. publicGlSymbol@Base 6.3-1
  58. [...]
  59. implementationSpecificSymbol@Base 6.5.2-7 1
  60. [...]
  61. .SH SEE ALSO
  62. .BR http://wiki.debian.org/Projects/ImprovedDpkgShlibdeps
  63. .br
  64. .BR dpkg\-shlibdeps (1),
  65. .BR dpkg\-gensymbols (1).