diff options
Diffstat (limited to 'meta/recipes-extended/lsb')
-rw-r--r-- | meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch | 27 | ||||
-rw-r--r-- | meta/recipes-extended/lsb/lsb-release_1.4.bb | 10 |
2 files changed, 32 insertions, 5 deletions
diff --git a/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch b/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch new file mode 100644 index 0000000000..f32cd18370 --- /dev/null +++ b/meta/recipes-extended/lsb/lsb-release/help2man-reproducibility.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | lsb-release maintains it's own copy of help2man. Include the support | ||
2 | for specifying SOURCE_DATE_EPOCH from upstream. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
7 | |||
8 | diff --git a/help2man b/help2man | ||
9 | index 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 index 3e8f7a13ec..00d8183a4f 100644 --- a/meta/recipes-extended/lsb/lsb-release_1.4.bb +++ b/meta/recipes-extended/lsb/lsb-release_1.4.bb | |||
@@ -1,22 +1,22 @@ | |||
1 | SUMMARY = "lsb_release support for OpenEmbedded" | 1 | SUMMARY = "lsb_release support for OpenEmbedded" |
2 | SECTION = "console/utils" | 2 | SECTION = "console/utils" |
3 | HOMEPAGE = "https://sourceforge.net/projects/lsb/files" | 3 | HOMEPAGE = "https://sourceforge.net/projects/lsb/files" |
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPL-2.0-or-later" |
5 | 5 | ||
6 | # lsb_release needs getopt | 6 | # lsb_release needs getopt |
7 | RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_getopt}" | 7 | RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_getopt}" |
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" | 9 | LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" |
10 | 10 | ||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz \ | 11 | SRC_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 \ | 12 | file://0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch \ |
13 | file://0001-Remove-timestamp-from-manpage.patch \ | 13 | file://0001-Remove-timestamp-from-manpage.patch \ |
14 | file://help2man-reproducibility.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4" | ||
17 | SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172" | 17 | SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172" |
18 | 18 | ||
19 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/lsb/files/lsb_release/" | 19 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/lsb/files/lsb_release/" |
20 | UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/" | 20 | UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/" |
21 | 21 | ||
22 | CLEANBROKEN = "1" | 22 | CLEANBROKEN = "1" |
@@ -34,4 +34,4 @@ do_install() { | |||
34 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release | 34 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release |
35 | } | 35 | } |
36 | 36 | ||
37 | FILES_${PN} += "${base_libdir}" | 37 | FILES:${PN} += "${base_libdir}" |