Accepting request 262931 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/262931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hdparm?expand=0&rev=64
This commit is contained in:
Dominique Leuenberger 2014-11-26 09:35:19 +00:00 committed by Git OBS Bridge
commit ac744ae53e
4 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,12 @@
diff -Ndur hdparm-9.43/contrib/ultrabayd hdparm-9.43-fix-bashisms/contrib/ultrabayd
--- hdparm-9.43/contrib/ultrabayd 2000-02-04 22:30:30.000000000 +0200
+++ hdparm-9.43-fix-bashisms/contrib/ultrabayd 2014-11-17 04:17:08.381048316 +0200
@@ -41,7 +41,7 @@
END
if [ "$d_type" != "$o_d_type" ] || [ "$d_id" != "$o_d_id" ]; then
- echo -n "\07" > /dev/tty1
+ printf "\07" > /dev/tty1
o_d_type="$d_type"
o_d_id="$d_id"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 17 02:21:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in ultrabayd and udev.idedma.sh scripts
- add patches:
* hdparm-9.43-fix-bashisms.patch
-------------------------------------------------------------------
Fri Sep 19 05:49:02 UTC 2014 - crrodriguez@opensuse.org

View File

@ -31,6 +31,7 @@ Source3: udev.idedma.sh
Patch1: hdparm-nostrip.patch
Patch2: hdparm-wiper-warn.patch
Patch3: hdparm-leak-fix.patch
Patch4: hdparm-9.43-fix-bashisms.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(udev)
Url: http://sourceforge.net/projects/hdparm/
@ -48,6 +49,7 @@ driver and IDE drives.
%patch1
%patch2 -p1
%patch3
%patch4 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS= CC="%{__cc}"

View File

@ -35,15 +35,16 @@ for dev in $DEVICES_FORCE_IDE_DMA ; do
IFS=":"
for d in $dev ; do
case $((FIRST++)) in
case $FIRST in
0) DEVICE=$d ;;
1) MODE=$d ;;
*) OPTIONS="$OPTIONS$d:"
esac
FIRST=$((FIRST + 1))
done
unset d
if [ "$DEVICE" == "$1" ] ; then
if [ "$DEVICE" = "$1" ] ; then
echo "$DEVICE: setting up IDE DMA mode $MODE"
# Set DMA mode by hdparm utility