Skip to content

Rebuild binaries when a LinkingTo dependency changes

1 message · Mikael Jagan

#
[Accidentally sent the following to r-sig-mac-request@*, so now forwarding ...]

Matrix will commence ABI versioning in 1.6-2.  The ABI version will be available
in R as Matrix.Version()[["abi"]] and in C as R_MATRIX_ABI_VERSION (from header
Matrix/Matrix.h).  It is numeric_version("1") in Matrix 1.6-2 and _implicitly_
numeric_version("0") in Matrix < 1.6-2.

Packages with "LinkingTo: Matrix" wanting to detect binary incompatibility can
compare the ABI versions available at build and load time and warn if they
differ.  The ABI version can be expected to change much more slowly than the
package version, if we are "maintaining" correctly ...

That still does not address issues due to caching of S4 methods and classes not
declared in NAMESPACEs with importMethodsFrom or importClassesFrom, so rebuilds
may still be requested periodically, outside of ABI changes.

Mikael
On 2023-09-26 3:03 am, r-sig-mac-request at r-project.org wrote: