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).
Merge together alpha2 entries which have not yet been upload,
and revert back the version to '1.0.0~alpha.2-0~exp1'
Signed-off-by: Luca Bruno <lucab@debian.org>