commit hdparm for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package hdparm for openSUSE:Factory checked in at Mon Sep 21 21:04:34 CEST 2009. -------- --- hdparm/hdparm.changes 2009-08-12 14:13:20.000000000 +0200 +++ /mounts/work_src_done/STABLE/hdparm/hdparm.changes 2009-09-16 17:14:54.000000000 +0200 @@ -1,0 +2,31 @@ +Wed Sep 16 17:12:55 CEST 2009 - mseben@novell.com + +- added leak-fix.patch [bnc#538942] + +------------------------------------------------------------------- +Tue Sep 15 14:26:55 CEST 2009 - garloff@suse.de + +- Install wiper.sh and its README; display appropriate warnings +- Update to hdparm-9.27: + * Update wiper.sh to 2.3 + * Fix interaction with old IDE drivers +- Update to hdparm-9.26: + * Update wiper.sh to 2.2 + * Fix handling of model names with spaces in hdparm -i + * bugfix for --security-erase-enhanced + * set _FILE_OFFSET_BITS in geom.c + * added reporting for "Deterministic read ZEROs after TRIM" feature +- Update to hdparm-9.25: + * slightly tidier output from --trim-* commands + * restrict --trim-sector-ranges-stdin to limit from + /sys/block/sd?/queue/max_sectors_kb + * updated wiper.sh to use --trim-sector-ranges-stdin +- Update to hdparm-9.24: + * fixed malloc() bug in --trim-sector-ranges +- Update to hdparm-9.23: + * minor cosmetic changes in fibmap.c + * added --trim-sector-ranges-stdin for wiper.sh-2.0 + * tightened up excess-args checking on a number of flags + * added name to version line + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- hdparm-9.22.tar.bz2 New: ---- hdparm-9.22-leak-fix.patch hdparm-9.27.tar.bz2 wiper-warn.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hdparm.spec ++++++ --- /var/tmp/diff_new_pack.Pp1YYQ/_old 2009-09-21 21:03:54.000000000 +0200 +++ /var/tmp/diff_new_pack.Pp1YYQ/_new 2009-09-21 21:03:54.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package hdparm (Version 9.22) +# spec file for package hdparm (Version 9.27) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -24,14 +24,16 @@ PreReq: %insserv_prereq %fillup_prereq coreutils Provides: base:/sbin/hdparm AutoReqProv: on -Version: 9.22 +Version: 9.27 Release: 1 Summary: A Program to Get and Set Hard Disk Parameters Source: %{name}-%{version}.tar.bz2 Source1: 56-idedma.rules Source2: sysconfig.ide Source3: udev.idedma.sh -Patch1: %{name}-%{version}-nostrip.patch +Patch1: %{name}-9.22-nostrip.patch +Patch2: wiper-warn.diff +Patch3: hdparm-9.22-leak-fix.patch Url: http://sourceforge.net/projects/hdparm/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -48,9 +50,12 @@ %prep %setup -q %patch1 +%patch2 -p1 +%patch3 %build make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS= +cp -p wiper-2.3/README.txt README.wiper %install mkdir -p $RPM_BUILD_ROOT/sbin @@ -65,6 +70,7 @@ 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-2.3/wiper.sh $RPM_BUILD_ROOT/sbin %post if [ -f etc/sysconfig/hardware ] ; then @@ -97,9 +103,10 @@ %files %defattr(-,root,root) -%doc Changelog README.acoustic contrib/README.contrib +%doc Changelog README.acoustic contrib/README.contrib README.wiper %doc %{_mandir}/man8/hdparm.8.gz /sbin/hdparm +/sbin/wiper.sh %dir /lib/udev /lib/udev/idedma.sh %dir /lib/udev/rules.d ++++++ hdparm-9.22-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-9.22.tar.bz2 -> hdparm-9.27.tar.bz2 ++++++ ++++ 2972 lines of diff (skipped) ++++++ wiper-warn.diff ++++++ Index: hdparm-9.27/wiper-2.3/wiper.sh =================================================================== --- hdparm-9.27.orig/wiper-2.3/wiper.sh +++ hdparm-9.27/wiper-2.3/wiper.sh @@ -42,8 +42,11 @@ function find_prog(){ } 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." ## Ensure we have most of the necessary utilities available before trying to proceed: ## hash -r ## Refresh bash's cached PATH entries ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de