|
|
728caa |
Name: biosdevname
|
|
|
728caa |
Version: 0.7.3
|
|
|
728caa |
Release: 2%{?dist}
|
|
|
728caa |
Summary: Udev helper for naming devices per BIOS names
|
|
|
728caa |
|
|
|
728caa |
Group: System Environment/Base
|
|
|
728caa |
License: GPLv2
|
|
|
728caa |
URL: https://github.com/dell/biosdevname
|
|
|
728caa |
# SMBIOS only exists on these arches. It's also likely that other
|
|
|
728caa |
# arches don't expect the PCI bus to be sorted breadth-first, or of
|
|
|
728caa |
# so, there haven't been any comments about that on LKML.
|
|
|
728caa |
ExclusiveArch: %{ix86} x86_64 ia64
|
|
|
728caa |
Source0: https://github.com/dell/%{name}/archive/v%{version}.tar.gz
|
|
|
728caa |
|
|
|
728caa |
BuildRequires: pciutils-devel, zlib-devel
|
|
|
728caa |
# to figure out how to name the rules file
|
|
|
728caa |
BuildRequires: udev
|
|
|
728caa |
#To generate the configure script
|
|
|
728caa |
BuildRequires: autoconf
|
|
|
728caa |
BuildRequires: automake
|
|
|
728caa |
# for ownership of /etc/udev/rules.d
|
|
|
728caa |
Requires: udev
|
|
|
728caa |
|
|
|
728caa |
Patch0: biosdevname-0.6.1-rules.patch
|
|
|
728caa |
Patch1: 0001-Place-udev-rules-to-usr-lib.patch
|
|
|
728caa |
Patch2: 0001-Add-support-for-ExaNIC-network-cards-5.patch
|
|
|
728caa |
Patch3: 0001-Prevent-infinite-recursion-in-dmidecode.c-smbios_set.patch
|
|
|
728caa |
Patch4: 0001-man-fix-all_ethN-indentation.patch
|
|
|
728caa |
|
|
|
728caa |
%description
|
|
|
728caa |
biosdevname in its simplest form takes a kernel device name as an
|
|
|
728caa |
argument, and returns the BIOS-given name it "should" be. This is necessary
|
|
|
728caa |
on systems where the BIOS name for a given device (e.g. the label on
|
|
|
728caa |
the chassis is "Gb1") doesn't map directly and obviously to the kernel
|
|
|
728caa |
name (e.g. eth0).
|
|
|
728caa |
|
|
|
728caa |
%prep
|
|
|
728caa |
%setup -q
|
|
|
728caa |
%patch0 -p1
|
|
|
728caa |
%patch1 -p1
|
|
|
728caa |
%patch2 -p1
|
|
|
728caa |
%patch3 -p1
|
|
|
728caa |
%patch4 -p1
|
|
|
728caa |
|
|
|
728caa |
%build
|
|
|
728caa |
autoreconf -iv
|
|
|
728caa |
#If configure script doesn't exist generate it with autogen script
|
|
|
728caa |
[ -e ./configure ] || ./autogen.sh --no-configure
|
|
|
728caa |
|
|
|
728caa |
%configure --disable-rpath --prefix=%{_prefix} --sbindir=%{_prefix}/sbin
|
|
|
728caa |
make %{?_smp_mflags}
|
|
|
728caa |
|
|
|
728caa |
|
|
|
728caa |
%install
|
|
|
728caa |
make install install-data DESTDIR=%{buildroot}
|
|
|
728caa |
|
|
|
728caa |
%files
|
|
|
728caa |
%defattr(-,root,root,-)
|
|
|
728caa |
%doc COPYING README
|
|
|
728caa |
%{_prefix}/sbin/%{name}
|
|
|
728caa |
# hack for either /etc or /lib rules location
|
|
|
728caa |
%{_prefix}/lib/udev/rules.d/*.rules
|
|
|
728caa |
%{_mandir}/man1/%{name}.1*
|
|
|
728caa |
|
|
|
728caa |
|
|
|
728caa |
%changelog
|
|
|
728caa |
* Wed Mar 27 2019 Michal Sekletár <msekleta@redhat.com> - 0.7.3-2
|
|
|
728caa |
- prevent infinite recursion in dmidecode.c::smbios_setslot (#1642706)
|
|
|
728caa |
- fix indentation in the man page (#1642706)
|
|
|
728caa |
|
|
|
728caa |
* Wed Oct 25 2017 Michal Sekletar <msekleta@redhat.com> - 0.7.3-1
|
|
|
728caa |
- rebase to 0.7.3 (#1467144)
|
|
|
728caa |
|
|
|
728caa |
* Fri Mar 31 2017 Michal Sekletar <msekleta@redhat.com> - 0.7.2-2
|
|
|
728caa |
- backport fixes from upstream (#1385889)
|
|
|
728caa |
|
|
|
728caa |
* Thu May 26 2016 Michal Sekletar <msekleta@redhat.com> - 0.7.2-1
|
|
|
728caa |
- rebase to 0.7.2 (#1269524)
|
|
|
728caa |
|
|
|
728caa |
* Fri Dec 18 2015 Michal Sekletar <msekleta@redhat.com> - 0.7.0-1
|
|
|
728caa |
- rebase to 0.7.0 (#1269524)
|
|
|
728caa |
|
|
|
728caa |
* Fri Jun 12 2015 Michal Sekletar <msekleta@redhat.com> - 0.6.2-1
|
|
|
728caa |
- rebase to 0.6.2 (#1182849)
|
|
|
728caa |
|
|
|
728caa |
* Thu Jan 08 2015 Michal Sekletar <msekleta@redhat.com> - 0.6.1-2
|
|
|
728caa |
- fix up incorrectly generated patch
|
|
|
728caa |
|
|
|
728caa |
* Fri Dec 05 2014 Michal Sekletar <msekleta@redhat.com> - 0.6.1-1
|
|
|
728caa |
- rebase to 0.6.1 (#1145572)
|
|
|
728caa |
|
|
|
728caa |
* Tue Mar 18 2014 Michal Sekletar <msekleta@redhat.com> - 0.5.0-10
|
|
|
728caa |
- rename Mellanox card correctly (#1067135)
|
|
|
728caa |
|
|
|
728caa |
* Thu Mar 06 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-9
|
|
|
728caa |
- stop reading VPD data once VPD-R section has been read (#1054414)
|
|
|
728caa |
|
|
|
728caa |
* Fri Feb 28 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-8
|
|
|
728caa |
- remove KERNEL!="eth*", GOTO="netdevicename_end" (#1069817)
|
|
|
728caa |
|
|
|
728caa |
* Mon Feb 10 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 0.5.0-7
|
|
|
728caa |
- Change 71-biosdevname.rules to match rhel6 setup (#1054170)
|
|
|
728caa |
|
|
|
728caa |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.0-6
|
|
|
728caa |
- Mass rebuild 2013-12-27
|
|
|
728caa |
|
|
|
728caa |
* Fri Sep 20 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-5
|
|
|
728caa |
- Fix regression introduced by the addslot function
|
|
|
728caa |
- CoverityScan fixes
|
|
|
728caa |
- Place udev rules to /usr/lib rather than /lib
|
|
|
728caa |
Resolves: rhbz#1008899
|
|
|
728caa |
|
|
|
728caa |
* Mon Sep 02 2013 Harald Hoyer <harald@redhat.com> 0.5.0-3
|
|
|
728caa |
- not only NAME KERNEL=="eth*", but every ethernet device
|
|
|
728caa |
|
|
|
728caa |
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-2
|
|
|
728caa |
- Update help and man pages to cover all possible arguments
|
|
|
728caa |
Resolves: rhbz#949021
|
|
|
728caa |
|
|
|
728caa |
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-1
|
|
|
728caa |
- Updating the sources to 0.5.0 version. Following are the changes:
|
|
|
728caa |
- Change scan of SMBIOS slot <-> PCI methods, recurse to set SMBIOS slot field
|
|
|
728caa |
- Save off secondary bus of PCI device for PCI tree traversal
|
|
|
728caa |
- Add version number to biosdevname
|
|
|
728caa |
|
|
|
728caa |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Wed Nov 14 2012 Václav Pavlín <vpavlin@redhat.com> - 0.4.1-3
|
|
|
728caa |
- Source link update
|
|
|
728caa |
|
|
|
728caa |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Wed Jul 18 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.1-1
|
|
|
728caa |
- Fix autoconfig for Fedora systems
|
|
|
728caa |
- Make sure that vpd scan only runs on Dell systems, also blacklist Atheros
|
|
|
728caa |
wireless cards which hang when vpd is read.
|
|
|
728caa |
- Add fixes to biosdevname to support cards that export multiple network
|
|
|
728caa |
ports per PCI device (chelsio/mellanox).
|
|
|
728caa |
|
|
|
728caa |
|
|
|
728caa |
|
|
|
728caa |
* Thu May 3 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.0-1
|
|
|
728caa |
- Create detached signature
|
|
|
728caa |
- Fix man page to use new naming convention
|
|
|
728caa |
- Remove unused variables from Stephen Hemminger [shemminger@vyatta.com]
|
|
|
728caa |
- Use Physical device for slot numbering for embedded SR-IOV cards
|
|
|
728caa |
- Add tracking of ifindex to eths structure
|
|
|
728caa |
- Fix naming for add-in network adapters when SMBIOS version is invalid
|
|
|
728caa |
- Read VPD-R on Dell systems only
|
|
|
728caa |
|
|
|
728caa |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-6
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-5
|
|
|
728caa |
- Added automake as a build dependency
|
|
|
728caa |
|
|
|
728caa |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-4
|
|
|
728caa |
- Added autoconf as a build dependency
|
|
|
728caa |
|
|
|
728caa |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
|
|
|
728caa |
- Generating the configure script if it doesn't exist
|
|
|
728caa |
|
|
|
728caa |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
|
|
|
728caa |
- Fixed the dir structure inside the archive
|
|
|
728caa |
|
|
|
728caa |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
|
|
|
728caa |
- Updating the sources to 0.3.11 version. Following are the changes:
|
|
|
728caa |
- Fix man page for PCI slot naming
|
|
|
728caa |
- Fix clearing of buffer for NPAR/SRIOV naming
|
|
|
728caa |
- Add --nopirq and --smbios options to manpage.
|
|
|
728caa |
- Verify length of VPD on network device
|
|
|
728caa |
- Close file handle on sysfs read
|
|
|
728caa |
- Fix naming policy for NPAR devices.
|
|
|
728caa |
Match each PCI device to its VPD 'physical' device to get correct index
|
|
|
728caa |
- Exclude building on ia64 arch
|
|
|
728caa |
- Add support functions for determining PCIE slot
|
|
|
728caa |
- Scan full path to parent when getting PCIE slot
|
|
|
728caa |
- Fix NPAR naming for add-in cards
|
|
|
728caa |
- Don't display _vf suffix on NPAR devices with single function
|
|
|
728caa |
- Fix PCIe/PIRQ slot mapping
|
|
|
728caa |
|
|
|
728caa |
* Thu Apr 21 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.8-1
|
|
|
728caa |
- Add changes to parse VPD structure for device mapping on NPAR devices
|
|
|
728caa |
- Fix pathname
|
|
|
728caa |
- Cleanup and comment NPAR code
|
|
|
728caa |
- Fix debian packaging rules to regenerate configure script
|
|
|
728caa |
- Change pciX to pX for shortened names for PCI add-on devices
|
|
|
728caa |
- Fix manpage typo
|
|
|
728caa |
- Delete CR-LF in script
|
|
|
728caa |
- Change default signing key
|
|
|
728caa |
- Add command line arguments for checking SMBIOS version and ignore $PIRQ.
|
|
|
728caa |
|
|
|
728caa |
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
|
|
|
728caa |
- drop dump_pirq, suggest use biosdecode instead
|
|
|
728caa |
- don't use '#' in names, use 'p' instead, by popular demand
|
|
|
728caa |
- properly look for SMBIOS, then $PIR, then recurse
|
|
|
728caa |
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
|
|
|
728caa |
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
|
|
|
728caa |
- Add 'bonding' and 'openvswitch' to the virtual devices list
|
|
|
728caa |
- fail PIRQ lookups if device domain is not 0
|
|
|
728caa |
- Don't suggest names if running in a virtual machine (Xen, KVM,
|
|
|
728caa |
VMware tested, but should work on others)
|
|
|
728caa |
- Typo fixes
|
|
|
728caa |
|
|
|
728caa |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
|
|
|
728caa |
- drop biosdevnameS, it's unused and fails to build on F15
|
|
|
728caa |
|
|
|
728caa |
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
|
|
|
728caa |
- install dump_pirq into /usr/sbin
|
|
|
728caa |
- fix udev rule, skip running if NAME is already set
|
|
|
728caa |
- move udev rule to /lib/udev/rules.d by default
|
|
|
728caa |
|
|
|
728caa |
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
|
|
|
728caa |
- drop unnecessary explicit version requirement on udev
|
|
|
728caa |
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
|
|
|
728caa |
- bugfix: don't assign names to unknown devices
|
|
|
728caa |
- bugfix: don't assign duplicate names
|
|
|
728caa |
|
|
|
728caa |
* Thu Dec 9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
|
|
|
728caa |
- add back in use of PCI IRQ Routing Table, if info is not provided by
|
|
|
728caa |
sysfs or SMBIOS
|
|
|
728caa |
|
|
|
728caa |
* Thu Dec 2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
|
|
|
728caa |
- fix for multi-port cards with bridges
|
|
|
728caa |
- removal of code for seriously obsolete systems
|
|
|
728caa |
|
|
|
728caa |
* Sun Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
|
|
|
728caa |
- remove all policies except 'physical' and 'all_ethN'
|
|
|
728caa |
- handle SR-IOV devices properly
|
|
|
728caa |
|
|
|
728caa |
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
|
|
|
728caa |
- add --policy=loms, make it default
|
|
|
728caa |
- read index and labels from sysfs if available
|
|
|
728caa |
|
|
|
728caa |
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
|
|
|
728caa |
- fix mmap error checking
|
|
|
728caa |
|
|
|
728caa |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
|
|
|
728caa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
728caa |
|
|
|
728caa |
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
|
|
|
728caa |
- use policy=all_names to find breakage
|
|
|
728caa |
|
|
|
728caa |
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
|
|
|
728caa |
- rebuild for gcc43
|
|
|
728caa |
|
|
|
728caa |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
|
|
|
728caa |
- fix manpage entry in files
|
|
|
728caa |
|
|
|
728caa |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
|
|
|
728caa |
- rebuild with Requires: udev > 115-3.20070920git
|
|
|
728caa |
|
|
|
728caa |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
|
|
|
728caa |
- coordinate udev rules usage with udev maintainer
|
|
|
728caa |
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
|
|
|
728caa |
line parsing.
|
|
|
728caa |
|
|
|
728caa |
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
|
|
|
728caa |
- eliminate libbiosdevname.*, pre and post scripts
|
|
|
728caa |
|
|
|
728caa |
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
|
|
|
728caa |
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
|
|
|
728caa |
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
|
|
|
728caa |
- build static
|
|
|
728caa |
|
|
|
728caa |
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
|
|
|
728caa |
- initial release
|