RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/sysfsutils#29b04909ce55c4620f2a3ac76c5a6559f6bf3a0a
This commit is contained in:
parent
86af1945ea
commit
e2460cea1f
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
sysfsutils-2_1_0.tar.gz
|
||||
40
0001-update-README.patch
Normal file
40
0001-update-README.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From a9957ec35dfd2368c25d02b27859066299cf849c Mon Sep 17 00:00:00 2001
|
||||
From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
Date: Wed, 26 Feb 2020 19:22:54 +0530
|
||||
Subject: [PATCH 1/8] README: Update reporting bugs/contributions section
|
||||
|
||||
We have moved to a new home at GitHub. Update the reporting
|
||||
bugs/contributions sections to reflect GitHub's work flow.
|
||||
|
||||
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
---
|
||||
README | 15 ++++++++++-----
|
||||
1 file changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/README b/README
|
||||
index 6deefcf..bd1f832 100644
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -62,9 +62,14 @@ sysfsutils/lib/LGPL
|
||||
4. Reporting Bugs
|
||||
-----------------
|
||||
|
||||
-Please direct all bugs to either the linux-diag mailing list -
|
||||
-linux-diag-devel@lists.sourceforge.net - or to the authors:
|
||||
+Feel free to report bugs by opening an issue in the GitHub Issue Tracker.
|
||||
|
||||
-Ananth Mavinakayanahalli <ananth@in.ibm.com>
|
||||
-Daniel Stekloff <dsteklof@us.ibm.com>
|
||||
-Mohan Kumar <mohan@in.ibm.com>
|
||||
+5. Contributions
|
||||
+----------------
|
||||
+
|
||||
+For submitting patches, open a GitHub pull request. Please make sure that they
|
||||
+are rebased on top of the current master. Code submission guidelines are the
|
||||
+same as the Linux Kernel contribution guidelines.
|
||||
+
|
||||
+You probably want to read the through Linux kernel Documentation/SubmittingPatches
|
||||
+for guidance.
|
||||
--
|
||||
2.28.0
|
||||
|
||||
16225
0002-fix-compiler-complaints.patch
Normal file
16225
0002-fix-compiler-complaints.patch
Normal file
File diff suppressed because it is too large
Load Diff
43
0003-use-stat-not-lstat.patch
Normal file
43
0003-use-stat-not-lstat.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From 88b1ba388e6908e1bca3ef1779325e5b9a688f9c Mon Sep 17 00:00:00 2001
|
||||
From: Lee Duncan <lduncan@suse.com>
|
||||
Date: Thu, 25 Jun 2020 10:04:40 -0700
|
||||
Subject: [PATCH 3/8] Use stat() not lstat() to find link target.
|
||||
|
||||
The test was backwards? We are trying to find what the
|
||||
link points at, not info about the link.
|
||||
|
||||
path_is_file() should call stat(), not lstat()
|
||||
---
|
||||
lib/sysfs_utils.c | 2 +-
|
||||
test/test.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/sysfs_utils.c b/lib/sysfs_utils.c
|
||||
index bd6f9c1..bddf722 100644
|
||||
--- a/lib/sysfs_utils.c
|
||||
+++ b/lib/sysfs_utils.c
|
||||
@@ -292,7 +292,7 @@ int sysfs_path_is_file(const char *path)
|
||||
errno = EINVAL;
|
||||
return 1;
|
||||
}
|
||||
- if ((lstat(path, &astats)) != 0) {
|
||||
+ if ((stat(path, &astats)) != 0) {
|
||||
dprintf("stat() failed\n");
|
||||
return 1;
|
||||
}
|
||||
diff --git a/test/test.c b/test/test.c
|
||||
index ab2397d..41a470c 100644
|
||||
--- a/test/test.c
|
||||
+++ b/test/test.c
|
||||
@@ -165,7 +165,7 @@ static int path_is_dir(const char *path)
|
||||
{
|
||||
struct stat astats;
|
||||
|
||||
- if ((lstat(path, &astats)) != 0)
|
||||
+ if ((stat(path, &astats)) != 0)
|
||||
goto direrr;
|
||||
|
||||
if (S_ISDIR(astats.st_mode))
|
||||
--
|
||||
2.28.0
|
||||
|
||||
31
0004-support-ppc64le.patch
Normal file
31
0004-support-ppc64le.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From d4a7c673f65ac4ed257be7d3c380108a88f5c510 Mon Sep 17 00:00:00 2001
|
||||
From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
Date: Mon, 29 Jun 2020 14:26:30 +0530
|
||||
Subject: [PATCH 4/8] config.guess: linux - Add support for ppc64le machine
|
||||
|
||||
Configure fails to guess ppc64le machine type under the Linux system.
|
||||
This patch adds support to recognize ppc64le by adding it to the list
|
||||
of valid Linux systems.
|
||||
|
||||
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
---
|
||||
config.guess | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/config.guess b/config.guess
|
||||
index 2fc3acc..9b3e674 100644
|
||||
--- a/config.guess
|
||||
+++ b/config.guess
|
||||
@@ -864,6 +864,9 @@ EOF
|
||||
ppc64:Linux:*:*)
|
||||
echo powerpc64-${VENDOR:-unknown}-linux-gnu
|
||||
exit 0 ;;
|
||||
+ ppc64le:Linux:*:*)
|
||||
+ echo powerpc64le-${VENDOR:-unknown}-linux-gnu
|
||||
+ exit 0 ;;
|
||||
alpha:Linux:*:*)
|
||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
||||
EV5) UNAME_MACHINE=alphaev5 ;;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
58
0005-fix-sysfs-name-comparisons.patch
Normal file
58
0005-fix-sysfs-name-comparisons.patch
Normal file
@ -0,0 +1,58 @@
|
||||
From 0277758bed2870a6feb3757ffd88930b7128f31a Mon Sep 17 00:00:00 2001
|
||||
From: Lee Duncan <lduncan@suse.com>
|
||||
Date: Fri, 3 Jul 2020 11:14:20 -0700
|
||||
Subject: [PATCH 5/8] Fix issue with sysfs name comparisons.
|
||||
|
||||
It turns out that cdev_name_equal() is used
|
||||
by dlist_find_custom() to compare sysfs
|
||||
entry names to ones already seen. But it was
|
||||
comparing using the length of the shortest string
|
||||
as a maximum, so when it compared, for example,
|
||||
"eth1" and "eth10", it thought they were the same.
|
||||
So now just return failure if the strings
|
||||
aren't the same length, else go ahead and
|
||||
compare them.
|
||||
---
|
||||
lib/sysfs_class.c | 21 +++++++++++++++++++--
|
||||
1 file changed, 19 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/sysfs_class.c b/lib/sysfs_class.c
|
||||
index 4fe0b82..c696ff0 100644
|
||||
--- a/lib/sysfs_class.c
|
||||
+++ b/lib/sysfs_class.c
|
||||
@@ -60,13 +60,30 @@ void sysfs_close_class(struct sysfs_class *cls)
|
||||
}
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * pass this function to dlist_find_custom()
|
||||
+ * so it can compare device names
|
||||
+ *
|
||||
+ * return 1 if pathnames are equal, else 0
|
||||
+ */
|
||||
static int cdev_name_equal(void *a, void *b)
|
||||
{
|
||||
+ size_t length_a, length_b;
|
||||
+ char *str_a, *str_b;
|
||||
+
|
||||
if (!a || !b)
|
||||
return 0;
|
||||
|
||||
- if (strncmp((char *)a, ((struct sysfs_class_device *)b)->name,
|
||||
- strlen((char *)a)) == 0)
|
||||
+ str_a = (char *)a;
|
||||
+ str_b = ((struct sysfs_class_device *)b)->name;
|
||||
+
|
||||
+ length_a = strnlen(str_a, SYSFS_NAME_LEN+1);
|
||||
+ length_b = strnlen(str_b, SYSFS_NAME_LEN+1);
|
||||
+
|
||||
+ if (length_a != length_b)
|
||||
+ return 0;
|
||||
+
|
||||
+ if (strncmp(str_a, str_b, SYSFS_NAME_LEN+1) == 0)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
30
0006-limit-cdev-name-length-comparsion.patch
Normal file
30
0006-limit-cdev-name-length-comparsion.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 34df9af8e15e331f45c3a453852d5a24486744ed Mon Sep 17 00:00:00 2001
|
||||
From: Lee Duncan <lduncan@suse.com>
|
||||
Date: Wed, 8 Jul 2020 11:17:18 -0700
|
||||
Subject: [PATCH 6/8] Limit cdev name length comparsion to strlen()+1
|
||||
|
||||
In commit 270af678d4241306 cdev_name_equal() was updated
|
||||
so that "eth1" and "eth10" did not match, but the limit
|
||||
on the length of the compare was too large, as we know
|
||||
the length of both strings. This is just a cleanup, and
|
||||
should cause no functional change.
|
||||
---
|
||||
lib/sysfs_class.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/sysfs_class.c b/lib/sysfs_class.c
|
||||
index c696ff0..fcaa488 100644
|
||||
--- a/lib/sysfs_class.c
|
||||
+++ b/lib/sysfs_class.c
|
||||
@@ -83,7 +83,7 @@ static int cdev_name_equal(void *a, void *b)
|
||||
if (length_a != length_b)
|
||||
return 0;
|
||||
|
||||
- if (strncmp(str_a, str_b, SYSFS_NAME_LEN+1) == 0)
|
||||
+ if (strncmp(str_a, str_b, length_a+1) == 0)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
--
|
||||
2.28.0
|
||||
|
||||
175
0007-fix-sysfs_get_link.patch
Normal file
175
0007-fix-sysfs_get_link.patch
Normal file
@ -0,0 +1,175 @@
|
||||
From b93c115b71c08a2f19262e6adccfdb5a5e5b2a78 Mon Sep 17 00:00:00 2001
|
||||
From: Christopher Engelhard <ce@lcts.de>
|
||||
Date: Tue, 28 Jul 2020 17:35:05 +0200
|
||||
Subject: [PATCH 7/8] Fix bug in sysfs_get_link
|
||||
|
||||
This fixes RHBZ #447220/Debian Bug #481015 by applying the patch
|
||||
provided in those bugs.
|
||||
---
|
||||
lib/sysfs_utils.c | 128 +++++++++++++++++++++++++++-------------------
|
||||
1 file changed, 76 insertions(+), 52 deletions(-)
|
||||
|
||||
diff --git a/lib/sysfs_utils.c b/lib/sysfs_utils.c
|
||||
index bddf722..e9bc555 100644
|
||||
--- a/lib/sysfs_utils.c
|
||||
+++ b/lib/sysfs_utils.c
|
||||
@@ -117,80 +117,104 @@ int sysfs_get_link(const char *path, char *target, size_t len)
|
||||
{
|
||||
char devdir[SYSFS_PATH_MAX];
|
||||
char linkpath[SYSFS_PATH_MAX];
|
||||
- char temp_path[SYSFS_PATH_MAX];
|
||||
- char *d = NULL, *s = NULL;
|
||||
- int slashes = 0, count = 0;
|
||||
+ char *d, *s;
|
||||
+ int count;
|
||||
|
||||
if (!path || !target || len == 0) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
- memset(devdir, 0, SYSFS_PATH_MAX);
|
||||
- memset(linkpath, 0, SYSFS_PATH_MAX);
|
||||
- memset(temp_path, 0, SYSFS_PATH_MAX);
|
||||
- safestrcpy(devdir, path);
|
||||
-
|
||||
- if ((readlink(path, linkpath, SYSFS_PATH_MAX)) < 0) {
|
||||
+ count = readlink(path, linkpath, SYSFS_PATH_MAX);
|
||||
+ if (count < 0)
|
||||
return -1;
|
||||
- }
|
||||
- d = linkpath;
|
||||
+ else
|
||||
+ linkpath[count] = '\0';
|
||||
/*
|
||||
* Three cases here:
|
||||
* 1. relative path => format ../..
|
||||
* 2. absolute path => format /abcd/efgh
|
||||
* 3. relative path _from_ this dir => format abcd/efgh
|
||||
*/
|
||||
- switch (*d) {
|
||||
- case '.':
|
||||
+ if (*linkpath == '/') {
|
||||
+ /* absolute path - copy as is */
|
||||
+ safestrcpymax(target, linkpath, len);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ safestrcpy(devdir, path);
|
||||
+ s = strrchr(devdir, '/');
|
||||
+ if (s == NULL)
|
||||
+ s = devdir - 1;
|
||||
+ d = linkpath;
|
||||
+ while (*d == '.') {
|
||||
+ if (*(d+1) == '/') {
|
||||
/*
|
||||
* handle the case where link is of type ./abcd/xxx
|
||||
*/
|
||||
- safestrcpy(temp_path, devdir);
|
||||
- if (*(d+1) == '/')
|
||||
- d += 2;
|
||||
- else if (*(d+1) == '.')
|
||||
- goto parse_path;
|
||||
- s = strrchr(temp_path, '/');
|
||||
- if (s != NULL)
|
||||
- safestrcpy(s+1, d);
|
||||
- else
|
||||
- safestrcpy(temp_path, d);
|
||||
- safestrcpymax(target, temp_path, len);
|
||||
- break;
|
||||
+ d += 2;
|
||||
+ while (*d == '/')
|
||||
+ d++;
|
||||
+ continue;
|
||||
+ } else if (*(d+1) != '.' || *(d+2) != '/')
|
||||
/*
|
||||
- * relative path, getting rid of leading "../.."
|
||||
+ * relative path from this directory, starting
|
||||
+ * with a hidden directory
|
||||
*/
|
||||
-parse_path:
|
||||
- while (*d == '/' || *d == '.') {
|
||||
- if (*d == '/')
|
||||
- slashes++;
|
||||
- d++;
|
||||
- }
|
||||
- d--;
|
||||
- s = &devdir[strlen(devdir)-1];
|
||||
- while (s != NULL && count != (slashes+1)) {
|
||||
+ break;
|
||||
+
|
||||
+ /*
|
||||
+ * relative path, getting rid of leading "../.."; must
|
||||
+ * be careful here since any path component of devdir
|
||||
+ * could be a symlink again
|
||||
+ */
|
||||
+ for (;;) {
|
||||
+ while (s > devdir && *s == '/') {
|
||||
s--;
|
||||
- if (*s == '/')
|
||||
- count++;
|
||||
+ if (*s == '.'
|
||||
+ && (s == devdir || *(s-1) == '/'))
|
||||
+ s--;
|
||||
}
|
||||
- safestrcpymax(s, d, (SYSFS_PATH_MAX-strlen(devdir)));
|
||||
- safestrcpymax(target, devdir, len);
|
||||
- break;
|
||||
- case '/':
|
||||
- /* absolute path - copy as is */
|
||||
- safestrcpymax(target, linkpath, len);
|
||||
+ *(s+1) = '\0';
|
||||
+ if (*devdir == '\0' || sysfs_path_is_link(devdir))
|
||||
+ /*
|
||||
+ * condition will be true eventually
|
||||
+ * because we already know that all
|
||||
+ * but the last component of path
|
||||
+ * resolve to a directory
|
||||
+ */
|
||||
+ break;
|
||||
+ if (sysfs_get_link(devdir, devdir, SYSFS_PATH_MAX))
|
||||
+ return -1;
|
||||
+ s = devdir + strlen(devdir) - 1;
|
||||
+ }
|
||||
+ while (s >= devdir) {
|
||||
+ if (*s == '/') {
|
||||
+ if (*(s+1) != '.' || *(s+2) != '.'
|
||||
+ || *(s+3) != '\0') {
|
||||
+ d += 3;
|
||||
+ while (*d == '/')
|
||||
+ d++;
|
||||
+ } else
|
||||
+ s += 2;
|
||||
+ break;
|
||||
+ }
|
||||
+ s--;
|
||||
+ }
|
||||
+ if (s < devdir || *(s+1) == '\0')
|
||||
break;
|
||||
- default:
|
||||
- /* relative path from this directory */
|
||||
- safestrcpy(temp_path, devdir);
|
||||
- s = strrchr(temp_path, '/');
|
||||
- if (s != NULL)
|
||||
- safestrcpy(s+1, linkpath);
|
||||
- else
|
||||
- safestrcpy(temp_path, linkpath);
|
||||
- safestrcpymax(target, temp_path, len);
|
||||
}
|
||||
+
|
||||
+ /*
|
||||
+ * appending to devdir a slash and the (possibly shortened)
|
||||
+ * relative path to the link source
|
||||
+ */
|
||||
+ s++;
|
||||
+ if (s > devdir && *s == '\0')
|
||||
+ *s++ = '/';
|
||||
+ *s = '\0';
|
||||
+ safestrcpymax(s, d, SYSFS_PATH_MAX-(s-devdir));
|
||||
+ safestrcpymax(target, devdir, len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
--
|
||||
2.28.0
|
||||
|
||||
1633
0008-clarify-license-fix-typos.patch
Normal file
1633
0008-clarify-license-fix-typos.patch
Normal file
File diff suppressed because it is too large
Load Diff
52
0009-fix-GCC-11-build-failure.patch
Normal file
52
0009-fix-GCC-11-build-failure.patch
Normal file
@ -0,0 +1,52 @@
|
||||
From 840b639f9e807e1dab4e14817fe72657b9252e53 Mon Sep 17 00:00:00 2001
|
||||
From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
Date: Thu, 17 Sep 2020 20:31:25 +0530
|
||||
Subject: lib/sysfs_class: fix build failure reported on GCC-11
|
||||
|
||||
Christopher reported that, the build fails with GCC-11. It introduces a
|
||||
-Wstringop-overread, that warns about reading past the end in string
|
||||
functions. cdev_name_equal() does a comparison, which compares strings
|
||||
past SYSFS_NAME_LEN. It currently calculates the string lengths of both
|
||||
string and does a comparison on strings of equal length.
|
||||
|
||||
This patch refactors the function to compare, the strings until
|
||||
SYSFS_NAME_LEN, removing the string length comparison logic.
|
||||
|
||||
Fixes #12 ("Build failure with GCC-11 due to stringop-overread")
|
||||
Reported-by: Christopher Engelhard <ce@lcts.de>
|
||||
Tested-by: Christopher Engelhard <ce@lcts.de>
|
||||
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
|
||||
---
|
||||
lib/sysfs_class.c | 9 +--------
|
||||
1 file changed, 1 insertion(+), 8 deletions(-)
|
||||
|
||||
diff --git a/lib/sysfs_class.c b/lib/sysfs_class.c
|
||||
index fcaa488..6389892 100644
|
||||
--- a/lib/sysfs_class.c
|
||||
+++ b/lib/sysfs_class.c
|
||||
@@ -68,7 +68,6 @@ void sysfs_close_class(struct sysfs_class *cls)
|
||||
*/
|
||||
static int cdev_name_equal(void *a, void *b)
|
||||
{
|
||||
- size_t length_a, length_b;
|
||||
char *str_a, *str_b;
|
||||
|
||||
if (!a || !b)
|
||||
@@ -77,13 +76,7 @@ static int cdev_name_equal(void *a, void *b)
|
||||
str_a = (char *)a;
|
||||
str_b = ((struct sysfs_class_device *)b)->name;
|
||||
|
||||
- length_a = strnlen(str_a, SYSFS_NAME_LEN+1);
|
||||
- length_b = strnlen(str_b, SYSFS_NAME_LEN+1);
|
||||
-
|
||||
- if (length_a != length_b)
|
||||
- return 0;
|
||||
-
|
||||
- if (strncmp(str_a, str_b, length_a+1) == 0)
|
||||
+ if (strncmp(str_a, str_b, SYSFS_NAME_LEN) == 0)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
--
|
||||
2.26.2
|
||||
|
||||
9
gating.yml
Normal file
9
gating.yml
Normal file
@ -0,0 +1,9 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (sysfsutils-2_1_0.tar.gz) = f9e2dd77df5de7323c41940781eb161aaad092045379df13abc248c0dd8455ba9a793e2ee9f2b6d3effe87e07ea3e8cdc012bab926a49ba7f4fd48f22b3138f0
|
||||
4
sysfsutils.rpmlintrc
Normal file
4
sysfsutils.rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
||||
# missing documentation from subpackages
|
||||
addFilter(r'^(libsysfs.*|sysfsutils)\.[^:]+: (E|W): no-documentation')
|
||||
# spurious spelling error
|
||||
addFilter(r'^(libsysfs.*|sysfsutils)\.[^:]+: (E|W): spelling-error.*sysfs ->')
|
||||
249
sysfsutils.spec
Normal file
249
sysfsutils.spec
Normal file
@ -0,0 +1,249 @@
|
||||
%global so_major_version 2
|
||||
%global so_minor_version 0
|
||||
%global so_patch_version 1
|
||||
|
||||
Name: sysfsutils
|
||||
Version: 2.1.0
|
||||
Release: 32%{?dist}
|
||||
Summary: Utilities for interfacing with sysfs
|
||||
URL: https://github.com/linux-ras/sysfsutils
|
||||
License: GPLv2
|
||||
|
||||
Source0: https://github.com/linux-ras/sysfsutils/archive/sysfsutils-%(echo %{version} | tr '.' '_').tar.gz
|
||||
# backport upstream fixes up to commit b688c65
|
||||
# these also obsolete sysfsutils-2.0.0-class-dup.patch & sysfsutils-aarch64.patch
|
||||
Patch1: 0001-update-README.patch
|
||||
Patch2: 0002-fix-compiler-complaints.patch
|
||||
Patch3: 0003-use-stat-not-lstat.patch
|
||||
Patch4: 0004-support-ppc64le.patch
|
||||
Patch5: 0005-fix-sysfs-name-comparisons.patch
|
||||
Patch6: 0006-limit-cdev-name-length-comparsion.patch
|
||||
# upstreamed version of sysfsutils-2.1.0-get_link.patch, PR#10
|
||||
Patch7: 0007-fix-sysfs_get_link.patch
|
||||
# upstreamed version of formatting/typo/license-related fedora patches, PR#9
|
||||
Patch8: 0008-clarify-license-fix-typos.patch
|
||||
# upstream issue #12 / PR#13
|
||||
Patch9: 0009-fix-GCC-11-build-failure.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
This package's purpose is to provide a set of utilities for interfacing
|
||||
with sysfs.
|
||||
|
||||
%package -n libsysfs
|
||||
Summary: Shared library for interfacing with sysfs
|
||||
License: LGPLv2+
|
||||
|
||||
%description -n libsysfs
|
||||
Library used in handling linux kernel sysfs mounts and their various files.
|
||||
|
||||
%package -n libsysfs-devel
|
||||
Summary: Static library and headers for libsysfs
|
||||
License: LGPLv2+
|
||||
Requires: libsysfs = %{version}-%{release}
|
||||
|
||||
%description -n libsysfs-devel
|
||||
libsysfs-devel provides the header files and static libraries required
|
||||
to build programs using the libsysfs API.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{name}-%(echo %{version} | tr '.' '_')
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
%{make_install}
|
||||
|
||||
rm -f %{buildroot}%{_bindir}/dlist_test \
|
||||
%{buildroot}%{_bindir}/get_bus_devices_list \
|
||||
%{buildroot}%{_bindir}/get_class_dev \
|
||||
%{buildroot}%{_bindir}/get_classdev_parent \
|
||||
%{buildroot}%{_bindir}/get_device \
|
||||
%{buildroot}%{_bindir}/get_driver \
|
||||
%{buildroot}%{_bindir}/testlibsysfs \
|
||||
%{buildroot}%{_bindir}/write_attr
|
||||
find %{buildroot} -type f -name "*.la" -delete
|
||||
|
||||
%ldconfig_scriptlets -n libsysfs
|
||||
|
||||
%files
|
||||
%license COPYING cmd/GPL
|
||||
%doc AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt
|
||||
%{_bindir}/systool
|
||||
%{_bindir}/get_module
|
||||
%{_mandir}/man1/systool.1.gz
|
||||
|
||||
%files -n libsysfs
|
||||
%license COPYING lib/LGPL
|
||||
/%{_libdir}/libsysfs.so.%{so_major_version}
|
||||
/%{_libdir}/libsysfs.so.%{so_major_version}.%{so_minor_version}.%{so_patch_version}
|
||||
|
||||
%files -n libsysfs-devel
|
||||
%dir %{_includedir}/sysfs
|
||||
%{_includedir}/sysfs/libsysfs.h
|
||||
%{_includedir}/sysfs/dlist.h
|
||||
/%{_libdir}/libsysfs.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 21 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-32
|
||||
- fix GCC-11 build failure due to buffer overread, h/t Jeff Law
|
||||
|
||||
* Mon Aug 17 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-31
|
||||
- use tarball hosted at new upstream site
|
||||
- Fedora's patches have been merged upstream, so use those instead
|
||||
- apply various unreleased upstream fixes that deal with compiler warnings
|
||||
|
||||
* Wed Jul 29 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-30
|
||||
- specify .so and release versions via global vars
|
||||
- update URL to reflect new upstream
|
||||
|
||||
* Tue Jun 23 2020 Christopher Engelhard <ce@lcts.de> - 2.1.0-29
|
||||
- list .so files explicitly in %%files instead of via glob, cleanup spec
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.0-25
|
||||
- Fix build deps, use %%License, cleanup spec
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Sat May 11 2013 Anton Arapov <anton@redhat.com> - 2.1.0-14
|
||||
- We don't support aarch64, do the appropriate changes (#926600)
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Mar 22 2011 Anton Arapov <anton@redhat.com> - 2.1.0-10
|
||||
- Better manpages. (#673849)
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Jun 17 2010 Anton Arapov <anton@redhat.com> - 2.1.0-8
|
||||
- Move libraries from /usr/lib to /lib since we need them
|
||||
during the system boot. (#605546)
|
||||
|
||||
* Mon Jan 18 2010 Anton Arapov <anton@redhat.com> - 2.1.0-7
|
||||
- Don't build and ship statically linked library (#556096)
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue May 20 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-4
|
||||
- Fix up get_link on kernel 2.6.25+ (#447220)
|
||||
|
||||
* Mon Feb 25 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-3
|
||||
- Review cleanups from Todd Zullinger (#226447)
|
||||
|
||||
* Thu Feb 14 2008 Jarod Wilson <jwilson@redhat.com> - 2.1.0-2
|
||||
- Bump and rebuild with gcc 4.3
|
||||
|
||||
* Mon Sep 29 2007 Jarod Wilson <jwilson@redhat.com> - 2.1.0-1
|
||||
- Update to upstream release 2.1.0
|
||||
|
||||
* Mon Sep 11 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-6
|
||||
- Integrate patch for bz 205808
|
||||
|
||||
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 2.0.0-5
|
||||
- rebuild
|
||||
|
||||
* Mon Jul 10 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-4
|
||||
- Obsoleting old sysfsutil-devel package for upgrade path (bz 198054)
|
||||
|
||||
* Fri Jul 7 2006 Doug Ledford <dledford@redhat.com> - 2.0.0-3
|
||||
- Split the library and devel files out to libsysfs and leave the utils
|
||||
in sysfsutils. This is for multilib arch requirements.
|
||||
|
||||
* Thu May 25 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-2
|
||||
- Fixed devel rpm to own sysfs include dir
|
||||
- Fixed a typo in changelog
|
||||
|
||||
* Wed May 24 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-1
|
||||
- Rebase to sysfsutils-2.0.0 for RHEL5
|
||||
|
||||
* Thu Apr 27 2006 Jeremy Katz <katzj@redhat.com> - 1.3.0-2
|
||||
- move .so to devel subpackage
|
||||
|
||||
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2.1
|
||||
- bump again for double-long bug on ppc(64)
|
||||
|
||||
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.3.0-1.2
|
||||
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||
|
||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||
- rebuilt
|
||||
|
||||
* Fri Jul 08 2005 Bill Nottingham <notting@redhat.com> 1.3.0-1
|
||||
- update to 1.3.0
|
||||
|
||||
* Wed Mar 02 2005 AJ Lewis <alewis@redhat.com> 1.2.0-4
|
||||
- Rebuild
|
||||
|
||||
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-3
|
||||
- start using %%configure instead of calling configure directly
|
||||
|
||||
* Wed Feb 09 2005 AJ Lewis <alewis@redhat.com> 1.2.0-2
|
||||
- rebuild
|
||||
|
||||
* Mon Oct 11 2004 AJ Lewis <alewis@redhat.com> 1.2.0-1
|
||||
- Update to upstream version 1.2.0
|
||||
|
||||
* Wed Sep 22 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||
- added /sbin/ldconfig calls to post/postun
|
||||
|
||||
* Thu Sep 01 2004 AJ Lewis <alewis@redhat.com> 1.1.0-2
|
||||
- Fix permissions on -devel files
|
||||
|
||||
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1.1
|
||||
- Rebuild
|
||||
|
||||
* Fri Aug 13 2004 AJ Lewis <alewis@redhat.com> 1.1.0-1
|
||||
- Initial package for FC3
|
||||
Loading…
Reference in New Issue
Block a user