dev-lang/perl: Restore MANIFEST sort order, bug 589302
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 29 Dec 2016 16:53:20 +0000 (17:53 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 29 Dec 2016 16:53:44 +0000 (17:53 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-lang/perl/files/perl-patchlevel-manifest.patch [new file with mode: 0644]
dev-lang/perl/perl-5.24.1_rc4.ebuild

diff --git a/dev-lang/perl/files/perl-patchlevel-manifest.patch b/dev-lang/perl/files/perl-patchlevel-manifest.patch
new file mode 100644 (file)
index 0000000..3592ae0
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -4678,6 +4678,7 @@
+ pad.h                         Scratchpad headers
+ parser.h                      parser object header
++patchlevel-gentoo.h                   Gentoo's Perl patch level
+ patchlevel.h                  The current patch level of perl
+ perlapi.c                     Perl API functions
+ perlapi.h                     Perl API function declarations
+ perl.c                                main()
index 47bd73ddc2a502a0edf34513c989b0418b023e37..e560ac1a57b179cc6d58d52af4e4193d73f84e6f 100644 (file)
@@ -215,7 +215,6 @@ src_prepare_update_patchlevel_h() {
        # it under the same terms as Perl itself.
        local patchdir="${WORKDIR}/patches"
        local prefix
-       local patchoutput="patchlevel-gentoo.h"
 
        [[ -f ${patchdir}/series ]] || return 0
 
@@ -253,8 +252,9 @@ do
        # label: prepend to the hold space
        :prepend x; H; d;
        '
-done < "${WORKDIR}"/patches/series > "${S}/${patchoutput}"
-echo "${patchoutput}" >> "${S}/MANIFEST"
+done < "${WORKDIR}"/patches/series > "${S}/patchlevel-gentoo.h"
+
+       eapply "${FILESDIR}/perl-patchlevel-manifest.patch"
 }
 
 src_prepare() {