This apparently broke with
http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=85621d2f0
. With -d I see

+ export 
PATH=/tmp/autopkgtest.a5vAMh/deps/sbin:/tmp/autopkgtest.a5vAMh/deps/bin:/tmp/autopkgtest.a5vAMh/deps/usr/sbin:/tmp/autopkgtest.a5vAMh/deps/usr/bin:/tmp/autopkgtest.a5vAMh/deps/usr/games:/sbin:/usr/sbin:/bin:/usr/bin
+ mktemp -d /tmp/autopkgtest.a5vAMh/build.XXX
+ builddir=/tmp/autopkgtest.a5vAMh/build.ktb
+ cd /tmp/autopkgtest.a5vAMh/build.ktb
+ cp -rd --preserve=timestamps -- /tmp/autopkgtest.a5vAMh/ubtree- real-tree
+ [ -x real-tree/debian/rules ]
+ dpkg-source --before-build real-tree
dpkg-source: error: changelog format debian is unknown

while this looks different without the read-only apt:

+ dpkg-source --before-build real-tree
sh: 1: gcc: not found
dpkg-source: warning: couldn't determine gcc system type, falling back to 
default (native compilation)
+ chmod -R a+rX .
+ cd real-tree/.

So obviously dpkg-source fails when being called from /tmp/, which is
easy to reproduce in the VM (with -s):

ubuntu@autopkgtest:/tmp/autopkgtest.QZEKZ1/build.wod$ 
PERL5LIB=../deps/usr/share/perl5 ../deps/usr/bin/dpkg-source --before-build 
real-tree
dpkg-source: error: changelog format debian is unknown

It should just use ../deps/usr/share/perl5/Dpkg/Changelog/Debian.pm
here:

    # Find the right changelog parser.
    my $format = ucfirst lc $options{changelogformat};
    my $changes;
    eval qq{
        require Dpkg::Changelog::$format;
        \$changes = Dpkg::Changelog::$format->new();
    };
    error(g_('changelog format %s is unknown: %s'), $format, $@) if $@;

But in strace I cannot see any attempt to open "Changelog.*ebian"
whereas I totally can when dpkg-dev is installed:

  open("/usr/share/perl5/Dpkg/Changelog/Debian.pm", O_RDONLY) = 3

At this point this becomes a bit tedious to track down.

I also suppose this is not really an issue any more as it works fine in
xenial and vivid is dead now?

** Summary changed:

- adt-run in zesty fails
+ "changelog format debian is unknown" with read-only testbeds on < xenial

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => Low

** Changed in: autopkgtest (Ubuntu)
     Assignee: Martin Pitt (pitti) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1646544

Title:
  "changelog format debian is unknown" with read-only testbeds on <
  xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1646544/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to