commit c990de84fda63f2aa0551425374fd5bba1ab744047afb3e0d38a2945a829f6a5 Author: Adrian Schröter Date: Sat May 4 00:58:39 2024 +0200 Sync from SUSE:SLFO:Main sysfsutils revision 6c3292d0b982c2a2900e8c6c4b99357a diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..cd79ddb --- /dev/null +++ b/_service @@ -0,0 +1,8 @@ + + + https + github.com + sysfsutils-2_1_1.tar.gz + linux-ras/sysfsutils/archive/refs/tags/v2.1.1.tar.gz + + diff --git a/sysfsutils-2_1_1.tar.gz b/sysfsutils-2_1_1.tar.gz new file mode 100644 index 0000000..6682f10 --- /dev/null +++ b/sysfsutils-2_1_1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7f669d27c997d3eb3f3e014b4c0aa1aa4d07ce4d6f9e41fa835240f2bf38810 +size 78823 diff --git a/sysfsutils.changes b/sysfsutils.changes new file mode 100644 index 0000000..36c1b77 --- /dev/null +++ b/sysfsutils.changes @@ -0,0 +1,196 @@ +------------------------------------------------------------------- +Wed Jun 2 13:57:08 UTC 2021 - Jan Engelhardt + +- Drop old rpm constructs and sections. +- Implement shared library packaging guideline. + +------------------------------------------------------------------- +Tue Jun 1 18:52:15 UTC 2021 - Lee Duncan + +- Updated to version 2.1.1 from upstream, mostly build changes, + including: + * Bump the release version in missing file + * sysfsutils: bump to version 2.1.1 + * build: update the bug reporting URL to github + * Build: remove Changelog and NEWS files + * build: don't fail on missing standard files + * Rename dprintf() debugging macro do debugprintf() + * build: Fix out-of-tree builds + * build: Move test program into check_PROGRAMS + * build: Add silent rule support for test.h generation + * build: Add a pkg-config file + * test/libsysfs.conf: remove the obsolete build requirement + * build: Add missing dependencies for test.h + * build: Remove unused configure macros + * build: Use = instead of == in test + * Check that sysfs is actually mounted in sysfs_get_mnt_path() and fail if not + * test: Fix formatting + * man: Improve systool(1) man page + * build: Add support for specifying the pci.ids database pathname + * build: Include "config.h" as the first header in all source files + * build: Build the testlibsysfs program + * build: Enable silent build rules + * build: Quote m4 macro arguments + * build: Use AC_CONFIG_HEADERS instead of deprecated AM_CONFIG_HEADER + * build: Update libtool support + * build: Use *_CPPFLAGS instead of deprecated INCLUDES variables + * build: Update gitignore files + * build: Remove autogenerated files + * build: Remove obsolete CVS support in dist-hook + * build: Add new script to bootstrap the source + * build: Add missing declaration for m4 macro directory + * lib/sysfs_class: fix build failure reported on GCC-11 + * TravisCI: enable build test + * fix bug in sysfs_get_link - RHBZ #447220/Debian Bug #481015 + * use gnu.org license files to correct addresses etc + * GPLv2 applies not just to test dir + This removed the need for sysfsutils-latest-changes.diff.gz, since + all of the changes in that diff were from upstream, and we have + the latest from upstream, which has all of those fixes. +- Updated the SPEC file to add build requirements, change files + delivered, etc, as needed by this new version of sysfs utilities. + Also, removed baselibs.conf from SPEC file and package: not used. + +------------------------------------------------------------------- +Fri Jul 10 15:52:03 UTC 2020 - Lee Duncan + +- Updated to latest upstream, not yet tagged, by updating + sysfsutils-latest-changes.diff.gz. This adds the following + commits: + * Limit cdev name length comparsion to strlen()+1 + * Fix issue with sysfs name comparisons. + * config.guess: linux - Add support for ppc64le machine + * path_is_file() should call stat(), not lstat() + * Ignore all cscope-generated files. + * Add a SUSE-specific libsysfs.conf. + * Use stat() not lstat() to find link target. + * Ignore more build files + * Fix more string issues for gcc-10 + * Fix compiler complaint about string truncation. + * Fix compiler complain about multiple defs of my_stdout. + * Added ChangeLog entry for previous commits. + * Ignore various build files. + * fix of FUNC_TABLE_SIZE mentioned in prev commit + * Various changes to make gcc-7 happy. + * README: Update reporting bugs/contributions section + This removed the need for the 3 patches added previously, + now removed: + * 0001-Fix-compiler-complain-about-multiple-defs-of-my_stdo.patch + * 0002-Fix-compiler-complaint-about-string-truncation.patch + * 0003-Fix-more-string-issues-for-gcc-10.patch + +------------------------------------------------------------------- +Sun Jun 28 21:15:38 UTC 2020 - Lee Duncan + +- Added a _service file, as per new OBS requirement +- Added a patch to bring sysfsutils up to latest upstream, which + now is in place: + * sysfsutils-latest-changes.diff.gz +- Added patches which have been submitted upstream but not yet + merged: + * 0001-Fix-compiler-complain-about-multiple-defs-of-my_stdo.patch + * 0002-Fix-compiler-complaint-about-string-truncation.patch + * 0003-Fix-more-string-issues-for-gcc-10.patch + And removing a patch that's subsumed by the above patches: + * sysfsutils-fix-compiler-issues.patch + Lastly, replaced the hand-rolled sysfsutils-2.1.0.tar.gz with + upstream archive file sysfsutils-sysfsutils-2_1_0.tar.gz + (retreived with OBS download service), though the contents + of the two are the same. + +------------------------------------------------------------------- +Mon Apr 27 19:28:46 UTC 2020 - Martin Liška + +- Enable -fcommon in order to fix boo#1160295. + +------------------------------------------------------------------- +Mon Mar 23 16:16:25 UTC 2020 - Martin Liška + +- Update sysfsutils-fix-compiler-issues.patch in order to + fix boo#1166612. + +------------------------------------------------------------------- +Fri Feb 21 18:05:28 UTC 2020 - Lee Duncan + +- Fix compiler issues for this package, which hasn't been touched + in a while. Should be no functional change. Added patch: + * sysfsutils-fix-compiler-issues.patch + +------------------------------------------------------------------- +Thu Feb 16 20:11:00 UTC 2012 - crrodriguez@opensuse.org + +- Libraries are back to %{_libdir}, /usr merge project + +------------------------------------------------------------------- +Tue Sep 7 20:16:50 UTC 2010 - aj@suse.de + +- Create devel package. + +------------------------------------------------------------------- +Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de + +- use %_smp_mflags + +------------------------------------------------------------------- +Sat Dec 19 14:17:50 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source + +------------------------------------------------------------------- +Tue Mar 24 15:28:47 CET 2009 - crrodriguez@suse.de + +- remove static libraries + +------------------------------------------------------------------- +Wed Jan 7 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Tue May 27 10:52:51 CEST 2008 - hare@suse.de + +- Include systool binary (bnc#391754) + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Tue Jan 16 13:39:27 CET 2007 - hare@suse.de + +- Run ldconfig on %post (#204063) +- Do not duplicate .so symlink (#235332) + +------------------------------------------------------------------- +Mon Aug 31 12:00:00 CEST 2006 - kay.sievers@suse.de + +- update to version 2.1.0 +- provide only the shared lib, not the static lib, not the tools + +------------------------------------------------------------------- +Thu Mar 9 12:51:37 CET 2006 - hare@suse.de + +- Do not install testlibsysfs (#149981 - LTC21580) + +------------------------------------------------------------------- +Wed Jan 25 21:41:59 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Jan 12 17:08:20 CET 2006 - hmacht@suse.de + +- also substitude libtool path in *.la file when moving libraries + (bug #141161) + +------------------------------------------------------------------- +Fri Jun 24 11:52:55 CEST 2005 - snwint@suse.de + +- move shared libs to /lib + +------------------------------------------------------------------- +Fri Jun 10 15:38:40 CEST 2005 - hare@suse.de + +- initial release 1.3.0; split off from udev rpm. diff --git a/sysfsutils.spec b/sysfsutils.spec new file mode 100644 index 0000000..37cce50 --- /dev/null +++ b/sysfsutils.spec @@ -0,0 +1,100 @@ +# +# spec file for package sysfsutils +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: sysfsutils +Version: 2.1.1 +Release: 0 +Summary: System Utilities Package / Libsysfs +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/linux-ras/sysfsutils +Source: sysfsutils-2_1_1.tar.gz +Provides: libsysfs +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make + +%description +This package's purpose is to provide a library for interfacing with the +kernel's sys filesystem mounted at /sys. The library was an attempt to +create a stable interface to sysfs, but it failed. It is still provided +for the current users, but no new software should use this library. + +%package -n libsysfs2 +Summary: Library for interfacing with the kernel's sysfs filesystem +Group: System/Libraries + +%description -n libsysfs2 +This package's purpose is to provide a library for interfacing with the +kernel's sys filesystem mounted at /sys. The library was an attempt to +create a stable interface to sysfs, but it failed. It is still provided +for the current users, but no new software should use this library. + +%package devel +Summary: Development files for libsysfs +Group: Development/Libraries/C and C++ +Requires: libsysfs2 = %{version} + +%description devel +Libsysfs's purpose is to provide a library for interfacing with the +kernel's sys filesystem mounted at /sys. The library was an attempt to +create a stable interface to sysfs, but it failed. It is still provided +for the current users, but no new software should use this library. + +This package contains the development files for libsysfs. + +%prep +%autosetup -p1 + +%build +%global optflags %{optflags} -fcommon +autoreconf -fi +%configure --disable-static +%make_build + +%install +%make_install +rm -v %{buildroot}/%{_libdir}/libsysfs.la +# don't install the tools +rm -f %{buildroot}/%{_bindir}/dlist_test +rm -f %{buildroot}/%{_bindir}/get_device +rm -f %{buildroot}/%{_bindir}/get_driver +rm -f %{buildroot}/%{_bindir}/get_module +rm -f %{buildroot}/%{_bindir}/testlibsysfs + +%post -n libsysfs2 -p /sbin/ldconfig +%postun -n libsysfs2 -p /sbin/ldconfig + +%files +%{_bindir}/systool +%{_mandir}/man1/systool.1.gz + +%files -n libsysfs2 +%{_libdir}/libsysfs.so.* +%doc README +%license COPYING + +%files devel +%dir %{_includedir}/sysfs +%{_includedir}/sysfs/libsysfs.h +%{_includedir}/sysfs/dlist.h +%{_libdir}/libsysfs.so +%{_libdir}/pkgconfig/libsysfs.pc + +%changelog