Commit Graph

347 Commits

Author SHA1 Message Date
Fabian Grünbichler
0bd712a53b fix builds on porter boxes
that patch was moved because `gbp pq` would delete it otherwise, but it
is auto-applied as part of the build on porter boxes.

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-06-19 13:43:10 +02:00
Fabian Grünbichler
a3d9ae9145 d/rules: third time's the charm
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-06 10:25:29 +02:00
Fabian Grünbichler
ce2df58db7 d/rules: fix variable typo
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-06 09:16:41 +02:00
Fabian Grünbichler
1edb5ae957 d/rules: switch low-mem check to cover all 32-bits archs
armel and armhf actually have ARC_CPU arm, but more importantly, x32 has
ARCH_CPU amd64, so can't be differentiated that way from actual amd64.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-06 08:17:42 +02:00
Samuel Thibault
3cdf99228f rules: Use 32bit limitations workaround on !linux as well 2024-06-04 21:09:33 +02:00
Fabian Grünbichler
8436b4059e dwz: bump limit to avoid s390x build failures
s390x seems to choke on this right now with:

 dh_dwz --no-dwz-multifile
 dwz: debian/libstd-rust-1.74/usr/lib/s390x-linux-gnu/librustc_driver-3d6b215bbf0742fb.so: Too many DIEs, not optimizing
 dh_dwz: error: dwz -- debian/libstd-rust-1.74/usr/lib/s390x-linux-gnu/librustc_driver-3d6b215bbf0742fb.so debian/libstd-rust-1.74/usr/lib/s390x-linux-gnu/libstd-ea06fb4ce966fcaa.so debian/libstd-rust-1.74/usr/lib/s390x-linux-gnu/libtest-4b3dbc8d1d2f22fa.so returned exit code 1
 dh_dwz: error: Aborting due to earlier error

let's hope twice the default allows it to finish..

Signed-off-by: Fabian Grünbichler <git@fabian.gruenbichler.email>
2024-05-30 11:23:52 +02:00
Samuel Thibault
e84ae754e1 rules: Set the number of expected failures on Hurd ports 2024-05-29 11:24:44 +02:00
Samuel Thibault
39021ed0e3 rules: Disable profiling on Hurd ports, llvm does not provide it yet 2024-05-29 11:24:44 +02:00
Fabian Grünbichler
2b3c2a4f69 switch to LLVM 17
like upstream does for 1.73+

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-05-27 22:46:43 +02:00
Fabian Grünbichler
38dd297a1e fix shlibs related issues
dh_makeshlibs only accepts sonames starting with digits, which is not the case
for the rustc libraries in libstd-rust-$ver, since those are using a hash.

exclude that package altogether, and do both the shlibs generation *and* the
ldconfig trigger manually.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-05-24 11:14:46 +02:00
Fabian Grünbichler
f720702cfa d/rules: adapt allowed test failures
give loong64 the same status as other ports, now that is might build. promote
riscv64 to the next higher tier.

Closes: #1071707

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-05-24 08:16:54 +02:00
Fabian Grünbichler
165f40f059 fix/ignore more tests
Gbp-Dch: Ignore

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-15 07:21:31 +02:00
Fabian Grünbichler
c9c1ae9308 d/rules: fix last package cache removal
the build can be racy otherwise.

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-03 17:01:02 +02:00
Fabian Grünbichler
3f4b7b35a8 d/rules: allow removal of package cache to fail
to allow all+any and separate builds to work.

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-03 13:26:17 +02:00
Fabian Grünbichler
6686fd9277 d/rules: properly install cargo docs
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-02 18:11:07 +02:00
Fabian Grünbichler
4aaf3ea8b8 d/rules: remove package cache
to avoid it being shipped in the cargo package

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-02 18:11:07 +02:00
Fabian Grünbichler
18a275f7f2 rules: handle extra vendored dependencies
such as git2 updates

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-05-02 18:11:07 +02:00
liushuyu
14fc82257c d/rules: remove src/tools/cargo/Cargo.lock ...
... prior to build to avoid mismatching dependency versions
2024-05-02 17:57:42 +02:00
liushuyu
a3c87cc80b d/rules: remove .package-cache before installation ...
... otherwise debhelper will confuse the cache files with the actual
installed artifacts
2024-05-02 17:57:42 +02:00
liushuyu
370db4911a d/control, d/rules: install Cargo bash completion 2024-05-02 17:57:42 +02:00
liushuyu
807a241f2c d/rules, d/cargo.*: build and install Cargo API docs 2024-05-02 17:57:42 +02:00
liushuyu
7e45ca5b2a d/rules: use system libssh2 ...
... because now we have Cargo in the tree and by default it will use
bundled libssh2
2024-05-02 17:57:41 +02:00
liushuyu
43e09c1209 d/rules: revise openssl source check 2024-05-02 17:57:41 +02:00
Fabian Grünbichler
fc6de81128 d/rules: fix make warning in filter invocation
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-03-15 17:20:00 +01:00
Fabian Grünbichler
0aa1f5c389 profiler: disable on mips64el for now
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-02-15 06:52:06 +01:00
Fabian Grünbichler
a6f2bf1b04 disable LLVM profiler support on sparc64
and allow easily extending the list of architectures where it doesn't
work (yet), if needed.

Closes: #1061125

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2024-02-11 20:59:04 +01:00
Andres Salomon
c9e6dc3fec clean up after running make_orig-stage0_tarball.sh
Without this, the build/ directory will stick around after having run
make_orig-stage0_tarball.sh. When you then run the suggested command
'dpkg-source -b .', you'll get tons of these types of errors:

dpkg-source: error: cannot represent change to build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-89bc084783fdc439.rlib: binary file contents changed
2024-02-09 23:10:51 -05:00
Fabian Grünbichler
5f83276049 adapt LLVM_PROFILER_RT_LIB path
to work in the absense of clang-16 being pulled in, as is the case for split
any/all builds like on buildds.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-01-15 08:16:09 +01:00
Andres Salomon
6a1b7eba19 enable profiler builtin (#1043311)
This is needed by chromium's new rust dependency.

Signed-off-by: Andres Salomon <dilinger@debian.org>
2024-01-14 07:50:28 -05:00
Fabian Grünbichler
a383e2ade2 switch to LLVM 16
upstream switched their default version with 1.70.0

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-09-14 09:07:24 +02:00
Fabian Grünbichler
8a3e0adab7 fix FTCBF by setting TARGET flags (Closes: #1050975)
Reported-by: Helmug Grohne <helmut@subdivi.de>
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2023-09-08 10:40:22 +02:00
Fabian Grünbichler
b8b69291f1 update privacy breach removal
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-09-08 10:19:59 +02:00
Fabian Grünbichler
e2642af047 d/rules: fix typo in mipsel workaround
the typo causes a fallback to the default value of 8 allowed failures,
which is obviously even worse than the 24 we had before..

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2023-03-12 08:53:38 +01:00
Fabian Grünbichler
b4b364c078 d/rules: bump mipsel failure to workaround gdb
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2023-03-11 18:31:40 +01:00
Fabian Grünbichler
e43b5b50bf switch to LLVM-15
upstream uses it since 1.65, stay in sync.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-02-15 20:41:48 +01:00
Fabian Grünbichler
94b8d793b5 d/rules: don't delete .cargo
it's part of the upstream sources now and configures vendoring.

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2022-12-15 21:43:57 +01:00
Fabian Grünbichler
c91d04121e d/rules: also clear bootstrap/rust-analyzer Cargo.lock
they might have vendored slightly different versions than the main
workspace, but we pruned those at tarball generation.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-15 21:43:57 +01:00
Fabian Grünbichler
a25a1d963f d/rules: extend privacy-breach removal
W: rust-doc: privacy-breach-generic [<img src="https://github.com/rust-lang/rust-clippy/workflows/clippy%20test/badge.svg?branch=auto&amp;event=push" alt="clippy test" />] (https://github.com/rust-lang/rust-clippy/workflows/clippy%20test/badge.svg?branch=auto&amp;event=push) [usr/share/doc/rust-doc/html/clippy/index.html]
W: rust-doc: privacy-breach-generic [<img src="https://github.com/rust-lang/rust-clippy/workflows/clippy%20test/badge.svg?branch=auto&amp;event=push" alt="clippy test" />] (https://github.com/rust-lang/rust-clippy/workflows/clippy%20test/badge.svg?branch=auto&amp;event=push) [usr/share/doc/rust-doc/html/clippy/print.html]

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-12-15 21:39:04 +01:00
Fabian Grünbichler
ec5a277de9 d/rules: fix workaround for broken armhf tests
the path in the test output changed, the issue is still unfixed.

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
2022-10-31 14:18:51 +01:00
Fabian Grünbichler
d35683cbce d/rules: one more rust-src cleanup
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-10-28 11:37:41 +02:00
Adrian Bunk
0ceea14c41 Increase allowed failures on armel/mips64el/ppc64 2022-10-10 22:39:10 +02:00
Fabian Grünbichler
9506547409 fix #1017656: build with LLVM14
Signed-off-by: Fabian Gruenbichler <f.gruenbichler@proxmox.com>
2022-09-05 20:23:28 +02:00
Fabian Grünbichler
94a85be882 d/rules: bump mips64el allow test failures to 15
since `asm!` got stabilized in 1.59, more tests started using it in
1.60. mips64el doesn't support this feature (yet).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-05 13:12:55 +02:00
Fabian Grünbichler
a3aaf3d315 d/rules: add i386 and x32 to list of low-mem arches
starting with 1.60, they are no longer able to build rustdoc because the
rustc_driver.so file is too large (>1G) and cannot be mmap-ed:

[...]
error[E0786]: found invalid metadata files for crate `rustc_driver`
  --> src/librustdoc/lib.rs:43:1
   |
43 | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: failed to mmap file '/<<PKGBUILDDIR>>/build/x86_64-unknown-linux-gnux32/stage1/lib/rustlib/x86_64-unknown-linux-gnux32/lib/librustc_driver-55ecdc7db120b4be.so': Cannot allocate memory (os error 12)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-05 13:12:55 +02:00
Fabian Grünbichler
b6d331320c rust-src: remove eslint config
otherwise lintian will complain

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-07-18 09:20:28 +02:00
Ximin Luo
beb2e50bef Ignore some armhf test failures due to regression in GDB 11.2 2022-06-21 11:06:06 +01:00
Fabian Grünbichler
f19bd03d1c d/prune-unused-deps: drop no longer needed sed
this file is now a (generated) json file that doesn't have a 'dev' flag
anymore.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-03-06 21:35:45 +00:00
Ximin Luo
110dae6c5d make dh_prep a bit more robust in triggering a re-install 2021-10-22 23:17:38 +01:00
Ximin Luo
aca8be47f6 control debhelper verbosity via DEB_BUILD_OPTIONS 2021-10-22 22:33:33 +01:00
Ximin Luo
eede854500 Update to debhelper 13, simplifying build rules 2021-10-22 22:33:32 +01:00