backport pkg_change export to 2.3 branch, RT#22596