Bug#888401: diffoscope: report differences in filesystem extended attributes

Paul Wise pabs at debian.org
Thu Jan 25 03:48:54 UTC 2018


Package: diffoscope
Version: 90
Severity: wishlist

It would be nice if diffoscope could report differences in filesystem
xattrs. This would help when comparing directories with files that have
been downloaded with wget (or other downloaders that set xattrs).

In Debian we have two Python 3 modules for xattr support:

python3-xattr python3-pyxattr

~ $ mkdir 1 2
~ $ cd 1
~/1 $ wget -q https://www.debian.org/
~/1 $ cd ..
~ $ cp 1/index.html 2/
~ $ diffoscope --no-progress 1 2
--- 1
+++ 2
+-- stat {}
| @@ -1,8 +1,8 @@
|  
|    Size: 4096      	Blocks: 8          IO Block: 4096   directory
|  Links: 2
|  Access: (0750/drwxr-x---)  Uid: ( 1000/    pabs)   Gid: ( 1000/    pabs)
|  
| -Modify: 2018-01-25 03:27:33.279766812 +0000
| +Modify: 2018-01-25 03:27:45.971611107 +0000
|  
|   Birth: -
|   --- 1/index.html
+-- +++ 2/index.html
| +-- stat {}
| | @@ -1,8 +1,8 @@
| |  
| |    Size: 15060     	Blocks: 32         IO Block: 4096   regular file
| |  Links: 1
| |  Access: (0640/-rw-r-----)  Uid: ( 1000/    pabs)   Gid: ( 1000/    pabs)
| |  
| | -Modify: 2018-01-24 23:45:55.000000000 +0000
| | +Modify: 2018-01-25 03:27:45.971611107 +0000
| |  
| |   Birth: -
~ $ getfattr -dR 1 2
# file: 1/index.html
user.xdg.origin.url="https://www.debian.org/"

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20180125/026c7f26/attachment.sig>


More information about the Reproducible-builds mailing list