[packages/libnsgif] - updated to 0.2.0 - added patch
witekfl
witekfl at pld-linux.org
Mon Oct 30 11:38:14 CET 2017
commit 8083efb0e67a3913a16dcae6c0bea8dfc3fd5f27
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Mon Oct 30 11:37:51 2017 +0100
- updated to 0.2.0
- added patch
fall_through.patch | 12 ++++++++++++
libnsgif.spec | 8 +++++---
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/libnsgif.spec b/libnsgif.spec
index 165d3ed..414e129 100644
--- a/libnsgif.spec
+++ b/libnsgif.spec
@@ -5,14 +5,15 @@
Summary: Decoding library for the GIF format
Summary(pl.UTF-8): Biblioteka dekodująca pliki w formacie GIF
Name: libnsgif
-Version: 0.1.4
+Version: 0.2.0
Release: 1
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
-# Source0-md5: c4608d944f3a10ae236c8993c2d3b6d0
+# Source0-md5: 108d6103d198baf270a8993d5ebfb9e2
+Patch0: fall_through.patch
URL: http://www.netsurf-browser.org/projects/libnsgif/
-BuildRequires: netsurf-buildsystem >= 1.5
+BuildRequires: netsurf-buildsystem >= 1.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -53,6 +54,7 @@ Statyczna biblioteka libnsgif.
%prep
%setup -q
+%patch0 -p1
%build
export AR="%{__ar}"
diff --git a/fall_through.patch b/fall_through.patch
new file mode 100644
index 0000000..295aff0
--- /dev/null
+++ b/fall_through.patch
@@ -0,0 +1,12 @@
+--- libnsgif-0.2.0/src/lzw.c.orig 2017-10-13 10:55:06.000000000 +0200
++++ libnsgif-0.2.0/src/lzw.c 2017-10-30 11:35:43.430506835 +0100
+@@ -168,7 +168,9 @@ static inline lzw_result lzw__next_code(
+ const uint8_t *data = ctx->sb_data + (ctx->sb_bit >> 3);
+ switch (byte_advance) {
+ case 2: code |= data[2] << 16;
++ /* Fall through */
+ case 1: code |= data[1] << 8;
++ /* Fall through */
+ case 0: code |= data[0] << 0;
+ }
+ ctx->sb_bit += code_size;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libnsgif.git/commitdiff/8083efb0e67a3913a16dcae6c0bea8dfc3fd5f27
More information about the pld-cvs-commit
mailing list