Page MenuHomeFreeBSD

CONFLICTS_INSTALL: check later for conflicts
ClosedPublic

Authored by bapt on Aug 26 2022, 8:57 AM.
Tags
None
Referenced Files
F82615496: D36355.diff
Tue, Apr 30, 9:50 PM
Unknown Object (File)
Sat, Apr 27, 12:32 PM
Unknown Object (File)
Sat, Apr 27, 11:19 AM
Unknown Object (File)
Sat, Apr 27, 11:18 AM
Unknown Object (File)
Sat, Apr 27, 8:29 AM
Unknown Object (File)
Mon, Apr 22, 3:52 PM
Unknown Object (File)
Mon, Apr 22, 3:39 PM
Unknown Object (File)
Mon, Apr 22, 3:39 PM
Subscribers

Details

Summary

Until now, the check of the CONFLICTS_INSTALL was done during the sanity
check, meaning very early in the package building process.

this makes it painful in 2 cases:

  1. a port depend at build time on the extraction of this port, it will print its warning message along with the default timer, while we will never reach the said conflict at all.
  2. since the ports tree has been staged, one can even go up to create a valid package even if a locally conflicting package is locally installed.

This change make the check and print of the conflicts only happen during the
install phase, the same way the ports tree checks if a previous version is
already installed.

PR: 213890

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 47131
Build 44018: arc lint + arc unit