lsof: update to 4.94.0 14019/head
authorRosen Penev <rosenp@gmail.com>
Wed, 25 Nov 2020 04:32:19 +0000 (20:32 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 25 Nov 2020 06:38:19 +0000 (22:38 -0800)
Upstream switched to GitHub and changed their tarball. Adjusted.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/lsof/Makefile
utils/lsof/patches/002-lsof_noportmap.patch
utils/lsof/patches/003-lsof_selinux.patch
utils/lsof/patches/004-lsof_ccv.patch
utils/lsof/patches/005-reproducable-build.patch [deleted file]

index 30d3276872fc472a323e455bda5449bbd673b217..a49b053c49025105e30a4f6a6cc27c6f6bd73c9e 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=lsof
-PKG_VERSION:=4.91
+PKG_VERSION:=4.94.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/ ftp://ftp.fu-berlin.de/pub/unix/tools/lsof
-PKG_HASH:=c9da946a525fbf82ff80090b6d1879c38df090556f3fe0e6d782cb44172450a3
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).linux.tar.bz2
+PKG_SOURCE_URL:=https://github.com/lsof-org/lsof/releases/download/$(PKG_VERSION)
+PKG_HASH:=c41709c2543ecf9de1e950795790a9786a2f225e51c3cc53d6a9a256f872472b
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION).linux
 
 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
 PKG_LICENSE:=Unique
@@ -40,12 +40,6 @@ endif
 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc
 TARGET_LDFLAGS += -ltirpc
 
-define Build/Prepare
-       $(PKG_UNPACK)
-       (cd $(PKG_BUILD_DIR) && tar -xf $(PKG_NAME)_$(PKG_VERSION)_src.tar && mv $(PKG_NAME)_$(PKG_VERSION)_src/* .)
-       $(Build/Patch)
-endef
-
 define Build/Configure
        $(SED) 's/rpc\/rpc/\/tirpc\/rpc\/rpc/g' $(PKG_BUILD_DIR)/Configure
        cd $(PKG_BUILD_DIR); \
index d0e88893c6939c276ceb7e04322089f0f190ea33..825f255b76048e5dc3e95cd0de31e09ff453e468 100644 (file)
@@ -1,6 +1,6 @@
 --- a/print.c
 +++ b/print.c
-@@ -161,6 +161,7 @@ endnm(sz)
+@@ -160,6 +160,7 @@ endnm(sz)
  static void
  fill_portmap()
  {
@@ -8,7 +8,7 @@
        char buf[128], *cp, *nm;
        CLIENT *c;
        int h, port, pr;
-@@ -279,6 +280,7 @@ fill_portmap()
+@@ -278,6 +279,7 @@ fill_portmap()
            Pth[pr][h] = pt;
        }
        clnt_destroy(c);
index 0aafec8d10986e2a9ef583729119f73cb81d88ba..ee1426d1220793eb37f9f1732b7c04689c591346 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/Configure b/Configure
-index e4a25a2..3a6e78b 100755
 --- a/Configure
 +++ b/Configure
-@@ -2976,7 +2976,7 @@ return(0); }
+@@ -2991,7 +2991,7 @@ return(0); }
        LSOF_TMP1=1
        fi      # }
      fi        # }
index e0b4f27185c75b7d575a7b108f3133a19f6502ce..1f4e57c5282c1de31acfa356c058efae53364429 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/Configure b/Configure
-index 3a6e78b..a2946c6 100755
 --- a/Configure
 +++ b/Configure
-@@ -2841,6 +2841,9 @@ LOCKF_OWNER4
+@@ -2850,6 +2850,9 @@ LOCKF_OWNER4
      if test "X$LSOF_CC" = "X" # {
      then
        LSOF_CC=cc
diff --git a/utils/lsof/patches/005-reproducable-build.patch b/utils/lsof/patches/005-reproducable-build.patch
deleted file mode 100644 (file)
index 1e4ab15..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/dialects/linux/Makefile b/dialects/linux/Makefile
-index 2bea108..ed8382e 100644
---- a/dialects/linux/Makefile
-+++ b/dialects/linux/Makefile
-@@ -78,8 +78,8 @@ version.h:   FRC
-       @echo '#define  LSOF_BLDCMT     "${LSOF_BLDCMT}"' > version.h;
-       @echo '#define  LSOF_CC         "${CC}"' >> version.h
-       @echo '#define  LSOF_CCV        "${CCV}"' >> version.h
--      @echo '#define  LSOF_CCDATE     "'`date`'"' >> version.h
--      @echo '#define  LSOF_CCFLAGS    "'`echo ${CFLAGS} | sed 's/\\\\(/\\(/g' | sed 's/\\\\)/\\)/g' | sed 's/"/\\\\"/g'`'"' >> version.h
-+      @echo '#define  LSOF_CCDATE     "'`date -d @${SOURCE_DATE_EPOCH}`'"' >> version.h
-+      @echo '#define  LSOF_CCFLAGS    ""' >> version.h
-       @echo '#define  LSOF_CINFO      "${CINFO}"' >> version.h
-       @if [ "X${LSOF_HOST}" = "X" ]; then \
-         echo '#define LSOF_HOST       "'`uname -n`'"' >> version.h; \
-@@ -90,7 +90,7 @@ version.h:   FRC
-           echo '#define       LSOF_HOST       "${LSOF_HOST}"' >> version.h; \
-         fi \
-       fi
--      @echo '#define  LSOF_LDFLAGS    "${CFGL}"' >> version.h
-+      @echo '#define  LSOF_LDFLAGS    ""' >> version.h
-       @if [ "X${LSOF_LOGNAME}" = "X" ]; then \
-         echo '#define LSOF_LOGNAME    "${LOGNAME}"' >> version.h; \
-       else \