This commit is contained in:
parent
7e2faee15b
commit
450c31febb
20
i2c-tools-r5388-prevent-perl-warning.patch
Normal file
20
i2c-tools-r5388-prevent-perl-warning.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
References: 446098
|
||||||
|
|
||||||
|
Only export the ceil function from POSIX. By default, POSIX exports
|
||||||
|
everything, and this happens to generate warnings when using perl 5.10.0.
|
||||||
|
That's a perl bug, but we can still work around it and avoid potential
|
||||||
|
future issues of the same kind.
|
||||||
|
|
||||||
|
Index: i2c-tools/eeprom/decode-dimms
|
||||||
|
===================================================================
|
||||||
|
--- i2c-tools/eeprom/decode-dimms (revision 5287)
|
||||||
|
+++ i2c-tools/eeprom/decode-dimms (revision 5388)
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
require 5.004;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
-use POSIX;
|
||||||
|
+use POSIX qw(ceil);
|
||||||
|
use Fcntl qw(:DEFAULT :seek);
|
||||||
|
use vars qw($opt_html $opt_bodyonly $opt_igncheck $use_sysfs $use_hexdump
|
||||||
|
@vendors %decode_callback $revision @dimm_list %hexdump_cache);
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 18 18:42:41 CET 2008 - jdelvare@suse.de
|
||||||
|
|
||||||
|
- i2c-tools-r5388-prevent-perl-warning.patch: Prevent a perl 5.10.0
|
||||||
|
warning about SEEK_SET and friends being redefined (#446098).
|
||||||
|
- Add Recommends: modules.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 11 16:36:54 CET 2008 - ro@suse.de
|
Tue Nov 11 16:36:54 CET 2008 - ro@suse.de
|
||||||
|
|
||||||
|
@ -21,13 +21,15 @@
|
|||||||
Name: i2c-tools
|
Name: i2c-tools
|
||||||
Url: http://www.lm-sensors.org/wiki/I2CTools
|
Url: http://www.lm-sensors.org/wiki/I2CTools
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 38
|
Release: 39
|
||||||
Summary: A heterogeneous set of I2C tools for Linux
|
Summary: A heterogeneous set of I2C tools for Linux
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Requires: udev
|
Requires: udev
|
||||||
|
Recommends: modules
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Source0: i2c-tools-3.0.1.tar.bz2
|
Source0: i2c-tools-3.0.1.tar.bz2
|
||||||
|
Patch1: i2c-tools-r5388-prevent-perl-warning.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
@ -46,7 +48,8 @@ Authors:
|
|||||||
Jean Delvare <khali@linux-fr.org>
|
Jean Delvare <khali@linux-fr.org>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS"
|
make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
@ -64,6 +67,10 @@ rm -f $RPM_BUILD_ROOT/usr/bin/decode-edid
|
|||||||
%doc /usr/share/man/man8/*.8.gz
|
%doc /usr/share/man/man8/*.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 18 2008 jdelvare@suse.de
|
||||||
|
- i2c-tools-r5388-prevent-perl-warning.patch: Prevent a perl 5.10.0
|
||||||
|
warning about SEEK_SET and friends being redefined (#446098).
|
||||||
|
- Add Recommends: modules.
|
||||||
* Tue Nov 11 2008 ro@suse.de
|
* Tue Nov 11 2008 ro@suse.de
|
||||||
- drop requires for "modules", not really needed here
|
- drop requires for "modules", not really needed here
|
||||||
and launches a long rebuild chain
|
and launches a long rebuild chain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user