Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Sebastien Bacher
Tue, 01 Dec 2026 11:40
Bug#1156013: scapy: autopkgtest fails: cp: cannot stat '../src'
Author: Sebastien Bacher
Date: Tue, 01 Dec 2026 11:40
Date: Tue, 01 Dec 2026 11:40
79 lines
4159 bytes
4159 bytes
This is a multi-part MIME message sent by reportbug.
--===============1743969781228010165==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Source: scapy
Version: 2.7.0+dfsg1-1
Severity: normal
Tags: patch
X-Debbugs-Cc: seb128@ubuntu.com
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu tenacious ubuntu-patch
Hi,
The autopkgtest of scapy 2.8.0+dfsg-1 fails in debci and in Ubuntu with:
cp: cannot stat '../src': No such file or directory
run-upstream-tests FAIL non-zero exit status 1
debian/tests/run-upstream-tests starts with "cp -a -r ../src
$AUTOPKGTEST_TMP", which only worked because autopkgtest used to unpack the
source package as <builddir>/src. Since autopkgtest commit 3b063dad
("build_source: use one fixed location for the source tree"), the tree is
extracted into <scratch>/tests-tree, so ../src does not exist anymore.
ref: https://salsa.debian.org/ci-team/autopkgtest/-/commit/3b063da
autopkgtest documents that the cwd of each test is the root of the source
package, so the attached patch copies the current directory instead:
-cp -a -r ../src $AUTOPKGTEST_TMP
+cp -a -r . "$AUTOPKGTEST_TMP/src"
The rest of the script (cd $AUTOPKGTEST_TMP/src, run_tests) is unchanged.
I only checked that the new cp command produces $AUTOPKGTEST_TMP/src/test/run_tests
from the unpacked 2.8.0+dfsg tree; I did not run the upstream test suite with
the patch applied.
Cheers,
Sebastien
-- System Information:
Debian Release: forky/sid
APT prefers resolute-updates
APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 7.0.0-44-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--===============1743969781228010165==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="scapy-run-tests.patch"
--- a/debian/tests/run-upstream-tests
+++ b/debian/tests/run-upstream-tests
@@ -6,7 +6,7 @@
# tests in autopkgtest
export HOME=$AUTOPKGTEST_TMP
-cp -a -r ../src $AUTOPKGTEST_TMP
+cp -a -r . "$AUTOPKGTEST_TMP/src"
cd $AUTOPKGTEST_TMP/src
--===============1743969781228010165==--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads