Accepting request 824507 from home:elimat:branches:multimedia:libs
- Update to 2.11 * Fixed __cpuid() on fast float plugin to allow gnu gcc * Fixed copy alpha bounds check * Fixed data race condition on contexts pool * Fixed LUT16 write matrix on multichannel V2 profiles - Changes in 2.10 * Added a compilation toggle to remove "register" keyword in API. * Previously commercial, fast_float plug-in is now released as open source under GPL3 license. * MD5 functions are now accesible through plug-in API. * Added support for Visual Studio 2019 * Bug fixing. - Drop lcms2-cgats-memory-allocation.patch, its now in upstream code - Refresh patches - Run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/824507 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lcms2?expand=0&rev=74
This commit is contained in:
parent
267e11711b
commit
98815eacf6
3
lcms2-2.11.tar.gz
Normal file
3
lcms2-2.11.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc49b9c8e4d7cdff376040571a722902b682a795bf92985a85b48854c270772e
|
||||||
|
size 6574121
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20
|
|
||||||
size 10974649
|
|
@ -1,49 +0,0 @@
|
|||||||
Partial patch.
|
|
||||||
From 768f70ca405cd3159d990e962d54456773bb8cf8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Marti Maria <info@littlecms.com>
|
|
||||||
Date: Wed, 15 Aug 2018 20:07:56 +0200
|
|
||||||
Subject: [PATCH] Upgrade Visual studio 2017 15.8
|
|
||||||
|
|
||||||
...
|
|
||||||
- Add check on CGATS memory allocation (thanks to Quang Nguyen for
|
|
||||||
pointing out this)
|
|
||||||
---
|
|
||||||
Projects/VC2017/jpegicc/jpegicc.vcxproj | 1 +
|
|
||||||
Projects/VC2017/lcms2_DLL/lcms2_DLL.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/lcms2_static/lcms2_static.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/linkicc/linkicc.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/psicc/psicc.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/testbed/testbed.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/tiffdiff/tiffdiff.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/tifficc/tifficc.vcxproj | 2 +-
|
|
||||||
Projects/VC2017/transicc/transicc.vcxproj | 1 +
|
|
||||||
src/cmscgats.c | 14 ++++++++++----
|
|
||||||
10 files changed, 19 insertions(+), 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/cmscgats.c b/src/cmscgats.c
|
|
||||||
index 1a87613..8c3e96d 100644
|
|
||||||
--- a/src/cmscgats.c
|
|
||||||
+++ b/src/cmscgats.c
|
|
||||||
@@ -1506,10 +1506,16 @@ void AllocateDataSet(cmsIT8* it8)
|
|
||||||
t-> nSamples = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_FIELDS"));
|
|
||||||
t-> nPatches = atoi(cmsIT8GetProperty(it8, "NUMBER_OF_SETS"));
|
|
||||||
|
|
||||||
- t-> Data = (char**)AllocChunk (it8, ((cmsUInt32Number) t->nSamples + 1) * ((cmsUInt32Number) t->nPatches + 1) *sizeof (char*));
|
|
||||||
- if (t->Data == NULL) {
|
|
||||||
+ if (t -> nSamples < 0 || t->nSamples > 0x7ffe || t->nPatches < 0 || t->nPatches > 0x7ffe)
|
|
||||||
+ {
|
|
||||||
+ SynError(it8, "AllocateDataSet: too much data");
|
|
||||||
+ }
|
|
||||||
+ else {
|
|
||||||
+ t->Data = (char**)AllocChunk(it8, ((cmsUInt32Number)t->nSamples + 1) * ((cmsUInt32Number)t->nPatches + 1) * sizeof(char*));
|
|
||||||
+ if (t->Data == NULL) {
|
|
||||||
|
|
||||||
- SynError(it8, "AllocateDataSet: Unable to allocate data array");
|
|
||||||
+ SynError(it8, "AllocateDataSet: Unable to allocate data array");
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.19.0
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
|||||||
Index: src/cmscgats.c
|
diff -Naur lcms2-2.11.orig/src/cmscgats.c lcms2-2.11/src/cmscgats.c
|
||||||
===================================================================
|
--- lcms2-2.11.orig/src/cmscgats.c 2020-08-05 15:14:07.488229633 +0200
|
||||||
--- src/cmscgats.c 2012-09-10 18:01:51.000000000 +0200
|
+++ lcms2-2.11/src/cmscgats.c 2020-08-05 15:16:41.214899028 +0200
|
||||||
+++ src/cmscgats.c 2012-10-28 19:50:34.772962052 +0100
|
@@ -930,7 +930,7 @@
|
||||||
@@ -914,7 +914,7 @@
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11,7 +10,7 @@ Index: src/cmscgats.c
|
|||||||
if (FileNest->Stream == NULL) {
|
if (FileNest->Stream == NULL) {
|
||||||
|
|
||||||
SynError(it8, "File %s not found", FileNest->FileName);
|
SynError(it8, "File %s not found", FileNest->FileName);
|
||||||
@@ -1744,7 +1744,7 @@
|
@@ -1773,7 +1773,7 @@
|
||||||
|
|
||||||
memset(&sd, 0, sizeof(sd));
|
memset(&sd, 0, sizeof(sd));
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ Index: src/cmscgats.c
|
|||||||
if (!sd.stream) return FALSE;
|
if (!sd.stream) return FALSE;
|
||||||
|
|
||||||
for (i=0; i < it8 ->TablesCount; i++) {
|
for (i=0; i < it8 ->TablesCount; i++) {
|
||||||
@@ -2252,7 +2252,7 @@
|
@@ -2266,7 +2266,7 @@
|
||||||
cmsUInt32Number Size;
|
cmsUInt32Number Size;
|
||||||
cmsUInt8Number Ptr[133];
|
cmsUInt8Number Ptr[133];
|
||||||
|
|
||||||
@ -29,7 +28,7 @@ Index: src/cmscgats.c
|
|||||||
if (!fp) {
|
if (!fp) {
|
||||||
cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
|
cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -2330,7 +2330,7 @@
|
@@ -2349,7 +2349,7 @@
|
||||||
if (!hIT8) return NULL;
|
if (!hIT8) return NULL;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
--- src/lcms2_internal.h.orig
|
diff -Naur lcms2-2.11.orig/src/lcms2_internal.h lcms2-2.11/src/lcms2_internal.h
|
||||||
+++ src/lcms2_internal.h
|
--- lcms2-2.11.orig/src/lcms2_internal.h 2020-08-05 15:14:07.484229667 +0200
|
||||||
|
+++ lcms2-2.11/src/lcms2_internal.h 2020-08-05 15:19:51.517248023 +0200
|
||||||
@@ -37,6 +37,7 @@
|
@@ -37,6 +37,7 @@
|
||||||
// assert macro is part of C99 as per 7.2
|
// assert macro is part of C99 as per 7.2
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -8,7 +9,7 @@
|
|||||||
// Some needed constants
|
// Some needed constants
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
# define M_PI 3.14159265358979323846
|
# define M_PI 3.14159265358979323846
|
||||||
@@ -602,4 +603,5 @@
|
@@ -1125,4 +1126,5 @@
|
||||||
|
|
||||||
|
|
||||||
#define _lcms_internal_H
|
#define _lcms_internal_H
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 5 13:31:44 UTC 2020 - Matthias Eliasson <elimat@opensuse.org>
|
||||||
|
|
||||||
|
- Update to 2.11
|
||||||
|
* Fixed __cpuid() on fast float plugin to allow gnu gcc
|
||||||
|
* Fixed copy alpha bounds check
|
||||||
|
* Fixed data race condition on contexts pool
|
||||||
|
* Fixed LUT16 write matrix on multichannel V2 profiles
|
||||||
|
- Changes in 2.10
|
||||||
|
* Added a compilation toggle to remove "register" keyword in API.
|
||||||
|
* Previously commercial, fast_float plug-in is now released as open source
|
||||||
|
under GPL3 license.
|
||||||
|
* MD5 functions are now accesible through plug-in API.
|
||||||
|
* Added support for Visual Studio 2019
|
||||||
|
* Bug fixing.
|
||||||
|
- Drop lcms2-cgats-memory-allocation.patch, its now in upstream code
|
||||||
|
- Refresh patches
|
||||||
|
- Run spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 3 17:34:41 CEST 2018 - sbrabec@suse.com
|
Wed Oct 3 17:34:41 CEST 2018 - sbrabec@suse.com
|
||||||
|
|
||||||
|
53
lcms2.spec
53
lcms2.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lcms2
|
# spec file for package lcms2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,23 +17,25 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: lcms2
|
Name: lcms2
|
||||||
|
Version: 2.11
|
||||||
|
Release: 0
|
||||||
Summary: Little CMS Engine - A color managment library and tools
|
Summary: Little CMS Engine - A color managment library and tools
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/Graphics/Other
|
Group: Productivity/Graphics/Other
|
||||||
Url: http://www.littlecms.com/
|
URL: http://www.littlecms.com/
|
||||||
Version: 2.9
|
Source0: http://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
|
||||||
Release: 0
|
Source1: baselibs.conf
|
||||||
|
Patch1: lcms2-ocloexec.patch
|
||||||
|
Patch2: lcms2-visibility.patch
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora_version}
|
%if 0%{?fedora_version}
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
@ -41,7 +43,6 @@ BuildRequires: libtiff-devel
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?mandriva_version}
|
%if 0%{?mandriva_version}
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
@ -50,14 +51,6 @@ BuildRequires: pkgconfig
|
|||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Source0: http://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
|
|
||||||
Source1: baselibs.conf
|
|
||||||
Patch1: lcms2-ocloexec.patch
|
|
||||||
Patch2: lcms2-visibility.patch
|
|
||||||
# PATCH-FIX-SECURITY lcms2-cgats-memory-allocation.patch bsc1108813 CVE-2018-16435 sbrabec@suse.cz -- Add check on CGATS memory allocation.
|
|
||||||
Patch3: lcms2-cgats-memory-allocation.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Littlecms is a small speed optimized color management engine.
|
Littlecms is a small speed optimized color management engine.
|
||||||
Little CMS intends to be a small-footprint color management engine
|
Little CMS intends to be a small-footprint color management engine
|
||||||
@ -93,59 +86,51 @@ BuildArch: noarch
|
|||||||
%description -n liblcms2-doc
|
%description -n liblcms2-doc
|
||||||
This package contains user and developer documentation for lcms2.
|
This package contains user and developer documentation for lcms2.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
chmod a-x doc/* COPYING AUTHORS
|
chmod a-x doc/* COPYING AUTHORS
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
|
|
||||||
# FIXME --without-threads is a workaround for a linker error
|
# FIXME --without-threads is a workaround for a linker error
|
||||||
%configure --disable-static --without-threads
|
%configure --disable-static --without-threads
|
||||||
|
|
||||||
make %{?_smp_flags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# FIXME before submitting to factory
|
# FIXME before submitting to factory
|
||||||
make %{?_smp_flags} check || true
|
%make_build check || true
|
||||||
make utils
|
%make_build utils
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
|
|
||||||
rm %{buildroot}/%{_libdir}/liblcms2.la
|
rm %{buildroot}/%{_libdir}/liblcms2.la
|
||||||
|
|
||||||
%post -n liblcms2-2 -p /sbin/ldconfig
|
%post -n liblcms2-2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n liblcms2-2 -p /sbin/ldconfig
|
%postun -n liblcms2-2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc COPYING AUTHORS
|
%doc AUTHORS
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man?/*.*
|
%{_mandir}/man?/*.*
|
||||||
|
|
||||||
%files -n liblcms2-2
|
%files -n liblcms2-2
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/liblcms2.so.2*
|
%{_libdir}/liblcms2.so.2*
|
||||||
|
|
||||||
%files -n liblcms2-devel
|
%files -n liblcms2-devel
|
||||||
%defattr(-,root,root)
|
|
||||||
|
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%files -n liblcms2-doc
|
%files -n liblcms2-doc
|
||||||
%defattr(-,root,root)
|
%doc doc/*.odt
|
||||||
%doc doc/*.pdf
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user