[Bug 1998903] [NEW] Mismatch between openvswitch-source, apt-get source and debcheckout
Stig Baugstø
1998903 at bugs.launchpad.net
Tue Dec 6 08:53:20 UTC 2022
Public bug reported:
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.
```
** Affects: openvswitch (Ubuntu)
Importance: Undecided
Status: New
--
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:
New
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