* [Buildroot] [PATCH] package/lsof: bump to version 4.93.2
@ 2019-09-18 15:07 Baruch Siach
2019-09-18 15:51 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2019-09-18 15:07 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
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%)
diff --git a/package/lsof/0002-noportmap.patch b/package/lsof/0002-noportmap.patch
deleted file mode 100644
index 984e0d8eacc6..000000000000
--- a/package/lsof/0002-noportmap.patch
+++ /dev/null
@@ -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
- }
-
-
diff --git a/package/lsof/0004-remove-susvlegacy-funcs.patch b/package/lsof/0002-remove-susvlegacy-funcs.patch
similarity index 100%
rename from package/lsof/0004-remove-susvlegacy-funcs.patch
rename to package/lsof/0002-remove-susvlegacy-funcs.patch
diff --git a/package/lsof/Config.in b/package/lsof/Config.in
index c27cc8160ab9..48ceb39a991c 100644
--- a/package/lsof/Config.in
+++ b/package/lsof/Config.in
@@ -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
diff --git a/package/lsof/lsof.hash b/package/lsof/lsof.hash
index ccb737153d94..c7432ffbe89c 100644
--- a/package/lsof/lsof.hash
+++ b/package/lsof/lsof.hash
@@ -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
diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk
index 58a2d8ef1bcf..939df9dd8dd9 100644
--- a/package/lsof/lsof.mk
+++ b/package/lsof/lsof.mk
@@ -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)" \
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/lsof: bump to version 4.93.2
2019-09-18 15:07 [Buildroot] [PATCH] package/lsof: bump to version 4.93.2 Baruch Siach
@ 2019-09-18 15:51 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-09-18 15:51 UTC (permalink / raw)
To: buildroot
On Wed, 18 Sep 2019 18:07:00 +0300
Baruch Siach <baruch@tkos.co.il> 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.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> 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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-18 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-18 15:07 [Buildroot] [PATCH] package/lsof: bump to version 4.93.2 Baruch Siach
2019-09-18 15:51 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox