[Bug 1716047] Re: rustc control file contains unsupported restriction formulas in control file

Charles F. Stephens cfs at purestorage.com
Tue Oct 10 03:57:42 UTC 2017


Our builds use germinate to create a custom ISO installer.  Germinate
attempts to parse all of the index files from an APT repository
including Sources.  The rustc source package contains restriction
formulas which are too new (read as: schema change) for germinate and/or
python-apt to understand and it errors out.

If anyone attempted to rebuild rustc using trusty using pbuilder, it
won't work for the same reason. (This leads me to conclude that whomever
built the binary rustc packages for this trusty backport did not do so
on a trusty system).

There are zero other content changes required, just removal of the
unsupported restriction formulas in the Build-Depends* fields of the
control file.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1716047

Title:
  rustc control file contains unsupported restriction formulas in
  control file

Status in rustc package in Ubuntu:
  Incomplete

Bug description:
  The trusty back port of the rustc source package breaks dependency
  computation using apt because it contains qualifiers in the Build-
  Depends that are not understood by the trusty version of apt.

  Build-Depends: debhelper (>= 9), rustc (>= 1.14.0+dfsg) [!powerpc], rustc (<= 1.15.1++) [!powerpc], autotools-dev, binutils-2.26, cmake3, curl, gperf, libedit-dev, llvm-3.9-dev (>= 1:3.9-5), llvm-3.9-tools (>= 1:3.9-5), python, zlib1g-dev, nodejs [!arm64] <!nocheck>, valgrind <!nocheck>, git <!nocheck>, procps <!nocheck>, libjs-jquery <!nocheck>, antlr <!nocheck>, bison <!nocheck>, flex <!nocheck>, default-jdk <!nocheck>
  Build-Depends-Indep: libjs-jquery <!nodoc>, pandoc (>= 1.9), po4a, texlive-xetex, texlive-latex-base, texlive-generic-recommended, texlive-fonts-recommended, lmodern

  Namely it's the "<!nocheck>" and "<!nodoc>" qualifiers.

  This is breaking our builds which run germinate which calls on APT to
  parse various APT files, include Sources (even though it doesn't
  actually use it):

  /usr/bin/germinate --no-rdepends -S file:///buildtree/germinate/seeds -s pure -a amd64 -c main,universe -d trusty,trusty-updates,trusty-security -m http://apt-svc.redacted.example.com/trusty/trusty-20170615
  rm: cannot remove ‘*’: No such file or directory
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/source/Sources.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/source/Sources.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/debian-installer/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/main/debian-installer/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/source/Sources.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/source/Sources.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/debian-installer/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty/universe/debian-installer/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/source/Sources.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/source/Sources.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/debian-installer/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/debian-installer/binary-amd64/Packages.gz file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/main/debian-installer/binary-amd64/Packages file ...
  Missing installer Packages file for main (ignoring)
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/universe/binary-amd64/Packages.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/universe/binary-amd64/Packages.bz2 file ...
  Downloading http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/universe/source/Sources.bz2 file ...
  Decompressing http://apt-svc.redacted.example.com/trusty/trusty-20170615/dists/trusty-updates/universe/source/Sources.bz2 file ...
  Traceback (most recent call last):
    File "/usr/bin/germinate", line 35, in <module>
      main(sys.argv)
    File "/usr/lib/python3/dist-packages/germinate/scripts/germinate_main.py", line 119, in main
      g.parse_archive(archive)
    File "/usr/lib/python3/dist-packages/germinate/germinator.py", line 512, in parse_archive
      self._parse_source(section)
    File "/usr/lib/python3/dist-packages/germinate/germinator.py", line 497, in _parse_source
      self._sources[src][field] = self._parse_src_depends(value)
    File "/usr/lib/python3/dist-packages/germinate/germinator.py", line 473, in _parse_src_depends
      return apt_pkg.parse_src_depends(value, False)
  ValueError: Problem Parsing Dependency
  root at dc200f95b5d5:~/oo# 

  Recommend removing these incompatible qualifiers from rustc control
  file for the trusty backport.

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



More information about the Ubuntu-sponsors mailing list