deb-shlibs.5 2.1 KB

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