Bug#1022542: cruft: misc filter additions

2022-10-23 Thread Alexandre Detiste
Thank you very much.

Only commenting when there's something to comment,
the rest will be merged as-is.

Le dim. 23 oct. 2022 à 17:42, Christian Göttsche
 a écrit :
> II. appstream
>
> The shipped filter misses two entries:
>
> /var/cache/swcatalog
> /var/cache/swcatalog/cache

Ok I remember this one but did half the work:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009825

What about those ? Can I remove these ?
 /var/cache/app-info/gv
 /var/cache/app-info/gv/*.gvz
 /var/cache/app-info/xapian
 /var/cache/app-info/xapian/**

> III. fwupd
I wanted to give it a try anyway, thanks

> V. ingerman
I wrote a generic explain/ispell and removed the other languages.

> VII. llvm-15-runtime
>
> /var/lib/binfmts/llvm-15-runtime.binfmt

Packages with version in their name are a pain to follow...
this one would definitely benefit from providing it's own
definition in /usr/lib/cruft/filters-unex/

...but dh-cruft can't be used as-is for dynamic content,
but could be extended to replace the version number in it's output)

Greetings,



Bug#1022542: cruft: misc filter additions

2022-10-23 Thread Christian Göttsche
Package: cruft-ng
Version: 0.9.46

Hi,

thanks for maintaining and improving cruft(-ng).

Several miscellaneous false positives I encountered:

I. ccache
ccache stores a cache of symlinks to supported compilers at
/usr/lib/ccache/, updated via a dpkg trigger.
One could reimplement update-ccache-symlinks(8), but a much simpler
script works also:

/etc/cruft/explain/ccache:

#!/bin/sh

set -eu

find /usr/lib/ccache/ -maxdepth 1 -type l ! -empty

II. appstream

The shipped filter misses two entries:

/var/cache/swcatalog
/var/cache/swcatalog/cache

III. fwupd

/var/cache/fwupd
/var/cache/fwupd/devices.json
/var/cache/fwupd/metadata.xmlb
/var/cache/fwupd/metainfo.xmlb
/var/cache/fwupd/quirks.xmlb
/var/cache/fwupdmgr
/var/lib/fwupd
/var/lib/fwupd/gnupg
/var/lib/fwupd/gnupg/private-keys-v1.d
/var/lib/fwupd/gnupg/pubring.kbx
/var/lib/fwupd/gnupg/pubring.kbx~
/var/lib/fwupd/gnupg/trustdb.gpg
/var/lib/fwupd/metadata
/var/lib/fwupd/metadata/lvfs
/var/lib/fwupd/metadata/lvfs/metadata.xml.gz
/var/lib/fwupd/metadata/lvfs/metadata.xml.gz.jcat
/var/lib/fwupd/pending.db
/var/lib/fwupd/pki
/var/lib/fwupd/pki/client.pem
/var/lib/fwupd/pki/secret.key
/var/lib/fwupd/quirks.d
/var/lib/fwupd/remotes.d

IV. grub-efi-amd64(-bin)

For EFI files of grub2 I use a mixture of filters and exclude:

/etc/cruft/explain/grub-efi-amd64-bin:
#!/bin/sh

set -e

dpkg-query -L grub-efi-amd64-bin | grep ^/usr/lib/grub/x86_64-efi
| grep -e '\.mod$' -e '\.lst$' | sed 's#usr/lib#boot#'


/etc/cruft/filters/grub-efi-amd64:

/boot/efi
/boot/efi/EFI
/boot/efi/EFI/debian
/boot/efi/EFI/debian/BOOTX64.CSV
/boot/efi/EFI/debian/fbx64.efi
/boot/efi/EFI/debian/grub.cfg
/boot/efi/EFI/debian/grubx64.efi
/boot/efi/EFI/debian/mmx64.efi
/boot/efi/EFI/debian/shimx64.efi
/boot/grub/.background_cache.png
/boot/grub/x86_64-efi
/boot/grub/x86_64-efi/core.efi
/boot/grub/x86_64-efi/grub.efi
/boot/grub/x86_64-efi/load.cfg
/boot/grub/x86_64-efi/modinfo.sh

V. ingerman

/usr/lib/ispell/ngerman.hash
/var/lib/ispell/ngerman.compat
/var/lib/ispell/ngerman.hash
/var/lib/ispell/ngerman.remove

VI. kde-config-sddm

/etc/sddm.conf.d
/etc/sddm.conf.d/kde_settings.conf

VII. llvm-15-runtime

/var/lib/binfmts/llvm-15-runtime.binfmt

VIII. pbuilder

pbuilder is missing two entries:

/var/cache/pbuilder/base.tgz
/var/cache/pbuilder/ccache/**

IX. policycoreutils-dev

/var/lib/sepolgen/interface_info

X. rkhunter

/var/lib/rkhunter/db/rkhunter.dat
/var/lib/rkhunter/db/rkhunter.dat.old
/var/lib/rkhunter/db/rkhunter_prop_list.dat

XI. tlp

/var/lib/tlp/rfkill_saved

XII. usbguard

/etc/usbguard/rules.conf

XIII. vnstat

/var/lib/vnstat/vnstat.db