commit diskscan for openSUSE:Factory

2018-03-08 Thread root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2018-03-08 10:59:28

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Thu Mar  8 10:59:28 2018 rev:7 rq:584029 version:0.20

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2017-08-28 
15:33:14.781108178 +0200
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2018-03-08 
10:59:37.796715276 +0100
@@ -1,0 +2,6 @@
+Wed Mar  7 17:39:47 UTC 2018 - mplus...@suse.com
+
+- Update dependencies
+- Modernize spec file using spec-cleaner
+
+---



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.mviSRc/_old  2018-03-08 10:59:38.380694168 +0100
+++ /var/tmp/diff_new_pack.mviSRc/_new  2018-03-08 10:59:38.384694024 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package diskscan
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -20,16 +20,16 @@
 Version:0.20
 Release:0
 Summary:Scan disk for bad or near failure sectors
-License:GPL-3.0+
+License:GPL-3.0-or-later
 Group:  Hardware/Other
-Url:http://blog.disksurvey.org/proj/diskscan/
+URL:http://blog.disksurvey.org/proj/diskscan/
 Source0:
https://github.com/baruch/diskscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  cmake >= 3.0.2
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
-BuildRequires:  python-PyYAML
-BuildRequires:  python-beautifulsoup
-BuildRequires:  python-markdown
+BuildRequires:  python3-Markdown
+BuildRequires:  python3-PyYAML
+BuildRequires:  python3-beautifulsoup4
 BuildRequires:  pkgconfig(ncurses)
 BuildRequires:  pkgconfig(zlib)
 
@@ -54,7 +54,8 @@
 %cmake_install
 
 %files
-%doc COPYING README*
+%license COPYING
+%doc README*
 %{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1%{ext_man}
 




commit diskscan for openSUSE:Factory

2017-08-28 Thread root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2017-08-28 15:33:09

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Mon Aug 28 15:33:09 2017 rev:6 rq:519074 version:0.20

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2016-10-20 
23:09:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2017-08-28 
15:33:14.781108178 +0200
@@ -1,0 +2,7 @@
+Mon Aug 28 09:48:56 UTC 2017 - mplus...@suse.com
+
+- Update to version 0.20:
+  * Misc internal changes
+  * Update libscsicmd
+
+---

Old:

  diskscan-0.19.tar.gz

New:

  diskscan-0.20.tar.gz



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.PpBYlC/_old  2017-08-28 15:33:16.036931618 +0200
+++ /var/tmp/diff_new_pack.PpBYlC/_new  2017-08-28 15:33:16.040931056 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package diskscan
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -17,7 +17,7 @@
 
 
 Name:   diskscan
-Version:0.19
+Version:0.20
 Release:0
 Summary:Scan disk for bad or near failure sectors
 License:GPL-3.0+
@@ -54,7 +54,6 @@
 %cmake_install
 
 %files
-%defattr(-,root,root)
 %doc COPYING README*
 %{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1%{ext_man}

++ diskscan-0.19.tar.gz -> diskscan-0.20.tar.gz ++
 4980 lines of diff (skipped)




commit diskscan for openSUSE:Factory

2016-10-20 Thread h_root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2016-10-20 23:08:20

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2016-08-20 
12:27:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2016-10-20 
23:09:28.0 +0200
@@ -1,0 +2,5 @@
+Sat Oct 15 10:18:54 UTC 2016 - mplus...@suse.com
+
+- Adjust to latest cmake macros
+
+---



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.2hNWvJ/_old  2016-10-20 23:09:29.0 +0200
+++ /var/tmp/diff_new_pack.2hNWvJ/_new  2016-10-20 23:09:29.0 +0200
@@ -24,7 +24,7 @@
 Group:  Hardware/Other
 Url:http://blog.disksurvey.org/proj/diskscan/
 Source0:
https://github.com/baruch/diskscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  cmake
+BuildRequires:  cmake >= 3.0.2
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  python-PyYAML
@@ -47,9 +47,8 @@
 %setup -q
 
 %build
-%cmake \
-  -DCMAKE_BUILD_TYPE=RelWithDebInfo
-make %{?_smp_mflags}
+%cmake
+%make_jobs
 
 %install
 %cmake_install




commit diskscan for openSUSE:Factory

2016-08-20 Thread h_root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2016-08-20 12:27:23

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2015-11-28 
15:19:19.0 +0100
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2016-08-20 
12:27:25.0 +0200
@@ -1,0 +2,5 @@
+Thu Aug 18 10:41:15 UTC 2016 - mplus...@suse.com
+
+- Small spec file cleanup
+
+---

Old:

  0.19.tar.gz

New:

  diskscan-0.19.tar.gz



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.wWrj8K/_old  2016-08-20 12:27:25.0 +0200
+++ /var/tmp/diff_new_pack.wWrj8K/_new  2016-08-20 12:27:25.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package diskscan
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -23,14 +23,15 @@
 License:GPL-3.0+
 Group:  Hardware/Other
 Url:http://blog.disksurvey.org/proj/diskscan/
-Source0:https://github.com/baruch/diskscan/archive/%{version}.tar.gz
+Source0:
https://github.com/baruch/diskscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
-BuildRequires:  ncurses-devel
+BuildRequires:  pkgconfig
 BuildRequires:  python-PyYAML
 BuildRequires:  python-beautifulsoup
 BuildRequires:  python-markdown
-BuildRequires:  zlib-devel
+BuildRequires:  pkgconfig(ncurses)
+BuildRequires:  pkgconfig(zlib)
 
 %description
 DiskScan is a Unix/Linux tool to scan a block device and check
@@ -46,7 +47,8 @@
 %setup -q
 
 %build
-%cmake
+%cmake \
+  -DCMAKE_BUILD_TYPE=RelWithDebInfo
 make %{?_smp_mflags}
 
 %install
@@ -56,6 +58,6 @@
 %defattr(-,root,root)
 %doc COPYING README*
 %{_bindir}/%{name}
-%{_mandir}/man*/%{name}.*.gz
+%{_mandir}/man1/%{name}.1%{ext_man}
 
 %changelog




commit diskscan for openSUSE:Factory

2015-11-28 Thread h_root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2015-11-28 15:19:18

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2015-11-16 
18:51:32.0 +0100
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2015-11-28 
15:19:19.0 +0100
@@ -1,0 +2,8 @@
+Thu Nov 26 13:18:40 UTC 2015 - mplus...@suse.com
+
+- Update to 0.19
+  * When a partition is write mounted do not attempt to fix it as 
+it will mess the filesystem.
+  * Also fix building on Debian/kFreeBSD.
+
+---

Old:

  0.18.tar.gz

New:

  0.19.tar.gz



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.GPZFaw/_old  2015-11-28 15:19:19.0 +0100
+++ /var/tmp/diff_new_pack.GPZFaw/_new  2015-11-28 15:19:19.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   diskscan
-Version:0.18
+Version:0.19
 Release:0
 Summary:Scan disk for bad or near failure sectors
 License:GPL-3.0+

++ 0.18.tar.gz -> 0.19.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diskscan-0.18/CMakeLists.txt 
new/diskscan-0.19/CMakeLists.txt
--- old/diskscan-0.18/CMakeLists.txt2015-11-06 20:07:24.0 +0100
+++ new/diskscan-0.19/CMakeLists.txt2015-11-15 21:56:05.0 +0100
@@ -1,11 +1,16 @@
 cmake_minimum_required(VERSION 3.0.2)
 project(diskscan
-VERSION 0.18)
+VERSION 0.19)
 
 export(PACKAGE diskscan)
 
 set(PACKAGE_VERSION ${PROJECT_VERSION})
 
+# Default to a debug build
+if(NOT CMAKE_BUILD_TYPE)
+set(CMAKE_BUILD_TYPE Debug)
+endif(NOT CMAKE_BUILD_TYPE)
+
 # Pull in zlib
 find_package(ZLIB REQUIRED)
 
@@ -24,14 +29,18 @@
 find_library(tinfo_LIBRARY NAMES tinfo curses)
 
 # Architecture files
+message("SYSTEM NAME: ${CMAKE_SYSTEM_NAME}")
 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
 set(ARCH_SRC "arch/arch-linux.c")
 set(ARCH_INCLUDE "arch/arch-linux.h")
+elseif (${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD")
+set(ARCH_SRC "arch/arch-freebsd.c")
+set(ARCH_INCLUDE "arch/arch-posix.h")
 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
 set(ARCH_SRC "arch/arch-freebsd.c")
 set(ARCH_INCLUDE "arch/arch-posix.h")
 else()
-set(ARCH_SRC "arch/arch-posix.c")
+set(ARCH_SRC "arch/arch-generic.c")
 set(ARCH_INCLUDE "arch/arch-posix.h")
 endif()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diskscan-0.18/DEVELOP.md new/diskscan-0.19/DEVELOP.md
--- old/diskscan-0.18/DEVELOP.md2015-11-06 20:07:24.0 +0100
+++ new/diskscan-0.19/DEVELOP.md2015-11-15 21:56:05.0 +0100
@@ -1,5 +1,11 @@
 # Developing
 
+## Debug build
+
+To create a debug build you can tell cmake:
+
+cmake -DCMAKE_BUILD_TYPE=DEBUG .
+
 ## Updating Libraries
 
 Update libscsicmd:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/diskscan-0.18/arch/arch-freebsd.c 
new/diskscan-0.19/arch/arch-freebsd.c
--- old/diskscan-0.18/arch/arch-freebsd.c   2015-11-06 20:07:24.0 
+0100
+++ new/diskscan-0.19/arch/arch-freebsd.c   2015-11-15 21:56:05.0 
+0100
@@ -3,6 +3,9 @@
 #include 
 #include 
 #include 
+#include 
+#include 
+#include 
 
 #include "arch-posix.c"
 #include 
@@ -33,6 +36,37 @@
return 0;
 }
 
+disk_mount_e disk_dev_mount_state(const char *path)
+{
+   int num_mounts;
+   struct statfs *mntbuf;
+   disk_mount_e last_state;
+   int i;
+
+   num_mounts = getmntinfo(, MNT_WAIT);
+   if (num_mounts == 0) {
+   ERROR("Failed to get the mount information, errno=%d", errno);
+   return DISK_MOUNTED_RW;
+   }
+
+   last_state = DISK_NOT_MOUNTED;
+   for (i = 0; i < num_mounts; i++) {
+   struct statfs *mnt = [i];
+
+   if (strncmp(path, mnt->f_mntfromname, strlen(path)) == 0) {
+   disk_mount_e cur_state = DISK_NOT_MOUNTED;
+   if (mnt->f_flags == MNT_RDONLY)
+   cur_state = DISK_MOUNTED_RO;
+   else
+   cur_state = DISK_MOUNTED_RW;
+
+   if (cur_state > last_state)
+   last_state = cur_state;
+   }
+   }
+
+   return last_state;
+}
 void mac_read(unsigned char *buf, int len)
 {
struct ifreq ifr;
diff -urN '--exclude=CVS' 

commit diskscan for openSUSE:Factory

2015-11-16 Thread h_root
Hello community,

here is the log from the commit of package diskscan for openSUSE:Factory 
checked in at 2015-11-16 18:51:31

Comparing /work/SRC/openSUSE:Factory/diskscan (Old)
 and  /work/SRC/openSUSE:Factory/.diskscan.new (New)


Package is "diskscan"

Changes:

--- /work/SRC/openSUSE:Factory/diskscan/diskscan.changes2015-05-11 
19:49:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.diskscan.new/diskscan.changes   2015-11-16 
18:51:32.0 +0100
@@ -1,0 +2,11 @@
+Fri Nov 13 18:10:15 UTC 2015 - mplus...@suse.com
+
+- Update to 0.18
+  * Switched to CMake as the build system, it is more common than 
+   ninja-build and so more useful for those who build by hand 
+   (sysadmins).
+   * Fix build issues on FreeBSD.
+   * Fix disk on 4k granularity to avoid overwriting areas that are 
+   usable, this is useful on media errors.
+
+---

Old:

  0.15.tar.gz

New:

  0.18.tar.gz



Other differences:
--
++ diskscan.spec ++
--- /var/tmp/diff_new_pack.7yeGxH/_old  2015-11-16 18:51:33.0 +0100
+++ /var/tmp/diff_new_pack.7yeGxH/_new  2015-11-16 18:51:33.0 +0100
@@ -17,19 +17,20 @@
 
 
 Name:   diskscan
-Version:0.15
+Version:0.18
 Release:0
 Summary:Scan disk for bad or near failure sectors
 License:GPL-3.0+
 Group:  Hardware/Other
 Url:http://blog.disksurvey.org/proj/diskscan/
 Source0:https://github.com/baruch/diskscan/archive/%{version}.tar.gz
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  ctags
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+BuildRequires:  ncurses-devel
 BuildRequires:  python-PyYAML
 BuildRequires:  python-beautifulsoup
 BuildRequires:  python-markdown
+BuildRequires:  zlib-devel
 
 %description
 DiskScan is a Unix/Linux tool to scan a block device and check
@@ -43,17 +44,13 @@
 
 %prep
 %setup -q
-./autogen.sh
 
 %build
-%configure
-make V=1 %{?_smp_mflags}
+%cmake
+make %{?_smp_mflags}
 
 %install
-make V=1 DESTDIR=%{buildroot} install %{?_smp_mflags}
-# Let's use %%doc macro.
-rm %{buildroot}/%{_datadir}/doc/%{name}/README.md
-
+%cmake_install
 
 %files
 %defattr(-,root,root)

++ 0.15.tar.gz -> 0.18.tar.gz ++
 18316 lines of diff (skipped)