package: add weak deps attributes.