package management - Building dependent deb files - Ask Ubuntu
i'm developing 2 ubuntu packages 1 depends on other.
say, foo depends on libfoo.
i increment foo , libfoo's version together. case foo version 1.2.1 depends on libfoo version 1.2.1.
what's standard debian process building libfoo , foo?
do have build , install libfoo before , compile foo?
can have pbuilder somehow understand foo needs libfoo, , install libfoo before compiling foo?
what's best practice case
edit on info in question:
pbuild natively want - provide proper dsc file. have @ real example version in dependences nmap
apt-get source nmap; cat nmap_*.dsc and @ build-depends clause:
... build-depends: debhelper (>= 9), libgtk2.0-dev, dh-autoreconf, flex, bison, libssl-dev, libpcap0.8-dev, libpcre3-dev, binutils-dev, liblinear-dev, python (>= 2.3.5-7), python-all-dev, liblua5.2-dev ... in case need smth like
build-depends: libfoo (=1.2.1), flex, bison, ... original post:
so, let summarise comments....
what need 2 clauses rule file debian/control:
- build-depends - dependencies of other packages source package build
- depends - dependencies of other packages installation package
i urge read whole ubuntu packaging guide .your question addressed @ 2.2. control file . read same information written debian team @ debian new maintainers' guide, more precisely chapter 5 - control files , fields. spent time manuals pay off in saving lot of troubles in future if you're going maintain deb packages in company (or why not in debian or ubuntu 1 day :) ).
Comments
Post a Comment