commit pmdk-convert for openSUSE:Factory

2019-10-23 Thread root
Hello community,

here is the log from the commit of package pmdk-convert for openSUSE:Factory 
checked in at 2019-10-23 15:51:58

Comparing /work/SRC/openSUSE:Factory/pmdk-convert (Old)
 and  /work/SRC/openSUSE:Factory/.pmdk-convert.new.2352 (New)


Package is "pmdk-convert"

Wed Oct 23 15:51:58 2019 rev:3 rq:741997 version:1.7

Changes:

--- /work/SRC/openSUSE:Factory/pmdk-convert/pmdk-convert.changes
2019-05-02 19:21:35.577816286 +0200
+++ /work/SRC/openSUSE:Factory/.pmdk-convert.new.2352/pmdk-convert.changes  
2019-10-23 15:52:07.490777266 +0200
@@ -1,0 +2,8 @@
+Fri Oct 11 14:27:45 UTC 2019 - Nicolas Morey-Chaisemartin 

+
+- Update to pmdk-convert v1.7 (jsc#SLE-9886)
+  - Adds support for PMDK 1.7.
+- Add cmake_hash.patch because binary file are dropped to avoid ClamAV 
warnings, pre downloaded
+tarballs have not the expected hash.
+
+---

Old:

  nvml-1.0.tar.gz
  nvml-1.1.tar.gz
  nvml-1.2.3.tar.gz
  nvml-1.3.1.tar.gz
  nvml-1.4.2.tar.gz
  nvml-1.5.1.tar.gz
  pmdk-convert-1.5.1.tar.gz

New:

  1.0.tar.gz
  1.1.tar.gz
  1.2.4.tar.gz
  1.3.3.tar.gz
  1.4.3.tar.gz
  1.5.2.tar.gz
  1.6.1.tar.gz
  1.7.tar.gz
  cmake_hash.patch
  pmdk-convert-1.7.tar.gz



Other differences:
--
++ pmdk-convert.spec ++
--- /var/tmp/diff_new_pack.oUV31e/_old  2019-10-23 15:52:08.354778200 +0200
+++ /var/tmp/diff_new_pack.oUV31e/_new  2019-10-23 15:52:08.354778200 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   pmdk-convert
-Version:1.5.1
+Version:1.7
 Release:0
 Summary:PMDK pool conversion tool
 License:BSD-3-Clause
@@ -27,20 +27,25 @@
 Source: 
https://github.com/pmem/pmdk-convert/archive/%version.tar.gz#/%{name}-%{version}.tar.gz
 # Script to predownload the artifacts needed for building and add them for 
commit
 Source999:  download_artifacts.sh
+Patch0: cmake_hash.patch
 
 # This section is autogenerated by download_artifacts.sh
 # DO NOT MODIFY it nor the START/END markers
 ## START_NVML_SOURCE
-Source1:nvml-1.0.tar.gz
-Source2:nvml-1.1.tar.gz
-Source3:nvml-1.2.3.tar.gz
-Source4:nvml-1.3.1.tar.gz
-Source5:nvml-1.4.2.tar.gz
-Source6:nvml-1.5.1.tar.gz
+Source1:1.0.tar.gz
+Source2:1.1.tar.gz
+Source3:1.2.4.tar.gz
+Source4:1.3.3.tar.gz
+Source5:1.4.3.tar.gz
+Source6:1.5.2.tar.gz
+Source7:1.6.1.tar.gz
+Source8:1.7.tar.gz
 
 ## END_NVML_SOURCE
 
 BuildRequires:  cmake
+BuildRequires:  gcc
+BuildRequires:  gcc-c++
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 # By design, NVML does not support any 32-bit architecture.
@@ -58,6 +63,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 # Copy And Extract pre downloaded nvml tarball
 # This section is autogenerated by download_artifacts.sh
 # This copy/extract is needed to mimic a previous execution of
@@ -76,6 +82,10 @@
 tar -xf %{S:5}
 cp %{S:6} .
 tar -xf %{S:6}
+cp %{S:7} .
+tar -xf %{S:7}
+cp %{S:8} .
+tar -xf %{S:8}
 
 ## END_NVML_SETUP
 

++ nvml-1.0.tar.gz -> 1.0.tar.gz ++

++ nvml-1.0.tar.gz -> 1.1.tar.gz ++
 115722 lines of diff (skipped)

++ nvml-1.2.3.tar.gz -> 1.2.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pmdk-1.2.3/.travis.yml new/pmdk-1.2.4/.travis.yml
--- old/pmdk-1.2.3/.travis.yml  2017-05-19 08:57:18.0 +0200
+++ new/pmdk-1.2.4/.travis.yml  2019-08-27 15:37:26.0 +0200
@@ -1,3 +1,15 @@
+dist: trusty
+# use temporarily the previous version of Trusty image
+# until Travis fixes issue with mounting permissions
+group: deprecated-2017Q2
+
+sudo: required
+
+language: c
+
+services:
+  - docker
+
 before_install:
   - export HOST_WORKDIR=`pwd`
   - cd utils/docker
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pmdk-1.2.3/.version new/pmdk-1.2.4/.version
--- old/pmdk-1.2.3/.version 1970-01-01 01:00:00.0 +0100
+++ new/pmdk-1.2.4/.version 2019-08-27 15:37:26.0 +0200
@@ -0,0 +1 @@
+1.2.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pmdk-1.2.3/ChangeLog new/pmdk-1.2.4/ChangeLog
--- old/pmdk-1.2.3/ChangeLog2017-05-19 08:57:18.0 +0200
+++ new/pmdk-1.2.4/ChangeLog2019-08-27 15:37:26.0 +0200
@@ -1,3 +1,8 @@
+Tue Aug 27 2019 Marcin Ĺšlusarz 
+
+   * Version 1.2.4
+   Bug fixes:
+   - common: fix device dax detection (compatibility with newer kernels)
 
 Thu May 18 2017 Krzysztof Czurylo 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pmdk-1.2.3/src/common/file.c 

commit pmdk-convert for openSUSE:Factory

2019-05-02 Thread root
Hello community,

here is the log from the commit of package pmdk-convert for openSUSE:Factory 
checked in at 2019-05-02 19:21:25

Comparing /work/SRC/openSUSE:Factory/pmdk-convert (Old)
 and  /work/SRC/openSUSE:Factory/.pmdk-convert.new.5148 (New)


Package is "pmdk-convert"

Thu May  2 19:21:25 2019 rev:2 rq:700036 version:1.5.1

Changes:

--- /work/SRC/openSUSE:Factory/pmdk-convert/pmdk-convert.changes
2019-04-30 13:02:11.222138840 +0200
+++ /work/SRC/openSUSE:Factory/.pmdk-convert.new.5148/pmdk-convert.changes  
2019-05-02 19:21:35.577816286 +0200
@@ -1,0 +2,12 @@
+Tue Apr 30 15:18:22 UTC 2019 - Nicolas Morey-Chaisemartin 

+
+- Reenable ClamAV
+- Strip nvml tarballs from tests that mess up with ClamAV results
+- Rename source tarball for more clarity
+
+---
+Tue Apr 30 12:53:33 UTC 2019 - Nicolas Morey-Chaisemartin 

+
+- Disable ClamAV checks due to failures on test binaries in pmdk tarballs
+
+---

Old:

  1.5.1.tar.gz

New:

  pmdk-convert-1.5.1.tar.gz



Other differences:
--
++ pmdk-convert.spec ++
--- /var/tmp/diff_new_pack.Hs8FDG/_old  2019-05-02 19:21:36.385817991 +0200
+++ /var/tmp/diff_new_pack.Hs8FDG/_new  2019-05-02 19:21:36.385817991 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pmdk-convert
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright 2016, Intel Corporation
 #
 # All modifications and additions to the file contributed by third parties
@@ -16,6 +16,7 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:   pmdk-convert
 Version:1.5.1
 Release:0
@@ -23,7 +24,7 @@
 License:BSD-3-Clause
 Group:  System/Base
 Url:http://pmem.io/pmdk/
-Source: https://github.com/pmem/pmdk-convert/archive/%version.tar.gz
+Source: 
https://github.com/pmem/pmdk-convert/archive/%version.tar.gz#/%{name}-%{version}.tar.gz
 # Script to predownload the artifacts needed for building and add them for 
commit
 Source999:  download_artifacts.sh
 
@@ -59,6 +60,8 @@
 %setup -q
 # Copy And Extract pre downloaded nvml tarball
 # This section is autogenerated by download_artifacts.sh
+# This copy/extract is needed to mimic a previous execution of
+# cmake so it will not try to download those file from the network.
 # DO NOT MODIFY it nor the START/END markers
 ## START_NVML_SETUP
 cp %{S:1} .
@@ -77,6 +80,8 @@
 ## END_NVML_SETUP
 
 %build
+# For some reason cmake fails to extract the nvml tarball if LANG is not UTF8
+export LANG=en_US.UTF-8
 # Enable RPATH as the build system itself requires it
 %cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH:BOOL=OFF
 %cmake_build
@@ -92,5 +97,4 @@
 %license LICENSE
 %doc ChangeLog
 
-
 %changelog

++ download_artifacts.sh ++
--- /var/tmp/diff_new_pack.Hs8FDG/_old  2019-05-02 19:21:36.409818043 +0200
+++ /var/tmp/diff_new_pack.Hs8FDG/_new  2019-05-02 19:21:36.409818043 +0200
@@ -1,14 +1,14 @@
 #!/bin/bash -ex
 rm -f nvml-[0-9.]*.tar.gz
 VERSION=$(rpmspec --parse pmdk-convert.spec | egrep '^Version' | awk '{ print 
$NF}')
-tar -xf $VERSION.tar.gz
+tar -xf pmdk-convert-$VERSION.tar.gz
 cd pmdk-convert-$VERSION
 rm -Rf build
 mkdir -p build
 cd build
 cmake .. || true
 cd ..
-mv nvml-[0-9.]*.tar.gz ..
+cp nvml-[0-9.]*.tar.gz ..
 cd ../
 FILELIST=(nvml-[0-9.]*.tar.gz)
 osc add "${FILELIST[@]}"
@@ -18,6 +18,15 @@
 SETUP=""
 i=1
 for file in "${FILELIST[@]}"; do
+   # Remove tests bins from the tarball as they may contain binaries that 
mess up ClamAV
+   dir=$(tar -tf $file | head -n 1 | awk '{ print $NF}')
+   if [ -d $dir ]; then
+   rm -Rf $dir
+   fi
+   tar --same-permissions -xf $file
+   find $dir/src/test -name "*.bin" -exec rm {} \;
+   rm -f $file
+   tar --owner=root --group=root -czf  $file $dir
SOURCES+="Source$i:$file\n"
SETUP+="cp %{S:$i} .\ntar -xf %{S:$i}\n"
i=$(($i + 1))

++ nvml-1.0.tar.gz ++
Binary files old/pmdk-1.0/src/test/arch_flags/elf.bin and 
new/pmdk-1.0/src/test/arch_flags/elf.bin differ
Binary files old/pmdk-1.0/src/test/arch_flags/elf_err_e_machine.bin and 
new/pmdk-1.0/src/test/arch_flags/elf_err_e_machine.bin differ
Binary files old/pmdk-1.0/src/test/arch_flags/elf_err_ei_class.bin and 
new/pmdk-1.0/src/test/arch_flags/elf_err_ei_class.bin differ
Binary files old/pmdk-1.0/src/test/arch_flags/elf_err_ei_data.bin and 
new/pmdk-1.0/src/test/arch_flags/elf_err_ei_data.bin differ
Binary files old/pmdk-1.0/src/test/arch_flags/elf_err_mag.bin and