GNU bug report logs - #59372
[PATCH] gnu: peek: Add missing input.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Sat, 19 Nov 2022 01:29:02 UTC

Severity: normal

Tags: moreinfo, patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59372 in the body.
You can then email your comments to 59372 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 01:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jgart <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 19 Nov 2022 01:29:02 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: peek: Add missing input.
Date: Fri, 18 Nov 2022 19:27:46 -0600
* gnu/packages/video.scm (peek): Add missing input.
[inputs]: Add ffmpeg so that Peek will not fail to run on a foreign
distro.

hi, peek fails to run on a foreign distro without ffmpeg as an input.

this patch fixes that.

all best,

jgart
---
 gnu/packages/video.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c394c65442..4f38d4432c 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -5369,6 +5369,8 @@ (define-public peek
     (arguments '(#:glib-or-gtk? #t))
     (inputs
      `(("gtk+" ,gtk+)
+       ;; Peek fails to run on a foreign distro without ffmpeg.
+       ("ffmpeg" ,ffmpeg)
        ("python" ,python-wrapper)))
     (native-inputs
      `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
-- 
2.38.1





Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 02:59:02 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Sat, 19 Nov 2022 03:50:05 +0100
[Message part 1 (text/plain, inline)]
Hi jgart,

jgart via Guix-patches via 写道:
> hi, peek fails to run on a foreign distro without ffmpeg as an 
> input.
>
> this patch fixes that.

Thanks!

As far as I can tell, this change doesn't affect the peek 
package's output at all.  Am I mistaken?  What should the 
observable difference be, beyond ‘working’?

How are you invoking both peeks, and testing the difference?  Are 
they both running in the exact same environment, back-to-back?

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 02:59:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 04:08:01 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Fri, 18 Nov 2022 22:07:30 -0600
On Sat, 19 Nov 2022 03:50:05 +0100 Tobias Geerinckx-Rice <me <at> tobias.gr> wrote:
> As far as I can tell, this change doesn't affect the peek 
> package's output at all.  Am I mistaken?  What should the 
> observable difference be, beyond ‘working’?

It was complaining on Ubuntu when I started it that either ffmpeg needs
to be installed or a gnome-shell needs to be running. I didn't log the
exact error message but that was more or less it.

> How are you invoking both peeks, and testing the difference?

When I add ffmpeg it worked without the warning and actually started
recording my screen as expected. After pressing the record button of
course ;()

I tested once without ffmpeg and once with ffmpeg. 

The former failed to record.

> Are they both running in the exact same environment, back-to-back?

Yup I tested both in Ubuntu.

Let me know if you'd like any more info or if I wasn't precise enough
in my description.

all best,

jgart





Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 04:08:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 09:14:01 GMT) Full text and rfc822 format available.

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

From: "(" <paren <at> disroot.org>
To: "jgart" <jgart <at> dismail.de>, <59372 <at> debbugs.gnu.org>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Sat, 19 Nov 2022 09:13:02 +0000
Heya,

On Sat Nov 19, 2022 at 1:27 AM GMT, jgart via Guix-patches via wrote:
> * gnu/packages/video.scm (peek): Add missing input.
> [inputs]: Add ffmpeg so that Peek will not fail to run on a foreign
> distro.

> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index c394c65442..4f38d4432c 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
> @@ -5369,6 +5369,8 @@ (define-public peek
>      (arguments '(#:glib-or-gtk? #t))
>      (inputs
>       `(("gtk+" ,gtk+)
> +       ;; Peek fails to run on a foreign distro without ffmpeg.
> +       ("ffmpeg" ,ffmpeg)
>         ("python" ,python-wrapper)))
>      (native-inputs
>       `(("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database

I don't think this will be enough; does the program call the ``ffmpeg''
executable? If so, you'll need to patch the call to ``ffmpeg'' to point to
/gnu/store/.../bin/ffmpeg directly.

Could you also update the inputs/arguments style to gexp form?

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 09:52:02 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Sat, 19 Nov 2022 10:38:26 +0100
[Message part 1 (text/plain, inline)]
jgart 写道:
> It was complaining on Ubuntu when I started it that either 
> ffmpeg needs
> to be installed or a gnome-shell needs to be running. I didn't 
> log the
> exact error message but that was more or less it.

And how does this patch provide ffmpeg?  It adds it to the build 
environment, but what happens then?

We know it doesn't add a reference to the final ‘peek’ output (you 
can verify this yourself, assuming peek builds reproducibly).  It 
doesn't change any code in the peek binary.

So what's the mechanism by which it would work?  It will need to 
be documented.

>> How are you invoking both peeks, and testing the difference?
>
> When I add ffmpeg it worked without the warning and actually 
> started
> recording my screen as expected. After pressing the record 
> button of
> course ;()

But how exactly?  Please provide exact steps and commands.

( 写道:
> Could you also update the inputs/arguments style to gexp form?

…but in a separate patch, please.)

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Sat, 19 Nov 2022 09:53:02 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Christopher Baines <mail <at> cbaines.net> to control <at> debbugs.gnu.org. (Mon, 21 Nov 2022 13:12:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 14:28:02 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org, "\(" <paren <at> disroot.org>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 08:27:15 -0600
On Sat, 19 Nov 2022 10:38:26 +0100 Tobias Geerinckx-Rice <me <at> tobias.gr> wrote:
> So what's the mechanism by which it would work?  It will need to 
> be documented.

Hi Tobias,

peek, needs either ffmpeg or gnome shell to be present.

See here for the exact reference:

https://github.com/phw/peek/blob/2daba7cf114e01cff870afd20b96b212a0252054/src/application.vala#L67

How should I handle that in Guix?

Should I patch ffmpeg? What if a user wants to use gnome-shell instead of ffmpeg?

Is there a switch I can provide in Guile code?

all best,

jgart




Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 14:28:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 19:13:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>, jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 18:13:26 +0100
Hi,

Thanks for resuming #51202. :-)

On Sat, 19 Nov 2022 at 03:50, Tobias Geerinckx-Rice via Guix-patches via <guix-patches <at> gnu.org> wrote:

> As far as I can tell, this change doesn't affect the peek 
> package's output at all.  Am I mistaken?  What should the 
> observable difference be, beyond ‘working’?

Peek needs to be propagated.  An issue is open,

    http://issues.guix.gnu.org/issue/51202
    
IIRC, peek needs to be patched to avoid the propagation and personally,
I am using something along,

    guix shell peek \
            gtk+ gsettings-desktop-schemas ffmpeg \
            -- peek


Cheers,
simon




Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 19:39:02 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 59372 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 13:38:04 -0600
On Mon, 21 Nov 2022 18:13:26 +0100 zimoun <zimon.toutoune <at> gmail.com> wrote:
> Hi,
> 
> Thanks for resuming #51202. :-)
> 
> On Sat, 19 Nov 2022 at 03:50, Tobias Geerinckx-Rice via Guix-patches via <guix-patches <at> gnu.org> wrote:
> 
> > As far as I can tell, this change doesn't affect the peek 
> > package's output at all.  Am I mistaken?  What should the 
> > observable difference be, beyond ‘working’?
> 
> Peek needs to be propagated.  An issue is open,

I read through the open issue. Should I send a patch implementing lilyp's suggestion?

That's what I was also thinking of doing but I also had the question
regarding choosing between ffmpeg or gnome-shell. Should we prefer
ffmpeg? Would be cool if we could support choosing between ffmpeg or
gnome-shell.

Is there currently a way to do that?





Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 20:03:01 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 16:14:33 +0100
[Message part 1 (text/plain, inline)]
Hi jgart,

The patch you sent does nothing and didn't fix your foreign 
distro.  The questions you won't answer were supposed to find out 
what might have, but let's move on.

So, please test ('s suggestion.  It's the right fix!  Propagation 
isn't.

You can offer two variants of peek (peek-ffmpeg and 
peek-gnome-shell, say) if you like.  I don't think that's 
necessary, though, unless ffmpeg support is incomplete?

Thanks,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 20:23:01 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org, "\(" <paren <at> disroot.org>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 21:18:32 +0100
[Message part 1 (text/plain, inline)]
jgart 写道:
> peek, needs either ffmpeg or gnome shell to be present.
> How should I handle that in Guix?

Ideally: let peek pop up the window asking the user to install 
ffmpeg.

Then the user installs ffmpeg only if it's actually needed, and 
isn't ‘forced’ to pay the cost if it's not.

Does it not show that window on a foreign distribution?

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 20:23:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 20:59:01 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 59372 <at> debbugs.gnu.org, guix-patches <at> gnu.org, "\(" <paren <at> disroot.org>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Mon, 21 Nov 2022 14:58:05 -0600
On Mon, 21 Nov 2022 21:18:32 +0100 Tobias Geerinckx-Rice <me <at> tobias.gr> wrote:
> Does it not show that window on a foreign distribution?

Yup, it does show that window on a foreign distro.

So, we should just have the user install ffmpeg along with peek in their profile?

Should this ticket be closed then? https://issues.guix.gnu.org/issue/51202#3




Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Mon, 21 Nov 2022 20:59:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Tue, 22 Nov 2022 15:41:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: jgart <jgart <at> dismail.de>
Cc: 59372 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Tue, 22 Nov 2022 15:39:31 +0100
Hi,

On Mon, 21 Nov 2022 at 13:38, jgart via Guix-patches via <guix-patches <at> gnu.org> wrote:

> That's what I was also thinking of doing but I also had the question
> regarding choosing between ffmpeg or gnome-shell. Should we prefer
> ffmpeg? Would be cool if we could support choosing between ffmpeg or
> gnome-shell.

Well, from my point of view, let start to use ffmeg without the
propagation.  Then, incremental improvements. :-)

Cheers,
simon




Information forwarded to guix-patches <at> gnu.org:
bug#59372; Package guix-patches. (Tue, 22 Nov 2022 18:30:01 GMT) Full text and rfc822 format available.

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

From: jgart <jgart <at> dismail.de>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 59372 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: [bug#59372] [PATCH] gnu: peek: Add missing input.
Date: Tue, 22 Nov 2022 12:29:34 -0600
On Tue, 22 Nov 2022 15:39:31 +0100 zimoun <zimon.toutoune <at> gmail.com> wrote:
> Well, from my point of view, let start to use ffmeg without the
> propagation.  Then, incremental improvements. :-)

Ok, should I send a new patch patching the ffmpeg executable from the
inputs of peek?




Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Sun, 29 Jan 2023 06:03:03 GMT) Full text and rfc822 format available.

Notification sent to jgart <jgart <at> dismail.de>:
bug acknowledged by developer. (Sun, 29 Jan 2023 06:03:03 GMT) Full text and rfc822 format available.

Message #66 received at 59372-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: jgart <jgart <at> dismail.de>
Cc: paren <at> disroot.org, Tobias Geerinckx-Rice <me <at> tobias.gr>,
 59372-done <at> debbugs.gnu.org
Subject: Re: bug#59372: [PATCH] gnu: peek: Add missing input.
Date: Sun, 29 Jan 2023 14:02:12 +0800
jgart <jgart <at> dismail.de> writes:

> On Mon, 21 Nov 2022 21:18:32 +0100 Tobias Geerinckx-Rice <me <at> tobias.gr> wrote:
>> Does it not show that window on a foreign distribution?
>
> Yup, it does show that window on a foreign distro.
>
> So, we should just have the user install ffmpeg along with peek in their profile?
>
> Should this ticket be closed then? https://issues.guix.gnu.org/issue/51202#3

Yes, I think it's expected to install ffmpeg yourself for peek when not
in gnome shell.  Close now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 26 Feb 2023 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 54 days ago.

Previous Next


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