Debian OCaml Packaging Policy for OCaml 3.09.2

The Debian OCaml Task Force

This manual is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A copy of the GNU General Public License is available as /usr/share/common-licenses/GPL in the Debian GNU/Linux distribution or on the World Wide Web at The GNU Public Licence.

You can also obtain it by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Table of Contents
1. Generalities about OCaml packages in Debian
1.1. OCaml in Debian
1.1.1. OCaml location
1.2. Bytecode and native programs
1.3. Files used by the OCaml compiler
1.4. Locally installing OCaml programs and libraries
2. Packaging OCaml Programs
2.1. Creating a package for an OCaml program
2.2. Bytecode and native versions of programs
3. Packaging OCaml libraries
3.1. Creating a package for a library
3.2. Paths for libraries
3.3. Handling dependencies on OCaml
3.4. Providing META files
3.5. CamlP4
3.6. Documentation
A. The Debian OCaml Task Force resources
B. Using the SVN repository
B.1. How to obtain a copy of the SVN archive
B.2. Structure of the SVN archive
B.3. How to add a new package to the SVN archive
B.4. How to set up your package for use with svn-buildpackage
B.5. How to build a package with svn-buildpackage
B.6. dpatch