Either make syntax or shell syntax is fine, but the use of $(BUILD_DOCS)
needs to be consistent with that in override_dh_auto_build-indep. In
particular, make's $(if ...) considers '0' to be true (empty string is
false).
This change switches to make syntax (empty string is false), which is a
bit more surprising but has the advantage that we can drop all the "; \"
nonsense at end of line (and gain `set -e` behaviour).
Dylibs (lib*.so) are installed both into $prefix/lib/rustlib/$triple/lib
for use at compile/link time by rustc, and into $prefix/lib for later
use at runtime by ld.so. The files are not byte-for-byte identical
since they come from different stages of the compiler build, but they
are expected to be functionally equivalent.
This change simply replaces one set with symlinks to the other, reducing
installed size by about 68MB.
dpkg-buildpackage sets DEB_{BUILD,HOST,TARGET}_* before invoking
debian/rules. This change includes /usr/share/dpkg/architecture.mk to
ensure the same variables are set even if debian/rules is invoked in
other ways (eg: directly).
With build profiles, it's possible for dh_auto_install to think we only
have a single package and install into debian/$pkg - breaking various
other files that assume debian/tmp.
This change forces dh_auto_install to always set DESTDIR=debian/tmp
regardless of the apparent number of packages.
Debian wants to build all binaries with particular hardening flags. The
Rust makefiles inconsistently support CFLAGS/etc from the environment
for only some platforms (see mk/cfg/*).
This patch adds upstream support for LDFLAGS, and then unconditionally
prepends CFLAGS/LDFLAGS/etc to the build commands regardless of rust
platform. debian/rules then sets these flags from dpkg-buildflags. A
slight wrinkle in the above is also passing LDFLAGS via `rustc -C
link-args` (which in turn assumes rust is using GNU ld for linking).
- Introduction of build stages
- Disable the parallel execution of tests
- Improving of the parallel syntax
- Use override_dh_auto_build-arch
- Use override_dh_auto_build-indep
- Introduction of rust-mode, vim-syntax-rust & kate-syntax-rust packages
- Better declarations of the doc
- Update of the description
- Watch file updated (with key check)
sudo pbuilder caused SUDO_USER to be set during the
build. mk/install.mk will then try to run sudo, but since sudo is not
a build-dep, this will fail.
Signed-off-by: Jordan Justen <jljusten@gmail.com>
Install rust under:
usr/lib/$(DEB_HOST_MULTIARCH)/rust/$(RUST_VERSION)
override_dh_shlibdeps is based on
https://launchpad.net/~hansjorg/+archive/ubuntu/rust
usr/bin/rustc and usr/bin/rustdoc will be symlinked to the new install
location.
Signed-off-by: Jordan Justen <jljusten@gmail.com>
The configure script uses this to find the shell binary. If not set,
it will try to build i386 when on amd64 systems.
Signed-off-by: Jordan Justen <jljusten@gmail.com>