Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stop perl from rebuilding endlessly, again
Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
  • Loading branch information
Carsten Munk committed Mar 1, 2013
1 parent ff3f609 commit 09c5c79
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
24 changes: 24 additions & 0 deletions perl-5.12.1-norebuilds.patch
@@ -0,0 +1,24 @@
diff -ru perl-5.12.1/config_h.SH perl-5.12.1-norebuilds/config_h.SH
--- perl-5.12.1/config_h.SH 2010-05-14 00:01:07.000000000 +0200
+++ perl-5.12.1-norebuilds/config_h.SH 2013-03-01 17:05:22.845608318 +0100
@@ -968,7 +968,7 @@
* feature tests from Configure are generally more reliable.
*/
#define OSNAME "$osname" /**/
-#define OSVERS "$osvers" /**/
+#define OSVERS "3.0" /**/

/* ARCHLIB:
* This variable, if defined, holds the name of the directory in
diff -ru perl-5.12.1/cpan/Devel-PPPort/parts/ppptools.pl perl-5.12.1-norebuilds/cpan/Devel-PPPort/parts/ppptools.pl
--- perl-5.12.1/cpan/Devel-PPPort/parts/ppptools.pl 2010-04-26 10:08:29.000000000 +0200
+++ perl-5.12.1-norebuilds/cpan/Devel-PPPort/parts/ppptools.pl 2013-03-01 17:09:01.134007016 +0100
@@ -31,7 +31,7 @@
local *DIR;

opendir DIR, $dir or die "cannot open directory $dir: $!\n";
- my @files = grep { !-d && !/^\./ } readdir DIR; # no dirs or hidden files
+ my @files = sort grep { !-d && !/^\./ } readdir DIR; # no dirs or hidden files
closedir DIR;

return map { cat_file($dir, $_) } @files;
3 changes: 3 additions & 0 deletions perl.changes
@@ -1,3 +1,6 @@
* Fri Mar 01 2013 Carsten Munk <carsten.munk@jollamobile.com> - 5.12.1
- Stop perl from rebuilding constantly, again.

* Tue Jan 22 2013 Oleg Girko <ol+mer@infoserver.ru> - 5.12.1
- Use newly built perl instead of installed one to edit patchlevel.h.

Expand Down
8 changes: 7 additions & 1 deletion perl.spec
Expand Up @@ -54,6 +54,8 @@ Patch7: perl-5.10.0-x86_64-io-test-failure.patch

Patch8: perl-5.12.1-notimestamps.patch

Patch9: perl-5.12.1-norebuilds.patch

BuildRoot: %{_tmppath}/%{name}-%{perl_version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gdbm-devel, db4-devel, zlib-devel
BuildRequires: groff
Expand Down Expand Up @@ -683,7 +685,7 @@ upstream tarball from perl.org.
%patch6 -p1
%patch7 -p1
%patch8 -p1

%patch9 -p1
#
# Candidates for doc recoding (need case by case review):
# find . -name "*.pod" -o -name "README*" -o -name "*.pm" | xargs file -i | grep charset= | grep -v '\(us-ascii\|utf-8\)'
Expand Down Expand Up @@ -782,6 +784,8 @@ make %{?_smp_mflags}


%install
ORIG=$PWD

rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

Expand Down Expand Up @@ -856,6 +860,8 @@ cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/
%ifarch %{multilib_64_archs}
%{new_perl} -x patchlevel.h 'Fedora Patch3: support for libdir64'
%endif

cd $ORIG
rm -rf $RPM_BUILD_ROOT/*.0

%clean
Expand Down

0 comments on commit 09c5c79

Please sign in to comment.