Accepting request 926293 from home:manfred-h

- Add patch:
  * logrotate-dont_warn_on_size=_syntax.patch (boo#1191816)

OBS-URL: https://build.opensuse.org/request/show/926293
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=91
This commit is contained in:
Pedro Monreal Gonzalez 2021-10-22 16:27:05 +00:00 committed by Git OBS Bridge
parent 059257d8e2
commit 0102239a0d
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,29 @@
commit a98c38bc867ec59e00625b48262bb3334c8f5728
Author: Christian Göttsche <cgzones@googlemail.com>
Date: Mon Jul 26 19:35:00 2021 +0200
Do not warn on key value pair separated by only an equal sign
Do not warn if a configuration directive is specified with the key and
value separated by just an equal sign, like:
size=+2048k
The warning is intended for the usage of:
size2048k
Fixes: 2b588b5e ("Log if keyword is not properly separated")
Fixes: #410
--- a/config.c 2021-10-19 14:09:18.320365539 +0200
+++ b/config.c 2021-10-19 13:52:39.810800011 +0200
@@ -1109,7 +1109,7 @@ static int readConfigFile(const char *co
configFile, lineNum);
continue;
}
- if (!isspace((unsigned char)*start)) {
+ if (!isspace((unsigned char)*start) && *start != '=') {
message(MESS_NORMAL, "%s:%d keyword '%s' not properly"
" separated, found %#x\n",
configFile, lineNum, key, *start);

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 19 11:36:39 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net>
- Add patch:
* logrotate-dont_warn_on_size=_syntax.patch (boo#1191816)
-------------------------------------------------------------------
Thu May 27 16:31:55 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -30,6 +30,7 @@ Source2: logrotate.default
Source10: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source100: %{name}-rpmlintrc
Patch0: logrotate-3.13.0-systemd_add_home_env.patch
Patch1: logrotate-dont_warn_on_size=_syntax.patch
BuildRequires: acl
BuildRequires: libacl-devel
BuildRequires: pkgconfig
@ -50,6 +51,7 @@ It manages plain files only and is not involved in systemd's journal rotation.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure \