File: BUILDING

package info (click to toggle)
debram 1.0.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,796 kB
  • ctags: 437
  • sloc: perl: 2,953; ansic: 1,901; makefile: 169; sh: 14
file content (81 lines) | stat: -rw-r--r-- 3,534 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81

This file contains notes relevant to users who want to build their own
debram packages.

UNPACKING

Since you are reading these words, you probably knew it already,
but the usual way to unpack the debram source is to put the .dsc
and .tar.gz files in the current directory and to run the
appropriate "dpkg-source -x" command.  There is no .diff.gz
or .orig.tar.gz, because debram is a native Debian package.
See the dpkg-source(1) man page for further information.

BUILDING

It is generally recommended to build the debram source as a standard
Debian package.  From the directory in which this file resides,

  $ dpkg-buildpackage -rfakeroot -uc -us
  $ fakeroot debian/rules clean

omitting the " -uc -us" if building the package for actual upload to the
official Debian archive.  However, you can alternately build the source
not for packaging or installation but just for immediate local testing
with

  $ DEBRAM_LOCAL=1 make clean
  $ DEBRAM_LOCAL=1 make

BUILDING FOR SARGE

Even if you have downloaded the debram source from Debian unstable (sid)
or testing (etch), nothing prevents you from building it on and for a
Debian sarge stable platform.  In the file `debian/control', if the
Standards-Version number is not "3.6.1", revert it to "3.6.1"; then
build on sarge and install as usual.

On the other hand, most sarge users need only to update the debram-data
binary package, not the debram binary package.  The debram (0.6.4)
binary distributed with sarge works fine with later debram-data (0.6.x).
You won't hurt anything by building and installing your own local debram
(0.6.x) binaries, but for most sarge users this probably isn't
necessary.  Just update debram-data.

INSTALLING

Since you are reading these words, you probably knew it already, but the
usual way to install a package you have built yourself is by "dpkg -i".
See the dpkg(8) man page for further information.

[TO DEBRAM MAINTAINERS]

[Debram maintainers are asked not to ignore this file in future uploads,
but rather to keep it up to date as necessary---or if not so, then to
delete it, so that by obsolescence it not mislead.  Because of the
nature of the problem debram treats, it is desirable to keep
debram (0.6.x) as backportable as possible to sarge.  However, some
kinds of potential changes in Debian policy could conceivably render
such backportability hard to maintain in future debram issues.  If so,
at least these notes should accurately reflect the fact.]

[Minor changes to the source which do not call new shared library
functions are unlikely to affect the buildability of this source on
sarge.  Trouble on this front is more likely to come if changes to the
source must be made to comply with an updated Debian policy.  Since
updated Debian policy usually includes appropriate transition clauses,
with a little care we can probably avoid the trouble.]

[The debram shipped with sarge was version (0.6.4).  Sarge debram users
were promised that future debram-data (0.6.x) binaries would work with
debram (0.6.4), but they were not promised that the debram (0.6.x)
source would be buildable on sarge.  With the slight modification noted
above, the present debram source *is* buildable on sarge.  This is good
and desirable, is worth some limited effort to continue to support, and
should not be broken without reason; but it is not strictly necessary
for future debram issues.  We can always rely on backports.org if the
need arises, after all.]

[Further notes of interest to Debram maintainers can be found in
`helper/RelSteps'.]