summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-03-06 07:42:15 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-07 17:25:02 +0000
commit71c2eb3ac9b0cfd26fc6f481dc1f86634ffe7387 (patch)
tree3e853196e5e34044f7a0a12cf5116e7073c3f507 /meta/recipes-extended
parent3a20168e703743aef276dba7d382defd39d49ecc (diff)
downloadpoky-71c2eb3ac9b0cfd26fc6f481dc1f86634ffe7387.tar.gz
lsof: upgrade 4.98.0 -> 4.99.3
Convert from handcrafted makefiles to autotools (added in 4.97.0). (From OE-Core rev: c86b575446699864c102dd0408ebe58b5729881c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/lsof/files/remove-host-information.patch44
-rw-r--r--meta/recipes-extended/lsof/lsof_4.98.0.bb48
-rw-r--r--meta/recipes-extended/lsof/lsof_4.99.3.bb23
3 files changed, 63 insertions, 52 deletions
diff --git a/meta/recipes-extended/lsof/files/remove-host-information.patch b/meta/recipes-extended/lsof/files/remove-host-information.patch
index fb90366ffa..1f2b4afa69 100644
--- a/meta/recipes-extended/lsof/files/remove-host-information.patch
+++ b/meta/recipes-extended/lsof/files/remove-host-information.patch
@@ -1,14 +1,50 @@
1From 4f05492ac07a7bbaf06dd8265b9cba329e1b53e9 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Wed, 30 Aug 2017 15:05:16 +0800
4Subject: [PATCH] lsof: remove host information from version.h
5
1lsof doesn't embed the username or hostname in the build if SOURCE_DATE_EPOCH is 6lsof doesn't embed the username or hostname in the build if SOURCE_DATE_EPOCH is
2defined, but this still embeds build paths. Delete all of the host details to 7defined, but this still embeds build paths. Delete all of the host details to
3ensure that no host information is leaked into the binary. 8ensure that no host information is leaked into the binary.
4 9
5Upstream-Status: Inappropriate 10Upstream-Status: Inappropriate
6Signed-off-by: Ross Burton <ross.burton@arm.com> 11Signed-off-by: Ross Burton <ross.burton@arm.com>
12Signed-off-by: Alexander Kanavin <alex@linutronix.de>
13---
14 autotools/version.h.in | 16 ++++-----
15 lib/dialects/linux/Makefile | 69 ++++++-------------------------------
16 2 files changed, 19 insertions(+), 66 deletions(-)
7 17
8diff --git a/dialects/linux/Makefile b/dialects/linux/Makefile 18diff --git a/autotools/version.h.in b/autotools/version.h.in
9index 176a4c2..ef5a633 100644 19index aac0b80..2e635a5 100644
10--- a/dialects/linux/Makefile 20--- a/autotools/version.h.in
11+++ b/dialects/linux/Makefile 21+++ b/autotools/version.h.in
22@@ -37,13 +37,13 @@
23
24 #include "config.h"
25 #define LSOF_VERSION PACKAGE_VERSION
26-#define LSOF_HOST "@host@"
27-#define LSOF_LOGNAME "@logname@"
28-#define LSOF_USER "@user@"
29-#define LSOF_CC "@cc@"
30-#define LSOF_CCV "@ccv@"
31-#define LSOF_CCFLAGS "@ccflags@"
32-#define LSOF_LDFLAGS "@ldflags@"
33-#define LSOF_SYSINFO "@sysinfo@"
34+#define LSOF_HOST ""
35+#define LSOF_LOGNAME ""
36+#define LSOF_USER ""
37+#define LSOF_CC ""
38+#define LSOF_CCV ""
39+#define LSOF_CCFLAGS ""
40+#define LSOF_LDFLAGS ""
41+#define LSOF_SYSINFO ""
42
43 #endif
44diff --git a/lib/dialects/linux/Makefile b/lib/dialects/linux/Makefile
45index f8adaa6..7a79ca7 100644
46--- a/lib/dialects/linux/Makefile
47+++ b/lib/dialects/linux/Makefile
12@@ -83,64 +83,17 @@ ${LIB}: FRC 48@@ -83,64 +83,17 @@ ${LIB}: FRC
13 version.h: FRC 49 version.h: FRC
14 @echo Constructing version.h 50 @echo Constructing version.h
diff --git a/meta/recipes-extended/lsof/lsof_4.98.0.bb b/meta/recipes-extended/lsof/lsof_4.98.0.bb
deleted file mode 100644
index 835ce3b8df..0000000000
--- a/meta/recipes-extended/lsof/lsof_4.98.0.bb
+++ /dev/null
@@ -1,48 +0,0 @@
1SUMMARY = "LiSt Open Files tool"
2DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \
3Its name stands for LiSt Open Files, and it does just that."
4HOMEPAGE = "http://people.freebsd.org/~abe/"
5SECTION = "devel"
6LICENSE = "Spencer-94"
7LIC_FILES_CHKSUM = "file://COPYING;md5=a48ac97a8550eff12395a2c0d6151510"
8
9SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \
10 file://remove-host-information.patch"
11SRCREV = "546eb1c9910e7c137fdff551683c35a736021e05"
12
13S = "${WORKDIR}/git"
14
15
16inherit update-alternatives
17
18ALTERNATIVE:${PN} = "lsof"
19ALTERNATIVE_LINK_NAME[lsof] = "${sbindir}/lsof"
20# Make our priority higher than busybox
21ALTERNATIVE_PRIORITY = "100"
22
23
24export LSOF_INCLUDE = "${STAGING_INCDIR}"
25
26do_configure () {
27 export LSOF_AR="${AR} cr"
28 export LSOF_RANLIB="${RANLIB}"
29 if [ "x${GLIBCVERSION}" != "x" ]; then
30 LINUX_CLIB=`echo ${GLIBCVERSION} |sed -e 's,\.,,g'`
31 LINUX_CLIB="-DGLIBCV=${LINUX_CLIB}"
32 export LINUX_CLIB
33 fi
34 yes | ./Configure linux
35}
36
37export I = "${STAGING_INCDIR}"
38export L = "${STAGING_INCDIR}"
39
40do_compile () {
41 oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS} -I..'
42}
43
44do_install () {
45 install -d ${D}${sbindir} ${D}${mandir}/man8
46 install -m 0755 lsof ${D}${sbindir}/lsof
47 install -m 0644 Lsof.8 ${D}${mandir}/man8/lsof.8
48}
diff --git a/meta/recipes-extended/lsof/lsof_4.99.3.bb b/meta/recipes-extended/lsof/lsof_4.99.3.bb
new file mode 100644
index 0000000000..93e91fb427
--- /dev/null
+++ b/meta/recipes-extended/lsof/lsof_4.99.3.bb
@@ -0,0 +1,23 @@
1SUMMARY = "LiSt Open Files tool"
2DESCRIPTION = "Lsof is a Unix-specific diagnostic tool. \
3Its name stands for LiSt Open Files, and it does just that."
4HOMEPAGE = "http://people.freebsd.org/~abe/"
5SECTION = "devel"
6LICENSE = "Spencer-94"
7LIC_FILES_CHKSUM = "file://COPYING;md5=a48ac97a8550eff12395a2c0d6151510"
8
9SRC_URI = "git://github.com/lsof-org/lsof;branch=master;protocol=https \
10 file://remove-host-information.patch"
11SRCREV = "2e4c7a1a9bc7258dc5b6a3ab28ebca44174279a8"
12
13S = "${WORKDIR}/git"
14
15inherit update-alternatives autotools pkgconfig manpages
16PACKAGECONFIG[manpages] = ""
17
18DEPENDS += "groff-native"
19
20ALTERNATIVE:${PN} = "lsof"
21ALTERNATIVE_LINK_NAME[lsof] = "${bindir}/lsof"
22# Make our priority higher than busybox
23ALTERNATIVE_PRIORITY = "100"