unpack: remove backward compat for bug #376741 v2.2.0_alpha50
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Aug 2011 18:25:58 +0000 (11:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Aug 2011 18:25:58 +0000 (11:25 -0700)
This case is extremely rare, since the most common practice is to
unpack source files that are already in the cwd. The only Gentoo
packages that needed to be fixed were games-arcade/tuxpuck and
www-plugins/google-talkplugin.

bin/ebuild.sh

index 3d4d5576ad7f1a8cab713014a16b16fc9a7853c8..d68e54b7b293164a9d9d77776b0944b267dfdc74 100755 (executable)
@@ -373,18 +373,6 @@ unpack() {
                                local cwd_dest=${x##*/}
                                cwd_dest=${cwd_dest%.*}
                                $1 -c -- "${srcdir}${x}" > "${cwd_dest}" || die "$myfail"
-                               case "$EAPI" in
-                                       0|1|2|3|4|4-python)
-                                               # If the source file is in a writable directory then
-                                               # create a symlink for backward-compatible emulation
-                                               # of tools like gunzip and bunzip2 (see bug #376741).
-                                               if [[ ! -e ${x%.*} && -w ${x%/*} ]] && \
-                                                       [[ ${x} == "${PORTAGE_BUILDDIR}/"* ||
-                                                       ${x} == ./* || ${x} != /* ]] ; then
-                                                       ln -snf "${PWD}/${cwd_dest}" "${x%.*}"
-                                               fi
-                                               ;;
-                               esac
                        fi
                }