Bug 1769560 - Shutter package is broken due to glob Perl error.
Summary: Shutter package is broken due to glob Perl error.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: shutter
Version: 31
Hardware: noarch
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Liang Suilong
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-06 20:57 UTC by David Collins
Modified: 2019-12-11 02:06 UTC (History)
2 users (show)

Fixed In Version: shutter-0.94.3-1.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-11 02:06:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Shutter SRPM (3.27 MB, application/x-rpm)
2019-11-06 20:57 UTC, David Collins
no flags Details

Description David Collins 2019-11-06 20:57:05 UTC
Created attachment 1633450 [details]
Shutter SRPM

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install shutter `dnf install shutter`
2. Run shutter `/usr/bin/shutter`

Actual results:
shutter
"glob" is not exported by the File::Glob module
Can't continue after import errors at /usr/bin/shutter line 57.
BEGIN failed--compilation aborted at /usr/bin/shutter line 57.


Expected results:
Shutter GUI should have launched

Additional info:
Fedora 31 is shipped with Perl 5.30.  In 5.30, glob was changed to bsd_glob.  In order to fix the package, we must change two instances of "use File::Glob qw/ glob /;" to "use File::Glob qw/ bsd_glob /;".

I've attached a SRPM with a patch, and pasted a diff below.

Another solution would be to upgrade shutter to the latest version in Fedora 31

--- a/bin/shutter.orig  2019-11-06 14:20:48.048171058 -0600
+++ b/bin/shutter       2019-11-06 14:21:03.826458023 -0600
@@ -54,7 +54,7 @@
 
 #File operations
 use File::Copy qw/ cp mv /;
-use File::Glob qw/ glob /;
+use File::Glob qw/ bsd_glob /;
 use File::Basename qw/ fileparse dirname basename /;
 use File::Temp qw/ tempfile tempdir /;
 use File::Spec;
--- a/share/shutter/resources/modules/Shutter/Draw/DrawingTool.pm.orig  2019-11-06 14:23:27.629968586 -0600
+++ b/share/shutter/resources/modules/Shutter/Draw/DrawingTool.pm       2019-11-06 14:23:34.987091822 -0600
@@ -35,7 +35,7 @@
 use Exporter;
 use Goo::Canvas;
 use File::Basename qw/ fileparse dirname basename /;
-use File::Glob qw/ glob /;
+use File::Glob qw/ bsd_glob /;
 use File::Temp qw/ tempfile tempdir /;
 use Data::Dumper;
.

Comment 1 Fedora Update System 2019-12-09 14:28:04 UTC
FEDORA-2019-973addd47d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-973addd47d

Comment 2 Fedora Update System 2019-12-10 18:47:18 UTC
shutter-0.94.3-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-973addd47d

Comment 3 Fedora Update System 2019-12-11 02:06:15 UTC
shutter-0.94.3-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.