Bug#784980: cruft-ng: reports tons of expected files

2015-05-11 Thread Alexandre Detiste
> The cruft-ng tool reports tons of files under /usr/local

If those are games, you might have a look at game-data-packager
that will repack those as .deb files that get installed
in /usr/share/games (mostly) then cruft|cruft-ng won't complain
about these files anymore.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#784980: cruft-ng: reports tons of expected files

2015-05-11 Thread Alexandre Detiste
Hi,

cruft-ng aims to provide an output that is
character-identical to "cruft",
so it's documentation or this article also apply:

http://raphaelhertzog.com/2011/02/28/debian-cleanup-tip-5-identify-cruft-that-can-be-removed-from-your-debian-system/

> etckeeper
There is currenlty no rule for this tool, so cruft/cruft-ng
can't know which files are OK and which are extraneous.

This is a known design limitation, and here's a proposal 
to fix some of it by moving somefunctionality in dpkg itself:

https://wiki.debian.org/Cruft/purge

Meanwhile, I've digged this:
https://sources.debian.net/src/etckeeper/1.18.1/debian/postrm/

Can you provide a listing of  /etc/.etckeeper & /var/cache/etckeeper ?
("find /etc/.etckeeper ; find /var/cache/etckeeper")

I could blindly add this rule, but I'd rather
had a look a the files first.

-8<-8<-
/etc/.etckeeper/**
/var/cache/etckeeper
/var/cache/etckeeper/**
-8<-8<-

You can try it yourself by creating a text file
in /etc/cruft/filters/etckeeper/etckeeper
or /usr/lib/cruft/filters-unex/etckeeper .

Creating it in /usr/... means it will be overwritten
by a new cruft|cruft-common release;
which is the behaviour you probably want here.

If the same rule exists in both /etc/... & /usr/...
the one in /etc/ takes precedence, like for systemd units.
(but there is no equivalent to systemd-delta)

> /etc & /var/log.
each file in /etc or /var/log may be linked to a different package;
that means adding yet more indivudal rules

> The cruft-ng tool reports tons of files under /usr/local
> I cannot see any way to prevent it from doing that.

You need to create your own rule in 
"/etc/cruft/filters/sed" with
-8<-8<-
/usr/local/**
-8<-8<-
to ignore or whatever appropriate.

Why 'sed', because:
*) I just noticed forgot to had a rule to match all
the all-upercases files in /etc/cruft/filters (#!%/!!*)

all-upercase meaning: "process this rule even if package
or matching name" is not installed

*) sed doesn't need a rule

*) sed is allways installed (popcon #2)

Hopes it helps,

Alexandre Detiste


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#784980: cruft-ng: reports tons of expected files

2015-05-11 Thread Dominik George
Package: cruft-ng
Version: 0.3
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

The cruft-ng tool reports tons of files under /usr/local, /etc
(including etckeeper git store) and /var/log.

I cannot see any way to prevent it from doing that.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: systemd (via /run/systemd/system)

Versions of packages cruft-ng depends on:
ii  cruft   0.9.19
ii  libc6   2.19-18
ii  libgcc1 1:5.1.1-5
ii  libstdc++6  5.1.1-5
ii  mlocate 0.26-1

cruft-ng recommends no packages.

cruft-ng suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQJOBAEBCAA4BQJVUJppMRpodHRwczovL3d3dy5kb21pbmlrLWdlb3JnZS5kZS9n
cGctcG9saWN5LnR4dC5hc2MACgkQt5o8FqDE8pa2pQ//Z1r8BWzG74bDs3qYDQby
5CebZR8St1CA+mN5fK4jVBbKEQM+t/WeR5Tivi4mVkKLxASzVUkqkujfxnJERGbF
THyM77WKi3l1NVm+Y02N1lfDH5Atf71J0J4dg1JufIlZ+dN+jTafMNmrQL7mkOmx
brP5OxQpw/IWuWQb4MuQRogP2T7W8+5TlMhNxCP9I9hssvzdsUp9jOJGK05DLgUf
J+88a6KNgUs9217pKCHWSBdW/n0/qo4s+2DMQwvae45Nb49uWP7/lUfva8waTZwR
+sWb6gWHDwJiXtVWfm/ljv7a6DQu+9B4m8o5d2cUmSqUV/M74lXJU5PgrWovnEu4
viZAlUXNOVBo+yroDLmVhwOhkD3XLzXROciTzXTiCNoqATTv/FZpoiRTkCQlIxkL
JtXjzXvjWx0cgbwQtPhuQzWwT1Lw3khzfY8KUQ416AXwIJFPHX8jVa9/n0K25FaR
S1zE9i/acDqamx01F30mk7AEtJIH8StLPbo6T8iehRhVy+bTP44tunBAMv7b0dK4
9mAB1JQ7ltv0K4E1VDZuTzhmFCObXDvR7c4O6pdn6N7P8mnVcJg3AXrVc7YiUu4I
7ePKPV+AHGsOgm0hAy+lih6d5heu1Fr1ab6TkIEfnWaRNkOzy7RlleM+iTYXYn/F
xl/+rDX7YahLb75PB94SN7Y=
=TW0N
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org