Public bug reported:

snapd 2.68.3 introduced this change in d/control:

--- a/packaging/ubuntu-16.04/control
+++ b/packaging/ubuntu-16.04/control
@@ -40,7 +40,7 @@ Build-Depends: autoconf,
                python3-pytest,
                squashfs-tools,
                tzdata,
-               udev,
+               systemd-dev | udev (< 255),
                xfslibs-dev
 Standards-Version: 3.9.7
 Homepage: https://github.com/snapcore/snapd

A "<" version comparison is incorrect. According to the debian
policy[1]:

  The relations allowed are <<, <=, =, >= and >> for strictly earlier, earlier 
or equal, exactly equal, 
  later or equal and strictly later, respectively. The exception is the 
Provides field, for which only = 
  is allowed.

There is a note[2]:

  The relations < and > were previously allowed, but they were confusingly 
defined to mean earlier/later 
  or equal rather than strictly earlier/later. dpkg still supports them with a 
warning, but they are no 
  longer allowed by Debian Policy.

I'm not just being nitpicky, though. This is causing an autopkgtest
failure[3]:


226s autopkgtest [20:03:17]: testing package snapd version 2.68.3+ubuntu25.04.2
228s autopkgtest [20:03:19]: build not needed
233s autopkgtest [20:03:24]: test integrationtests: preparing testbed
234s E: Invalid operator '<' at offset 770, did you mean '<<' or '<='? 

That's because d/t/control has @builddeps@, which will "copy" the
offending version comparison, and my guess is that autopkgtest is not as
lenient with the old style "<" comparison, and outright fails.


1. https://www.debian.org/doc/debian-policy/ch-relationships.html
2. https://www.debian.org/doc/debian-policy/ch-relationships.html#id7
3. 
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-plucky/plucky/amd64/s/snapd/20250401_200346_044be@/log.gz

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Tags added: update-excuse

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

Title:
  Incorrect version dependency declaration in d/control causes
  autopkgtest failure

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to