Bug 23078

Summary: deprecated regexp in monitor-parse-edid
Product: Mageia Reporter: Marc Krämer <mageia>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal    
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: monitor-edid-3.1-8.mga6.src.rpm CVE:
Status comment:

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