From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCXYf-0004L2-55 for guix-patches@gnu.org; Sat, 28 Apr 2018 17:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCXYd-0004wP-VP for guix-patches@gnu.org; Sat, 28 Apr 2018 17:39:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCXYd-0004wH-Pc for guix-patches@gnu.org; Sat, 28 Apr 2018 17:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCXYd-0004Co-GQ for guix-patches@gnu.org; Sat, 28 Apr 2018 17:39:03 -0400 Subject: [bug#31307] [PATCH] Add MAT, the Metadata Anonymisation Toolkit from Boum Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCXXv-00043c-Gi for guix-patches@gnu.org; Sat, 28 Apr 2018 17:38:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCXXu-0004Qu-9J for guix-patches@gnu.org; Sat, 28 Apr 2018 17:38:19 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:37820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCXXt-0004Qg-Vv for guix-patches@gnu.org; Sat, 28 Apr 2018 17:38:18 -0400 Received: by mail-pf0-x22d.google.com with SMTP id p6so3981839pfn.4 for ; Sat, 28 Apr 2018 14:38:17 -0700 (PDT) Received: from garuda.local ([2601:602:9d02:4725:6495:ba21:1ebe:620a]) by smtp.gmail.com with ESMTPSA id r82sm13987988pfk.187.2018.04.28.14.38.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Apr 2018 14:38:14 -0700 (PDT) From: Chris Marusich Date: Sat, 28 Apr 2018 14:38:13 -0700 Message-ID: <87wowrj9kq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31307@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Guix, This patch adds MAT, the Metadata Anonymisation Toolkit from Boum. I've successfully used its CLI tool to purge metadata from JPEG image files; I verified using exiftool that it works for this purpose. However, not all of its features work (see the TODO for details), and more importantly, the website says people shouldn't use it. For these reasons, I'm not sure if we should add it, so I'd like to ask for your opinion. The author state on their website: https://mat.boum.org/ Current status The MAT maintenance and development is currently on hold, mostly for health reasons. I might go back to it at some point in the future. The current version might have bugs, and doesn't work on Python3: Please avoid using it. However, packages exist for some distributions. For example, here's a MAT package for Debian: https://packages.qa.debian.org/m/mat.html And like I said, the CLI tool does seem to work. Should we refrain from adding this package simply because the author is not maintaining it any more? I'm inclined to say "no", but one also has to consider whether it is a a good idea to encourage people to use an unmaintained tool for protecting their privacy/anonymity. I'm not sure. In addition, I notice that the license is GPL 2, but it seems the author did not specify whether "any later version" can be used. Therefore, I have listed this as gpl2, instead of gpl2+. What do you think? =2D-=20 Chris --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-mat.patch Content-Transfer-Encoding: quoted-printable From=20c30a26364fdf919deb9bc6bd907b75de58a17a7b Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sat, 28 Apr 2018 14:03:47 -0700 Subject: [PATCH] gnu: Add mat. * gnu/packages/photo.scm (mat): New variable. =2D-- gnu/packages/photo.scm | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 2c0c2313f..a6380cc63 100644 =2D-- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -26,6 +26,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -52,6 +53,7 @@ #:use-module (gnu packages llvm) #:use-module (gnu packages man) #:use-module (gnu packages maths) + #:use-module (gnu packages music) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) @@ -521,3 +523,53 @@ workflow by facilitating the handling of large numbers= of images. Most raw formats are supported, including Pentax Pixel Shift, Canon Dual-Pixel, and= those from Foveon and X-Trans sensors.") (license license:gpl3+))) + +;; TODO: Add inputs for PDF support (e.g., Poppler, python-pdfrw). +;; TODO: Add inputs for GUI support (e.g., gi). +;; TODO: Fix some hard-coded paths. For example, get_datafile_path embeds +;; paths like "/usr/local/share/mat", which we should probably rewrite so = that +;; they point to mat's output directory in the store. This specific examp= le +;; causes "mat --list" to fail with an exception. +(define-public python2-mat + (package + (name "python2-mat") + (version "0.6.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://mat.boum.org/files/mat-" version ".tar.xz")) + (sha256 + (base32 + "1faiiq7cjspafjjf4kmm7bbn8m506qgcijbizpgdvlaaapdyg0h7")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:use-setuptools? #f)) + (propagated-inputs + `(("python2-pycairo" ,python2-pycairo) + ("python2-mutagen" ,python2-mutagen) + ("perl-image-exiftool" ,perl-image-exiftool))) + (native-inputs + `(("python2-distutils-extra" ,python2-distutils-extra) + ("intltool" ,intltool))) + (synopsis "Anonymize/remove metadata from files") + (description + "MAT (Metadata Anonymisation Toolkit) is a toolbox composed of a GUI +application, a CLI application and a library, to anonymize/remove metadata +from files. It supports the following file formats: + +@itemize @bullet +@item Portable Network Graphics (.png) +@item Joint Photographic Experts Group (.jpg, .jpeg, etc.) +@item Tagged Image File Format (.tif, tiff, etc.) +@item Open Documents (.odt, .odx, .ods, etc.) +@item Office OpenXml (.docx, .pptx, .xlsx, etc.) +@item Portable Document Fileformat (.pdf) +@item Tape Archives (.tar, .tar.bz2, etc.) +@item Moving Picture Experts Group (MPEG) (.mp3, .mp2, .mp1, etc.) +@item Ogg Vorbis (.ogg, etc.) +@item Free Lossless Audio Codec (.flac) +@item Torrent (.torrent) +@end itemize") + (home-page "https://mat.boum.org") + (license license:gpl2))) =2D-=20 2.17.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrk6cUACgkQ3UCaFdgi Rp0lfg//b0adAXOEapCB73mMutQNTgdSHZ/Mbume4pJPA1DOdL8t4S8u5aGA2WQP LtI8M0A6tkmQ6BSo2/0+6OTT+MCHxSB5mYsIOzUfpzW+kJz7aspP8OqvCoFHQjfs 1BWSUYLein9Ah/GlY5krDTEAGdpaqVzQP3ue/6oNRU8H1ehGoG+0y/ibDYV2Kexb nGv/B3vnBPkW7c/9Ni5tZC187sulgKl4Y23tCysFP1yGHvBFV85S7vYB/1xh8W8T G7BPpPwTRGGmUj5nkxQq/Xkv375JBeFLDb6LKyZnW7TKNb2GWVbSXK2YSmWvc7yd yqTE7fOMC/NXL7sjkSHLHE+VxQspUb4qSrlQqRkSNf5Md6VRHrDJe4e/mK6cA2s2 8Fts4scmylSJdgRn/8BmEKws3sTZSTU1iH7pH/s66usfjkv/RAWZm7nZv6GijcFx w3bAJElt4i6y+CC//lsGVJrF7mFJGJ0MCynDBg45hK9hLTilW8QrwNl1etH8j5F1 8sMV3a7JZok6kfHL0HUBXxhNNkE4o3NccK7QxID0Xnl0P0l50ObCjcI9QA4TyZsX CuYQrij0Un3vWzCwZxzojpK9QwN/y7HlbxjaQV6V1CtW7zMBmuVVLxFG5xyhRKsH vZHP3joaQvJQ/SpjHh3dkAD+eLXR3RkA/s6fI2zB+g7P1rj8bjI= =oMOX -----END PGP SIGNATURE----- --==-=-=--