Skip to content

Commit

Permalink
libpkg: disable Linuxulator shlib tracking by default
Browse files Browse the repository at this point in the history
This feature needs larger scale testing before being enabled by default
to avoid unnecessary disruption. This option is intended to be removed
in the future if/when the feature is enabled by default.

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
ifreund authored and bapt committed Dec 21, 2024
1 parent aaf7945 commit 1e333d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libpkg/pkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,8 @@ pkg_shlib_flags_from_abi(const struct pkg_abi *shlib_abi)
enum pkg_shlib_flags flags = PKG_SHLIB_FLAGS_NONE;

if (ctx.abi.os == PKG_OS_FREEBSD) {
if (shlib_abi->os == PKG_OS_LINUX) {
if (shlib_abi->os == PKG_OS_LINUX &&
pkg_object_bool(pkg_config_get("TRACK_LINUX_COMPAT_SHLIBS"))) {
flags |= PKG_SHLIB_FLAGS_COMPAT_LINUX;
}

Expand Down
7 changes: 6 additions & 1 deletion libpkg/pkg_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,12 @@ static struct config_entry c[] = {
PKG_BOOL,
"PKG_REINSTALL_ON_OPTIONS_CHANGE",
"TRUE",
}
},
{
PKG_BOOL,
"TRACK_LINUX_COMPAT_SHLIBS",
"FALSE",
},
};

static bool parsed = false;
Expand Down

0 comments on commit 1e333d8

Please sign in to comment.