Skip to contentSkip to conversation

package/lsof: bump to version 4.93.2

PATCH New Baruch Siach 2 participants 2 messages Sep 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lsof: bump to version 4.93.2

New upstream at github. Update homepage link and download site.

Drop the custom extract command; we now get the source tree from github.

Drop patch #2; the code detects rpc support.

Add optional dependency on libtirpc.

---
 package/lsof/0002-noportmap.patch              | 18 ------------------
 ...atch => 0002-remove-susvlegacy-funcs.patch} |  0
 package/lsof/Config.in                         |  2 +-
 package/lsof/lsof.hash                         |  8 ++------
 package/lsof/lsof.mk                           | 17 ++++++-----------
 5 files changed, 9 insertions(+), 36 deletions(-)
 delete mode 100644 package/lsof/0002-noportmap.patch
 rename package/lsof/{0004-remove-susvlegacy-funcs.patch => 0002-remove-susvlegacy-funcs.patch} (100%)
package/lsof/0002-noportmap.patch deleted +0 -18
deleted file mode 100644
index 984e0d8eacc6..000000000000
@@ -1,18 +0,0 @@
---- a/print.c	2006-08-23 13:37:43.000000000 -0600
-+++ b/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
- }
- 
- 
package/lsof/0002-remove-susvlegacy-funcs.patch renamed from package/lsof/0004-remove-susvlegacy-funcs.patch +0 -0
similarity index 100%
rename from package/lsof/0004-remove-susvlegacy-funcs.patch
rename to package/lsof/0002-remove-susvlegacy-funcs.patch
package/lsof/Config.in +1 -1
index c27cc8160ab9..48ceb39a991c 100644
@@ -7,4 +7,4 @@ config BR2_PACKAGE_LSOF
 	  The lsof tool lists information about files opened by
 	  processes.
 
-	  http://people.freebsd.org/~abe/
+	  https://github.com/lsof-org/lsof
package/lsof/lsof.hash +2 -6
index ccb737153d94..c7432ffbe89c 100644
@@ -1,7 +1,3 @@
-# From http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/CHECKSUMS_4.91
-md5 148ed410cb52e08c2adc0c60f480f11f  lsof_4.91.tar.bz2
-# Locally calculated after checking pgp signature
-# http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.91.tar.bz2.sig
-# with (old, weak) key 40BD3D55
-sha256	c9da946a525fbf82ff80090b6d1879c38df090556f3fe0e6d782cb44172450a3	lsof_4.91.tar.bz2
+# Locally calculated
+sha256	3df912bd966fc24dc73ddea3e36a61d79270b21b085936a4caabca56e5b486a2	lsof-4.93.2.tar.gz
 sha256	32a728188b19bf86917659d904ab29d0a294b4506e1c98b8b7f1c70ab4975fe1	dialects/linux/dproto.h
package/lsof/lsof.mk +6 -11
index 58a2d8ef1bcf..939df9dd8dd9 100644
@@ -4,15 +4,17 @@
 #
 ################################################################################
 
-LSOF_VERSION = 4.91
-LSOF_SOURCE = lsof_$(LSOF_VERSION).tar.bz2
-# Use http mirror since master ftp site access is very draconian
-LSOF_SITE = http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof
+LSOF_VERSION = 4.93.2
+LSOF_SITE = $(call github,lsof-org,lsof,$(LSOF_VERSION))
 LSOF_LICENSE = lsof license
 # License is repeated in each file, this is a relatively small one.
 # It is also defined in 00README, but that contains a lot of other cruft.
 LSOF_LICENSE_FILES = dialects/linux/dproto.h
 
+ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
+LSOF_DEPENDENCIES += libtirpc
+endif
+
 ifeq ($(BR2_USE_WCHAR),)
 define LSOF_CONFIGURE_WCHAR_FIXUPS
 	$(SED) 's,^#define[[:space:]]*HASWIDECHAR.*,#undef HASWIDECHAR,' \
@@ -27,13 +29,6 @@ define LSOF_CONFIGURE_LOCALE_FIXUPS
 endef
 endif
 
-# The .tar.bz2 contains another .tar, which contains the source code.
-define LSOF_EXTRACT_CMDS
-	$(call suitable-extractor,$(LSOF_SOURCE)) $(LSOF_DL_DIR)/$(LSOF_SOURCE) | \
-		$(TAR) -O $(TAR_OPTIONS) - lsof_$(LSOF_VERSION)/lsof_$(LSOF_VERSION)_src.tar | \
-	$(TAR) --strip-components=1 -C $(LSOF_DIR) $(TAR_OPTIONS) -
-endef
-
 define LSOF_CONFIGURE_CMDS
 	(cd $(@D) ; \
 		echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS)" \
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 package/lsof: bump to version 4.93.2

Quoted 9 lines · On Wed, 18 Sep 2019 18:07:00 +0300 Baruch Siach <[email protected]> wrote:

New upstream at github. Update homepage link and download site.

Drop the custom extract command; we now get the source tree from github.

Drop patch #2; the code detects rpc support.

Add optional dependency on libtirpc.

Quoted 9 lines
---
 package/lsof/0002-noportmap.patch              | 18 ------------------
 ...atch => 0002-remove-susvlegacy-funcs.patch} |  0
 package/lsof/Config.in                         |  2 +-
 package/lsof/lsof.hash                         |  8 ++------
 package/lsof/lsof.mk                           | 17 ++++++-----------
 5 files changed, 9 insertions(+), 36 deletions(-)
 delete mode 100644 package/lsof/0002-noportmap.patch
 rename package/lsof/{0004-remove-susvlegacy-funcs.patch => 0002-remove-susvlegacy-funcs.patch} (100%)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com