Commit Graph

65 Commits

Author SHA1 Message Date
Ximin Luo
a114018757 Work around rust bug https://github.com/rust-lang/rust/issues/31529
- This is breaking builds on Ubuntu, so let's work around it instead of waiting
  for the ideal correct fix.
2016-02-10 10:50:58 +01:00
Ximin Luo
9cc3337af6 Enable optional tests, and add verbosity/backtraces to tests 2016-02-09 21:24:26 +01:00
Ximin Luo
6935ded2c3 Add my build-preview-dsc.sh script for autobuilding experimental beta/nightly packages 2016-02-09 01:27:08 +01:00
Angus Lees
cf9ecddee2 Declare dh_install overrides as -arch
Guard arch-dependent dh_install commands appropriately, fixing
arch-indep-only builds.  (Closes: #809124)
2016-01-26 05:40:38 +11:00
Angus Lees
c2a1d9e328 Disable gcc-6 -Wmisleading-indentation
This new gcc-6 warning triggers (incorrectly) on src/rt/miniz.c, which
is then fatal thanks to -Werror.  Skip the new warning entirely for now.
(Closes: #811573)
2016-01-26 04:02:24 +11:00
Ximin Luo
1ce0c197c7 Use a different way to calculate RUST_VERSION which works with nightly versions too. 2016-01-06 05:00:07 +01:00
Ximin Luo
729ff939fc Retroactively update git tree from Debian release 1.5.0+dfsg1-1 2016-01-04 03:53:18 +01:00
Sylvestre Ledru
888747f5d1 Move away from hash to the same rust naming schema 2015-12-10 17:43:23 +01:00
Sylvestre Ledru
87a3096975 Update the upstream url to the favicon (moved to https) 2015-10-30 11:45:59 +01:00
Ximin Luo
0fbc9e96fb use llvm 3.7 as upstream does, now that it's in Debian 2015-09-02 12:23:03 +02:00
Ximin Luo
3eba238399 mk/util.mk already defines print-% and cowbuilder doesn't let us write to Makefile anyways 2015-09-01 00:27:39 +02:00
Ximin Luo
4fd134d634 exclude src/etc/snapshot.pyc from sources 2015-08-31 20:40:57 +02:00
Ximin Luo
bcf223b3dd read RUST_HASH directly from debian/control and check that it matches upstream CFG_FILENAME_EXTRA 2015-08-31 20:34:26 +02:00
Ximin Luo
52efbfffe4 use rust-doc.links instead of explicit rule 2015-08-31 20:34:14 +02:00
Sylvestre Ledru
92f6ea489e update another kind of url for the favicon 2015-08-18 13:54:32 +02:00
Sylvestre Ledru
664d044139 Update the url to reflect upstream change 2015-08-11 18:12:32 +02:00
Angus Lees
eef1f4e32c rust-doc: Don't compress *.woff font files
These files are referenced by name in HTML/CSS - which breaks if the
files have been compressed.
2015-07-21 00:08:43 +10:00
Angus Lees
36a0542254 rust-doc: Remove unnecessary *.inc files
These are only used during HTML generation - the *.inc files are
unnecessary in the resulting package.
2015-07-21 00:07:49 +10:00
Angus Lees
b556761ea4 fixup! Replace 32x32 logo with local file 2015-07-21 00:07:32 +10:00
Angus Lees
1add0b94ea Replace 32x32 logo with local file
Addresses several cases in HTML docs flagged by lintian's
privacy-breach-logo check.
2015-07-20 10:26:40 +10:00
Angus Lees
f20ed4ace8 New upstream release (1.1)
Requires a slightly different way to calculate RUST_HASH.
2015-06-28 00:01:50 -06:00
Angus Lees
0f9154dede Update to --release-channel=stable 2015-05-28 15:12:33 +10:00
Angus Lees
525ff0f9ff Split out library packages for multiarch
Split out libraries from rustc.deb into new packages:
- libstd-rust-4e7c5e5c - run-time dylibs
- libstd-rust-dev - compile-time dylibs + rlibs

Run-time dylibs (libstd-rust-4e7c5e5c) are installed into regular
multiarch lib path, compile-time libs are installed into
/usr/lib/rustlib/$rust_triple/

While we're at it, split out rust-gdb, rust-lldb into their own packages
too.
2015-05-27 18:02:10 +10:00
Sylvestre Ledru
9d09010545 Replace two more occurrences of jquery by the package 2015-05-06 11:15:38 +02:00
Angus Lees
2e97839d6b override_dh_install: Use make conditionals rather than shell
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).
2015-04-21 20:59:55 +10:00
Angus Lees
1261b4b365 Replace compile-time dylibs with symlinks to run-time
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.
2015-04-20 17:21:01 +10:00
Angus Lees
d75d48d616 Set architecture flags in all cases
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).
2015-04-20 17:21:00 +10:00
Sylvestre Ledru
3576302d88 Use jquery package 2015-04-12 22:09:12 +02:00
Sylvestre Ledru
4c74b6d2a5 fix warning debian-rules-ignores-make-clean-error 2015-04-12 10:54:30 +02:00
Sylvestre Ledru
74e68f77cf Comment for now before upload 2015-03-23 15:36:26 +01:00
Sylvestre Ledru
120b4d47b6 rename nodocs to nodoc to match what is done in Debian usually 2015-03-14 08:02:15 +01:00
Angus Lees
39a0abff70 Install into debian/tmp regardless of number of packages
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.
2015-03-10 13:16:48 +11:00
Angus Lees
7d40d3e194 Set CFLAGS/LDFLAGS/etc according to Debian policy
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).
2015-03-08 23:50:25 +11:00
Luca Bruno
0be7358cfc rules: respect 'nocheck' DEB_BUILD_OPTIONS
Signed-off-by: Luca Bruno <lucab@debian.org>
2015-03-06 23:02:40 +01:00
Angus Lees
0577fc8471 Build against system LLVM
Now that a sufficient version (>= 3.6 RC4) exists in unstable.
2015-02-27 09:50:00 +00:00
Angus Lees
11c430bec9 Improve clean target
Run `make clean-all` which also cleans LLVM source.
2015-02-27 09:50:00 +00:00
Angus Lees
bc0aa84e4b Numerous minor rust-doc fixups
- Correct guard on privacy-breach-logo fix
- Install RELEASES.md as upstream changelog
- Ignore TeX intermediate files when installing docs
- Install README.md into /usr/share/doc/rust/
- Install upstream docs into /usr/share/doc/rust-doc/html/
- Correct Index paths in doc-base files
- Add doc-base file for the Style Guidelines doc
2015-02-27 09:50:00 +00:00
Sylvestre Ledru
1c8ac2b079 * Introduce some changes by Angus Lees
- 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)
2015-02-15 18:59:02 +01:00
Luca Bruno
d4357a263f debian: set release channel for ./configure 2015-01-25 10:26:08 +01:00
Luca Bruno
3f9812c21a debian: update var names in rules 2015-01-23 17:20:30 +01:00
Sylvestre Ledru
cd3b5a3bd8 disable the parallel build 2015-01-23 17:14:16 +01:00
Luca Bruno
b59979d9b3 debian: simplify version variables in rules 2015-01-23 17:09:42 +01:00
Luca Bruno
1f05e8ae8a debian: fix typo (split line) in rules 2015-01-22 00:06:48 +01:00
Sylvestre Ledru
a51d697676 also delete empty files 2015-01-21 19:20:03 +01:00
Sylvestre Ledru
6fce0a9982 Remove the favicon from the doc 2015-01-21 19:11:04 +01:00
Sylvestre Ledru
2d084d4c18 bing brack parallel build 2015-01-21 14:45:30 +01:00
Sylvestre Ledru
5294c94c0b Use rust.manpages 2015-01-21 14:31:01 +01:00
Sylvestre Ledru
c18f75cf30 Enable the testsuite 2015-01-21 12:01:33 +01:00
Jordan Justen
3b5d38b25d debian: Don't copy files from debian/dl
Instead we will use ../rust_$VERSION.orig-dl.tar.gz and debian's
multiple upstream tarball support.

Signed-off-by: Jordan Justen <jljusten@gmail.com>
2015-01-20 16:58:16 -08:00
Sylvestre Ledru
8354de7ad6 * Update the make install logic to install in debian/tmp/
instead of debian/rust and use the *.install files
* Introduce the rust-doc package
2015-01-20 18:07:05 +01:00