Matching (possibly subsets) of types should be folded into 1 #344
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm running into an issue with the
__gittype and my own__pkgtype.I'm running a mix of devuan and funtoo (gentoo derivative) and I want to abstract the packages I install. So I have an intermediate
__pkgthat extracts the correct package name for the OS type from a top-level dictionary file.So I can do
__pkg dockereverywhere, which gets 'translated' to__package dockeron devuan, but__package app-emulation/dockeron gentoo (and notx11-plugins/docker, for example).However,
__gitstarts with the line__package git --state presentand so I get an error:The parameters that are defined for both are the same (
versionandstate), so I think this 'conflict' should be avoided by merging these types into 1 (the one with the most specific definition).Not sure if that's possible in the system, but this really is not a 'real' conflict, obviously.
And having some types mandate that they have a package installed is obviously correct, but that should not interfere with manually defined packages if they don't actually conflict.
So there is a conflict: the parameters for "__package_emerge/git" are different. In fact the
__gittype just uses git as name, the__pkgone uses "dev-cvs/git".So the easiest way to solve this would be to use the same name under funtoo, just git. Then the conflict should vanish.
Other more sophisticated solutions are probably possible, but this one would be straight forward.