rpms/ksplice/devel import.log, NONE, 1.1 ksplice-0.9.0-zlib-configure.patch, NONE, 1.1 ksplice.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jochen Schmitt s4504kr at fedoraproject.org
Sun Sep 28 19:06:20 UTC 2008


Author: s4504kr

Update of /cvs/extras/rpms/ksplice/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6059/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log ksplice-0.9.0-zlib-configure.patch ksplice.spec 
Log Message:

Initional inport



--- NEW FILE import.log ---
ksplice-0_9_0-3_fc9:HEAD:ksplice-0.9.0-3.fc9.src.rpm:1222628718

ksplice-0.9.0-zlib-configure.patch:

--- NEW FILE ksplice-0.9.0-zlib-configure.patch ---
(1) Recent binutils include support for compressed sections which requires zlib.

(2) Fedora provides only static libbfd.a (not libbfd.so) for 3rd party
    applications linking.

    (2a) libbfd does not keep API/ABI compatibility.

    (2b) Version-bumping the library on each change would create either a lot
         of multiply installed versions of libfd or breaking dependencies of
         the built packages against libbfd.so

(3) Fedora does not provide libtool scripts in general (libbfd.la in this case).

As .a libraries cannot provide their depdendency list on themselves it needs to
be cared of by the application using them.  Patch attached.

Signed-off-by: Jan Kratochvil <jan.kratochvil at redhat.com>

--- ksplice-0.9.0/configure.ac	2008-09-13 05:41:52.000000000 +0200
+++ ksplice-0.9.0-src-patched/configure.ac	2008-09-21 21:29:13.000000000 +0200
@@ -15,6 +15,12 @@ AC_ARG_WITH(libiberty,
   [ ac_libiberty=NONE ]
 )
 
+AC_ARG_WITH(libz,
+  [  --with-libz=FILE         path to libz.a ],
+  [ ac_libz=$withval ],
+  [ ac_libz=NONE ]
+)
+
 AC_ARG_WITH(bfd-include-dir,
   [  --with-bfd-include-dir=DIR
                           path to directory containing bfd.h ],
@@ -25,6 +31,12 @@ AC_ARG_WITH(bfd-include-dir,
 AC_PROG_CC
 AC_CHECK_HEADERS(bfd.h,, BFD_H="no")
 
+if test "$ac_libz" = "yes"; then
+  AC_CHECK_LIB(z, zlibVersion)
+  ac_libz=auto
+else
+  LIBS="$ac_libz $LIBS"
+fi
 if test "$ac_libiberty" = "NONE"; then
   AC_CHECK_LIB(iberty, objalloc_create)
   ac_libiberty=auto
@@ -63,6 +75,10 @@ if ! test -e "objdiff-static" || ! test 
     echo
     echo "  ./configure --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
     echo
+    echo "Depending on the host system you may also need to provide zlib:"
+    echo
+    echo "  ./configure ... --with-libz=<libz.a>"
+    echo
     exit 1
   fi
 


--- NEW FILE ksplice.spec ---
Name:		ksplice
Version:	0.9.0
Release:	3%{?dist}
Summary:	Patching a Linux kernel without reboot

Group:		System Environment/Kernel
License:	GPLv2
URL:		http://web.mit.edu/ksplice
Source0:	http://web.mit.edu/ksplice/dist/ksplice-%{version}-src.tar.gz
#
# bin-utils maintainer has sent the patch to upstream
#
Patch0:		ksplice-0.9.0-zlib-configure.patch

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

ExcludeArch:	ppc64, ppc

BuildRequires:	autoconf
BuildRequires:	binutils-devel, perl
BuildRequires:	zlib-devel

Requires:	gcc >= 3.4.2
Requires:	patch >= 2.5.4
Requires:	module-init-tools
Requires:	binutils >= 2.12
Requires:	bash >= 2.03
Requires:	make >= 3.78
Requires:	sh-utils, m4,
Requires:	findutils, diffutils, tar, gzip, bzip2, perl, gawk
Requires:	util-linux-ng

%description
Ksplice allows system administrators to apply security patches to the 
Linux kernel without having to reboot. Ksplice takes as input a source 
code change in unified diff format and the kernel source code to be 
patched, and it applies the patch to the corresponding running kernel. 
The running kernel does not need to have been prepared in advance in 
any way.

%prep
%setup -q
%patch0 -p1 -b .zlib

# Filter ksplce as a provide

cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/perl(Ksplice)/d'
EOF

%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
chmod +x %{__perl_provides}

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(Ksplice)/d'
EOF

%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
chmod +x %{__perl_requires}

%build
autoconf
%configure  --with-libz
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/ksplice-*
%{_sbindir}/ksplice-*
%{_libexecdir}/ksplice-*
%{_datadir}/ksplice/
%{_mandir}/man8/ksplice-*

%doc COPYING README

%changelog
* Wed Sep 24 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-3
- Comment about upstream status of the zlib patch
- Remove rsync Req./BR.
- Filtering perl(Ksplice)

* Mon Sep 22 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-2
- Add ksplice-zlib-configure patch (BZ #463101)

* Sun Sep 21 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.9.0-1
- New upstream release

* Tue Sep  9 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-12
- Spin off of fedora-ksplice out of this package

* Mon Aug  4 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-11
- Correcting some typos
- Add trap in fedora-ksplice-prepare

* Sun Aug  3 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-10
- Add fedora-ksplice-create script

* Sun Aug  3 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-9
- Rename fedora specific subpackage

* Thu Jul 31 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-8
- Add copyright notice in kspliceprep
- Create ksplice dir and content in kernel sources

* Thu Jul 31 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-7
- Enhanced version of kspliceprep which needs no kernel compilation

* Thu Jul 31 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-6
- Add more kernel-releate Requires
- Add script for prepare fedora sources for ksplice

* Thu Jul 24 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-5
- Filtering perl provides
- Using 'ExcludeArch' instead of 'ExclusiveArch'

* Wed Jul 23 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-3
- Add some new Reqs. and BRs
- Rescrict Arch on %%{x86} and x86_64

* Mon Jul 21 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-2
- Fix broken upstream URI

* Tue Jul  8 2008 Jochen Schmitt <Jochen herr-schmitt de> 0.8.7-1
- Initional Package



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ksplice/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Sep 2008 18:56:49 -0000	1.1
+++ .cvsignore	28 Sep 2008 19:05:50 -0000	1.2
@@ -0,0 +1 @@
+ksplice-0.9.0-src.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ksplice/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Sep 2008 18:56:49 -0000	1.1
+++ sources	28 Sep 2008 19:05:50 -0000	1.2
@@ -0,0 +1 @@
+33934d125cdc050cd68f8ea34f1f4f23  ksplice-0.9.0-src.tar.gz




More information about the fedora-extras-commits mailing list