Package: src:remrun
Version: 0.2.4-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

[ note: /var/lib/buildd is the $HOME of the user where I build packages, but 
this
  might not exist inside the chroot, looks like the problem is that the tests
  are trying to write to $HOME, which is forbidden by policy ]

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh 'clean'
   dh_auto_clean
        make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f -- 'remrun' 'remrun.1.gz'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh 'binary'
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
        make -j2 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
install -m 755 -- 'remrun.sh' 'remrun'
gzip -c -n -9 -- 'remrun.1' > 'remrun.1.gz' || { rm -f -- 'remrun.1.gz'; false; 
}
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
if [ -d /run/sshd ]; then \
        dh_auto_test -- SKIP_SHELLCHECK=1; \
else \
        echo 'No /run/sshd directory, not running the upstream test suite'; \
fi
        make -j2 test SKIP_SHELLCHECK=1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
[ -n '1' ] || shellcheck -- 'remrun' 'tests/run-test.sh'
env PYTHONPATH='/<<PKGBUILDDIR>>/tests/python' python3 -B -u -m run_sshd_test 
-v -t 'tests/run-test.sh'  -- 'remrun'
Using /<<PKGBUILDDIR>>/run_sshd_test.vplskquw as a temporary directory, initial 
uid 924
Looking for a port to listen on at 127.0.0.1
- got 127.0.0.1:8086
Generating the SSH host key at 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/ssh_host_key
Generating public/private ed25519 key pair.
Your identification has been saved in 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/ssh_host_key
Your public key has been saved in 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/ssh_host_key.pub
The key fingerprint is:
SHA256:BA1WJPWYP7M7X/7wagYvA3FmXpwlf0Vt8gzEndtkfec buildd@c7a-large-1746029472
The key's randomart image is:
+--[ED25519 256]--+
|      =*+    o.o=|
|     . o.+    =.%|
|        + .  . #*|
|       . .. + +.E|
|        S +* .  .|
|          .+o    |
|          .. oo  |
|          ..oo+o |
|          .o.=ooo|
+----[SHA256]-----+
Generating the SSH client key at 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/home/.ssh/id
Generating public/private ed25519 key pair.
Your identification has been saved in 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/home/.ssh/id
Your public key has been saved in 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/home/.ssh/id.pub
The key fingerprint is:
SHA256:FoO7eOaRs6ao+aNEi5GLEbJUfWQB2G0nyqIfLo4Z9Us buildd@c7a-large-1746029472
The key's randomart image is:
+--[ED25519 256]--+
|   .+.++.        |
|  .. o.* .       |
|o.  . = =        |
|o+ . o . o       |
|=.o . . S        |
|+*.o . +         |
|=oo E B          |
|o=.= =.+         |
|B=+.ooo          |
+----[SHA256]-----+
Copying the client public key to the authorized keys file
Generating the client known hosts file
Generating the SSH client config file
Generating the SSH server config file
./home/.ssh/known_hosts:127.0.0.1 ssh-ed25519 
AAAAC3NzaC1lZDI1NTE5AAAAIDxCi8d5IzWIN2RX9T6qWat6KghOqTDrBiY/VfPPMaM2 
buildd@c7a-large-1746029472
./home/.ssh/id.pub:ssh-ed25519 
AAAAC3NzaC1lZDI1NTE5AAAAIKT7gGufD5U479YzZJZQzT8Sb2RcXlJmtOOGZHPMBY27 
buildd@c7a-large-1746029472
./home/.ssh/id:-----BEGIN OPENSSH PRIVATE KEY-----
./home/.ssh/id:b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
./home/.ssh/id:QyNTUxOQAAACCk+4Brnw+VOO/WM2SWUM0/Em9kXF5SZrTjhmRzzAWNuwAAAKCiDT++og0/
./home/.ssh/id:vgAAAAtzc2gtZWQyNTUxOQAAACCk+4Brnw+VOO/WM2SWUM0/Em9kXF5SZrTjhmRzzAWNuw
./home/.ssh/id:AAAEBQK/6Xpefxp3YwL8ljfh5peLAY69OxXfZztvaN5H+neaT7gGufD5U479YzZJZQzT8S
./home/.ssh/id:b2RcXlJmtOOGZHPMBY27AAAAG2J1aWxkZEBjN2EtbGFyZ2UtMTc0NjAyOTQ3MgEC
./home/.ssh/id:-----END OPENSSH PRIVATE KEY-----
./home/.ssh/config:
./home/.ssh/config:Host *
./home/.ssh/config:ForwardAgent no
./home/.ssh/config:ForwardX11 no
./home/.ssh/config:GlobalKnownHostsFile /dev/null
./home/.ssh/config:GSSAPIAuthentication no
./home/.ssh/config:HostbasedAuthentication no
./home/.ssh/config:IdentitiesOnly yes
./home/.ssh/config:IdentityFile 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/home/.ssh/id
./home/.ssh/config:KbdInteractiveAuthentication no
./home/.ssh/config:PasswordAuthentication no
./home/.ssh/config:Port 8086
./home/.ssh/config:PubkeyAuthentication yes
./home/.ssh/config:RequestTTY no
./home/.ssh/config:StrictHostKeyChecking yes
./home/.ssh/config:Tunnel no
./home/.ssh/config:UpdateHostKeys no
./home/.ssh/config:User buildd
./home/.ssh/config:UserKnownHostsFile 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/home/.ssh/known_hosts
./home/.ssh/config:VerifyHostKeyDNS no
./server/ssh_host_key:-----BEGIN OPENSSH PRIVATE KEY-----
./server/ssh_host_key:b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
./server/ssh_host_key:QyNTUxOQAAACA8QovHeSM1iDdkV/U+qlmreioITqkw6wYmP1XzzzGjNgAAAKCZXpw7mV6c
./server/ssh_host_key:OwAAAAtzc2gtZWQyNTUxOQAAACA8QovHeSM1iDdkV/U+qlmreioITqkw6wYmP1XzzzGjNg
./server/ssh_host_key:AAAEDhzwr2K7mWub6k1pBg/cSef+IQ4noF/77sH9fhK0OdETxCi8d5IzWIN2RX9T6qWat6
./server/ssh_host_key:KghOqTDrBiY/VfPPMaM2AAAAG2J1aWxkZEBjN2EtbGFyZ2UtMTc0NjAyOTQ3MgEC
./server/ssh_host_key:-----END OPENSSH PRIVATE KEY-----
./server/authorized_keys:ssh-ed25519 
AAAAC3NzaC1lZDI1NTE5AAAAIKT7gGufD5U479YzZJZQzT8Sb2RcXlJmtOOGZHPMBY27 
buildd@c7a-large-1746029472
./server/ssh_host_key.pub:ssh-ed25519 
AAAAC3NzaC1lZDI1NTE5AAAAIDxCi8d5IzWIN2RX9T6qWat6KghOqTDrBiY/VfPPMaM2 
buildd@c7a-large-1746029472
./server/sshd_config:
./server/sshd_config:AllowUsers buildd
./server/sshd_config:AuthorizedKeysFile 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/authorized_keys
./server/sshd_config:DisableForwarding yes
./server/sshd_config:GSSAPIAuthentication no
./server/sshd_config:HostKey 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/ssh_host_key
./server/sshd_config:IgnoreRhosts yes
./server/sshd_config:KbdInteractiveAuthentication no
./server/sshd_config:ListenAddress 127.0.0.1
./server/sshd_config:PasswordAuthentication no
./server/sshd_config:PermitRootLogin no
./server/sshd_config:PermitTTY no
./server/sshd_config:PidFile 
/<<PKGBUILDDIR>>/run_sshd_test.vplskquw/server/sshd.pid
./server/sshd_config:Port 8086
./server/sshd_config:PubkeyAuthentication yes
./server/sshd_config:StrictModes no
./server/sshd_config:UseDNS no
Determining the full path of the real SSH executable
Generating the SSH wrapper
Checking that the SSH-specific environment is sane
Looking for an SSH server executable
Starting an SSH server: /usr/sbin/sshd
- got SSH server process 1040196
Waiting for the SSH server at 127.0.0.1:8086 (address family AF_INET) to start 
accepting connections
Server listening on 127.0.0.1 port 8086.

Trying to connect to 127.0.0.1 port 8086...
Connected!
Got banner 'SSH-2.0-OpenSSH_10.0p2 Debian-2\r\n'
Checking that our SSH client and server both work
Connection closed by 127.0.0.1 port 36068

Accepted publickey for buildd from 127.0.0.1 port 36082 ssh2: ED25519 
SHA256:FoO7eOaRs6ao+aNEi5GLEbJUfWQB2G0nyqIfLo4Z9Us

Could not chdir to home directory /var/lib/buildd: No such file or directory
Received disconnect from 127.0.0.1 port 36082:11: disconnected by user

Disconnected from user buildd 127.0.0.1 port 36082

Running the /<<PKGBUILDDIR>>/tests/run-test.sh testsuite

=== Fail with a nonexistent local file

Not a readable regular file: /nonexistent

=== Do not run "whoami" on the remote host

Parsed SSH port '' user@host '127.0.0.1'
Obtaining the local checksum of /<<PKGBUILDDIR>>/tests/test-data/whoami.sh
Obtained local checksum 
3c1b851fd5df97943328a92039df4061fd53219b2b94244089237f5da2fcb0c5
About to create a temporary file at '127.0.0.1'
Accepted publickey for buildd from 127.0.0.1 port 36096 ssh2: ED25519 
SHA256:FoO7eOaRs6ao+aNEi5GLEbJUfWQB2G0nyqIfLo4Z9Us

Could not chdir to home directory /var/lib/buildd: No such file or directory
mktemp: failed to create file via template 'remrun.XXXXXX': Permission denied
Received disconnect from 127.0.0.1 port 36096:11: disconnected by user

Could not run mktemp at '127.0.0.1' via SSH
Disconnected from user buildd 127.0.0.1 port 36096

Unexpected failure; here is the output:
Killing the SSH server
The SSH server is done, code -9
Removing /<<PKGBUILDDIR>>/run_sshd_test.vplskquw in process 1040189
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/<<PKGBUILDDIR>>/tests/python/run_sshd_test/__main__.py", line 584, in 
<module>
    main()
    ~~~~^^
  File "/<<PKGBUILDDIR>>/tests/python/run_sshd_test/__main__.py", line 576, in 
main
    test_prog(cfg, ssh_cfg)
    ~~~~~~~~~^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/tests/python/run_sshd_test/__main__.py", line 407, in 
test_prog
    subprocess.check_call(["sh", "--", cfg.test_prog, cfg.prog], env=run_env)  
# noqa: S603,S607
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sh', '--', 
PosixPath('/<<PKGBUILDDIR>>/tests/run-test.sh'), 
PosixPath('/<<PKGBUILDDIR>>/remrun')]' returned non-zero exit status 1.
make[2]: *** [Makefile:45: test] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 test SKIP_SHELLCHECK=1 returned exit code 2
make[1]: *** [debian/rules:9: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202505/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:remrun, so that this is still
visible in the BTS web page for this package.

Thanks.

Reply via email to