deb-symbols.5 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .\" dpkg manual page - deb-symbols(5)
  2. .\"
  3. .\" Copyright © 2007-2012 Raphaël Hertzog <hertzog@debian.org>
  4. .\"
  5. .\" This is free software; you can redistribute it and/or modify
  6. .\" it under the terms of the GNU General Public License as published by
  7. .\" the Free Software Foundation; either version 2 of the License, or
  8. .\" (at your option) any later version.
  9. .\"
  10. .\" This is distributed in the hope that it will be useful,
  11. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. .\" GNU General Public License for more details.
  14. .\"
  15. .\" You should have received a copy of the GNU General Public License
  16. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. .
  18. .TH deb\-symbols 5 "2011-08-14" "Debian Project" "dpkg utilities"
  19. .SH NAME
  20. deb\-symbols \- Debian's extended shared library information file
  21. .
  22. .SH SYNOPSIS
  23. symbols
  24. .
  25. .SH DESCRIPTION
  26. The format for an extended shared library dependency information entry
  27. in these files is:
  28. .PP
  29. .I library-soname main-dependency-template
  30. .br
  31. [| \fIalternative-dependency-template\fP]
  32. .br
  33. [...]
  34. .br
  35. [* \fIfield-name\fP: \fIfield-value\fP]
  36. .br
  37. [...]
  38. \fIsymbol\fP \fIminimal-version\fP [\fIid-of-dependency-template\fP]
  39. .P
  40. The \fIlibrary-soname\fR is exactly the value of the SONAME field
  41. as exported by \fBobjdump\fR(1). A \fIdependency-template\fR is a
  42. dependency where \fI#MINVER#\fR is dynamically replaced either by
  43. a version check like "(>= \fIminimal-version\fR)" or by nothing (if
  44. an unversioned dependency is deemed sufficient).
  45. .P
  46. Each exported \fIsymbol\fR (listed as \fIname\fR@\fIversion\fR, with
  47. \fIversion\fR being "Base" if the library is not versioned) is associated
  48. to a \fIminimal-version\fR of its dependency template (the main dependency
  49. template is used if \fIid-of-dependency-template\fR is not present). The
  50. first alternative dependency template is numbered 1, the second one 2,
  51. etc.
  52. .P
  53. Each entry for a library can also have some fields of meta-information.
  54. Those fields are stored on lines starting with an asterisk. Currently,
  55. the only valid field is \fIBuild\-Depends\-Package\fR, it indicates the name
  56. of the "\-dev" package associated to the library and is used by
  57. \fBdpkg\-shlibdeps\fP to make sure that the dependency generated is at least as
  58. strict as the corresponding build dependency.
  59. .SH EXAMPLES
  60. .SS Simple symbols file
  61. .PP
  62. libftp.so.3 libftp3 #MINVER#
  63. DefaultNetbuf@Base 3.1-1-6
  64. FtpAccess@Base 3.1-1-6
  65. [...]
  66. .SS Advanced symbols file
  67. .PP
  68. libGL.so.1 libgl1
  69. .br
  70. | libgl1\-mesa\-glx #MINVER#
  71. .br
  72. * Build\-Depends\-Package: libgl1\-mesa\-dev
  73. publicGlSymbol@Base 6.3-1
  74. [...]
  75. implementationSpecificSymbol@Base 6.5.2-7 1
  76. [...]
  77. .SH SEE ALSO
  78. .BR http://wiki.debian.org/Projects/ImprovedDpkgShlibdeps
  79. .br
  80. .BR dpkg\-shlibdeps (1),
  81. .BR dpkg\-gensymbols (1).