Get the OS Major version we're being compiled under from the __FreeBSD__ or __DragonFly__ macro built into cc. Default to using the ports INDEX as during our compilation, but warn when that does not match the runtime OS major version -- ie. we're in the middle of an OS upgrade.
modified libpkg/pkg.h.in
@@ -4,7 +4,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -56,6 +56,15 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -1,6 +1,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -55,8 +56,7 @@
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -620,7 +620,6 @@ pkg_compiled_for_same_os_major(void)
|
|
|
|
|
|
| - | |
|
|
|
|
|