fixup lsof so it will apply patches, and compile when rpc is disabled
This commit is contained in:
parent
cc352925b4
commit
6e17ffbaa2
18
package/lsof/lsof-noportmap.patch
Normal file
18
package/lsof/lsof-noportmap.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- lsof_4.77/lsof_4.77_src/print.orig.c 2006-08-23 13:37:43.000000000 -0600
|
||||||
|
+++ lsof_4.77/lsof_4.77_src/print.c 2006-08-23 13:38:29.000000000 -0600
|
||||||
|
@@ -148,6 +148,7 @@
|
||||||
|
static void
|
||||||
|
fill_portmap()
|
||||||
|
{
|
||||||
|
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_RPC__)
|
||||||
|
char buf[128], *cp, *nm;
|
||||||
|
CLIENT *c;
|
||||||
|
int h, port, pr;
|
||||||
|
@@ -266,6 +267,7 @@
|
||||||
|
Pth[pr][h] = pt;
|
||||||
|
}
|
||||||
|
clnt_destroy(c);
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ lsof-unpacked: $(LSOF_DIR)/.unpacked
|
||||||
$(LSOF_DIR)/.unpacked: $(DL_DIR)/$(LSOF_SOURCE)
|
$(LSOF_DIR)/.unpacked: $(DL_DIR)/$(LSOF_SOURCE)
|
||||||
$(LSOF_CAT) $(DL_DIR)/$(LSOF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(LSOF_CAT) $(DL_DIR)/$(LSOF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
(cd $(LSOF_DIR);tar xf lsof_4.77_src.tar;rm -f lsof_4.77_src.tar)
|
(cd $(LSOF_DIR);tar xf lsof_4.77_src.tar;rm -f lsof_4.77_src.tar)
|
||||||
|
toolchain/patch-kernel.sh $(LSOF_DIR) package/lsof/ *.patch
|
||||||
touch $(LSOF_DIR)/.unpacked
|
touch $(LSOF_DIR)/.unpacked
|
||||||
|
|
||||||
$(LSOF_DIR)/.configured: $(LSOF_DIR)/.unpacked
|
$(LSOF_DIR)/.configured: $(LSOF_DIR)/.unpacked
|
||||||
|
|
Loading…
Reference in New Issue
Block a user