diff --git a/sys-apps/which/patches/which-2.20.patch b/sys-apps/which/patches/which-2.20.patch new file mode 100644 index 000000000..422a6739b --- /dev/null +++ b/sys-apps/which/patches/which-2.20.patch @@ -0,0 +1,19 @@ +diff -up which-2.20/which.c.orig which-2.20/which.c +--- which-2.20/which.c.orig 2013-10-20 12:30:35.994574336 -0600 ++++ which-2.20/which.c 2013-10-20 12:30:21.694681600 -0600 +@@ -428,6 +428,7 @@ static uid_t const superuser = 0; + + int main(int argc, char *argv[]) + { ++ int function_start_type = 0; + const char *path_list = getenv("PATH"); + int short_option, fail_count = 0; + static int long_option; +@@ -537,7 +538,6 @@ int main(int argc, char *argv[]) + return -1; + } + +- int function_start_type = 0; + if (read_alias || read_functions) + { + char buf[1024]; diff --git a/sys-apps/which/patches/which-2.20.patchset b/sys-apps/which/patches/which-2.20.patchset deleted file mode 100644 index e69de29bb..000000000 diff --git a/sys-apps/which/which-2.20.recipe b/sys-apps/which/which-2.20.recipe index dff494944..acbdd52e3 100644 --- a/sys-apps/which/which-2.20.recipe +++ b/sys-apps/which/which-2.20.recipe @@ -4,9 +4,11 @@ COPYRIGHT="Free Software Foundation" LICENSE="GNU GPL v2" SRC_URI="http://ftp.gnu.org/gnu/which/which-2.20.tar.gz" CHECKSUM_MD5="95be0501a466e515422cde4af46b2744" -REVISION="1" +REVISION="2" ARCHITECTURES="x86_gcc2 x86" +PATCHES="which-2.20.patch" + PROVIDES=" which = $portVersion cmd:which = $portVersion