libnm: adjust symbol versioning of bond port prio in 1.40.20

This ABI was backported all the way to 1.42.8 and 1.40.20 and to rhel-8.9.
Move the ABI to a separate symbol version, which we have in all those
versions.
This commit is contained in:
Fernando Fernandez Mancera 2023-05-09 19:05:28 +02:00
parent 9b8220c9fa
commit bc0818fe13
2 changed files with 8 additions and 2 deletions

View file

@ -1879,6 +1879,11 @@ global:
nm_vpn_plugin_info_supports_multiple;
} libnm_1_40_0;
libnm_1_40_20_bondp {
global:
nm_setting_bond_port_get_prio;
} libnm_1_40_0;
libnm_1_42_0 {
global:
nm_client_get_version_info;
@ -1928,7 +1933,6 @@ global:
libnm_1_44_0 {
global:
nm_setting_bond_port_get_prio;
nm_setting_gsm_get_initial_eps_apn;
nm_setting_gsm_get_initial_eps_config;
nm_setting_ip6_config_get_dhcp_pd_hint;

View file

@ -89,8 +89,10 @@ def syms_from_ver(verfile):
):
c_syms[str_removesuffix(line, ";")] = version
# This one is... messy.
# These are exceptions and we cannot know the version for the symbol so we
# hardcode it.
c_syms["nm_ethtool_optname_is_feature"] = "1.20"
c_syms["nm_setting_bond_port_get_prio"] = "1.44"
return c_syms