autobuild3 icon indicating copy to clipboard operation
autobuild3 copied to clipboard

PM: Weaker dependencies than PKGRECOM

Open Artoria2e5 opened this issue 10 years ago • 6 comments

RPM has three levels of dependencies, Requires, Recommends and Suggests.

Recommends will let PM try to resolve its dependencies, while Suggests doesn't.

Artoria2e5 avatar Aug 16 '15 06:08 Artoria2e5

Maybe suggests -> optional is better? Recommends is similar to suggests

jiegec avatar Aug 18 '15 04:08 jiegec

@jiegec This is a set Package Manager function, not anything we can change here.

MingcongBai avatar Aug 18 '15 04:08 MingcongBai

Wait, does dpkg has suggests?

I think this should be

# dpkg
[ "$PKGSUG" || "$PKGRECOM" ] && dpkgfield Recommends $PKGSUG $PKGRECOM
# rpm
$(rpmopttag Recommends $PKGRECOM)
# blah

Artoria2e5 avatar Aug 18 '15 16:08 Artoria2e5

And @jiegec , It's still possible to call it a different name in autobuild. If it sounds better, we should use it.

Artoria2e5 avatar Aug 18 '15 16:08 Artoria2e5

Wait, does dpkg has suggests?

Yes it does. Refer to the packaging policy.

MingcongBai avatar Aug 18 '15 16:08 MingcongBai

It's still possible to call it a different name in autobuild.

But should we?

MingcongBai avatar Aug 18 '15 16:08 MingcongBai