Merge pull request #8388 from lazka/giflib-abi-revert

giflib: revert an ABI break to make libgdiplus build again
This commit is contained in:
Christoph Reiter
2021-04-16 20:19:23 +02:00
committed by GitHub
3 changed files with 25 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ _realname=giflib
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=5.2.1
pkgrel=1
pkgrel=2
pkgdesc="A library for reading and writing gif images (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
@@ -14,9 +14,11 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "xmlto")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
options=('staticlibs' 'strip')
source=("https://downloads.sourceforge.net/sourceforge/giflib/${_realname}-${pkgver}.tar.gz"
"001-mingw-build.patch")
"001-mingw-build.patch"
"giflib_quantize.patch")
sha256sums=('31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd'
'2b2262ddea87fc07be82e10aeb39eb699239f883c899aa18a16e4d4e40af8ec8')
'2b2262ddea87fc07be82e10aeb39eb699239f883c899aa18a16e4d4e40af8ec8'
'29f0d5a98520cf908a11325987ca9ef2454ca8cb85ce9815b75a52956b9df28a')
noextract=(${_realname}-${pkgver}.tar.gz)
prepare() {
@@ -25,6 +27,8 @@ prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -Np1 -i "${srcdir}/001-mingw-build.patch"
# https://src.fedoraproject.org/rpms/giflib/c/109bf038d703a471b857aba44af673be103d7079
patch -Np1 -i "${srcdir}/giflib_quantize.patch"
}
build() {

View File

@@ -0,0 +1,17 @@
diff -rupN giflib-5.2.1/Makefile giflib-5.2.1-new/Makefile
--- giflib-5.2.1/Makefile 2019-06-24 18:08:57.000000000 +0200
+++ giflib-5.2.1-new/Makefile 2019-10-01 13:02:33.227952230 +0200
@@ -29,11 +29,11 @@ LIBPOINT=0
LIBVER=$(LIBMAJOR).$(LIBMINOR).$(LIBPOINT)
SOURCES = dgif_lib.c egif_lib.c gifalloc.c gif_err.c gif_font.c \
- gif_hash.c openbsd-reallocarray.c
+ gif_hash.c openbsd-reallocarray.c quantize.c
HEADERS = gif_hash.h gif_lib.h gif_lib_private.h
OBJECTS = $(SOURCES:.c=.o)
-USOURCES = qprintf.c quantize.c getarg.c
+USOURCES = qprintf.c getarg.c
UHEADERS = getarg.h
UOBJECTS = $(USOURCES:.c=.o)

View File

@@ -4,7 +4,7 @@ _realname=libgdiplus
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=5.6.1
pkgrel=1
pkgrel=2
pkgdesc="An Open Source Implementation of the GDI+ API (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')