Bug 23078 - deprecated regexp in monitor-parse-edid
Summary: deprecated regexp in monitor-parse-edid
Status: RESOLVED DUPLICATE of bug 22293
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 11:33 CEST by Marc Krämer
Modified: 2018-05-23 14:52 CEST (History)
0 users

See Also:
Source RPM: monitor-edid-3.1-8.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Marc Krämer 2018-05-23 11:33:14 CEST
systemd is announcing an deprecated regexp, which may cause problems in future:

mga-bg-res[919]: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/.*? = { <-- HERE / at /usr/bin/monitor-parse-edid line 58.
Comment 1 Marc Krämer 2018-05-23 11:34:23 CEST
ah there is one more thing:
mga-bg-res[919]: mmap /dev/zero: Operation not permitted
Comment 2 Frédéric "LpSolit" Buclin 2018-05-23 14:49:15 CEST
Patch to apply:

--- /bin/monitor-parse-edid     2018-05-23 14:47:56.947435963 +0200
+++ /bin/monitor-parse-edid     2018-05-23 14:48:00.530389613 +0200
@@ -55,7 +55,7 @@ foreach my $raw_edid (@raw_edids) {
        use Data::Dumper;
        $Data::Dumper::Sortkeys = 1;
        my $s = Dumper($edid);
-       $s =~ s/.*? = {/+{/;    # remove variable name we don't want
+       $s =~ s/.*? = \{/+{/;   # remove variable name we don't want
        $s =~ s/};$/}/m;
        print $s;
     } elsif ($MonitorsDB) {

Summary: deprecated regexp => deprecated regexp in monitor-parse-edid
Source RPM: mageia-theme-6.4-1.mga6.src.rpm => monitor-edid-3.1-8.mga6.src.rpm

Comment 3 Frédéric "LpSolit" Buclin 2018-05-23 14:52:03 CEST
Actually, this is a dupe of bug 22293

*** This bug has been marked as a duplicate of bug 22293 ***

Resolution: (none) => DUPLICATE
Status: NEW => RESOLVED


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