Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
45bc4c962d
!17 [sync] PR-16: Update to 1.21
From: @openeuler-sync-bot 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-12-19 03:48:24 +00:00
fu-shanqing
7d8c02b1a2 Update to 1.21
(cherry picked from commit 5578c23cbf91939a85bc269f53a09742f5f33bed)
2022-12-07 14:09:53 +08:00
openeuler-ci-bot
3a13014f73
!11 【openEuler-22.03-LTS-Next】Fix coredump while parseServiceInfo return non-zero
From: @yixiangzhike 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2022-08-27 02:47:55 +00:00
yixiangzhike
d45ae30676 Fix coredump while parseServiceInfo return non-zero
Signed-off-by: yixiangzhike <yixiangzhike007@163.com>
2022-08-27 10:04:50 +08:00
openeuler-ci-bot
cc8cb555a0 !8 Update to 1.20
From: @wangchen2020
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-12-06 01:17:02 +00:00
wangchen2020
c6c5e47679 Update to 1.20 2021-11-27 18:29:05 +08:00
openeuler-ci-bot
43a32a8aff !7 upgrade chkconfig to 1.15
From: @duyiwei7w
Reviewed-by: @licihua,@overweight
Signed-off-by: @overweight
2021-07-09 03:32:28 +00:00
duyiwei
1252a3bb9d upgrade to 1.15 2021-07-08 11:35:00 +08:00
openeuler-ci-bot
a942ee7b53 !6 Open make check because beakerlib is exist
Merge pull request !6 from wangchen/wangchen
2020-08-31 17:08:16 +08:00
wangchen2020
394e78efb2 Fix make check failed for lacking beaklib 2020-08-31 16:17:40 +08:00
openeuler-ci-bot
653b411ff9 !3 update chkconfig to 1.14
Merge pull request !3 from wangchen/wangchen
2020-07-31 15:44:22 +08:00
4 changed files with 60 additions and 19 deletions

Binary file not shown.

BIN
chkconfig-1.21.tar.gz Normal file

Binary file not shown.

View File

@ -1,21 +1,23 @@
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
Name: chkconfig
Version: 1.14
Version: 1.21
Release: 1
Summary: chkconfig updates and queries runlevel information for system services
License: GPLv2
URL: https://github.com/fedora-sysv/chkconfig
Source0: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc newt-devel gettext popt-devel libselinux-devel
Source: https://github.com/fedora-sysv/chkconfig/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc systemd-devel make
Conflicts: initscripts <= 5.30-1
Provides: ntsysv = %{version}-%{release}
Obsoletes: ntsysv < %{version}-%{release}
Provides: /sbin/chkconfig
Patch0: fix-coredump-while-parseServiceInfo-return-1.patch
%description
chkconfig provides a simple command-line tool for maintaining
the /etc/rc[0-6].d directory hierarchy by relieving system
administrators of the task of directly manipulating the numerous
symbolic links in those directories.
Chkconfig is a basic system utility. It updates and queries runlevel
information for system services. Chkconfig manipulates the numerous
symbolic links in /etc/rc.d, to relieve system administrators of some
of the drudgery of manually editing the symbolic links.
%package_help
@ -26,20 +28,18 @@ symbolic links in those directories.
%make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%check
#make check
make check
%install
%make_install MANDIR=%{_mandir} SBINDIR=%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
for i in {0..6};do
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc${i}.d
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d
for n in 0 1 2 3 4 5 6; do
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc${n}.d
ln -s rc.d/rc${n}.d $RPM_BUILD_ROOT/etc/rc${n}.d
done
ln -s rc.d/init.d %{buildroot}%{_sysconfdir}/init.d
for i in {0..6};do
ln -s rc.d/rc${i}.d %{buildroot}%{_sysconfdir}/rc${i}.d
done
mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d
mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
%files
%dir %{_sysconfdir}/alternatives
@ -48,7 +48,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d
%{_sysconfdir}/rc.d/{inid.d,rc[0-6].d}
%{_sysconfdir}/chkconfig.d
%{_sbindir}/{*alternatives,ntsysv}
/sbin/chkconfig
%{_sbindir}/chkconfig
%{_prefix}/lib/systemd/systemd-sysv-install
%license COPYING
%{_datadir}/locale/*/LC_MESSAGES/chkconfig.mo
@ -57,6 +57,21 @@ mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d
%{_mandir}/man8/*
%changelog
* Wed Oct 12 2022 fushanqing <fushanqing@kylinos.cn> - 1.21-1
- Update to 1.21
* Sat Aug 27 2022 yixiangzhike <yixiangzhike007@163.com> - 1.20-2
- fix coredump while parseServiceInfo return non-zero
* Sat Nov 27 2021 wangchen <wangchen137@huawei.com> - 1.20-1
- Update to 1.20
* Thu Jul 8 2021 duyiwei <duyiwei@kylinos.cn> - 1.15-1
- Update to 1.15
* Mon Aug 31 2020 wangchen <wangchen137@huawei.com> - 1.14-2
- Open make check because beakerlib exist
* Fri Jul 31 2020 wangchen <wangchen137@huawei.com> - 1.14-1
- Update to 1.14
@ -65,3 +80,4 @@ mkdir -p %{buildroot}%{_sysconfdir}/chkconfig.d
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10-7
- Package Init

View File

@ -0,0 +1,25 @@
From 05f7ea8fa198a6b98dd98cb1a8b1774da701e917 Mon Sep 17 00:00:00 2001
From: xujing <xujing125@huawei.com>
Date: Fri, 12 Aug 2022 10:01:32 +0800
Subject: [PATCH] fix coredump while parseServiceInfo return 1
---
leveldb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/leveldb.c b/leveldb.c
index 7b8c1bd..8a7a81d 100644
--- a/leveldb.c
+++ b/leveldb.c
@@ -380,7 +380,7 @@ int readServiceInfo(char *name, int type, struct service *service,
asprintf(&filename, RUNLEVELS "/chkconfig.d/%s", name);
if ((fd = open(filename, O_RDONLY)) >= 0) {
parseret = parseServiceInfo(fd, name, &serv_overrides, honorHide, 1);
- if (parseret >= 0) {
+ if (parseret == 0) {
if (serv_overrides.name)
serv.name = serv_overrides.name;
if (serv_overrides.levels != -1)
--
2.27.0