Hello community,

here is the log from the commit of package spirv-tools for openSUSE:Factory 
checked in at 2017-02-07 12:04:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/spirv-tools (Old)
 and      /work/SRC/openSUSE:Factory/.spirv-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "spirv-tools"

Changes:
--------
--- /work/SRC/openSUSE:Factory/spirv-tools/spirv-tools.changes  2016-06-29 
15:09:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.spirv-tools.new/spirv-tools.changes     
2017-02-07 12:04:34.444228870 +0100
@@ -1,0 +2,15 @@
+Thu Feb  2 10:35:57 UTC 2017 - jeng...@inai.de
+
+- Update to new snapshot 2016.7~g24
+  * Add classes for representing SPIR-V language constructs in memory.
+  * Add an option to spvBinaryToText() to ignore header output.
+  * Add IrBuilder for constructing SPIR-V in-memory representation.
+  * Add Pass, PassManager, and StripDebugInfoPass.
+  * Add the spirv-opt command line tool.
+  * Fixes segfault for loops without back-edges
+  * Allow missing memory model instructions in modules.
+  * Add spirv-lesspipe.sh
+  * Add spirv-dis/spirv-as support for emacs when loading .spv binaries
+- Add gcc48.diff
+
+-------------------------------------------------------------------

Old:
----
  spirv-tools-1.1.g41.tar.xz

New:
----
  gcc48.diff
  spirv-tools-2016.7~g24.tar.xz

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

Other differences:
------------------
++++++ spirv-tools.spec ++++++
--- /var/tmp/diff_new_pack.ALbTR2/_old  2017-02-07 12:04:34.936159275 +0100
+++ /var/tmp/diff_new_pack.ALbTR2/_new  2017-02-07 12:04:34.936159275 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package spirv-tools
 #
-# 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
@@ -16,23 +16,26 @@
 #
 
 
-%define version_unconverted 1.1.g41
-%define lname libSPIRV-Tools-1_1
+%define version_unconverted 2016.7~g24
+%define lname libSPIRV-Tools-suse2
 
 Name:           spirv-tools
-Version:        1.1.g41
+Version:        2016.7~g24
 Release:        0
 Summary:        API and commands for processing SPIR-V modules
-License:        MIT
+License:        Apache-2.0
 Group:          Development/Libraries/C and C++
 Url:            https://github.com/KhronosGroup/SPIRV-Tools
 
 Source:         %name-%version.tar.xz
 Patch1:         ver.diff
+Patch2:         gcc48.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  bison
 BuildRequires:  cmake >= 2.8.12
 BuildRequires:  gcc-c++
+BuildRequires:  python
+BuildRequires:  python-xml
 BuildRequires:  python3
 BuildRequires:  spirv-headers
 
@@ -63,7 +66,7 @@
 
 %prep
 %setup -q
-%patch -P 1 -p1
+%patch -P 1 -P 2 -p1
 
 %build
 %cmake -D"SPIRV-Headers_SOURCE_DIR=%_prefix"
@@ -82,13 +85,19 @@
 %postun -n %lname -p /sbin/ldconfig
 
 %files
+%defattr(-,root,root)
 %_bindir/spirv-*
 %doc LICENSE
 
 %files -n %lname
-%_libdir/libSPIRV-Tools-1.1.so
+%defattr(-,root,root)
+%_libdir/libSPIRV-Tools.so.*
+%_libdir/libSPIRV-Tools-opt.so.*
 
 %files devel
+%defattr(-,root,root)
+%_libdir/libSPIRV-Tools.so
+%_libdir/libSPIRV-Tools-opt.so
 %_includedir/spirv-tools/
 
 %changelog

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ALbTR2/_old  2017-02-07 12:04:34.972154183 +0100
+++ /var/tmp/diff_new_pack.ALbTR2/_new  2017-02-07 12:04:34.972154183 +0100
@@ -3,8 +3,8 @@
                <param name="scm">git</param>
                <param 
name="url">https://github.com/KhronosGroup/SPIRV-Tools</param>
                <param name="filename">spirv-tools</param>
-               <param name="parent-tag">spirv-1.1-rev1</param>
-               <param name="versionformat">1.1.g@TAG_OFFSET@</param>
+               <param 
name="parent-tag">68c5f0436f1d4f1f137e608780190865d0b193ca</param>
+               <param name="versionformat">2016.7~g@TAG_OFFSET@</param>
        </service>
        <service name="recompress" mode="disabled">
                <param name="file">*.tar</param>

++++++ gcc48.diff ++++++
From: Jan Engelhardt <jeng...@inai.de>
Date: 2017-02-02 19:42:44.679588946 +0100

build: workaround gcc 4.8 bug

tools/io.h:41:38:
error: ignoring return value of 'long int ftell(FILE*)',
declared with attribute warn_unused_result [-Werror=unused-result,-Werror]
       if (sizeof(T) != 1 && (ftell(fp) % sizeof(T))) {

Workaround gcc 4.8's wrongful idea that ftell's return value
were ignored.
---
 tools/io.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: spirv-tools-2016.7~g24/tools/io.h
===================================================================
--- spirv-tools-2016.7~g24.orig/tools/io.h
+++ spirv-tools-2016.7~g24/tools/io.h
@@ -38,7 +38,8 @@ bool ReadFile(const char* filename, cons
         return false;
       }
     } else {
-      if (sizeof(T) != 1 && (ftell(fp) % sizeof(T))) {
+      long ftx = ftell(fp);
+      if (sizeof(T) != 1 && ftx % sizeof(T) != 0) {
         fprintf(stderr, "error: corrupted word found in file '%s'\n", 
filename);
         return false;
       }
++++++ ver.diff ++++++
--- /var/tmp/diff_new_pack.ALbTR2/_old  2017-02-07 12:04:34.996150788 +0100
+++ /var/tmp/diff_new_pack.ALbTR2/_new  2017-02-07 12:04:35.000150223 +0100
@@ -4,19 +4,31 @@
 Unversioned libraries suck!
 
 ---
- CMakeLists.txt |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ source/CMakeLists.txt     |    1 +
+ source/opt/CMakeLists.txt |    1 +
+ 2 files changed, 2 insertions(+)
 
-Index: SPIRV-Tools/CMakeLists.txt
+Index: spirv-tools-2016.7~g24/source/CMakeLists.txt
 ===================================================================
---- SPIRV-Tools.orig/CMakeLists.txt
-+++ SPIRV-Tools/CMakeLists.txt
-@@ -27,7 +27,7 @@
- cmake_minimum_required(VERSION 2.8.12)
- project(spirv-tools)
- enable_testing()
--set(SPIRV_TOOLS "SPIRV-Tools")
-+set(SPIRV_TOOLS "SPIRV-Tools-1.1")
+--- spirv-tools-2016.7~g24.orig/source/CMakeLists.txt
++++ spirv-tools-2016.7~g24/source/CMakeLists.txt
+@@ -219,6 +219,7 @@ set_source_files_properties(
+   PROPERTIES OBJECT_DEPENDS "${SPIRV_TOOLS_BUILD_VERSION_INC}")
  
- set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+ add_library(${SPIRV_TOOLS} ${SPIRV_SOURCES})
++set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse2)
+ spvtools_default_compile_options(${SPIRV_TOOLS})
+ target_include_directories(${SPIRV_TOOLS}
+   PUBLIC ${spirv-tools_SOURCE_DIR}/include
+Index: spirv-tools-2016.7~g24/source/opt/CMakeLists.txt
+===================================================================
+--- spirv-tools-2016.7~g24.orig/source/opt/CMakeLists.txt
++++ spirv-tools-2016.7~g24/source/opt/CMakeLists.txt
+@@ -53,6 +53,7 @@ add_library(SPIRV-Tools-opt
+   unify_const_pass.cpp
+ )
  
++set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse2)
+ spvtools_default_compile_options(SPIRV-Tools-opt)
+ target_include_directories(SPIRV-Tools-opt
+   PUBLIC ${spirv-tools_SOURCE_DIR}/include


Reply via email to