#!/usr/bin/perl

use strict;

$ENV{"LANG"} = "C";

our(@obsoleted_packages, @mlnx_obsoleted_packages, @inbox_obsoleted_packages, @obsolete_for_upstream_libs_mode);

@mlnx_obsoleted_packages = (
		'mlnx-en',
		'mlnx_en',
		'mlnx-en-utils',
		'kmod-mlnx-en',
		'mlnx-en-kmp-default',
		'mlnx-en-kmp-default-debuginfo',
		'mlnx-en-kmp-xen',
		'mlnx-en-kmp-xen-debuginfo',
		'mlnx-en-kmp-trace',
		'mlnx-en-kmp-trace-debuginfo',
		'mlnx-en-doc',
		'mlnx-en-debuginfo',
		'mlnx-en-sources',
		'mlnx-en-debugsource',
		'libibcm',
		'libibcm1-32bit',
		'ibacm',
		'ibsim',
		'ibutils',
		'dapl',
		'dapl-utils',
		'dapl-devel',
		'dapl-devel-static',
		'libibverbs',
		'libibverbs-utils',
		'libibverbs-devel',
		'libibverbs-devel-static',
		'librdmacm',
		'librdmacm-utils',
		'libibmad',
		'libibmad-devel',
		'libibmad-static',
		'libibumad',
		'libibumad-devel',
		'libibumad-static',
		'libmlx4',
		'libmlx4-devel',
		'libmlx5',
		'libmlx5-devel',
		'mstflint',
		'mstflint-debuginfo',
		'opensm',
		'opensm-devel',
		'opensm-libs',
		'opensm-static',
		'infiniband-diags',
		'infiniband-diags-guest',
		'infiniband-diags-compat',
		'perftest',
		'qperf',
		'srptools',
		'librxe',
		'librxe-devel-static',
		'libvma',
		'libvma-devel',
		'libvma-utils',
		'libdisni',
		'libdisni-devel',
);

@inbox_obsoleted_packages = (
		'libibmad1',
		'libibmad5',
		'libopensm5',
		'libibnetdisc5',
		'libibverbs1',
		'libibverbs1-32bit',
		'libibverbs-32bit',
		'libibverbs-runtime',
		'rdma',
		'rsocket',
		'ibutils-libs',
		'ibutils-devel',
		'ibutils-ui',
		'libcxgb3',
		'libcxgb3-rdmav2',
		'libcxgb4',
		'libehca',
		'libibumad1',
		'libibumad3',
		'libipathverbs',
		'libmlx4-1',
		'libmlx4-1-32bit',
		'libmlx4-rdmav2',
		'libmlx4-rdmav2-32bit',
		'libmlx5-1-32bit',
		'libmlx5-rdmav2',
		'libmlx5-rdmav2-32bit',
		'libmthca',
		'libnes',
		'rds-tools',
		'compat-dapl',
		'compat-opensm-libs',
		'glusterfs-rdma',
		'libibcommon',
		'libiwpm',
		'libocrdma',
		'opensm-libs3',
		'libusnic_verbs',
		'libhfi1',
		'rdma-ndd',
		'rdma-core',
		'rdma-core-devel',
		'qlvnictools',
		'libcxgb3-rdmav2',
		'libcxgb3-rdmav2-32bit',
		'libmthca-rdmav2',
		'libmthca-rdmav2-32bit',
		'ipoibtools',
		'ofed',
		'ofed-doc',
		'ofed-devel',
		'ofed-kmp-default',
		'ofed-kmp-trace',
		'sdpnetstat',
		'cxgb3-firmware',
		'ib-bonding',
		'ibvexdmtools',
		'libibverbs-runtime',
		'librdmacm1',
		'librdmacm1-32bit',
		'patterns-ofed-ofed',
		'patterns-ofed-ofed-32bit',
		'patterns-sles-ofed',
		'srp_daemon',
		'libmlx5-1',
		'iwpmd',
		'opa-basic-tools',
		'opa-address-resolution',
		'opa-fastfabric',
		'opa-basic-tools',
		'opa-fastfabric',
		'opa-libopamgt',
		'pcp-pmda-infiniband',
		'libfabric',
		'librpmem',
		'librpmem-devel',
		'libdpdk-18_11',
		'libdpdk-20_0',
		'libdat2-2',
		'libmlx4',
		'libefa1',
	);

@obsoleted_packages = (@mlnx_obsoleted_packages, @inbox_obsoleted_packages);

# Packages that upstream_libs mode should obsolete
# these are packages that existed in MLNX_LIBS mode, and dropped under UPSTREAM_LIBS
@obsolete_for_upstream_libs_mode = (
		'ucx-ib-cm',
	);
