New comment by dmarto on void-packages repository https://github.com/void-linux/void-packages/pull/39688#issuecomment-1266927505 Comment: Ok, I tried my best, this is what I figured: - we want to keep the old rules file, for people that have it - the new one should NOT overwrite it ```diff diff --git a/srcpkgs/libfido2/template b/srcpkgs/libfido2/template index a5127f2ea6..7472dc44ab 100644 --- a/srcpkgs/libfido2/template +++ b/srcpkgs/libfido2/template @@ -14,14 +14,16 @@ changelog="https://raw.githubusercontent.com/Yubico/libfido2/main/NEWS" distfiles="https://github.com/Yubico/libfido2/archive/${version}.tar.gz" checksum=813d6d25116143d16d2e96791718a74825da16b774a8d093d96f06ae1730d9c5 # udev rules used to be shipped by libu2f-host -conf_files="/usr/lib/udev/rules.d/70-u2f.rules" conflicts="libu2f-host<=1.1.10_3" +# keep the old 70-u2f.rules +preserve=yes post_extract() { vsed -i -e '/add_compile_options(-Werror)/d' CMakeLists.txt } post_install() { + mv ${DESTDIR}/usr/lib/udev/rules.d/{70-u2f.rules,69-u2f-plugdev.rules} vlicense LICENSE } ``` I am not sure if this is a good solution or not; I would love any help or suggestions you may have.