| 1 |
This file was last updated in 2005. It is now probably mostly |
| 2 |
irrelevant, but is retained here for reference for the time being. |
| 3 |
|
| 4 |
------------------------------------------------------------------------ |
| 5 |
|
| 6 |
This file contains notes relevant to users who want to build their own |
| 7 |
debram packages. |
| 8 |
|
| 9 |
UNPACKING |
| 10 |
|
| 11 |
Since you are reading these words, you probably knew it already, |
| 12 |
but the usual way to unpack the debram source is to put the .dsc |
| 13 |
and .tar.gz files in the current directory and to run the |
| 14 |
appropriate "dpkg-source -x" command. There is no .diff.gz |
| 15 |
or .orig.tar.gz, because debram is a native Debian package. |
| 16 |
See the dpkg-source(1) man page for further information. |
| 17 |
|
| 18 |
BUILDING |
| 19 |
|
| 20 |
It is generally recommended to build the debram source as a standard |
| 21 |
Debian package. From the directory in which this file resides, |
| 22 |
|
| 23 |
$ dpkg-buildpackage -rfakeroot -uc -us |
| 24 |
$ fakeroot debian/rules clean |
| 25 |
|
| 26 |
omitting the " -uc -us" if building the package for actual upload to the |
| 27 |
official Debian archive. However, you can alternately build the source |
| 28 |
not for packaging or installation but just for immediate local testing |
| 29 |
with |
| 30 |
|
| 31 |
$ DEBRAM_LOCAL=1 make clean |
| 32 |
$ DEBRAM_LOCAL=1 make |
| 33 |
|
| 34 |
BUILDING FOR SARGE |
| 35 |
|
| 36 |
Even if you have downloaded the debram source from Debian unstable (sid) |
| 37 |
or testing (etch), nothing prevents you from building it on and for a |
| 38 |
Debian sarge stable platform. In the file `debian/control', if the |
| 39 |
Standards-Version number is not "3.6.1", revert it to "3.6.1"; then |
| 40 |
build on sarge and install as usual. |
| 41 |
|
| 42 |
On the other hand, most sarge users need only to update the debram-data |
| 43 |
binary package, not the debram binary package. The debram (0.6.4) |
| 44 |
binary distributed with sarge works fine with later debram-data (0.6.x). |
| 45 |
You won't hurt anything by building and installing your own local debram |
| 46 |
(0.6.x) binaries, but for most sarge users this probably isn't |
| 47 |
necessary. Just update debram-data. |
| 48 |
|
| 49 |
INSTALLING |
| 50 |
|
| 51 |
Since you are reading these words, you probably knew it already, but the |
| 52 |
usual way to install a package you have built yourself is by "dpkg -i". |
| 53 |
See the dpkg(8) man page for further information. |
| 54 |
|
| 55 |
[TO DEBRAM MAINTAINERS] |
| 56 |
|
| 57 |
[Debram maintainers are asked not to ignore this file in future uploads, |
| 58 |
but rather to keep it up to date as necessary---or if not so, then to |
| 59 |
delete it, so that by obsolescence it not mislead. Because of the |
| 60 |
nature of the problem debram treats, it is desirable to keep |
| 61 |
debram (0.6.x) as backportable as possible to sarge. However, some |
| 62 |
kinds of potential changes in Debian policy could conceivably render |
| 63 |
such backportability hard to maintain in future debram issues. If so, |
| 64 |
at least these notes should accurately reflect the fact.] |
| 65 |
|
| 66 |
[Minor changes to the source which do not call new shared library |
| 67 |
functions are unlikely to affect the buildability of this source on |
| 68 |
sarge. Trouble on this front is more likely to come if changes to the |
| 69 |
source must be made to comply with an updated Debian policy. Since |
| 70 |
updated Debian policy usually includes appropriate transition clauses, |
| 71 |
with a little care we can probably avoid the trouble.] |
| 72 |
|
| 73 |
[The debram shipped with sarge was version (0.6.4). Sarge debram users |
| 74 |
were promised that future debram-data (0.6.x) binaries would work with |
| 75 |
debram (0.6.4), but they were not promised that the debram (0.6.x) |
| 76 |
source would be buildable on sarge. With the slight modification noted |
| 77 |
above, the present debram source *is* buildable on sarge. This is good |
| 78 |
and desirable, is worth some limited effort to continue to support, and |
| 79 |
should not be broken without reason; but it is not strictly necessary |
| 80 |
for future debram issues. We can always rely on backports.org if the |
| 81 |
need arises, after all.] |
| 82 |
|
| 83 |
[Further notes of interest to Debram maintainers can be found in |
| 84 |
`helper/RelSteps'.] |
| 85 |
|