[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Spilt libperl from perl



Warren Togami wrote:
During the last FESCO meeting there was (reluctant?) agreement that splitting libperl.so from perl would be a better solution to workaround our broken multilib policy than to split perl sub-packages out of everything that breaks due to perl.i386 being removed from F7 x86-64.

Is this going to happen?


In today's Release Engineering meeting, it was decided that the libperl multilib conflicts are a Test4 blocker. So we need to split libperl.so into a sub-package.

The attached patch could theoretically do this, but I haven't been able to make a successful build.

This patch is also sub-optimal in that the defined compat version dirs need to be modified manually in yet another part of the spec whenever they change. I thought about using a filelist to allow dynamic generation of this based on %{perlmodcompat}, but there does not seem to be a way to use a filelist in %exclude of the main perl package to make this possible

Warren Togami
wtogami redhat com
Index: perl.spec
===================================================================
RCS file: /cvs/dist/rpms/perl/devel/perl.spec,v
retrieving revision 1.111
diff -u -p -r1.111 perl.spec
--- perl.spec	18 Apr 2007 20:05:08 -0000	1.111
+++ perl.spec	23 Apr 2007 19:02:38 -0000
@@ -20,7 +20,7 @@
 
 Name:           perl
 Version:        5.8.8
-Release:        16.2%{?dist}
+Release:        17%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        The Perl programming language
 Group:          Development/Languages
@@ -270,6 +270,13 @@ Requires:       perl = %{perl_epoch}:%{p
 %description Test-Simple
 Basic utilities for writing tests.
 
+package libperl
+Summary:        Core shared library of perl
+Group:          Development/Languages
+
+%description libperl
+Core shared library of perl
+
 %prep
 %setup -q
 %patch1 -p1
@@ -600,6 +607,12 @@ make test
 %exclude %{_mandir}/man3/Test::Simple*
 %exclude %{_mandir}/man3/Test::Tutorial*
 
+# libperl
+%exclude %{_libdir}/perl5/5.8.5/
+%exclude %{_libdir}/perl5/5.8.6/
+%exclude %{_libdir}/perl5/5.8.7/
+%exclude %{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/libperl.so
+
 
 %files devel
 %defattr(-,root,root,-)
@@ -685,7 +698,17 @@ make test
 %{_mandir}/man3/Test::Simple*
 %{_mandir}/man3/Test::Tutorial*
 
+%files libperl
+%defattr(-,root,root,-)
+%{_libdir}/perl5/5.8.5/
+%{_libdir}/perl5/5.8.6/
+%{_libdir}/perl5/5.8.7/
+%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/libperl.so
+
 %changelog
+* Mon Apr 23 2007 Warren Togami <wtogami redhat com> - 4:5.8.8-17
+- split libperl.so into sub-package
+
 * Wed Mar 28 2007 Robin Norwood <rnorwood redhat com> - 4:5.8.8-16.2
 - Includes patch from Ralf Corsepius to split out some more perl modules.
 - Further split out development related perl modules.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]