GNU bug report logs - #50433
shotcut 21.06.29 missing bin files

Previous Next

Package: guix;

Reported by: Fulbert <fulbert <at> bluewin.ch>

Date: Mon, 6 Sep 2021 16:41:02 UTC

Severity: normal

Done: Vinicius Monego <monego <at> posteo.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 50433 in the body.
You can then email your comments to 50433 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 bug-guix <at> gnu.org:
bug#50433; Package guix. (Mon, 06 Sep 2021 16:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fulbert <fulbert <at> bluewin.ch>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 06 Sep 2021 16:41:02 GMT) Full text and rfc822 format available.

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

From: Fulbert <fulbert <at> bluewin.ch>
To: bug-guix <at> gnu.org
Subject: shotcut 21.06.29 missing bin files
Date: Mon, 6 Sep 2021 18:39:16 +0200
Hello,

shotcut 21.06.29 (guix ce65f2b) appears to have missing bin files. When 
trying to export a video, the status of the task is "failed" inside the 
GUI, and below is the debug message on the terminal.

[Debug  ] <MeltJob::start> 
"/gnu/store/qz8nr42ax7k3v0cysmh6afhmy93vvj82-shotcut-21.06.29/bin/melt-7 
-verbose -progress2 -abort xml:%2Ftmp%2Fshotcut-xNVrrX.mlt"
[Info   ] <AbstractJob::onFinished> job failed with 127

And here is the content of the bin directory :

$ ls -la $(dirname $(realpath $(which shotcut)))
total 3248
dr-xr-xr-x 2 root root    4096  1 janv.  1970 .
dr-xr-xr-x 4 root root    4096  1 janv.  1970 ..
-r-xr-xr-x 2 root root    1840  1 janv.  1970 shotcut
-r-xr-xr-x 2 root root    1401  1 janv.  1970 .shotcut-real
-r-xr-xr-x 2 root root 3308600  1 janv.  1970 ..shotcut-real-real





Information forwarded to bug-guix <at> gnu.org:
bug#50433; Package guix. (Tue, 07 Sep 2021 02:07:02 GMT) Full text and rfc822 format available.

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

From: Sarah Morgensen <iskarian <at> mgsn.dev>
To: Fulbert <fulbert <at> bluewin.ch>
Cc: 50433 <at> debbugs.gnu.org
Subject: Re: bug#50433: shotcut 21.06.29 missing bin files
Date: Mon, 06 Sep 2021 19:06:31 -0700
Hello,

Thanks for your report.

Fulbert <fulbert <at> bluewin.ch> writes:

> Hello,
>
> shotcut 21.06.29 (guix ce65f2b) appears to have missing bin files. When trying
> to export a video, the status of the task is "failed" inside the GUI, and below
> is the debug message on the terminal.
>
> [Debug  ] <MeltJob::start>
> "/gnu/store/qz8nr42ax7k3v0cysmh6afhmy93vvj82-shotcut-21.06.29/bin/melt-7 
> -verbose -progress2 -abort xml:%2Ftmp%2Fshotcut-xNVrrX.mlt"
> [Info   ] <AbstractJob::onFinished> job failed with 127
>
> And here is the content of the bin directory :
>
> $ ls -la $(dirname $(realpath $(which shotcut)))
> total 3248
> dr-xr-xr-x 2 root root    4096  1 janv.  1970 .
> dr-xr-xr-x 4 root root    4096  1 janv.  1970 ..
> -r-xr-xr-x 2 root root    1840  1 janv.  1970 shotcut
> -r-xr-xr-x 2 root root    1401  1 janv.  1970 .shotcut-real
> -r-xr-xr-x 2 root root 3308600  1 janv.  1970 ..shotcut-real-real

I compared this to the release binaries and there really is just the one
'shotcut' executable.  I think you're correct that the '127' error is
due to it not finding an executable, but I think that's happening
because shotcut got double-wrapped (or wrapped incorrectly).

Unfortunately I'm not knowledgeable with qt-wrapping so I can't help any
further, but I hope that helps!

--
Sarah




Information forwarded to bug-guix <at> gnu.org:
bug#50433; Package guix. (Tue, 07 Sep 2021 12:28:02 GMT) Full text and rfc822 format available.

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

From: Fulbert <fulbert <at> bluewin.ch>
To: 50433 <at> debbugs.gnu.org
Cc: Sarah Morgensen <iskarian <at> mgsn.dev>
Subject: Re: bug#50433: shotcut 21.06.29 missing bin files
Date: Tue, 7 Sep 2021 14:27:09 +0200
Le Mon, Sep 06, 2021 at 07:06:31PM -0700, Sarah Morgensen a écrit :
> Hello,
> 
> Thanks for your report.

Hello and thanks to you,

> I compared this to the release binaries and there really is just the one
> 'shotcut' executable.  I think you're correct that the '127' error is
> due to it not finding an executable, but I think that's happening
> because shotcut got double-wrapped (or wrapped incorrectly).
> 
> Unfortunately I'm not knowledgeable with qt-wrapping so I can't help any
> further, but I hope that helps!

So for a little recap, taking your message into account :

* The first wrapper 'bin/shotcut' does have some 'export' including :
  export MLT_PREFIX="/gnu/store/<>-mlt-7.0.1"
* The second wrapper (called by the first) misses this export and 3
  others (No idea if this "intermediate" wrapper causes any problem.
  Looks harmless to me… which doesnt mean much ^^).
* 'shotcut' depends on 'mlt' and there sits the 'melt-7' binary :
  /gnu/store/<>-mlt-7.0.1/bin/melt-7
* but when using the export function from within shotcut GUI, the
  program calls for 'mlt-7' with the absolute path inside shotcut
  directory : /gnu/store/<>-shotcut-21.06.29/bin/melt-7, where it fails.

regards,
Fulbert




Information forwarded to bug-guix <at> gnu.org:
bug#50433; Package guix. (Wed, 10 Nov 2021 16:39:02 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Fulbert <fulbert <at> bluewin.ch>
Cc: 50433 <at> debbugs.gnu.org
Subject: Re: bug#50433: shotcut 21.06.29 missing bin files
Date: Tue, 9 Nov 2021 21:07:16 -0500
On Mon, Sep 06, 2021 at 06:39:16PM +0200, Fulbert wrote:
> shotcut 21.06.29 (guix ce65f2b) appears to have missing bin files. When
> trying to export a video, the status of the task is "failed" inside the GUI,
> and below is the debug message on the terminal.

Thanks for the report. I see the a similar issue but when Shotcut tries
to use FFmpeg: it looks for FFmpeg in the shotcut store directory.




Information forwarded to bug-guix <at> gnu.org:
bug#50433; Package guix. (Wed, 17 Nov 2021 02:44:01 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Fulbert <fulbert <at> bluewin.ch>, 50433 <at> debbugs.gnu.org
Subject: Re: shotcut 21.06.29 missing bin files
Date: Wed, 17 Nov 2021 02:43:32 +0000
[Message part 1 (text/plain, inline)]
Em seg, 2021-09-06 às 18:39 +0200, Fulbert escreveu:
> Hello,
> 
> shotcut 21.06.29 (guix ce65f2b) appears to have missing bin files.
> When 
> trying to export a video, the status of the task is "failed" inside
> the 
> GUI, and below is the debug message on the terminal.
> 
> [Debug  ] <MeltJob::start> 
> "/gnu/store/qz8nr42ax7k3v0cysmh6afhmy93vvj82-shotcut-
> 21.06.29/bin/melt-7 
> -verbose -progress2 -abort xml:%2Ftmp%2Fshotcut-xNVrrX.mlt"
> [Info   ] <AbstractJob::onFinished> job failed with 127
> 
> And here is the content of the bin directory :
> 
> $ ls -la $(dirname $(realpath $(which shotcut)))
> total 3248
> dr-xr-xr-x 2 root root    4096  1 janv.  1970 .
> dr-xr-xr-x 4 root root    4096  1 janv.  1970 ..
> -r-xr-xr-x 2 root root    1840  1 janv.  1970 shotcut
> -r-xr-xr-x 2 root root    1401  1 janv.  1970 .shotcut-real
> -r-xr-xr-x 2 root root 3308600  1 janv.  1970 ..shotcut-real-real
> 
> 
Hello,

Thanks for the report and sorry for the late response, I only found
this issue today.

I had a look at the Shotcut source code and it does seem to copy files
from other projects to its bin directory [1] and read the melt-7
executable from a variable called "shotcutPath" [2].

I am attaching a tested patch that symlinks these executables to the
shotcut bin folder. It was based on the update to 21.10.31 at 51898 but
should work in the current version.

I also removed other variables in the 'wrap-executable phase that don't
seem to be used. MLT_PREFIX is only read in Darwin and PATH was set
only for ffmpeg, but in the patch ffmpeg is symlinked instead.

[1]
https://github.com/mltframework/shotcut/blob/af9f47882d64eb15105559e0729bc7b1e337a9bf/scripts/build-shotcut.sh#L1874

[2]
https://github.com/mltframework/shotcut/blob/ef7830846d03fb3557e8780057608cd9f1c8bd77/src/jobs/meltjob.cpp#L97
[0001-gnu-shotcut-Find-ffmpeg-and-mlt-at-runtime.patch (text/x-patch, attachment)]

Reply sent to Vinicius Monego <monego <at> posteo.net>:
You have taken responsibility. (Mon, 27 Dec 2021 00:11:02 GMT) Full text and rfc822 format available.

Notification sent to Fulbert <fulbert <at> bluewin.ch>:
bug acknowledged by developer. (Mon, 27 Dec 2021 00:11:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: 50433-done <at> debbugs.gnu.org
Subject: shotcut 21.06.29 missing bin files
Date: Mon, 27 Dec 2021 00:10:14 +0000
Fixed in bc74c191df789ff200da6f81c3cf599eae39ca8e. Closing.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Jan 2022 12:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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