diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-28 12:48:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-28 12:48:17 +0000 |
commit | 9cfd35abf9b00914739d3f84255cb440fa683bce (patch) | |
tree | e68d849a02466576230aa7bbcef383ea2d4e7d01 /main | |
parent | d4e0376c8e7aab4108f49cee93516d4ac2a420ed (diff) | |
download | aports-9cfd35abf9b00914739d3f84255cb440fa683bce.tar.bz2 aports-9cfd35abf9b00914739d3f84255cb440fa683bce.tar.xz |
main/busybox: add support for --no-dereference in 'diff'
ref #2847
Diffstat (limited to 'main')
-rw-r--r-- | main/busybox/0001-diff-add-support-for-no-dereference.patch | 63 | ||||
-rw-r--r-- | main/busybox/APKBUILD | 6 |
2 files changed, 68 insertions, 1 deletions
diff --git a/main/busybox/0001-diff-add-support-for-no-dereference.patch b/main/busybox/0001-diff-add-support-for-no-dereference.patch new file mode 100644 index 0000000000..6a9146337a --- /dev/null +++ b/main/busybox/0001-diff-add-support-for-no-dereference.patch @@ -0,0 +1,63 @@ +From 3993add1f639fc1c6c44d9dc865aa02646e22d6c Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Fri, 25 Jul 2014 15:28:33 +0200 +Subject: [PATCH] diff: add support for --no-dereference + +Add flag for not following symlinks when recursing + +function old new delta +.rodata 7934 7967 +33 +diff_longopts 253 270 +17 +packed_usage 1704 1720 +16 +diff_main 1665 1662 -3 +------------------------------------------------------------------------------ +(add/remove: 0/0 grow/shrink: 3/1 up/down: 66/-3) Total: 63 bytes + +Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> +--- + editors/diff.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/editors/diff.c b/editors/diff.c +index a78a0ee..a0203af 100644 +--- a/editors/diff.c ++++ b/editors/diff.c +@@ -117,6 +117,9 @@ + //usage: "\n -N Treat absent files as empty" + //usage: "\n -q Output only whether files differ" + //usage: "\n -r Recurse" ++//usage: IF_LONG_OPTS( ++//usage: "\n --no-dereference Don't follow symlinks" ++//usage: ) + //usage: "\n -S Start with FILE when comparing directories" + //usage: "\n -T Make tabs line up by prefixing a tab when necessary" + //usage: "\n -s Report when two files are the same" +@@ -157,6 +160,7 @@ enum { /* Commandline flags */ + FLAG_p, /* not implemented */ + FLAG_B, + FLAG_E, /* not implemented */ ++ FLAG_no_deref, + }; + #define FLAG(x) (1 << FLAG_##x) + +@@ -869,7 +873,8 @@ static void diffdir(char *p[2], const char *s_start) + * Using list.len to specify its length, + * add_to_dirlist will remove it. */ + list[i].len = strlen(p[i]); +- recursive_action(p[i], ACTION_RECURSE | ACTION_FOLLOWLINKS, ++ recursive_action(p[i], ACTION_RECURSE | ++ (option_mask32 & FLAG(no_deref)) ? 0 : ACTION_FOLLOWLINKS, + add_to_dirlist, skip_dir, &list[i], 0); + /* Sort dl alphabetically. + * GNU diff does this ignoring any number of trailing dots. +@@ -966,6 +971,7 @@ static const char diff_longopts[] ALIGN1 = + "report-identical-files\0" No_argument "s" + "starting-file\0" Required_argument "S" + "minimal\0" No_argument "d" ++ "no-dereference\0" No_argument "\xff" + ; + #endif + +-- +2.0.3 + diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD index b69f0d59c4..5341abacae 100644 --- a/main/busybox/APKBUILD +++ b/main/busybox/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=busybox pkgver=1.22.1 -pkgrel=8 +pkgrel=9 pkgdesc="Size optimized toolbox of many common UNIX utilities" url=http://busybox.net arch="all" @@ -32,6 +32,7 @@ source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2 0002-sendmail-use-FQDN-in-default-envelope-sender.patch 0001-linedit-deluser-use-POSIX-getpwent-instead-of-getpwe.patch 0001-top-fix-and-merge-code-to-parse-proc-meminfo.patch + 0001-diff-add-support-for-no-dereference.patch busyboxconfig glibc.patch" @@ -129,6 +130,7 @@ d372d376820957fd5f2aee158af9867e 0001-sendmail-make-f-optional-document-its-def 9d83db6173fe5b0fb8ee6ce741d5bb18 0002-sendmail-use-FQDN-in-default-envelope-sender.patch 239dbe5dae5d36bbf73548b2749a22b1 0001-linedit-deluser-use-POSIX-getpwent-instead-of-getpwe.patch 7cadebb1071d648b947cfbcca9839721 0001-top-fix-and-merge-code-to-parse-proc-meminfo.patch +118f82083ca2c9f8729800b9ee8e1475 0001-diff-add-support-for-no-dereference.patch 5d64c6dc25648854034684b7a15d9a7f busyboxconfig befaac2c59c380e36a452b3f1c1d4a3a glibc.patch" sha256sums="ae0b029d0a9e4dd71a077a790840e496dd838998e4571b87b60fed7462b6678b busybox-1.22.1.tar.bz2 @@ -149,6 +151,7 @@ a31ce8bcb8b81b20e80ffa407600a530d085806c6471f4e4249fcb3a491b79ef busybox-uname- 7c88ef1d837ec8efb7c21e5b1b16e4ac3060ccde7ad5f698e9e6ef630d412593 0002-sendmail-use-FQDN-in-default-envelope-sender.patch ac2cd5fed91bfaec22ed1f2766396d0feb29b9b96f20b2c12d5d8ac8769afae9 0001-linedit-deluser-use-POSIX-getpwent-instead-of-getpwe.patch 79c6e19853a4ceecfec65311e5f8e66033243b8250829c06420d27d8240f1775 0001-top-fix-and-merge-code-to-parse-proc-meminfo.patch +f2b0218c2c77369ce2d0f208dd4222d7552bcffb5e96296452891cdb504adce0 0001-diff-add-support-for-no-dereference.patch 4bbfc462e0455f82f0850e788c53ca36eaf6aec24b285024d3baee8c36533c69 busyboxconfig c604ef791c31d35a8c5ee4558d21428a46f37a6d762c4a7e29864f4037fc44a0 glibc.patch" sha512sums="3e99fe373d638f714c3a61e1b02493d85ca532f472df038f7557db518ded38347072882ed568852941be7aac46fc34007257b4287375335ff5a09b60b295ce80 busybox-1.22.1.tar.bz2 @@ -169,5 +172,6 @@ b1a1cc2ada657a3d3364c8c96853575d73784e769cd8768c170c27a3e59abd2beace75dff6d5047c d466676cd2779ff33f288bb073aa2baa4f3606cf8b96ec514e624a7acb46442a2839ef18c47e19cc18a8234a485de39596773b44e4be2eff39617d7cf677dd38 0002-sendmail-use-FQDN-in-default-envelope-sender.patch 6781b10ca078296b243373d2c3f2bca2507a9df18a6b06d051e9ce84ed31a238aef3b2bb085daf12b145550be68c07c854272bd78a6f77da9197779b9c7cd9e9 0001-linedit-deluser-use-POSIX-getpwent-instead-of-getpwe.patch fa5f7f43bf8030f4bfcdf09d85e2e314014d5a083a24de95ac2e78c15e0dfebc14e410088e7f8eaeb8cdf24dea64e3b665b99afb8f96259e9908eebce81745bc 0001-top-fix-and-merge-code-to-parse-proc-meminfo.patch +8a97605736cb665b74587eda1c0458ffa678c262db677f42999e70ee383a8ec3cc4ab248180843f21f682b7e5483a4859be6b04fdc9a5f3c3ad75a527ad62607 0001-diff-add-support-for-no-dereference.patch ee5221f756efe4d0b3c1296ba94fb14acaeafee49bd49c96fa1f3e4f64abe7902cedf0dd0c2c531e7d9287d8743804284f9e30e569525d16a46e4252da7c0e1b busyboxconfig 1d2739379dab1deb3eae7cffd4845300eb7d30f7343b4a1209b21a5680860d55080ad45fdefe098b249ce3040c01951fa7f0a79cd447b2d7b260eb000099d9dc glibc.patch" |