Package: autopkgtest
Version: 5.16
Severity: important

Dear Maintainer,

/usr/bin/autopkgtest has

    # run create_command
    script = [
        'builddir=$(mktemp -d %s/build.XXX)' % testbed.scratch,
        'cd $builddir',
        create_command,
        'chmod -R a+rX .',
        'cd [a-z0-9]*/.',
        'pwd >&3',
        'sed -n "1 {s/).*//; s/ (/\\n/; p}" debian/changelog >&3',
        'set +e; grep -q "^Restrictions:.*\\bbuild-needed\\b" 
debian/tests/control 2>/dev/null; echo $? >&3'
    ]

    (result_pwd, testpkg_name, testpkg_version, build_needed_rc) = \
        source_rules_command(script, 'extract', results_lines=4)

which works not very good with the Architecture: field.

It will simply cause a build being done if there is also no build-needed
tests on _the architecture we run it for_.
See e.g.
https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/debian-experimental-7.3/tests/control
That causes a full-build on i386 where the build-needed tests are only
done for architectures where also a build-time testsuite failure would
be handled as fatal (here: amd64 and arm64)

Given the many (build-)dependencies of libreoffice libreoffice is
triggered often for testing migration (see
https://ci.debian.net/packages/libr/libreoffice/testing/amd64/)
and this probably will cause some issues - maybe not on i386 but
probably for armhf...

TL;DR: Please make build-needed only honoured on the test actually
specifying it for the arch we run the test for

Regards,

Rene

Reply via email to