Hello community,

here is the log from the commit of package hdparm.4942 for openSUSE:13.2:Update 
checked in at 2016-04-18 07:40:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:13.2:Update/hdparm.4942 (Old)
 and      /work/SRC/openSUSE:13.2:Update/.hdparm.4942.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hdparm.4942"

Changes:
--------
New Changes file:

--- /dev/null   2016-04-07 01:36:33.300037506 +0200
+++ /work/SRC/openSUSE:13.2:Update/.hdparm.4942.new/hdparm.changes      
2016-04-18 07:40:02.000000000 +0200
@@ -0,0 +1,772 @@
+-------------------------------------------------------------------
+Fri Apr  8 14:27:56 UTC 2016 - [email protected]
+
+- update to hdparm 9.48:
+  9.48:
+    * fix bugs from devslp patch.
+  9.47:
+    * added devslp patch (IDENTIFY word 76) from David Woodhouse.
+    * help and manpage fixes from Michal Minar.
+  9.46:
+    * fix compilation with "musl libc".
+    * added "hex:aabbcc.." for binary security passwords.
+    * return EIO when read_big_block() fails
+    * use llabs() rather than abs() in identify.c
+  9.45:
+    * fixed blocksize handling in fibmap code to use result from FIGETBSZ in 
more places (Anton Altaparmakov).
+    * fixed divide by zero exception in geom.c
+    * tidying up formatting in sgio.c
+  9.44:
+    * changed reg_flags struct to more closely match kernel definition (Lucas 
Magasweran).
+    * added fwdownload mode "E" support (Rusty Carruth).
+    * fix timeouts for security-erase (again!)
+    * change display of security "supported" to handle ambiguous reporting 
from drives
+    * don't rely upon C-library for byte-swapping
+    * added --dco-setmax support, courtesy of Geoff Papilion. 
+
+-------------------------------------------------------------------
+Fri Sep 19 05:49:02 UTC 2014 - [email protected]
+
+- Fix udev rules, broken script location, scriptlets 
+  macro usages..
+
+-------------------------------------------------------------------
+Sat Jul 19 13:31:06 UTC 2014 - [email protected]
+
+- Remove insserv dependency; the package doesn't contain any init
+  script
+
+-------------------------------------------------------------------
+Tue Nov 27 18:27:16 UTC 2012 - [email protected]
+
+- Add pkgconfig(udev) BuildRequires: needed in order to dynamically
+  extract the right folder for udev rules and scripts.
+- Copy the udev rules to %{_udevdir}, identified based on udev.pc.
+- Add pkgconfig BuildRequires: needed, as we otherwise end up not
+  having pkg-config in the build root, which we rely on to read
+  the .pc file.
+
+-------------------------------------------------------------------
+Fri Nov 16 09:19:23 UTC 2012 - [email protected]
+
+- update to hdparm-9.43
+  - rearrange flag execution so that the idle/standby/sleep "now"
+    flags are executed last.
+
+-------------------------------------------------------------------
+Mon Oct  1 10:53:29 UTC 2012 - [email protected]
+
+- update to hdparm-9.42
+  - fix ordering of -S -y flags
+  - spelling, typo, and formatting fixes for manpage and others
+  - set block-count to 1 for Security commands sent via SAT (sgio)
+  - use FIGETBSZ to determine filesystem block size for fibmap -- needed for 
FAT
+  - fix master password revcode handling
+  - try and fix reg_flags (again!) for old IDE taskfile ioctls
+  - fixed '&&' bug in dco_identify code
+  - force sector dumps (read-sector, identify, ..) to use le16 output format
+  - proper SCT identify info courtesy of Leonid Evdokimov <[email protected]>
+  - updated raid1ext4trim.sh-1.5 script
+  - avoid HDIO_GETGEO_BIG when possible (doesn't exist in
+    linux-2.6.xx and beyond)
+  - pad secure erase timeouts by 30minutes rather than 5minutes.
+
+-------------------------------------------------------------------
+Sat Feb 18 11:35:40 UTC 2012 - [email protected]
+
+- fix license warning, set to SUSE-Permissive
+
+-------------------------------------------------------------------
+Wed Feb 15 18:22:03 UTC 2012 - [email protected]
+
+- put binaries in /usr tree (UsrMerge) project
+
+-------------------------------------------------------------------
+Mon Feb  6 13:44:39 UTC 2012 - [email protected]
+
+- update to hdparm-9.39 
+  - added -R flag to control Read-Write-Verify feature, courtesy of
+    Gordan Bobic
+  - nuked leftover sgio.c.orig file
+
+-------------------------------------------------------------------
+Sun Jan  8 19:51:06 UTC 2012 - [email protected]
+
+- update to hdparm-9.38 
+  - updated wiper.sh to allow all SCSI_DISK major numbers
+  - updated handing for very long SECURITY-ERASE times
+  - added -J flag for wdidle3 set/get
+
+-------------------------------------------------------------------
+Fri Sep 30 15:21:05 UTC 2011 - [email protected]
+
+- cross-build fix: use %__cc macro
+
+-------------------------------------------------------------------
+Mon Sep 19 15:11:45 UTC 2011 - [email protected]
+
+- remove fragile _service file
+
+-------------------------------------------------------------------
+Wed Jan 26 09:36:13 UTC 2011 - [email protected]
+
+- update to hdparm-9.37 (bnc#664825)
+  - handle raid1 start_lba values, and show -1 for indeterminte
+    raid start_lba values
+  - abort --fibmap when start_lba is indeterminate
+  - updated wiper.sh to fix a kink with hfsplus filesystems
+  - updated wiper.sh to no longer rely on the obsolete "rdev"
+    command
+
+-------------------------------------------------------------------
+Mon Nov 29 11:42:35 UTC 2010 - [email protected]
+
+- update to hdparm-9.36 
+  - udpated raid1ext4trim.sh script to version 1.4
+  - updated wiper.sh to support hfsplus and ntfs filesystem types,
+    courtesy of Heiko Wegeler
+  - updated wiper.sh with new flag to enable unattended operation,
+    and handle SIGPIPE
+  - updated manpage to indicate max sector range of 65335 for TRIM
+
+-------------------------------------------------------------------
+Thu Oct 21 16:13:02 UTC 2010 - [email protected]
+
+- update to hdparm-9.35
+  * third go at fixing cdb issues, fixing -B flag.  Got it this time (finally).
+- changes in hdparm-9.34
+  * fix bad/missing cdb transfer length field for IDENTIFY and some other 
commands
+
+-------------------------------------------------------------------
+Tue Oct  5 09:17:06 UTC 2010 - [email protected]
+
+- update to hdparm-9.33 
+  * fix AHCI issues in sg16(): don't ask for sense_data 
+    on DATA-xfer commands
+  * fix compiler warnings on old systems
+  * fixed compilation on old systems lacking __be16
+
+-------------------------------------------------------------------
+Fri Sep 24 08:51:25 UTC 2010 - [email protected]
+
+- update to hdparm-9.32 
+  * fix b0rked (since 9.27?) SET_FEATURES commands; eg. -B, -M, etc..
+
+-------------------------------------------------------------------
+Wed Sep 15 14:55:32 UTC 2010 - [email protected]
+
+- update to hdparm-9.30 
+  * report word[105] in -I :  max 512-byte blocks of range-data
+    per DSM/Trim command
+  * fix wiper.sh/hdparm to use only as many LBA ranges per TRIM as
+    the drive can handle
+  * manpage / help-text cleanups from Benno Schulenberg
+    <[email protected]>
+
+-------------------------------------------------------------------
+Thu Jul 22 11:11:55 UTC 2010 - [email protected]
+
+- update to hdparm-9.29 
+  * add --offset for use with -t, to get timings from middle/end 
+    of drive,
+  * restrict --trim-sector-ranges-stdin to small TRIM commands on 
+    most drives
+  * fix w62 bug in -I
+  * dump all data bytes with --verbose
+  * warn about bad/missing sense data, but continue regardless
+  * show in/out data[] separately with --verbose
+  * Add reporting to -I for sata3 signaling speed.
+  * force use of ATA_16 for all commands to ATAPI devices.
+  * supply a sector count of "1" for IDENTIFY commands, to 
+    satisfy buggy USB3 bridges.
+
+-------------------------------------------------------------------
+Wed Mar 10 11:35:42 UTC 2010 - [email protected]
+ 
+Update to hdparm-9.28:
+  * check for EBADE for IDE/ATAPI compatibility with recent kernels
+  * always issue both methods when setting DVD speed with -E
+  * use /usr/sbin/rdev to find rootdev in wiper.sh
+  * fix reporting of Sector-0 offset, from Martin Petersen
+  * first crack at decoding the "WD Idle3" vendor-unique command (disabled by 
default)
+
+-------------------------------------------------------------------
+Wed Sep 16 17:12:55 CEST 2009 - [email protected]
+
+- added leak-fix.patch [bnc#538942]
+
++++ 575 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:13.2:Update/.hdparm.4942.new/hdparm.changes

New:
----
  56-idedma.rules
  hdparm-9.48.tar.gz
  hdparm-leak-fix.patch
  hdparm-nostrip.patch
  hdparm-wiper-warn.patch
  hdparm.changes
  hdparm.spec
  sysconfig.ide
  udev.idedma.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hdparm.spec ++++++
#
# spec file for package hdparm
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           hdparm
PreReq:         %fillup_prereq coreutils
Provides:       base:/sbin/hdparm
Version:        9.48
Release:        0
Summary:        A Program to get and set hard disk parameters
License:        SUSE-Permissive
Group:          Hardware/Other
Source:         
http://sourceforge.net/projects/hdparm/files/hdparm/%{name}-%{version}.tar.gz
Source1:        56-idedma.rules
Source2:        sysconfig.ide
Source3:        udev.idedma.sh
Patch1:         hdparm-nostrip.patch
Patch2:         hdparm-wiper-warn.patch
Patch3:         hdparm-leak-fix.patch
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(udev)
Url:            http://sourceforge.net/projects/hdparm/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev) }
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir 
udev)/rules.d }

%description
A shell utility to access and tune the ioctl features of the Linux IDE
driver and IDE drives.

%prep
%setup -q
%patch1
%patch2 -p1
%patch3

%build
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS= CC="%{__cc}"
cp -p wiper/README.txt README.wiper

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8
install -d $RPM_BUILD_ROOT/%{_sbindir}
%make_install binprefix=%{_prefix}
mv contrib/README contrib/README.contrib
install -d $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 644 %{S:1} $RPM_BUILD_ROOT%{_udevrulesdir}
install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 644 %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 %{S:3} $RPM_BUILD_ROOT/%{_udevdir}/idedma.sh
install -d $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 contrib/idectl $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 contrib/ultrabayd $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 wiper/wiper.sh $RPM_BUILD_ROOT/%{_sbindir}
#UsrMerge
mkdir -p $RPM_BUILD_ROOT/sbin
ln -sf %{_sbindir}/wiper.sh $RPM_BUILD_ROOT/sbin
ln -sf %{_sbindir}/hdparm $RPM_BUILD_ROOT/sbin
#EndUsrMerge

%post
if [ -f etc/sysconfig/hardware ] ; then
  mv etc/sysconfig/hardware etc/sysconfig/ide
fi
%{remove_and_set -n ide DEVICES_FORCE_IDE_DMA_ON DEVICES_FORCE_IDE_DMA_OFF}
%{fillup_only -n ide}
# new settings
NEW_DMA=""
# convert old settings
if [ "$DEVICES_FORCE_IDE_DMA_ON" != "" -a "$DEVICES_FORCE_IDE_DMA_ON" != "no" ] 
; then
  for dev in $DEVICES_FORCE_IDE_DMA_ON; do
    NEW_DMA="${NEW_DMA:+$NEW_DMA }/dev/$dev:on"
  done
fi
if [ "$DEVICES_FORCE_IDE_DMA_OFF" != "" -a "$DEVICES_FORCE_IDE_DMA_OFF" != "no" 
] ; then
  for dev in $DEVICES_FORCE_IDE_DMA_OFF; do
    NEW_DMA="${NEW_DMA:+$NEW_DMA }/dev/$dev:off"
  done
fi
# update sysconfig file
if [ "$NEW_DMA" != "" ] ; then
    echo "Updating etc/sysconfig/ide"
    # remove old values, update new variable
    sed -e 
"s|^DEVICES_FORCE_IDE_DMA=\"\\(.*\\)\"|DEVICES_FORCE_IDE_DMA=\"$NEW_DMA \\1\"|" 
\
        etc/sysconfig/ide > etc/sysconfig/ide.new \
      && mv etc/sysconfig/ide.new etc/sysconfig/ide
    rm -f etc/sysconfig/ide.new
fi
%{?udev_rules_update:%{udev_rules_update}}

%files
%defattr(-,root,root)
%doc Changelog README.acoustic contrib/README.contrib README.wiper
%doc %{_mandir}/man8/hdparm.8.gz
#UsrMerge
/sbin/hdparm
/sbin/wiper.sh
#EndUserMerge
%{_sbindir}/hdparm
%{_sbindir}/wiper.sh
%{_udevdir}/idedma.sh
%{_udevrulesdir}/56-idedma.rules
/usr/lib/hdparm
/var/adm/fillup-templates/sysconfig.ide

%changelog
++++++ 56-idedma.rules ++++++
# start idedma script for each added IDE device
ACTION=="add", SUBSYSTEM=="block", KERNEL=="hd*[!0-9]", 
RUN+="/usr/lib/udev/idedma.sh $env{DEVNAME}"
++++++ hdparm-leak-fix.patch ++++++
--- hdparm.c.old        2009-08-02 22:08:56.000000000 +0200
+++ hdparm.c    2009-09-17 09:57:44.000000000 +0200
@@ -880,7 +880,7 @@
 {
        __u64 start_lba;
        int i, err, shortened = 0;
-       char *fdevname = strdup(devname);
+       char *fdevname = strdupa(devname);
 
        err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL);
        if (err)
@@ -891,7 +891,7 @@
        }
 
        if (!shortened)
-               fdevname = strdup("the full disk");
+               fdevname = strdupa("the full disk");
 
        if (start_lba == 0ULL)
                return 0;
++++++ hdparm-nostrip.patch ++++++
--- ./Makefile
+++ ./Makefile
@@ -14 +13,0 @@ CC ?= gcc
-STRIP ?= strip
@@ -31 +29,0 @@ hdparm: hdparm.h sgio.h $(OBJS)
-       $(STRIP) hdparm
++++++ hdparm-wiper-warn.patch ++++++
Index: hdparm-9.28/wiper/wiper.sh
===================================================================
--- hdparm-9.28.orig/wiper/wiper.sh
+++ hdparm-9.28/wiper/wiper.sh
@@ -41,6 +41,9 @@ function usage_error(){
 
 echo
 echo "${0##*/}: Linux SATA SSD TRIM utility, version $VERSION, by Mark Lord."
+echo "${0##*/}: This tool is DANGEROUS! Please read and understand"
+echo "${0##*/}: /usr/share/doc/packages/hdparm/README.wiper"
+echo "${0##*/}: before going any further."
 
 export verbose=0
 commit=""
++++++ sysconfig.ide ++++++
## Path:                Hardware/IDE
## Description:         IDE device settings
## Type:                string
## Default:             ""
#
# Force DMA mode for selected device. Use pairs <device>:<dma_mode> separated
# by space - dma_mode can be "on" (enable default DMA mode), "off" (disable DMA
# mode) or any mode supported by hdparm (e.g. "mdma2", "udma5", ...)
# Example: "/dev/hdc:off /dev/hdd:udma2"
#
DEVICES_FORCE_IDE_DMA=""

++++++ udev.idedma.sh ++++++
#! /bin/sh
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany
#
# Author: Ladislav Slezak <[email protected]>
#
# System script for enabling/disabling IDE DMA mode
# 
# The script takes the first command line parameter and sets the configured DMA
# mode up. If the device is not configured in DEVICES_FORCE_IDE_DMA variable DMA
# status is not changed.
#

HDPARM=/usr/sbin/hdparm
test -x $HDPARM || exit 5

# read values from sysconfig
. /etc/sysconfig/ide

if [ "$DEVICES_FORCE_IDE_DMA" = "" -o $1 = "" ] ; then
    exit 0;
fi


OLDIFS=$IFS
for dev in $DEVICES_FORCE_IDE_DMA ; do
    # Get device and DMA mode

    MODE=""
    DEVICE=""
    OPTIONS=""
    FIRST=0

    # The setting e.g. "/dev/hda:69:-c1:-m16:-u1:-W1:-A1" should be
    # expanded as "hdparm -d 1 -X 69 -c1 -m16 -u1 -W1 -A1 /dev/hda"

    IFS=":"
    for d in $dev ; do
        case $((FIRST++)) in
        0) DEVICE=$d ;;
        1) MODE=$d   ;;
        *) OPTIONS="$OPTIONS$d:"
        esac
    done
    unset d

    if [ "$DEVICE" == "$1" ] ; then
        echo "$DEVICE: setting up IDE DMA mode $MODE"

        # Set DMA mode by hdparm utility
        if [ -z "$MODE" ] ; then
            echo "Missing DMA mode for device $DEVICE"
        elif [ $MODE = "off" ] ; then
            $HDPARM -d 0 "$DEVICE"
        elif [ $MODE = "on" ] ; then
            $HDPARM -d 1 "$DEVICE"
        else
            $HDPARM -d 1 -X "$MODE" ${OPTIONS:+$OPTIONS} "$DEVICE"
        fi
    fi

    # Reset Internal Field Separator for the outer loop
    IFS=$OLDIFS
done
unset dev


Reply via email to