Bug 2263669 - Warnings of broken regexes - fixed on master
Summary: Warnings of broken regexes - fixed on master
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: autorandr
Version: 39
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact:
URL: https://github.com/phillipberndt/auto...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-10 16:56 UTC by gabrielgrysuk
Modified: 2024-12-04 05:17 UTC (History)
6 users (show)

Fixed In Version: autorandr-1.15-1.fc42
Clone Of:
Environment:
Last Closed: 2024-11-25 19:41:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github phillipberndt autorandr issues 368 0 None closed Broken regexes due to missing `r` string literal 2024-02-10 17:02:38 UTC

Description gabrielgrysuk 2024-02-10 16:56:38 UTC
The warnings appear in autorandr 1.13.3-2.fc39 and the 1.4 release from Github.
The 1.4 version installed using pip didn't show any of the warnings.

Reproducible: Always

Steps to Reproduce:
1. Install autorandr: sudo dnf install autorandr
2. Run any autorandr command: autorandr --version

Actual Results:  

/usr/bin/autorandr:210: SyntaxWarning: invalid escape sequence '\s'
  XRANDR_OUTPUT_REGEXP = """(?x)
/usr/bin/autorandr:236: SyntaxWarning: invalid escape sequence '\s'
  """ + XRANDR_PROPERTIES_REGEXP + """ |                                      # Properties to include in the profile
/usr/bin/autorandr:248: SyntaxWarning: invalid escape sequence '\S'
  XRANDR_OUTPUT_MODES_REGEXP = """(?x)
/usr/bin/autorandr:592: SyntaxWarning: invalid escape sequence '\s'
  version = re.search("xrandr program version\s+([0-9\.]+)", version_string).group(1)
/usr/bin/autorandr:888: SyntaxWarning: invalid escape sequence '\+'
  match = re.match("(?P<w>[0-9]+)x(?P<h>[0-9]+)(?:\+(?P<x>[0-9]+))?(?:\+(?P<y>[0-9]+))?.*", output.options["panning"])
autorandr 1.13.3

Expected Results:  
autorandr 1.13.3

The issue also occurs in the 1.4 release version, but is fixed in the master branch.

Comment 1 Kirill Malgichev 2024-04-23 23:26:12 UTC
I am getting same RegExp warnings with the autorandr 1.13.3-4.fc40 (which is expected since version is the same). The latest 1.15 autorandr installed with pip works without any warnings.

Comment 2 jonatan.olofsson 2024-11-12 08:57:53 UTC
This has been fixed almost a year upstream - is there anything we can do to move this forward?

Comment 3 Kirill Malgichev 2024-11-12 11:57:04 UTC
Package upgrade is needed and looks like there is a bug about it - https://bugzilla.redhat.com/show_bug.cgi?id=2307247

Comment 4 jonatan.olofsson 2024-11-12 12:23:26 UTC
@kparal , pkotvan is no longer available (account disabled). Does this need to be reassigned in some way?

Comment 5 Kamil Páral 2024-11-12 13:30:53 UTC
Yes, but I'm not sure how. Peter Kotvan is no longer in Red Hat, so he can't use his redhat.com email address. However, his FAS account [1] still uses that address, he didn't change it. Also, he still owns the package in distgit [2]. So I don't know whether he's completely inactive, or still active but didn't change the email address and therefore receives no emails. Maybe ask in the devel list [3] about this and what the next approach should be, because I don't know.

[1] https://accounts.fedoraproject.org/user/pkotvan/
[2] https://src.fedoraproject.org/rpms/autorandr
[3] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/

Comment 6 Aoife Moloney 2024-11-13 12:01:34 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Fedora Admin user for bugzilla script actions 2024-11-24 02:00:46 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 8 Fedora Update System 2024-11-25 19:51:28 UTC
FEDORA-2024-81b2af0c0c (autorandr-1.15-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-81b2af0c0c

Comment 9 Fedora Update System 2024-11-25 19:52:00 UTC
FEDORA-2024-8eaebbbc5b (autorandr-1.15-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8eaebbbc5b

Comment 10 Fedora Update System 2024-11-26 03:16:49 UTC
FEDORA-2024-8eaebbbc5b has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8eaebbbc5b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8eaebbbc5b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-11-26 04:47:12 UTC
FEDORA-2024-81b2af0c0c has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-81b2af0c0c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-81b2af0c0c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-12-04 04:24:54 UTC
FEDORA-2024-81b2af0c0c (autorandr-1.15-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2024-12-04 05:17:23 UTC
FEDORA-2024-8eaebbbc5b (autorandr-1.15-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, 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.