pkg
pkg copied to clipboard
OSMAJOR is wrong on poudriere with native-xtools if builder version is higher than jail's
Consider a host running poudriere on FreeBSD 12.0-CURRENT and a ARM jail based on FreeBSD 11.2-RELEASE using native-xtools to speedup builds. OSMAJOR is being set based on __FreeBSD__, that come from compiler and in this case is 12.
Because of that pkg keeps saying there is a Major OS upgrade and asking user to run 'pkg-static upgrade -f pkg'.
The way we found to work it around on pfSense is this:
https://github.com/pfsense/FreeBSD-ports/commit/d6582ede793196ea7f08a8c723818f60254b58f0
ping?