]> git.proxmox.com Git - ovs.git/commitdiff
openvswitch: FTBFS with dpkg-buildpackage.
authornickcooper-zhangtonghao <nic@opencloud.tech>
Mon, 19 Dec 2016 13:16:14 +0000 (05:16 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 23 Dec 2016 17:34:44 +0000 (09:34 -0800)
The debian packages are ready. This patch fixes the
bug #831924 reported at debian bug tracking system.
With this patch, openvswitch-2.6.1 will be upload to
the Debian archive.  If we build the packages with
"dpkg-buildpackage --target binary-indep", an error
state arises. debian/rules should be modified so that
the build-indep and binary-indep target generates
the architecture independent packages. If there are
things not be handled properly,let me know.

Reported-at: https://people.debian.org/~lucas/logs/2016/07/20/openvswitch_2.5.1~pre+git20160626-2_unstable_archallonly.log
Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech>
Signed-off-by: Ben Pfaff <blp@ovn.org>
debian/rules

index 4c34b07f8a238677b7559ba81b8cd45b10d75abf..12fb94a3fe9e85da21219e8653dbbbd408bfa321 100755 (executable)
@@ -48,7 +48,7 @@ override_dh_auto_clean:
        rm -f python/ovs/*.pyc python/ovs/db/*.pyc
        dh_auto_clean
 
-override_dh_install:
+override_dh_install-arch:
        dh_install
        # openvswitch-switch
        cp debian/openvswitch-switch.template debian/openvswitch-switch/usr/share/openvswitch/switch/default.template
@@ -59,6 +59,9 @@ override_dh_install:
        # ovn-central
        cp debian/ovn-central.template debian/ovn-central/usr/share/ovn/central/default.template
 
+override_dh_install-indep:
+       dh_install
+
        # openvswitch-datapath-source
        cp debian/rules.modules debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules
        chmod 755 debian/openvswitch-datapath-source/usr/src/modules/openvswitch-datapath/debian/rules