Add time to the suggested packages, because the aio tests use it
[ltp-debian.git] / debian / README.source
blob46508532f01a201df6ae1e624fd45ae6502d6c96
1                             README.source
2                             =============
4 This file contains some remarks about building, upgrading and
5 customizing the ltp package. Specifically, it contains information
6 about nonstandard methods used while building the package.
8                          Getting the package
9                          -------------------
11 The preferred way of getting the package is cloning its git
12 repository, especially if you want to make changes or update to a
13 newer upstream version. To do it, execute
15   $ git clone git://repo.or.cz/ltp-debian.git ltp
17 which will download the repository to directory ltp.
19                          Building the package
20                          --------------------
22 Building the package is easy, just execute
24   $ git buildpackage
26 and it should go fine.
28                        Adding files to packages
29                        ------------------------
31 Since many files from the upstream package are not packaged, you may
32 want to add some files to the packages. Some difficulties you may
33 encounter:
35  1) Could be your files are not built by default. In that case, you
36     will need to change the Makefile(s) in the directory(s) of your
37     files to include them in the build. Often, that means adding a
38     directory in the list of subdirectories in parent directory's
39     Makefile.
41  2) The list of files installed in the packages is determined during
42     the build just before installing. That means, you have to build
43     the package to get full *.install files for the binary
44     packages. For details, see the file debian/generate-lists. You
45     will have to edit that file to add files. The procedure
46     automatically determines if the packages conflict by including
47     some file twice in different packages. Also, you'll get a list of
48     files installed by upstream Makefiles in testcases/bin/ not
49     included in any of the binary packages, which you should
50     review. Note this is by no means sufficient, because quite often,
51     files needed to run some testcases (eg. support scripts) are not
52     installed anywhere.
54                  Upgrading to newer upstream version
55                  -----------------------------------
57 You should really use a git repository for that. The easiest procedure
58 is running uscan, while in a clean checkout of the master branch:
60   $ uscan --no-symlink
62 Be sure to add the --no-symlink parameter, as it would result in
63 errors while building the package later. This is because the
64 .orig.tar.gz is repackaged, and this wouldn't happen if it was
65 symlinked to upstream's tarball.
67 You should find yourself in the dfsg_clean branch after doing that,
68 maybe with a few merge conflicts. You should then run
70   $ debian/dfsg-cleanup
72 and then
74   $ git commit                       [if there were merge conflicts]
75   $ git commit --amend               [if there were none]
77 The conflicts should be solved by the dfsg-cleanup script.
79 Next, switch to the mastre branch and merge the new version:
81   $ git checkout master
82   $ git merge dfsg_clean
84 You can get some conflicts in this stage. Good luck dealing with them.
86 Next, you need to update the copyright file and the rest of the
87 package. To do this, you need to review the upstream diff, figure out
88 what's new and changed, and update what needs to be updated. That
89 means adding newly emerged files to debian/copyright, adding new files
90 to the binary packages (as described above).
93 That's all for now
95   Jiří Paleček