| 1 |
README.Debian for ppp-dev |
| 2 |
========================= |
| 3 |
|
| 4 |
ppp-dev provides dh_ppp(1p), a debhelper(7) helper program that adds |
| 5 |
appropriate substitution variables for packages that build pppd plugins. This |
| 6 |
essentially adds the right incantations to a package's Depends or Breaks |
| 7 |
control file field(s). |
| 8 |
|
| 9 |
If you are using ppp-dev so that your package may build a plugin that is |
| 10 |
intended to be loaded into pppd, you should use one of the three provided |
| 11 |
mechanisms to generate correct Depends or Breaks. |
| 12 |
|
| 13 |
The Problem |
| 14 |
----------- |
| 15 |
|
| 16 |
pppd is a program that loads plugins into itself using dlopen(). Much like with |
| 17 |
shared libraries, plugins depend on a particular ABI within the host in order |
| 18 |
to interact with it. If this ABI changes, plugins built against the old ABI may |
| 19 |
break or misbehave. Unlike with shared libraries there is currently no standard |
| 20 |
way to track the ABI automatically, such as with symbols files and SONAMEs, so |
| 21 |
pppd must improvise. This allows us to ensure that dpkg/apt know about the |
| 22 |
change and the change can be tracked using standard Debian infrastructure |
| 23 |
tools. |
| 24 |
|
| 25 |
Debhelper Sequencer |
| 26 |
------------------- |
| 27 |
|
| 28 |
If your package that builds ppp plugins uses the debhelper(7) sequencer, you |
| 29 |
can simply add '--with ppp' to your "dh $@" line. This will cause dh_ppp(1p) to |
| 30 |
be automatically invoked for your package with default arguments. |
| 31 |
|
| 32 |
If you wish to provide additional arguments to dh_ppp(1p), you may override it |
| 33 |
in the standard way, for example:: |
| 34 |
|
| 35 |
override_dh_ppp: |
| 36 |
dh_ppp --breaks |
| 37 |
|
| 38 |
Please see the dh_ppp(1p) man page for more information on its arguments and |
| 39 |
how it works. |
| 40 |
|
| 41 |
dh_ppp(1p) helper |
| 42 |
----------------- |
| 43 |
|
| 44 |
If you are not using the dh sequencer, you may invoke dh_ppp(1p) manually. |
| 45 |
Please see its man page for further information about its arguments and how it |
| 46 |
works. |
| 47 |
|
| 48 |
Raw substvars manipulation |
| 49 |
-------------------------- |
| 50 |
|
| 51 |
If you don't wish to use either of the above mechanism, there are generated |
| 52 |
substvars in /usr/share/ppp-dev/substvars (in the ppp-dev package) that can be |
| 53 |
incorporated into your own debian/[package.]substvars file. Just use either the |
| 54 |
ppp:Depends or ppp:Breaks as you find most appropriate for your package. |