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

Bug #1998903 reported by Devsteig
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvswitch (Ubuntu)
Expired
Undecided
Unassigned

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.
```

Revision history for this message
Frode Nordahl (fnordahl) wrote :

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
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openvswitch (Ubuntu) because there has been no activity for 60 days.]

Changed in openvswitch (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.