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.
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.rpmAssignee: bugsquad => mageiatools
(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
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
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?
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.