Codebase list rust-libslirp / cf33b9a
Instructions on building a large dependency tree Ximin Luo 5 years ago
2 changed file(s) with 29 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
5757
5858 REALVER=<old-version> ./update.sh <rust-crate-name> # then
5959 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
7160
7261
7362 General packaging tips
166155 ``quilt rename`` if that helps you.
167156
168157
169 TODO
170 ====
158 DD instructions
159 ===============
171160
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.
4141 tokio (blocked by tokio-threadpool 0.1.10)
4242 tokio-thradpool
4343 md5 (update) -- affects uuid
44 grep
45 pcre2 feature depends on grep-pcre2 -> pcre2 -> pcre2-sys
46 gcc-0.3.54 -- don't need this, completely obsoleted by cc.
44 gcc -- don't need this, completely obsoleted by cc.
4745 patch dependents to use cc instead.
4846 winutil -- dependency of hostname <- resolv-conf <- trust-dns-resolver
4947 doesn't build on linux