diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-08 12:24:48 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-08 12:24:48 +0100 |
commit | 548620c18b1f0988dbeab1009788daf9f002e927 (patch) | |
tree | 3bfb327ed325f7aa869f51fe639e15811f3c556c | |
parent | 4051a99f5fe4b1e1914e26924d166a629bf3c71e (diff) | |
download | busybox-w32-548620c18b1f0988dbeab1009788daf9f002e927.tar.gz busybox-w32-548620c18b1f0988dbeab1009788daf9f002e927.tar.bz2 busybox-w32-548620c18b1f0988dbeab1009788daf9f002e927.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/bbunzip.c | 7 | ||||
-rw-r--r-- | archival/libarchive/Kbuild.src | 9 | ||||
-rw-r--r-- | include/libbb.h | 12 | ||||
-rw-r--r-- | libbb/Kbuild.src | 5 | ||||
-rw-r--r-- | runit/sv.c | 2 |
5 files changed, 30 insertions, 5 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index 7d5402e8d..d5db4627f 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -9,6 +9,8 @@ | |||
9 | 9 | ||
10 | /* lzop_main() uses bbunpack(), need this: */ | 10 | /* lzop_main() uses bbunpack(), need this: */ |
11 | //kbuild:lib-$(CONFIG_LZOP) += bbunzip.o | 11 | //kbuild:lib-$(CONFIG_LZOP) += bbunzip.o |
12 | /* bzip2_main() too: */ | ||
13 | //kbuild:lib-$(CONFIG_BZIP2) += bbunzip.o | ||
12 | 14 | ||
13 | /* Note: must be kept in sync with archival/lzop.c */ | 15 | /* Note: must be kept in sync with archival/lzop.c */ |
14 | enum { | 16 | enum { |
@@ -190,7 +192,10 @@ int FAST_FUNC bbunpack(char **argv, | |||
190 | return exitcode; | 192 | return exitcode; |
191 | } | 193 | } |
192 | 194 | ||
193 | #if ENABLE_UNCOMPRESS || ENABLE_BUNZIP2 || ENABLE_UNLZMA || ENABLE_UNXZ | 195 | #if ENABLE_UNCOMPRESS \ |
196 | || ENABLE_BUNZIP2 || ENABLE_BZCAT \ | ||
197 | || ENABLE_UNLZMA || ENABLE_LZCAT || ENABLE_LZMA \ | ||
198 | || ENABLE_UNXZ || ENABLE_XZCAT || ENABLE_XZ | ||
194 | static | 199 | static |
195 | char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext) | 200 | char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext) |
196 | { | 201 | { |
diff --git a/archival/libarchive/Kbuild.src b/archival/libarchive/Kbuild.src index b159a786a..ad5c5c42d 100644 --- a/archival/libarchive/Kbuild.src +++ b/archival/libarchive/Kbuild.src | |||
@@ -48,16 +48,23 @@ lib-$(CONFIG_CPIO) += get_header_cpio.o | |||
48 | lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o | 48 | lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o |
49 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o | 49 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o |
50 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o | 50 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
51 | lib-$(CONFIG_UNLZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o | ||
52 | lib-$(CONFIG_LZOPCAT) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o | ||
51 | lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o | 53 | lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o |
52 | lib-$(CONFIG_BUNZIP2) += open_transformer.o decompress_bunzip2.o | 54 | lib-$(CONFIG_BUNZIP2) += open_transformer.o decompress_bunzip2.o |
55 | lib-$(CONFIG_BZCAT) += open_transformer.o decompress_bunzip2.o | ||
53 | lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o | 56 | lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o |
57 | lib-$(CONFIG_LZCAT) += open_transformer.o decompress_unlzma.o | ||
58 | lib-$(CONFIG_LZMA) += open_transformer.o decompress_unlzma.o | ||
54 | lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o | 59 | lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o |
60 | lib-$(CONFIG_XZCAT) += open_transformer.o decompress_unxz.o | ||
61 | lib-$(CONFIG_XZ) += open_transformer.o decompress_unxz.o | ||
55 | lib-$(CONFIG_GUNZIP) += open_transformer.o decompress_gunzip.o | 62 | lib-$(CONFIG_GUNZIP) += open_transformer.o decompress_gunzip.o |
63 | lib-$(CONFIG_ZCAT) += open_transformer.o decompress_gunzip.o | ||
56 | lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o | 64 | lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o |
57 | lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o | 65 | lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o |
58 | lib-$(CONFIG_RPM2CPIO) += open_transformer.o decompress_gunzip.o get_header_cpio.o | 66 | lib-$(CONFIG_RPM2CPIO) += open_transformer.o decompress_gunzip.o get_header_cpio.o |
59 | lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o | 67 | lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o |
60 | |||
61 | lib-$(CONFIG_GZIP) += open_transformer.o | 68 | lib-$(CONFIG_GZIP) += open_transformer.o |
62 | lib-$(CONFIG_BZIP2) += open_transformer.o | 69 | lib-$(CONFIG_BZIP2) += open_transformer.o |
63 | lib-$(CONFIG_LZOP) += open_transformer.o | 70 | lib-$(CONFIG_LZOP) += open_transformer.o |
diff --git a/include/libbb.h b/include/libbb.h index bdafcf5a6..a42a2fba8 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1191,8 +1191,16 @@ int bb_cat(char** argv); | |||
1191 | /* If shell needs them, they exist even if not enabled as applets */ | 1191 | /* If shell needs them, they exist even if not enabled as applets */ |
1192 | int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE); | 1192 | int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE); |
1193 | int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE); | 1193 | int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE); |
1194 | int test_main(int argc, char **argv) IF_TEST(MAIN_EXTERNALLY_VISIBLE); | 1194 | int test_main(int argc, char **argv) |
1195 | int kill_main(int argc, char **argv) IF_KILL(MAIN_EXTERNALLY_VISIBLE); | 1195 | #if ENABLE_TEST || ENABLE_TEST1 || ENABLE_TEST2 |
1196 | MAIN_EXTERNALLY_VISIBLE | ||
1197 | #endif | ||
1198 | ; | ||
1199 | int kill_main(int argc, char **argv) | ||
1200 | #if ENABLE_KILL || ENABLE_KILLALL || ENABLE_KILLALL5 | ||
1201 | MAIN_EXTERNALLY_VISIBLE | ||
1202 | #endif | ||
1203 | ; | ||
1196 | /* Similar, but used by chgrp, not shell */ | 1204 | /* Similar, but used by chgrp, not shell */ |
1197 | int chown_main(int argc, char **argv) IF_CHOWN(MAIN_EXTERNALLY_VISIBLE); | 1205 | int chown_main(int argc, char **argv) IF_CHOWN(MAIN_EXTERNALLY_VISIBLE); |
1198 | /* Used by ftpd */ | 1206 | /* Used by ftpd */ |
diff --git a/libbb/Kbuild.src b/libbb/Kbuild.src index 52a90e9a1..7440974b0 100644 --- a/libbb/Kbuild.src +++ b/libbb/Kbuild.src | |||
@@ -132,6 +132,7 @@ lib-$(CONFIG_TFTPD) += udp_io.o | |||
132 | lib-$(CONFIG_TCPSVD) += udp_io.o | 132 | lib-$(CONFIG_TCPSVD) += udp_io.o |
133 | lib-$(CONFIG_UDPSVD) += udp_io.o | 133 | lib-$(CONFIG_UDPSVD) += udp_io.o |
134 | lib-$(CONFIG_TRACEROUTE) += udp_io.o | 134 | lib-$(CONFIG_TRACEROUTE) += udp_io.o |
135 | lib-$(CONFIG_TRACEROUTE6) += udp_io.o | ||
135 | 136 | ||
136 | lib-$(CONFIG_LOSETUP) += loop.o | 137 | lib-$(CONFIG_LOSETUP) += loop.o |
137 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o | 138 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o |
@@ -156,6 +157,7 @@ lib-$(CONFIG_FEATURE_FTP_AUTHENTICATION) += pw_encrypt.o | |||
156 | lib-$(CONFIG_DF) += find_mount_point.o | 157 | lib-$(CONFIG_DF) += find_mount_point.o |
157 | lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o | 158 | lib-$(CONFIG_MKFS_MINIX) += find_mount_point.o |
158 | lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o | 159 | lib-$(CONFIG_MKFS_EXT2) += find_mount_point.o |
160 | lib-$(CONFIG_MKE2FS) += find_mount_point.o | ||
159 | lib-$(CONFIG_MKFS_REISER) += find_mount_point.o | 161 | lib-$(CONFIG_MKFS_REISER) += find_mount_point.o |
160 | lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o | 162 | lib-$(CONFIG_FSCK_MINIX) += find_mount_point.o |
161 | lib-$(CONFIG_MOUNT) += find_mount_point.o | 163 | lib-$(CONFIG_MOUNT) += find_mount_point.o |
@@ -168,6 +170,7 @@ lib-$(CONFIG_MPSTAT) += get_cpu_count.o | |||
168 | lib-$(CONFIG_POWERTOP) += get_cpu_count.o | 170 | lib-$(CONFIG_POWERTOP) += get_cpu_count.o |
169 | 171 | ||
170 | lib-$(CONFIG_PING) += inet_cksum.o | 172 | lib-$(CONFIG_PING) += inet_cksum.o |
173 | lib-$(CONFIG_PING6) += inet_cksum.o | ||
171 | lib-$(CONFIG_TRACEROUTE) += inet_cksum.o | 174 | lib-$(CONFIG_TRACEROUTE) += inet_cksum.o |
172 | lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o | 175 | lib-$(CONFIG_TRACEROUTE6) += inet_cksum.o |
173 | lib-$(CONFIG_UDHCPC) += inet_cksum.o | 176 | lib-$(CONFIG_UDHCPC) += inet_cksum.o |
@@ -181,6 +184,8 @@ lib-$(CONFIG_UDHCPD) += inet_cksum.o | |||
181 | lib-$(CONFIG_AWK) += xregcomp.o | 184 | lib-$(CONFIG_AWK) += xregcomp.o |
182 | lib-$(CONFIG_SED) += xregcomp.o | 185 | lib-$(CONFIG_SED) += xregcomp.o |
183 | lib-$(CONFIG_GREP) += xregcomp.o | 186 | lib-$(CONFIG_GREP) += xregcomp.o |
187 | lib-$(CONFIG_EGREP) += xregcomp.o | ||
188 | lib-$(CONFIG_FGREP) += xregcomp.o | ||
184 | lib-$(CONFIG_EXPR) += xregcomp.o | 189 | lib-$(CONFIG_EXPR) += xregcomp.o |
185 | lib-$(CONFIG_MDEV) += xregcomp.o | 190 | lib-$(CONFIG_MDEV) += xregcomp.o |
186 | lib-$(CONFIG_LESS) += xregcomp.o | 191 | lib-$(CONFIG_LESS) += xregcomp.o |
diff --git a/runit/sv.c b/runit/sv.c index 71865bd4f..9e2132259 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -175,7 +175,7 @@ Exit Codes | |||
175 | //config: It is comaptible with daemontools command with the same name. | 175 | //config: It is comaptible with daemontools command with the same name. |
176 | 176 | ||
177 | //applet:IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) | 177 | //applet:IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) |
178 | //applet:IF_SV(APPLET(svc, BB_DIR_USR_BIN, BB_SUID_DROP)) | 178 | //applet:IF_SVC(APPLET(svc, BB_DIR_USR_BIN, BB_SUID_DROP)) |
179 | 179 | ||
180 | //kbuild:lib-$(CONFIG_SV) += sv.o | 180 | //kbuild:lib-$(CONFIG_SV) += sv.o |
181 | //kbuild:lib-$(CONFIG_SVC) += sv.o | 181 | //kbuild:lib-$(CONFIG_SVC) += sv.o |