Bug 33567 - Subroutine getcwd redefined at /usr/share/perl5/vendor_perl/urpm/download.pm line 13 running urpmi-proxy
Summary: Subroutine getcwd redefined at /usr/share/perl5/vendor_perl/urpm/download.pm ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-18 17:30 CEST by papoteur
Modified: 2024-09-21 17:19 CEST (History)
1 user (show)

See Also:
Source RPM: urpmi-proxy-0.5.1-3.mga9.src.rpm
CVE:
Status comment:


Attachments

Description papoteur 2024-09-18 17:30:25 CEST
Description of problem:
Apache error_log is filled with messages like:
[Sun Sep 15 12:31:49.903546 2024] [cgi:error] [pid 1654636:tid 1654636] [client 192.168.1.33:56308] AH01215: stderr from /usr/share/urpmi-proxy/cgi-bin/urpmi-proxy.cgi: Subroutine getcwd redefined at /usr/share/perl5/vendor_perl/urpm/download.pm line 13

Steps to Reproduce:
1. install urpmi-proxy
2. configure urpmi to call the configured server
3. see the log file.
Comment 1 Lewis Smith 2024-09-19 21:32:50 CEST
Thank you for the report.
urpmi-proxy package is over 4 years old, so it is strange that this problem has only just shown. Are you the first to use it?

Could it be due to urpm/download.pm instead?

BTAIM assigning to Tools for urpmi in both cases.

Source RPM: urpmi-proxy => urpmi-proxy-0.5.1-3.mga9.src.rpm
Assignee: bugsquad => mageiatools

Comment 2 papoteur 2024-09-21 07:42:01 CEST
(In reply to Lewis Smith from comment #1)
> urpmi-proxy package is over 4 years old, so it is strange that this problem
> has only just shown. Are you the first to use it?

I don't know, but its usage is not wide, and this error is reported in journal and is not blocking, perhaps users did not see them.

> Could it be due to urpm/download.pm instead?
I have no idea of the cause. If uprmi was concerned, I presume that would be more reported.

Summary: Subroutine getcwd redefined at /usr/share/perl5/vendor_perl/urpm/download.pm line 13 => Subroutine getcwd redefined at /usr/share/perl5/vendor_perl/urpm/download.pm line 13 running urpmi-proxy

Comment 3 Martin Whitaker 2024-09-21 10:32:35 CEST
The cause is twofold:

1. urpm/download.pm contains the following

  # help perl_checker:
  sub getcwd { goto &Cwd::getcwd }

2. urpmi-proxy.cgi contains

  use warnings;

urpmi doesn't contain "use warnings" so it doesn't display this warning.

I think this could be fixed by changing those lines in urpm/download.pm to

# perl_checker: sub getcwd { goto &Cwd::getcwd }

CC: (none) => mageia

Comment 4 papoteur 2024-09-21 12:12:19 CEST
Thanks Martin,
Since a restart of apache for another reason, I don't see the error anymore.
I have nevertheless ported the modification as you suggested.
Should we commit this modification?
Comment 5 Martin Whitaker 2024-09-21 17:19:56 CEST
My suggestion doesn't help perl_checker. Looking in the perl_checker repository, it has a fake module for Cwd, so I don't know why it needs to be helped. Need to ask tv.

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