rpms/chrony/devel chrony-1.23-editline.patch, NONE, 1.1 chrony.spec, 1.4, 1.5 chronyd.init, 1.1, 1.2
Miroslav Lichvar
mlichvar at fedoraproject.org
Fri Jul 17 12:53:22 UTC 2009
- Previous message (by thread): rpms/kde-style-skulpture/F-11 .cvsignore, 1.2, 1.3 kde-style-skulpture.spec, 1.2, 1.3 sources, 1.2, 1.3
- Next message (by thread): rpms/gallery2/devel gallery2-2.3-upgrade.patch, NONE, 1.1 gallery2-2.3-installer.patch, 1.1, 1.2 gallery2.spec, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mlichvar
Update of /cvs/pkgs/rpms/chrony/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9705
Modified Files:
chrony.spec chronyd.init
Added Files:
chrony-1.23-editline.patch
Log Message:
- switch to editline
- support arbitrary chronyc commands in init script
chrony-1.23-editline.patch:
client.c | 4 ++++
configure | 14 ++++++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
--- NEW FILE chrony-1.23-editline.patch ---
commit 84cbeeadd1d3cbdd35a85f9866d08f5507fcaf62
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Fri Jul 17 12:38:37 2009 +0200
Add editline support
GNU readline recently changed license to GPLv3+ which makes it
incompatible with chrony (GPLv2). This patch adds support for editline
library (BSD license).
diff --git a/client.c b/client.c
index b4f65f0..d034982 100644
--- a/client.c
+++ b/client.c
@@ -41,9 +41,13 @@
#include "memory.h"
#ifdef FEAT_READLINE
+#ifdef USE_EDITLINE
+#include <editline/readline.h>
+#else
#include <readline/readline.h>
#include <readline/history.h>
#endif
+#endif
#ifdef HAS_STDINT_H
#include <stdint.h>
diff --git a/configure b/configure
index 1ff2bbf..3762903 100755
--- a/configure
+++ b/configure
@@ -129,6 +129,7 @@ for instance \`--prefix=$HOME'.
For better control, use the options below.
--disable-readline Don't try to use GNU readline
+ --with-editline Use editline library instead of readline
--readline-dir=DIR Specify parent of readline include and lib directories
--readline-inc-dir=DIR Specify where readline include directory is
--readline-lib-dir=DIR Specify where readline lib directory is
@@ -174,6 +175,7 @@ SYSDEFS=""
# Support for readline (on by default)
feat_readline=1
+use_editline=0
feat_rtc=1
feat_linuxcaps=0
readline_lib=""
@@ -195,6 +197,9 @@ do
--disable-readline )
feat_readline=0
;;
+ --with-editline )
+ use_editline=1
+ ;;
--with-readline-library=* )
readline_lib=-L`echo $option | sed -e 's/^.*=//;'`
;;
@@ -341,8 +346,13 @@ else
fi
if [ $feat_readline = "1" ]; then
- READLINE_COMPILE="-DFEAT_READLINE=1 $readline_inc"
- READLINE_LINK="$readline_lib $ncurses_lib -lreadline -lncurses"
+ if [ $use_editline = "1" ]; then
+ READLINE_COMPILE="-DFEAT_READLINE=1 -DUSE_EDITLINE=1 $readline_inc"
+ READLINE_LINK="$readline_lib -ledit"
+ else
+ READLINE_COMPILE="-DFEAT_READLINE=1 $readline_inc"
+ READLINE_LINK="$readline_lib $ncurses_lib -lreadline -lncurses"
+ fi
else
READLINE_COMPILE=""
READLINE_LINK=""
Index: chrony.spec
===================================================================
RCS file: /cvs/pkgs/rpms/chrony/devel/chrony.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- chrony.spec 8 Jun 2009 08:01:49 -0000 1.4
+++ chrony.spec 17 Jul 2009 12:53:22 -0000 1.5
@@ -1,6 +1,6 @@
Name: chrony
Version: 1.23
-Release: 5.20081106gitbe42b4%{?dist}
+Release: 6.20081106gitbe42b4%{?dist}
Summary: An NTP client/server
Group: System Environment/Daemons
@@ -20,9 +20,10 @@ Patch3: chrony-1.23-gethost.patc
Patch4: chrony-1.23-res.patch
Patch5: chrony-1.23-cap.patch
Patch6: chrony-1.23-s390.patch
+Patch7: chrony-1.23-editline.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libcap-devel readline-devel bison texinfo
+BuildRequires: libcap-devel libedit-devel bison texinfo
Requires(pre): shadow-utils
Requires(post): /sbin/chkconfig /sbin/install-info
@@ -44,16 +45,14 @@ cp -p %{SOURCE6} .
%patch4 -p1 -b .res
%patch5 -p1 -b .cap
%patch6 -p1 -b .s390
-
-# don't link with ncurses
-sed -i 's|-lncurses||' configure
+%patch7 -p1 -b .editline
%build
bison -o getdate.c getdate.y
export CFLAGS="$RPM_OPT_FLAGS -pie -fpie"
# configure doesn't support --bindir --sbindir options, install manually
-./configure --enable-linuxcaps
+./configure --enable-linuxcaps --with-editline
make %{?_smp_mflags} all docs
%install
@@ -125,6 +124,10 @@ fi
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony
%changelog
+* Fri Jul 17 2009 Miroslav Lichvar <mlichvar at redhat.com> 1.23-6.20081106gitbe42b4
+- switch to editline
+- support arbitrary chronyc commands in init script
+
* Mon Jun 08 2009 Dan Horak <dan[at]danny.cz> 1.23-5.20081106gitbe42b4
- add patch with support for s390/s390x
Index: chronyd.init
===================================================================
RCS file: /cvs/pkgs/rpms/chrony/devel/chronyd.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- chronyd.init 24 Nov 2008 12:44:12 -0000 1.1
+++ chronyd.init 17 Jul 2009 12:53:22 -0000 1.2
@@ -150,8 +150,12 @@ case "$1" in
rh_status_q || exit 7
chrony_command $1
;;
+ command)
+ rh_status_q || exit 7
+ chrony_command "$2"
+ ;;
*)
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|cyclelogs|online|offline}"
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|cyclelogs|online|offline|command}"
exit 2
esac
exit $?
- Previous message (by thread): rpms/kde-style-skulpture/F-11 .cvsignore, 1.2, 1.3 kde-style-skulpture.spec, 1.2, 1.3 sources, 1.2, 1.3
- Next message (by thread): rpms/gallery2/devel gallery2-2.3-upgrade.patch, NONE, 1.1 gallery2-2.3-installer.patch, 1.1, 1.2 gallery2.spec, 1.30, 1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list