[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
88/94: gnu: giflib: Update to 5.2.1.
From: |
guix-commits |
Subject: |
88/94: gnu: giflib: Update to 5.2.1. |
Date: |
Thu, 5 Dec 2019 12:15:42 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit c9d4e14ab4f8d28d72ea64e95272c6b1d63216cb
Author: Marius Bakke <address@hidden>
Date: Thu Dec 5 00:43:00 2019 +0100
gnu: giflib: Update to 5.2.1.
* gnu/packages/patches/giflib-make-reallocarray-private.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/image.scm (giflib): Update to 5.2.1.
[source](uri): Adjust for new file name.
[source](patches): Remove.
[inputs]: Remove, as they were already unused.
[arguments]: Add #:make-flags. Adjust substitution. Delete configure
phase.
---
gnu/local.mk | 1 -
gnu/packages/image.scm | 22 ++--
.../patches/giflib-make-reallocarray-private.patch | 120 ---------------------
3 files changed, 11 insertions(+), 132 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 122e23f..1654fe7 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -889,7 +889,6 @@ dist_patch_DATA =
\
%D%/packages/patches/ghostscript-no-header-id.patch \
%D%/packages/patches/ghostscript-no-header-uuid.patch \
%D%/packages/patches/ghostscript-no-header-creationdate.patch \
- %D%/packages/patches/giflib-make-reallocarray-private.patch \
%D%/packages/patches/glib-tests-timer.patch \
%D%/packages/patches/glibc-CVE-2015-5180.patch \
%D%/packages/patches/glibc-CVE-2015-7547.patch \
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 0a2ad5a..9ab97fa 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -782,31 +782,31 @@ error-resilience, a Java-viewer for j2k-images, ...")
(define-public giflib
(package
(name "giflib")
- (version "5.1.4")
+ (version "5.2.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/giflib/giflib-"
- version ".tar.bz2"))
+ version ".tar.gz"))
(sha256
(base32
- "1md83dip8rf29y40cm5r7nn19705f54iraz6545zhwa6y8zyq9yz"))
- (patches (search-patches
- "giflib-make-reallocarray-private.patch"))))
+ "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii"))))
(build-system gnu-build-system)
(outputs '("bin" ; utility programs
"out")) ; library
- (inputs `(("libx11" ,libx11)
- ("libice" ,libice)
- ("libsm" ,libsm)
- ("perl" ,perl)))
(arguments
- `(#:phases
+ '(#:make-flags (list "CC=gcc"
+ (string-append "PREFIX="
+ (assoc-ref %outputs "out"))
+ (string-append "BINDIR="
+ (assoc-ref %outputs "bin") "/bin"))
+ #:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-html-doc-gen
(lambda _
- (substitute* "doc/Makefile.in"
+ (substitute* "doc/Makefile"
(("^all: allhtml manpages") ""))
#t))
+ (delete 'configure)
(add-after 'install 'install-manpages
(lambda* (#:key outputs #:allow-other-keys)
(let* ((bin (assoc-ref outputs "bin"))
diff --git a/gnu/packages/patches/giflib-make-reallocarray-private.patch
b/gnu/packages/patches/giflib-make-reallocarray-private.patch
deleted file mode 100644
index 69228c5..0000000
--- a/gnu/packages/patches/giflib-make-reallocarray-private.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-Move the declaration from gif_lib.h to gif_lib_private.h to solve
-conflicts when some .c-file #includes both stdlib.h and gif_lib.h.
-See also https://sourceforge.net/p/giflib/bugs/110/
-
-diff -ur giflib-5.1.4.orig/lib/dgif_lib.c giflib-5.1.4/lib/dgif_lib.c
---- giflib-5.1.4.orig/lib/dgif_lib.c 2018-02-28 20:31:02.294682673 +0100
-+++ giflib-5.1.4/lib/dgif_lib.c 2018-02-28 22:38:11.659126414 +0100
-@@ -396,7 +396,7 @@
-
- if (GifFile->SavedImages) {
- SavedImage* new_saved_images =
-- (SavedImage *)reallocarray(GifFile->SavedImages,
-+ (SavedImage *)giflib_private_reallocarray(GifFile->SavedImages,
- (GifFile->ImageCount + 1), sizeof(SavedImage));
- if (new_saved_images == NULL) {
- GifFile->Error = D_GIF_ERR_NOT_ENOUGH_MEM;
-@@ -1108,7 +1108,7 @@
- if (ImageSize > (SIZE_MAX / sizeof(GifPixelType))) {
- return GIF_ERROR;
- }
-- sp->RasterBits = (unsigned char *)reallocarray(NULL, ImageSize,
-+ sp->RasterBits = (unsigned char
*)giflib_private_reallocarray(NULL, ImageSize,
- sizeof(GifPixelType));
-
- if (sp->RasterBits == NULL) {
-diff -ur giflib-5.1.4.orig/lib/gifalloc.c giflib-5.1.4/lib/gifalloc.c
---- giflib-5.1.4.orig/lib/gifalloc.c 2018-02-28 20:31:02.294682673 +0100
-+++ giflib-5.1.4/lib/gifalloc.c 2018-02-28 22:38:11.657126423 +0100
-@@ -8,7 +8,7 @@
- #include <stdio.h>
- #include <string.h>
-
--#include "gif_lib.h"
-+#include "gif_lib_private.h"
-
- #define MAX(x, y) (((x) > (y)) ? (x) : (y))
-
-@@ -188,7 +188,7 @@
-
- /* perhaps we can shrink the map? */
- if (RoundUpTo < ColorUnion->ColorCount) {
-- GifColorType *new_map = (GifColorType *)reallocarray(Map,
-+ GifColorType *new_map = (GifColorType
*)giflib_private_reallocarray(Map,
- RoundUpTo, sizeof(GifColorType));
- if( new_map == NULL ) {
- GifFreeMapObject(ColorUnion);
-@@ -232,7 +232,7 @@
- if (*ExtensionBlocks == NULL)
- *ExtensionBlocks=(ExtensionBlock *)malloc(sizeof(ExtensionBlock));
- else {
-- ExtensionBlock* ep_new = (ExtensionBlock *)reallocarray
-+ ExtensionBlock* ep_new = (ExtensionBlock *)giflib_private_reallocarray
- (*ExtensionBlocks, (*ExtensionBlockCount + 1),
- sizeof(ExtensionBlock));
- if( ep_new == NULL )
-@@ -325,7 +325,7 @@
- if (GifFile->SavedImages == NULL)
- GifFile->SavedImages = (SavedImage *)malloc(sizeof(SavedImage));
- else
-- GifFile->SavedImages = (SavedImage
*)reallocarray(GifFile->SavedImages,
-+ GifFile->SavedImages = (SavedImage
*)giflib_private_reallocarray(GifFile->SavedImages,
- (GifFile->ImageCount + 1), sizeof(SavedImage));
-
- if (GifFile->SavedImages == NULL)
-@@ -355,7 +355,7 @@
- }
-
- /* next, the raster */
-- sp->RasterBits = (unsigned char *)reallocarray(NULL,
-+ sp->RasterBits = (unsigned char
*)giflib_private_reallocarray(NULL,
- (CopyFrom->ImageDesc.Height
*
- CopyFrom->ImageDesc.Width),
- sizeof(GifPixelType));
-@@ -369,7 +369,7 @@
-
- /* finally, the extension blocks */
- if (sp->ExtensionBlocks != NULL) {
-- sp->ExtensionBlocks = (ExtensionBlock *)reallocarray(NULL,
-+ sp->ExtensionBlocks = (ExtensionBlock
*)giflib_private_reallocarray(NULL,
- CopyFrom->ExtensionBlockCount,
- sizeof(ExtensionBlock));
- if (sp->ExtensionBlocks == NULL) {
-diff -ur giflib-5.1.4.orig/lib/gif_lib.h giflib-5.1.4/lib/gif_lib.h
---- giflib-5.1.4.orig/lib/gif_lib.h 2018-02-28 20:31:02.294682673 +0100
-+++ giflib-5.1.4/lib/gif_lib.h 2018-02-28 20:31:43.135716712 +0100
-@@ -244,9 +244,6 @@
- GifPixelType ColorTransIn2[]);
- extern int GifBitSize(int n);
-
--extern void *
--reallocarray(void *optr, size_t nmemb, size_t size);
--
-
/******************************************************************************
- Support for the in-core structures allocation (slurp mode).
-
******************************************************************************/
-diff -ur giflib-5.1.4.orig/lib/gif_lib_private.h
giflib-5.1.4/lib/gif_lib_private.h
---- giflib-5.1.4.orig/lib/gif_lib_private.h 2018-02-28 20:31:02.294682673
+0100
-+++ giflib-5.1.4/lib/gif_lib_private.h 2018-02-28 22:38:11.657126423 +0100
-@@ -54,6 +54,9 @@
- bool gif89;
- } GifFilePrivateType;
-
-+extern void *
-+giflib_private_reallocarray(void *optr, size_t nmemb, size_t size);
-+
- #endif /* _GIF_LIB_PRIVATE_H */
-
- /* end */
-diff -ur giflib-5.1.4.orig/lib/openbsd-reallocarray.c
giflib-5.1.4/lib/openbsd-reallocarray.c
---- giflib-5.1.4.orig/lib/openbsd-reallocarray.c 2018-02-28
20:31:02.295682659 +0100
-+++ giflib-5.1.4/lib/openbsd-reallocarray.c 2018-02-28 22:38:11.656126428
+0100
-@@ -27,7 +27,7 @@
- #define MUL_NO_OVERFLOW ((size_t)1 << (sizeof(size_t) * 4))
-
- void *
--reallocarray(void *optr, size_t nmemb, size_t size)
-+giflib_private_reallocarray(void *optr, size_t nmemb, size_t size)
- {
- if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
- nmemb > 0 && SIZE_MAX / nmemb < size) {
- 38/94: gnu: libxslt: Update to 1.1.34., (continued)
- 38/94: gnu: libxslt: Update to 1.1.34., guix-commits, 2019/12/05
- 45/94: gnu: libxi: Do not build static libraries., guix-commits, 2019/12/05
- 47/94: gnu: libxshmfence: Do not build static libraries., guix-commits, 2019/12/05
- 06/94: gnu: expat: Remove grafted replacement., guix-commits, 2019/12/05
- 55/94: gnu: libxres: Do not build static libraries., guix-commits, 2019/12/05
- 57/94: gnu: libxxf86dga: Do not build static libraries., guix-commits, 2019/12/05
- 64/94: gnu: libxfixes: Do not build static libraries., guix-commits, 2019/12/05
- 58/94: gnu: libxext: Do not build static libraries., guix-commits, 2019/12/05
- 70/94: gnu: libx11: Do not build static libraries., guix-commits, 2019/12/05
- 80/94: gnu: pixman: Do not build static libraries., guix-commits, 2019/12/05
- 88/94: gnu: giflib: Update to 5.2.1.,
guix-commits <=
- 46/94: gnu: libdmx: Do not build static libraries., guix-commits, 2019/12/05
- 30/94: gnu: openldap: Update to 2.4.48., guix-commits, 2019/12/05
- 44/94: gnu: libxinerama: Do not build static libraries., guix-commits, 2019/12/05
- 42/94: gnu: libxml2: Update to 2.9.10., guix-commits, 2019/12/05
- 52/94: gnu: libxkbfile: Do not build static libraries., guix-commits, 2019/12/05
- 62/94: gnu: libice: Do not build static libraries., guix-commits, 2019/12/05
- 63/94: gnu: libxau: Do not build static libraries., guix-commits, 2019/12/05
- 84/94: gnu: Remove python-libxml2 workaround., guix-commits, 2019/12/05
- 71/94: gnu: libxcursor: Do not build static libraries., guix-commits, 2019/12/05
- 69/94: gnu: libxcb: Do not build static libraries., guix-commits, 2019/12/05