tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Suppressing version warning for binary package installs?
Maybe pkg_install.conf(5) can be extended to offer a variable or
variables that either lists known compatible OS versions or a regex
pattern of compatible OS versions. For example (suggestions):
# OPSYS_NAME defines the operating system name for suppressing the
# warnings from mismatched releases when using HOST_UNAME_RELEASE.
OPSYS=DragonFly
# HOST_UNAME_RELEASE is used to match the beginning of compatible
# operating system releases to suppress the warning when installing
# a package built on a different release. (OPSYS_NAME must be set too.)
HOST_UNAME_RELEASE=2.3
A problem with that is you may forget to update it. May be better to
hardcode some mappings into pkg_add itself. But those mappings should be
portable, so can be used by other package installation tools, like
pkgin.
Or simply extend pkg_install.conf(5) to add a variable that means
suppress the warning.
See:
pkg_install/files/lib/parse-config.c
pkg_install/files/lib/lib.h
pkg_install/files/add/perform.c
pkg_install/files/lib/pkg_install.conf.5.in
Home |
Main Index |
Thread Index |
Old Index