toolchain.eclass: drop PIE patch support for <gcc-4.2
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 19 Oct 2019 11:42:41 +0000 (12:42 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 19 Oct 2019 21:20:30 +0000 (22:20 +0100)
::gentoo and ::toolchain don't have any ebuilds using PIE patchset.
If someone really needs to resurrect these old patches it's easier
to reshuffle the patchset itself.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 0c0378d9a7e4a3e781602b1b120b12ea151ca439..ec196db072d9688c053f6c35822537e5aa9376da 100644 (file)
@@ -649,23 +649,9 @@ do_gcc_PIE_patches() {
        want_pie || return 0
        use vanilla && return 0
 
-       if tc_version_is_at_least 4.3.2 ; then
-               guess_patch_type_in_dir "${WORKDIR}"/piepatch/
-               EPATCH_MULTI_MSG="Applying pie patches ..." \
-               epatch "${WORKDIR}"/piepatch/
-       else
-               guess_patch_type_in_dir "${WORKDIR}"/piepatch/upstream
-
-               # corrects startfile/endfile selection and shared/static/pie flag usage
-               EPATCH_MULTI_MSG="Applying upstream pie patches ..." \
-               epatch "${WORKDIR}"/piepatch/upstream
-               # adds non-default pie support (rs6000)
-               EPATCH_MULTI_MSG="Applying non-default pie patches ..." \
-               epatch "${WORKDIR}"/piepatch/nondef
-               # adds default pie support (rs6000 too) if DEFAULT_PIE[_SSP] is defined
-               EPATCH_MULTI_MSG="Applying default pie patches ..." \
-               epatch "${WORKDIR}"/piepatch/def
-       fi
+       guess_patch_type_in_dir "${WORKDIR}"/piepatch/
+       EPATCH_MULTI_MSG="Applying pie patches ..." \
+       epatch "${WORKDIR}"/piepatch/
 
        BRANDING_GCC_PKGVERSION="${BRANDING_GCC_PKGVERSION}, pie-${PIE_VER}"
 }