GNU bug report logs - #57990
Add package: python-mat2 (remove metadata from images to improve privacy)

Previous Next

Package: guix;

Reported by: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>

Date: Wed, 21 Sep 2022 22:16:02 UTC

Severity: normal

To reply to this bug, email your comments to 57990 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Wed, 21 Sep 2022 22:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 21 Sep 2022 22:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: bug-guix <at> gnu.org
Subject: Add package: python-mat2 (remove metadata from images to improve
 privacy)
Date: Thu, 22 Sep 2022 00:14:59 +0200
[Message part 1 (text/plain, inline)]
Hi,

this packages python-mat2.

[0001-gnu-Add-python-mat2-0.13.0.patch (text/x-patch, inline)]
From 91f85a377361f989900f007fa08cd2a3063175ac Mon Sep 17 00:00:00 2001
From: Arne Babenhauserheide <arne_bab <at> web.de>
Date: Thu, 22 Sep 2022 00:12:41 +0200
Subject: [PATCH] gnu: Add python-mat2 0.13.0

* gnu/packages/python-xyz.scm (python-mat2): New variable.
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 92e0c9dbe8..8a5b796145 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -201,6 +201,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages monitoring)
   #:use-module (gnu packages multiprecision)
+  #:use-module (gnu packages music)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages node)
@@ -239,6 +240,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
+  #:use-module (gnu packages virtualization)
   #:use-module (gnu packages web)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages base)
@@ -5567,6 +5569,23 @@ (define-public mallard-ducktype
 provides additional functionality on the produced Mallard documents.")
     (license license:expat)))
 
+(define-public python-mat2
+  (package
+    (name "python-mat2")
+    (version "0.13.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "mat2" version))
+              (sha256
+               (base32
+                "0zkk6gfjn2rlj5ncbbkc9h5l4qbkvfdlf3n1lpjr03bajrri8dhy"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))
+    (home-page "https://0xacab.org/jvoisin/mat2")
+    (synopsis "A handy tool to trash your metadata")
+    (description "This package provides a handy tool to trash your metadata")
+    (license license:lgpl3+)))
+
 (define-public python-cython
   (package
     (name "python-cython")
-- 
2.37.3

[Message part 3 (text/plain, inline)]
Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Wed, 21 Sep 2022 22:26:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: bug-guix <at> gnu.org
Subject: Re: Add package: python-mat2 (remove metadata from images to
 improve privacy)
Date: Thu, 22 Sep 2022 00:24:05 +0200
[Message part 1 (text/plain, inline)]
"Dr. Arne Babenhauserheide" <arne_bab <at> web.de> writes:

> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))

My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
I express "any version of ffmpeg"?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Wed, 21 Sep 2022 22:27:02 GMT) Full text and rfc822 format available.

Message #11 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: 57990 <at> debbugs.gnu.org
Subject: Re: Add package: python-mat2 (remove metadata from images to
 improve privacy)
Date: Thu, 22 Sep 2022 00:25:41 +0200
[Message part 1 (text/plain, inline)]
"Dr. Arne Babenhauserheide" <arne_bab <at> web.de> writes:

> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))

My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
I express "any version of ffmpeg"?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 06:22:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: bug-guix <at> gnu.org, "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>,
 57990 <at> debbugs.gnu.org
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
Date: Thu, 22 Sep 2022 06:21:34 +0000
> can I express "any version of ffmpeg"?

No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).

They must be self-contained, or use standard features like $PATH et al to find optional dependencies at run time, but these will have to be provided by the user/manifest/whatever.

Sorry,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 06:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 15:59:02 GMT) Full text and rfc822 format available.

Message #20 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>, 57990 <at> debbugs.gnu.org
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from images
 to improve privacy)
Date: Thu, 22 Sep 2022 17:58:24 +0200
[Message part 1 (text/plain, inline)]

On 22-09-2022 00:14, Dr. Arne Babenhauserheide wrote:
> Hi,
> 
> this packages python-mat2.

To avoid profile collisions when the user installed a different version 
of ffmpeg (e.g. ffmpeg <at> 5) in their profile, could you modify the code to 
look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap, 
gdk-pixbuf, poppler and librsvg, if feasible.

For ffmpeg, the following function needs to be modified:

https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139

(substitute* + search-input-file can be useful).

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 16:00:02 GMT) Full text and rfc822 format available.

Message #23 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>, 57990 <at> debbugs.gnu.org
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from images
 to improve privacy)
Date: Thu, 22 Sep 2022 17:59:30 +0200
[Message part 1 (text/plain, inline)]

On 22-09-2022 00:24, Dr. Arne Babenhauserheide wrote:
> 
> "Dr. Arne Babenhauserheide" <arne_bab <at> web.de> writes:
> 
>> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))
> 
> My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
> I express "any version of ffmpeg"?

This does not answer the question you asked, but if your intention is to 
pull in a newer version of ffmpeg, you can write ffmpeg-5 instead of 
ffmpeg-4.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 17:04:01 GMT) Full text and rfc822 format available.

Message #26 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 57990 <at> debbugs.gnu.org, bug-guix <at> gnu.org
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from
 images to improve privacy)
Date: Thu, 22 Sep 2022 13:38:15 +0200
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:

>> can I express "any version of ffmpeg"?
>
> No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).

What’s the right way to deal with this, then? I need ffmpeg at as
propagated-input, but I do not want to create a conflict with a manifest
that just defines "ffmpeg".

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 17:05:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Thu, 22 Sep 2022 18:58:02 GMT) Full text and rfc822 format available.

Message #32 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 57990 <at> debbugs.gnu.org
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from images
 to improve privacy)
Date: Thu, 22 Sep 2022 20:57:39 +0200
[Message part 1 (text/plain, inline)]

On 22-09-2022 13:38, Dr. Arne Babenhauserheide wrote:
> 
> Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
> 
>>> can I express "any version of ffmpeg"?
>>
>> No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).
> 
> What’s the right way to deal with this, then? I need ffmpeg at as
> propagated-input, but I do not want to create a conflict with a manifest
> that just defines "ffmpeg".

In one my replies, I have proposed a method that avoids propagating ffmpeg:

> To avoid profile collisions when the user installed a different version of ffmpeg (e.g. ffmpeg <at> 5) in their profile, could you modify the code to look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap, gdk-pixbuf, poppler and librsvg, if feasible.
> 
> For ffmpeg, the following function needs to be modified:
> 
> https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139
> 
> (substitute* + search-input-file can be useful). 

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Sat, 24 Sep 2022 02:14:02 GMT) Full text and rfc822 format available.

Message #35 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 57990 <at> debbugs.gnu.org, "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from images
 to improve privacy)
Date: Fri, 23 Sep 2022 19:13:38 -0700
[Message part 1 (text/plain, inline)]
Apologies for the top post.  I noticed this email and wanted to point you
to prior work, in case it proves useful:

https://issues.guix.gnu.org/31307#14

On Thu, Sep 22, 2022 at 12:24 PM Maxime Devos <maximedevos <at> telenet.be>
wrote:

>
>
> On 22-09-2022 13:38, Dr. Arne Babenhauserheide wrote:
> >
> > Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
> >
> >>> can I express "any version of ffmpeg"?
> >>
> >> No, this would go against the goals of Guix: packages can't depend on
> properties of the environment they'll end up in (if any).
> >
> > What’s the right way to deal with this, then? I need ffmpeg at as
> > propagated-input, but I do not want to create a conflict with a manifest
> > that just defines "ffmpeg".
>
> In one my replies, I have proposed a method that avoids propagating ffmpeg:
>
> > To avoid profile collisions when the user installed a different version
> of ffmpeg (e.g. ffmpeg <at> 5) in their profile, could you modify the code to
> look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap,
> gdk-pixbuf, poppler and librsvg, if feasible.
> >
> > For ffmpeg, the following function needs to be modified:
> >
> > https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139
> >
> > (substitute* + search-input-file can be useful).
>
> Greetings,
> Maxime.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#57990; Package guix. (Sat, 24 Sep 2022 13:33:02 GMT) Full text and rfc822 format available.

Message #38 received at 57990 <at> debbugs.gnu.org (full text, mbox):

From: "Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 57990 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>,
 Maxime Devos <maximedevos <at> telenet.be>
Subject: Re: bug#57990: Add package: python-mat2 (remove metadata from
 images to improve privacy)
Date: Sat, 24 Sep 2022 15:31:15 +0200
[Message part 1 (text/plain, inline)]
Chris Marusich <cmmarusich <at> gmail.com> writes:

> Apologies for the top post.  I noticed this email and wanted to point you to prior work, in case it proves useful:
>
> https://issues.guix.gnu.org/31307#14

Very cool — thank you! That should make it easier for me to follow the
tips.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.