Bug 17801

Summary: add-syslog errors out if rsyslog is not installed
Product: Mageia Reporter: Dan Fandrich <dan>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: mageia, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: MGA9TOO
Source RPM: rpm-helper-0.24.17-4.mga6.src.rpm CVE:
Status comment:

Description Dan Fandrich 2016-02-21 10:55:47 CET
The following error message appears upon installation of openldap-servers-2.4.40-3.1.mga5:

  Can't open /etc/rsyslog.d/openldap.conf for writing: No such file or directory at /usr/share/rpm-helper/add-syslog line 57.

rsyslog is not installed on this system so /etc/rsyslog.d/ does not exist. Line 57 of add-syslog is:

   open(my $out, '>', "/etc/rsyslog.d/$package.conf")
        or die "Can't open /etc/rsyslog.d/$package.conf for writing: $!";

So, under such circumstances, the /etc/rsyslog.d/openldap-servers.conf file is not created. If rsyslog is subsequently installed, its configuration will not exist and logging will not be correct.

This error exists currently both in mga5 (rpm-helper-0.24.17-1.mga5.src.rpm) and Cauldron.

Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2016-02-22 11:34:12 CET
Assigning to packagers collectively since there is no registered maintainer for this package. Adding Colin and Thomas in CC because they were the last active packagers on this package.

CC: (none) => mageia, tmb
Assignee: bugsquad => pkg-bugs

Comment 2 Dan Fandrich 2024-02-09 06:47:29 CET
This exact problem still occurs on openldap-servers-2.5.14-1.mga9.x86_64 and rpm-helper-0.24.22-1.mga9

Whiteboard: (none) => MGA9TOO