Skip to content

Commit

Permalink
Use newly built perl instead of installed one to edit patchlevel.h.
Browse files Browse the repository at this point in the history
This allows to build perl on a system without installed perl.

Signed-off-by: Oleg Girko <ol+mer@infoserver.ru>
  • Loading branch information
Oleg Girko committed Jan 22, 2013
1 parent cac55f0 commit ff3f609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions perl.changes
@@ -1,3 +1,6 @@
* 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.

* Tue Jan 22 2013 Oleg Girko <ol+mer@infoserver.ru> - 5.12.1
- Disable multilib for 64-bit architectures.

Expand Down
6 changes: 3 additions & 3 deletions perl.spec
Expand Up @@ -849,12 +849,12 @@ chmod -R u+w $RPM_BUILD_ROOT/*

# Local patch tracking
cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/
perl -x patchlevel.h 'Fedora Patch1: Removes date check, Fedora/RHEL specific'
%{new_perl} -x patchlevel.h 'Fedora Patch1: Removes date check, Fedora/RHEL specific'
%ifnarch sparc64
perl -x patchlevel.h 'Fedora Patch2: Work around annoying rpath issue'
%{new_perl} -x patchlevel.h 'Fedora Patch2: Work around annoying rpath issue'
%endif
%ifarch %{multilib_64_archs}
perl -x patchlevel.h 'Fedora Patch3: support for libdir64'
%{new_perl} -x patchlevel.h 'Fedora Patch3: support for libdir64'
%endif
rm -rf $RPM_BUILD_ROOT/*.0

Expand Down

0 comments on commit ff3f609

Please sign in to comment.