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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Apr 2026 20:56:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294873

--- Comment #2 from b-aaz <b-aazbsd@proton.me> ---
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 the assignee for the bug.