57 | 57 |
|
58 | 58 |
REALVER=<old-version> ./update.sh <rust-crate-name> # then
|
59 | 59 |
REALVER=<old-version> ./release.sh <rust-crate-name>
|
60 | |
|
61 | |
|
62 | |
DD instructions
|
63 | |
===============
|
64 | |
|
65 | |
To set up a suitable build environment for ``./build.sh``::
|
66 | |
|
67 | |
$ sudo apt-get install devscripts reprepro debootstrap sbuild
|
68 | |
$ sudo sbuild-createchroot --include=eatmydata,ccache,gnupg,dh-cargo,cargo,lintian,perl-openssl-defaults \
|
69 | |
--chroot-prefix debcargo-unstable unstable \
|
70 | |
/srv/chroot/debcargo-unstable-amd64-sbuild http://deb.debian.org/debian
|
71 | 60 |
|
72 | 61 |
|
73 | 62 |
General packaging tips
|
|
166 | 155 |
``quilt rename`` if that helps you.
|
167 | 156 |
|
168 | 157 |
|
169 | |
TODO
|
170 | |
====
|
|
158 |
DD instructions
|
|
159 |
===============
|
171 | 160 |
|
172 | |
Maybe use ``--copyright-guess-harder``.
|
|
161 |
To set up a suitable build environment for ``./build.sh``::
|
|
162 |
|
|
163 |
$ sudo apt-get install devscripts reprepro debootstrap sbuild
|
|
164 |
$ sudo sbuild-createchroot --include=eatmydata,ccache,gnupg,dh-cargo,cargo,lintian,perl-openssl-defaults \
|
|
165 |
--chroot-prefix debcargo-unstable unstable \
|
|
166 |
/srv/chroot/debcargo-unstable-amd64-sbuild http://deb.debian.org/debian
|
|
167 |
|
|
168 |
Normally, ``./build.sh`` will fail early if not all the build dependencies are
|
|
169 |
available in your local apt cache. If you are packaging a large dependency tree
|
|
170 |
however, to avoid many round-trips through NEW it is possible to bypass this
|
|
171 |
check and build all the packages together. Suppose package B depends on package
|
|
172 |
A, then you can run something like::
|
|
173 |
|
|
174 |
$ export IGNORE_MISSING_BUILD_DEPS=1
|
|
175 |
$ ./release.sh A
|
|
176 |
$ ( cd build && ./build.sh A )
|
|
177 |
# push pending and checkout master
|
|
178 |
$ ./release.sh B
|
|
179 |
$ ( cd build && ./build.sh B librust-A*.deb )
|
|
180 |
|
|
181 |
The extra arguments after ``./build.sh B <args>`` is extra deb files to pass to
|
|
182 |
sbuild to use as dependencies. In this case, ``librust-A*.deb`` should have
|
|
183 |
been built by the previous step.
|
|
184 |
|
|
185 |
After everything is built successfully, you can ``dput`` all of them and then
|
|
186 |
push all the ``pending-*`` branches as normal.
|