Skip to content

Commit

Permalink
ABI: ignore OSVERSION if abi is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Jan 3, 2025
1 parent 2bd24d4 commit 4b13003
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libpkg/pkg_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,11 @@ config_init_abi(struct pkg_abi *abi)
pkg_os_to_string(abi->os));
}
}
} else if (env_osversion_string != NULL) {
pkg_emit_error("Setting OSVERSION requires setting ABI as well");
return (EPKG_FATAL);
} else {
if (env_osversion_string != NULL) {
pkg_emit_notice("Setting OSVERSION requires setting ABI as well (ignoring)");
unsetenv("OSVERSION");
}
if (pkg_abi_from_file(abi) != EPKG_OK) {
return (false);
}
Expand Down

0 comments on commit 4b13003

Please sign in to comment.