summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-extended/lsb
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz
The poky repository master branch is no longer being updated.
You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r--meta/recipes-extended/lsb/lsb-release/0001-Remove-timestamp-from-manpage.patch27
-rw-r--r--meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch38
-rw-r--r--meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch27
-rw-r--r--meta/recipes-extended/lsb/lsb-release_1.4.bb37
4 files changed, 0 insertions, 129 deletions
diff --git a/meta/recipes-extended/lsb/lsb-release/0001-Remove-timestamp-from-manpage.patch b/meta/recipes-extended/lsb/lsb-release/0001-Remove-timestamp-from-manpage.patch
deleted file mode 100644
index af095fd322..0000000000
--- a/meta/recipes-extended/lsb/lsb-release/0001-Remove-timestamp-from-manpage.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From fb0b58be938bab5571ac0bdec3725f6d88b07e9f Mon Sep 17 00:00:00 2001
2From: Jeremy Puhlman <jpuhlman@mvista.com>
3Date: Sat, 22 Feb 2020 19:01:28 +0000
4Subject: [PATCH] Remove timestamp from manpage
5
6Upstream-Status: Submitted [lsb-discuss@lists.linux-foundation.org]
7Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
8---
9 Makefile | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/Makefile b/Makefile
13index 04fdecd..5be8081 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -17,7 +17,7 @@ man: lsb_release.1.gz
17
18 lsb_release.1.gz: lsb_release
19 @./help2man -N --include ./lsb_release.examples --alt_version_key=program_version ./lsb_release >lsb_release.1
20- @gzip -9f lsb_release.1
21+ @gzip -9fn lsb_release.1
22
23 install: all
24 install -D -m 644 lsb_release.1.gz ${mandir}/man1/lsb_release.1.gz
25--
262.13.3
27
diff --git a/meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch b/meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch
deleted file mode 100644
index 0175752067..0000000000
--- a/meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From cba901945c5a6da9586550498f8e3787c57c3098 Mon Sep 17 00:00:00 2001
2From: Athanasios Oikonomou <athoik@gmail.com>
3Date: Fri, 17 Feb 2017 21:04:04 +0200
4Subject: [PATCH] fix lsb_release to work with busybox head and find
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Athanasios Oikonomou <athoik@gmail.com>
8
9diff --git a/lsb_release b/lsb_release
10index e7d6024..233b8c1 100755
11--- a/lsb_release
12+++ b/lsb_release
13@@ -209,7 +209,7 @@ EASE ($DISTRIB_CODENAME)"
14 || [ -n "$(echo $DISTRIB_DESCRIPTION | \
15 sed -e "s/.*$DESCSTR_DELI.*//")" ]
16 then
17- TMP_DISTRIB_DESC=$(head -1 $FILENAME 2>/dev/null)
18+ TMP_DISTRIB_DESC=$(head -n 1 $FILENAME 2>/dev/null)
19 [ -z "$DISTRIB_DESCRIPTION" ] \
20 && DISTRIB_DESCRIPTION=$TMP_DISTRIB_DESC
21 else
22@@ -249,10 +249,10 @@ GetDistribInfo() {
23 then
24 CHECKFIRST=$(find $INFO_ROOT/ -maxdepth 1 \
25 -name \*$INFO_DISTRIB_SUFFIX \
26- -and ! -name $INFO_LSB_FILE \
27- -and -type f \
28+ -type f \
29 2>/dev/null \
30- | head -1 ) # keep one of the files found (if many)
31+ | grep -v $INFO_LSB_FILE \
32+ | head -n 1 ) # keep one of the files found (if many)
33 fi
34 InitDistribInfo $CHECKFIRST
35 fi
36--
372.1.4
38
diff --git a/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch b/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch
deleted file mode 100644
index f32cd18370..0000000000
--- a/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1lsb-release maintains it's own copy of help2man. Include the support
2for specifying SOURCE_DATE_EPOCH from upstream.
3
4Upstream-Status: Pending
5
6Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
7
8diff --git a/help2man b/help2man
9index 13015c2..63439db 100755
10--- a/help2man
11+++ b/help2man
12@@ -173,7 +173,14 @@ my ($help_text, $version_text) = map {
13 or die "$this_program: can't get `--$_' info from $ARGV[0]\n"
14 } qw(help), $opt_version_key;
15
16-my $date = strftime "%B %Y", localtime;
17+my $epoch_secs = time;
18+if (exists $ENV{SOURCE_DATE_EPOCH} and $ENV{SOURCE_DATE_EPOCH} =~ /^(\d+)$/)
19+{
20+ $epoch_secs = $1;
21+ $ENV{TZ} = 'UTC0';
22+}
23+
24+my $date = strftime "%B %Y", localtime $epoch_secs;
25 (my $program = $ARGV[0]) =~ s!.*/!!;
26 my $package = $program;
27 my $version;
diff --git a/meta/recipes-extended/lsb/lsb-release_1.4.bb b/meta/recipes-extended/lsb/lsb-release_1.4.bb
deleted file mode 100644
index a7039ea4d1..0000000000
--- a/meta/recipes-extended/lsb/lsb-release_1.4.bb
+++ /dev/null
@@ -1,37 +0,0 @@
1SUMMARY = "lsb_release support for OpenEmbedded"
2SECTION = "console/utils"
3HOMEPAGE = "https://sourceforge.net/projects/lsb/files"
4LICENSE = "GPL-2.0-or-later"
5
6# lsb_release needs getopt
7RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_getopt}"
8
9LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz \
12 file://0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch \
13 file://0001-Remove-timestamp-from-manpage.patch \
14 file://help2man-reproducibility.patch \
15 "
16
17SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172"
18
19UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/lsb/files/lsb_release/"
20UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/"
21
22CLEANBROKEN = "1"
23
24do_install() {
25 oe_runmake install prefix=${D}${root_prefix} mandir=${D}${datadir}/man/ DESTDIR=${D}
26
27 mkdir -p ${D}${sysconfdir}/lsb-release.d
28
29 echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release
30 echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release
31 if [ -n "${DISTRO_CODENAME}" ]; then
32 echo "DISTRIB_CODENAME=\"${DISTRO_CODENAME}\"" >> ${D}${sysconfdir}/lsb-release
33 fi
34 echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release
35}
36
37FILES:${PN} += "${base_libdir}"