sysfsutils: fetch a supported fork from github
PATCH 1/3 sysfsutils: fetch a supported fork from github
From: Alexander Kanavin <[email protected]>
Debian does the same:
https://packages.debian.org/source/sid/sysfsutils
--- meta/recipes-core/sysfsutils/sysfsutils_2.1.0.bb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
meta/recipes-core/sysfsutils/sysfsutils_2.1.0.bb +3 -7
@@ -10,18 +10,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3d06403ea54c7574a9e581c6478cc393 \ file://lib/LGPL;md5=b75d069791103ffe1c0d6435deeff72e" PR = "r5" -SRC_URI = "${SOURCEFORGE_MIRROR}/linux-diag/sysfsutils-${PV}.tar.gz \ +SRC_URI = "git://github.com/linux-ras/sysfsutils.git;protocol=https;branch=master \ file://sysfsutils-2.0.0-class-dup.patch \ file://obsolete_automake_macros.patch \ file://separatebuild.patch" -SRC_URI[md5sum] = "14e7dcd0436d2f49aa403f67e1ef7ddc" -SRC_URI[sha256sum] = "e865de2c1f559fff0d3fc936e660c0efaf7afe662064f2fb97ccad1ec28d208a" +SRCREV = "0d5456e1c9d969cdad6accef2ae2d4881d5db085" -UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/linux-diag/files/sysfsutils/" -UPSTREAM_CHECK_REGEX = "/sysfsutils/(?P<pver>(\d+[\.\-_]*)+)/" - -S = "${WORKDIR}/sysfsutils-${PV}" +S = "${WORKDIR}/git" inherit autotools
Signature · 1 line
2.34.1
PATCH 2/3 sysfsutils: update 2.1.0 -> 2.1.1
From: Alexander Kanavin <[email protected]>
Drop all patches, as issues are all fixed upstream.
License-Update: clarification that GPL applies to all executables (not just test), formatting.
---
.../obsolete_automake_macros.patch | 15 -----
.../sysfsutils-2.1.0/separatebuild.patch | 65 -------------------
.../sysfsutils-2.0.0-class-dup.patch | 23 -------
...ysfsutils_2.1.0.bb => sysfsutils_2.1.1.bb} | 14 ++--
4 files changed, 5 insertions(+), 112 deletions(-)
delete mode 100644 meta/recipes-core/sysfsutils/sysfsutils-2.1.0/obsolete_automake_macros.patch
delete mode 100644 meta/recipes-core/sysfsutils/sysfsutils-2.1.0/separatebuild.patch
delete mode 100644 meta/recipes-core/sysfsutils/sysfsutils-2.1.0/sysfsutils-2.0.0-class-dup.patch
rename meta/recipes-core/sysfsutils/{sysfsutils_2.1.0.bb => sysfsutils_2.1.1.bb} (55%)meta/recipes-core/sysfsutils/sysfsutils-2.1.0/obsolete_automake_macros.patch deleted +0 -15
@@ -1,15 +0,0 @@ -Upstream-Status: Submitted [http://sourceforge.net/tracker/?func=detail&aid=3600345&group_id=44427&atid=439544] - -Signed-off-by: Marko Lindqvist <[email protected]> -diff -Nurd sysfsutils-2.1.0/configure.ac sysfsutils-2.1.0/configure.ac ---- sysfsutils-2.1.0/configure.ac 2006-08-07 08:08:00.000000000 +0300 -+++ sysfsutils-2.1.0/configure.ac 2013-01-11 08:13:08.651550634 +0200 -@@ -2,7 +2,7 @@ - AC_INIT(sysfsutils, 2.1.0, [email protected]) - AM_INIT_AUTOMAKE - AC_CONFIG_SRCDIR([config.h.in]) --AM_CONFIG_HEADER([config.h]) -+AC_CONFIG_HEADERS([config.h]) - - # Checks for KLIBC support (should be before AC_PROG_LIBTOOL and AC_PROG_CC) - AC_CHECK_KLIBC
meta/recipes-core/sysfsutils/sysfsutils-2.1.0/separatebuild.patch deleted +0 -65
65 lines not on this page · raw message
meta/recipes-core/sysfsutils/sysfsutils-2.1.0/sysfsutils-2.0.0-class-dup.patch deleted +0 -23
@@ -1,23 +0,0 @@ -Upstream-Status: Backport [from fedora core 9] - -This patch is from the Fedora Core 9 sysfsutils-2.1.0-3.fc9 package. - -It fixes a problem in the upstream package where not all devices -will be returned by the function. - -The package License indicates this is GPLv2 licensed. - -Signed-off-by: Mark Hatle <[email protected]> - -diff -puN lib/sysfs_class.c~sysfsutils_class_dup lib/sysfs_class.c ---- sysfsutils-2.1.0/lib/sysfs_class.c~sysfsutils_class_dup 2006-09-07 17:01:26.000000000 -0500 -+++ sysfsutils-2.1.0-bjking1/lib/sysfs_class.c 2006-09-07 17:01:26.000000000 -0500 -@@ -66,7 +66,7 @@ static int cdev_name_equal(void *a, void - return 0; - - if (strncmp((char *)a, ((struct sysfs_class_device *)b)->name, -- strlen((char *)a)) == 0) -+ SYSFS_NAME_LEN) == 0) - return 1; - - return 0;
meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb renamed from meta/recipes-core/sysfsutils/sysfsutils_2.1.0.bb +5 -9
@@ -5,17 +5,13 @@ HOMEPAGE = "http://linux-diag.sourceforge.net/Sysfsutils.html" LICENSE = "GPL-2.0-only & LGPL-2.1-only" LICENSE:${PN} = "GPL-2.0-only" LICENSE:libsysfs = "LGPL-2.1-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=3d06403ea54c7574a9e581c6478cc393 \ - file://cmd/GPL;md5=d41d4e2e1e108554e0388ea4aecd8d27 \ - file://lib/LGPL;md5=b75d069791103ffe1c0d6435deeff72e" -PR = "r5" +LIC_FILES_CHKSUM = "file://COPYING;md5=dcc19fa9307a50017fca61423a7d9754 \ + file://cmd/GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://lib/LGPL;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "git://github.com/linux-ras/sysfsutils.git;protocol=https;branch=master \ - file://sysfsutils-2.0.0-class-dup.patch \ - file://obsolete_automake_macros.patch \ - file://separatebuild.patch" +SRC_URI = "git://github.com/linux-ras/sysfsutils.git;protocol=https;branch=master" -SRCREV = "0d5456e1c9d969cdad6accef2ae2d4881d5db085" +SRCREV = "da2f1f8500c0af6663a56ce2bff07f67e60a92e0" S = "${WORKDIR}/git"
Signature · 1 line
2.34.1
PATCH 3/3 sysfstools: don't install to base_libdir
In reply to [email protected]From: Ross Burton <[email protected]>
This library now ships a pkgconfig file but $base_libdir isn't in the search path, so can't be used.
As the base_libdir/libdir split is pretty meaningless these days, simply stop installing into base_libdir. This was added to silence warnings from pcmciautils[1] but PCMCIA isn't really a thing anymore so this shouldn't be a problem.
[1] oe-core f3c93627
--- meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb | 2 -- 1 file changed, 2 deletions(-)
meta/recipes-core/sysfsutils/sysfsutils_2.1.1.bb +0 -2
@@ -19,5 +19,3 @@ inherit autotools PACKAGES =+ "libsysfs" FILES:libsysfs = "${libdir}/lib*${SOLIBS}" - -export libdir = "${base_libdir}"
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH 3/3] sysfstools: don't install to base_libdir
Hi Ross,
Quoted 1 line · On Tue, 20 Jun 2023 13:34:04 +0100 "Ross Burton" <[email protected]> wrote:
From: Ross Burton <[email protected]>
I guess the Subject line should s/sysfstools/sysfsutils/, so I fixed that locally for my AB testing branch.
Luca
Signature · 3 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com