Skip to contentSkip to conversation

package/libgdiplus: bump version to 6.0.5

PATCH New Sergio Prado 2 participants 2 messages Apr 10, 2021 – Apr 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libgdiplus: bump version to 6.0.5

Remove patches applied upstream.

Add patch to not build unit tests by default (patch sent upstream):

https://github.com/mono/libgdiplus/pull/701

---
 ...-only-when-enable-unit-tests-is-pass.patch |   53 +
 ...e-texts-in-LICENSE-like-on-Mono-repo.patch | 1863 -----------------
 ...o-match-the-headers-of-the-source-fi.patch | 1018 ---------
 ...de-copy-of-GifQuantizeBuffer-functio.patch |  414 ----
 package/libgdiplus/libgdiplus.hash            |    2 +-
 package/libgdiplus/libgdiplus.mk              |    2 +-
 6 files changed, 55 insertions(+), 3297 deletions(-)
 create mode 100644 package/libgdiplus/0001-Build-unit-tests-only-when-enable-unit-tests-is-pass.patch
 delete mode 100644 package/libgdiplus/0001-Embed-the-license-texts-in-LICENSE-like-on-Mono-repo.patch
 delete mode 100644 package/libgdiplus/0002-Update-LICENSE-to-match-the-headers-of-the-source-fi.patch
 delete mode 100644 package/libgdiplus/0003-gifcodec.c-Include-copy-of-GifQuantizeBuffer-functio.patch
package/libgdiplus/0001-Build-unit-tests-only-when-enable-unit-tests-is-pass.patch new file +53 -0
new file mode 100644
index 000000000000..450286462ef9
@@ -0,0 +1,53 @@
+From ae92a466e203c8aec43f682a3a7aa617b820c3ba Mon Sep 17 00:00:00 2001
+From: Sergio Prado <[email protected]>
+Date: Sat, 10 Apr 2021 11:03:38 -0300
+Subject: [PATCH] Build unit tests only when --enable-unit-tests is passed
+
+Building unit tests by default requires all dependencies to be
+installed (jpeg, tiff, etc) and users may not want that.
+
+So let's disable the build of unit tests by default and introduce
+--enable-unit-tests configure option to enable it.
+
+Signed-off-by: Sergio Prado <[email protected]>
+---
+ Makefile.am  | 8 ++++++--
+ configure.ac | 4 ++++
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index f40bdee0c2e9..152e0d64fdd9 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,7 +1,11 @@
+ ACLOCAL_AMFLAGS = -I m4
+ 
+-SUBDIRS = src tests
+-DIST_SUBDIRS = src tests
++if BUILD_UNIT_TESTS
++SUBDIRS_TESTS = tests
++endif
++
++SUBDIRS = src $(SUBDIRS_TESTS)
++DIST_SUBDIRS = src $(SUBDIRS_TESTS)
+ 
+ pkgconfigdir = $(libdir)/pkgconfig
+ 
+diff --git a/configure.ac b/configure.ac
+index 098fd0a664bd..c126ff091e58 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -39,6 +39,10 @@ if test $warnaserror = "yes"; then
+   GDIPLUS_CFLAGS="$GDIPLUS_CFLAGS -Werror -Wno-unknown-warning-option -Wno-clobbered -Wno-typedef-redefinition"
+ fi
+ 
++AC_ARG_ENABLE(unittests, AS_HELP_STRING([--enable-unittests],[Enable building unit tests.]),[unittests=yes],[unittests=no])
++
++AM_CONDITIONAL([BUILD_UNIT_TESTS], [test x$unittests = xyes])
++
+ AC_ARG_ENABLE(asan, AS_HELP_STRING([--enable-asan],[Enable address sanitizer.]),[asan=yes],[asan=no])
+ 
+ if test $asan = "yes"; then
+-- 
+2.17.1
+
package/libgdiplus/0001-Embed-the-license-texts-in-LICENSE-like-on-Mono-repo.patch deleted +0 -1863

1,863 lines not on this page · raw message

package/libgdiplus/0002-Update-LICENSE-to-match-the-headers-of-the-source-fi.patch deleted +0 -1018

1,018 lines not on this page · raw message

package/libgdiplus/0003-gifcodec.c-Include-copy-of-GifQuantizeBuffer-functio.patch deleted +0 -414

66 lines not on this page · raw message

package/libgdiplus/libgdiplus.hash +1 -1
index d89b352d2667..3a2e5ff25c6b 100644

Lines of this file are not shown. View the raw message.

package/libgdiplus/libgdiplus.mk +1 -1
index d120f6a3149a..be4a9168f907 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.