[Bug 1998903] Re: Mismatch between openvswitch-source, apt-get source and debcheckout

Frode Nordahl 1998903 at bugs.launchpad.net
Fri Mar 31 06:07:51 UTC 2023


The purpose of the `openvswitch-source` package is to provide an
artifact of the upstream OVS source repository for reproducible builds
of other packages that depend on the OVS library code, such as the OVN
package.

The debian source part of the `openvswitch-source` package is not meant
to be used for package builds.

** Changed in: openvswitch (Ubuntu)
       Status: New => Incomplete

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

Title:
  Mismatch between openvswitch-source, apt-get source and debcheckout

Status in openvswitch package in Ubuntu:
  Incomplete

Bug description:
  1) Ubuntu 22.04.1 LTS

  2) openvswitch-source 2.17.2-0ubuntu0.22.04.2 500

  3) I expect minimal differences between the openvswitch-source deb
  package, the `apt-get source` and `debcheckout jammy branch`. They
  should all match the upstream built packages, no?

  4) They all differ significantly:

  ```
  # Retrieve and install openvswitch-source
  apt-get install openvswitch-source
  tar vfax /usr/src/openvswitch/openvswitch.tar.gz
  mv ./openvswitch/ ./openvswitch-2.17.2_deb-source/

  # Retrieve apt-get source
  apt-get source openvswitch
  mv openvswitch-2.17.2/ openvswitch-2.17.2_apt-source/

  # Retrieve debcheckout source
  debcheckout openvswitch
  mv ./openvswitch/ ./openvswitch-2.17.2_debcheckout/
  pushd ./openvswitch-2.17.2_debcheckout/
  git checkout remotes/origin/ubuntu/jammy
  popd

  # Compare and expect minimal diffs
  diff ./openvswitch-2.17.2_deb-source/ ./openvswitch-2.17.2_apt-source/ | wc -l
  20468

  diff ./openvswitch-2.17.2_deb-source/ ./openvswitch-2.17.2_debcheckout/ | wc -l
  20703

  diff ./openvswitch-2.17.2_apt-source/ ./openvswitch-2.17.2_debcheckout/ | wc -l
  277
  ```

  openvswitch-source doesn't even build:

  ```
  cp -r /usr/src/openvswitch/ ./openvswitch-2.17.2_debsource
  cd ./openvswitch-2.17.2_debsource/

  DEB_BUILD_OPTIONS='parallel=8 nocheck' debuild -b -uc -us
  ...
  patch -f --no-backup-if-mismatch -i /home/docker/openvswitch-2.17.2_deb-source/debian/ltmain-whole-archive.diff build-aux/ltmain.sh
  patch: **** Can't open patch file /home/docker/openvswitch-2.17.2_deb-source/debian/ltmain-whole-archive.diff : No such file or directory
  make[1]: *** [debian/rules:12: override_dh_autoreconf] Error 2
  make[1]: Leaving directory '/home/docker/openvswitch-2.17.2_deb-source'
  make: *** [debian/rules:6: build] Error 2
  ...

  From what I can see, the missing `ltmain-whole-archive.diff` only
  exists in the 3.x.x branches of the official Open vSwitch sources and
  should perhaps not be a part of the 2.x.x source?

  I may have misunderstood something, but my impressions is that these sources should be equal and match the compiled *openvswitch* debs? Let me know if there is anything I can do to contribute in resolving this issue.
  ```

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




More information about the Ubuntu-openstack-bugs mailing list