Reproducible hooks: fontconfig got fixed in 2.13.1-4.4.

Do not activate the hook if fontconfig is sufficiently new.
This commit is contained in:
Roland Clobus 2022-01-31 09:00:08 +01:00
parent e420c83e4c
commit 0fe681c10c
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
2 changed files with 15 additions and 3 deletions

View File

@ -13,6 +13,12 @@ then
exit 0
fi
# Don't run if fontconfig is sufficiently new
if dpkg --compare-versions $(dpkg-query --show --showformat '${Version}\n' fontconfig | head -1) ge 2.13.1-4.4~;
then
exit 0
fi
# Don't run if the LD_PRELOAD module is not compiled
if [ ! -e /usr/lib/unrandomize_uuid_generate_random.so ];
then

View File

@ -13,10 +13,9 @@ then
exit 0
fi
# Don't run if the LD_PRELOAD module is not compiled
if [ ! -e /usr/lib/unrandomize_uuid_generate_random.so ];
# Don't run if fontconfig is sufficiently new
if dpkg --compare-versions $(dpkg-query --show --showformat '${Version}\n' fontconfig | head -1) ge 2.13.1-4.4~;
then
echo "P: $(basename $0) Reproducible hook inactive: The UUID module was not found"
exit 0
fi
@ -26,6 +25,13 @@ then
exit 0
fi
# Don't run if the LD_PRELOAD module is not compiled
if [ ! -e /usr/lib/unrandomize_uuid_generate_random.so ];
then
echo "P: $(basename $0) Reproducible hook inactive: The UUID module was not found"
exit 0
fi
LD_PRELOAD=/usr/lib/unrandomize_uuid_generate_random.so update-initramfs -k all -u
touch /initrd.img_has_already_been_regenerated