Deb PPA: some more eatmydata musings that i missed in earlier change

This commit is contained in:
Roman Lebedev 2025-09-28 11:48:06 +03:00
parent 8e64a3b967
commit cb80f2be96
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
2 changed files with 16 additions and 1 deletions

View File

@ -156,6 +156,13 @@ jobs:
if [ "${{ inputs.dist-name }}" = "debian" ];
then
tee -a ~/.sbuildrc > /dev/null <<EOT
\$external_commands = {
'chroot-setup-commands' => [ "export LD_PRELOAD=/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE)/libeatmydata.so" ]
};
\$build_environment = {
"LD_PRELOAD" => "/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE)/libeatmydata.so"
};
\$environment_filter = [Dpkg::BuildInfo::get_build_env_allowed(), '^LD_PRELOAD$'];
push @{\$unshare_mmdebstrap_extra_args}, "*", [
'--hook-dir=/usr/share/mmdebstrap/hooks/eatmydata'
];

View File

@ -130,6 +130,13 @@ jobs:
\$unshare_tmpdir_template = '/tmp/tmp.sbuild.XXXXXXXXXX';
EOT
tee -a ~/.sbuildrc > /dev/null <<EOT
\$external_commands = {
'chroot-setup-commands' => [ "export LD_PRELOAD=/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE)/libeatmydata.so" ]
};
\$build_environment = {
"LD_PRELOAD" => "/usr/lib/$(dpkg-architecture -q DEB_BUILD_GNU_TYPE)/libeatmydata.so"
};
\$environment_filter = [Dpkg::BuildInfo::get_build_env_allowed(), '^LD_PRELOAD$'];
push @{\$unshare_mmdebstrap_extra_args}, "*", [
'--include=eatmydata',
'--hook-dir=/usr/share/mmdebstrap/hooks/eatmydata',
@ -143,7 +150,8 @@ jobs:
timeout-minutes: 1
run: |
set -xe
eatmydata curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain $RUST_VERSION --profile minimal -y
eatmydata curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
eatmydata sh -s -- --default-toolchain $RUST_VERSION --profile minimal -y
. "$HOME/.cargo/env"
- name: Fetch our git repository
timeout-minutes: 1