common/helpers: new helper (moved from xbps-src) that implements the vfoo funcs.