Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/python 3.10 not detected FIX #3713

Merged

Conversation

Barkodcz
Copy link
Contributor

@Barkodcz Barkodcz commented Jun 25, 2021

The problem was the new python 3.10 isn't compatible with previous "python finding script", because it check is only 1 digit or "." and I added a new condition to check ".".

This bug can be easily caused. Only need a python 3.10 version and run the configure with this flag: "--with-python=3.10" it will not find the 3.10, but with the bugfix it will found.

Other possible solution:

  • using if-else instead of switch-case, because in the if statement can be put regex expression.
  • using the configure "if-else", because there can put regex expression also.

issue: #3709

@kira-syslogng
Copy link
Contributor

Build SUCCESS

- using if-else instead of switch-case, because in the if statement can be put regex expression.
- using the configure "if-else", because there can put regex expression also.

issue: #3709
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This si going to be part of the news file (an example: https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.32.1), if you check out that the description are brief (specially in case of simple bugfix). This description is nice for the PR description, but too detailed for a news entry.

From user point of view the implementation details are not interesting (still they can uncover it as there is a reference to the original PR), I would rather include the fact that configure cannot accept python 3.10 version, and now it does.

@Kokan Kokan added this to the syslog-ng-3.33 milestone Jun 25, 2021
Copy link
Collaborator

@gaborznagy gaborznagy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
There is a failing macos CI job.
I think it's some intermittent Homebrew issue.

@Barkodcz Barkodcz force-pushed the bugfix/3709_python_310_not_detected branch from a2ad3ba to d62c58c Compare June 28, 2021 06:52
* configure can accept python x.xx
* I try to use * or + like in regex, but in shell isn't compatible with that regex

Signed-off-by: Balázs Barkó <[email protected]>
@Barkodcz Barkodcz force-pushed the bugfix/3709_python_310_not_detected branch from d62c58c to 572a2cb Compare June 28, 2021 07:04
Kokan
Kokan previously approved these changes Jun 28, 2021
@kira-syslogng
Copy link
Contributor

Build SUCCESS

Signed-off-by: Balázs Barkó <[email protected]>
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@alltilla alltilla merged commit dc21084 into syslog-ng:master Jun 28, 2021
@MrAnno MrAnno mentioned this pull request Jun 28, 2021
@czanik
Copy link
Collaborator

czanik commented Jul 1, 2021

Thanks! Tested by compiling a recent git master snapshot on Fedora Rawhide, and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants