issue #2373:add const in pkg files