[Bug 294873] Mk/Uses/xorg.mk: Add CONFLICT with xlibre-server for xorg-server users.

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294873

--- Comment #2 from b-aaz <[email protected]> ---
A more fundamental/radical solution to this problem, that has come to my mind
is to maybe pass the origin component of the dependency line, after it has
gotten parsed at this point:

https://github.com/freebsd/freebsd-ports/blob/main/Mk/Scripts/do-depends.sh#L146.

,to the file checking functions over here:

https://github.com/freebsd/freebsd-ports/blob/main/Mk/Scripts/do-depends.sh#L70

and then adding a check in them similar to:

[ "$origin" = "$(pkg which -q --origin "$1")" ]

to check if the file found on the system actually belongs to the requested
origin in the dependency line or not, perhaps people more knowledgeable about
the pkg system could even write a SQLite query to make sure it checks for the
requested flavor and ... too.

This would be a change to one of the most actively used parts of the ports
system though, so it is a bit above my mana level :-).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.