Mark H Weaver <m...@netris.org> writes: > 'package/inherit' is usually the right thing when defining other kinds > of package variants, however.
One addendum to this guideline: if the package variant you're defining overrides the 'source' field[*], it's probably pointless to use 'package/inherit', because the fixes embodied in the original package's replacement would most likely be lost anyway. [*] One exception is if the overridden 'source' field merely adds some additional patches to the original package, while taking care to preserve any existing patches -- that last part is important, even if the original package doesn't including any patches at the time you look. In that case, 'package/inherit' might well be helpful. More generally, when inheriting from another package, it's useful to ask yourself what should happen if the package you're inheriting from is later grafted, and to try to arrange for that to happen automatically. Thanks, Mark