Article View: linux.debian.bugs.dist
Article #6991Bug#1156013: scapy: autopkgtest fails: cp: cannot stat '../src'
From: 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==--
Technical Details
Message-ID:
<O5ung-fk0h-11@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Sebastien Bacher <seb128@ubuntu.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1156013: scapy: autopkgtest fails: cp: cannot stat '../src' Date: Tue, 01 Dec 2026 12:40:02 +0100 Message-ID: <O5ung-fk0h-11@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Dec 1 11:32:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Sebastien Bacher <seb128@ubuntu.com>, 1156013@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: seb128@ubuntu.com, team+pkg-security@tracker.debian.org X-Debian-Pr-Message: report 1156013 X-Debian-Pr-Package: src:scapy X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: scapy Content-Type: multipart/mixed; boundary="===============1743969781228010165==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0+ubuntu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006267 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 79 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 01 Dec 2026 12:32:14 +0100 X-Original-Message-ID: <179612473418.2105488.9218684637891161340.reportbug@seb128-ThinkPad-T16>