Bug 17801 - add-syslog errors out if rsyslog is not installed
Summary: add-syslog errors out if rsyslog is not installed
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard: MGA9TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 10:55 CET by Dan Fandrich
Modified: 2024-02-09 06:47 CET (History)
2 users (show)

See Also:
Source RPM: rpm-helper-0.24.17-4.mga6.src.rpm
CVE:
Status comment:


Attachments

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


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