deb-shlibs.5 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .\" dpkg manual page - deb-shlibs(5)
  2. .\"
  3. .\" Copyright © 1996 Michael Shields <shields@crosslink.net>
  4. .\" Copyright © 2008 Zack Weinberg <zackw@panix.com>
  5. .\"
  6. .\" This is free software; you can redistribute it and/or modify
  7. .\" it under the terms of the GNU General Public License as published by
  8. .\" the Free Software Foundation; either version 2 of the License, or
  9. .\" (at your option) any later version.
  10. .\"
  11. .\" This is distributed in the hope that it will be useful,
  12. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. .\" GNU General Public License for more details.
  15. .\"
  16. .\" You should have received a copy of the GNU General Public License
  17. .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. .
  19. .TH deb\-shlibs 5 "2012-02-08" "Debian Project" "dpkg utilities"
  20. .SH NAME
  21. deb\-shlibs \- Debian shared library information file
  22. .
  23. .SH DESCRIPTION
  24. .PP
  25. .B shlibs
  26. files map shared library names and versions
  27. .RI ( sonames )
  28. to dependencies suitable for a package control file. There is one
  29. entry per line. Blank lines are \fBnot\fP allowed. Lines beginning
  30. with an \fB#\fP character are considered commentary, and are ignored.
  31. All other lines must have the format
  32. .IP
  33. .RI [ type\fB:\fP ]
  34. .I library
  35. .I version
  36. .I dependencies
  37. .PP
  38. The \fIlibrary\fP and \fIversion\fP fields are whitespace-delimited,
  39. but the \fIdependencies\fP field extends to the end of the line. The
  40. \fItype\fP field is optional and normally not needed.
  41. .PP
  42. The \fIdependencies\fP field has the same syntax as the \fBDepends\fP
  43. field in a binary control file, see \fBdeb\-control\fP(5).
  44. See also the Debian Policy Manual for further details.
  45. .
  46. .SH EXAMPLES
  47. .PP
  48. The
  49. .B shlibs
  50. file for a typical library package, named
  51. .IR libcrunch1 ,
  52. that provides one library whose soname is
  53. .IR libcrunch.so.1 ,
  54. might read
  55. .IP
  56. libcrunch 1 libcrunch1 (>= 1.2-1)
  57. .PP
  58. The \fIdependencies\fP
  59. must mention the most recent version of the package that added new
  60. symbols to the library: in the above example, new symbols were added to
  61. version 1.2 of
  62. .IR libcrunch .
  63. This is not the only reason the dependencies might need to be
  64. tightened; again, see the Debian Policy Manual for details.
  65. .
  66. .SH SEE ALSO
  67. .BR deb\-control (5),
  68. .BR dpkg\-shlibdeps (1),
  69. .BR deb\-symbols (5).