commit: 89c4396610b1a9b0652bed90102d4014b0e5b4f0
Author: Andrew Savchenko gentoo org>
AuthorDate: Sat May 2 09:14:45 2020 +
Commit: Andrew Savchenko gentoo org>
CommitDate: Sat May 2 09:20:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c43966
media-libs/svgalib: fix build with recent kernels and more
- Fix build with recent kernels by migrating from SUBDIRS to M.
- Bump to EAPI 7.
- Disable package-side man page compression.
- Fix buffer overflow in wrapdemo.c.
- Clean up ebuild and fix spec QA issues.
- Rebase patches with fuzz.
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Andrew Savchenko gentoo.org>
.../svgalib/files/svgalib-1.9.25-linux_2.6.patch | 2 +-
.../svgalib/files/svgalib-1.9.25-linux_3.4.patch | 58 +-
.../svgalib/files/svgalib-1.9.25-linux_3.9.patch | 11 +-
.../files/svgalib-1.9.25-no-man-compression.patch | 26 +
.../svgalib-1.9.25-wrapdemo-buf-overflow.patch | 14 +++
media-libs/svgalib/svgalib-1.9.25-r6.ebuild| 124 +
6 files changed, 200 insertions(+), 35 deletions(-)
diff --git a/media-libs/svgalib/files/svgalib-1.9.25-linux_2.6.patch
b/media-libs/svgalib/files/svgalib-1.9.25-linux_2.6.patch
index 20ab1fe1ed1..113a2391cdf 100644
--- a/media-libs/svgalib/files/svgalib-1.9.25-linux_2.6.patch
+++ b/media-libs/svgalib/files/svgalib-1.9.25-linux_2.6.patch
@@ -22,7 +22,7 @@
+++ svgalib/kernel/svgalib_helper/Makefile.alt
@@ -37,7 +37,7 @@
CFLAGS += -DSVGALIB_HELPER_MAJOR=$(SVGALIB_HELPER_MAJOR)
-
+
ifeq (1,$(findstring 1,$(MODVER)))
- CFLAGS += -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.h
+ CFLAGS += -DMODVERSIONS -DCONFIG_MODVERSIONS=1
diff --git a/media-libs/svgalib/files/svgalib-1.9.25-linux_3.4.patch
b/media-libs/svgalib/files/svgalib-1.9.25-linux_3.4.patch
index 5e2d1e527cb..ce9c74ccd20 100644
--- a/media-libs/svgalib/files/svgalib-1.9.25-linux_3.4.patch
+++ b/media-libs/svgalib/files/svgalib-1.9.25-linux_3.4.patch
@@ -1,29 +1,29 @@
-diff -Naur svgalib-1.9.25/kernel/svgalib_helper/main.c
svgalib-1.9.25_new/kernel/svgalib_helper/main.c
svgalib-1.9.25/kernel/svgalib_helper/main.c2006-01-12
18:17:53.0 +
-+++ svgalib-1.9.25_new/kernel/svgalib_helper/main.c2012-06-25
15:02:11.0 +0100
-@@ -33,7 +33,9 @@
-
- #include
- #include
--#include/* cli(), *_flags */
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
-+ #include/* cli(), *_flags */
-+#endif
- #include /* memcpy and such */
- #include
- #include
-diff -Naur svgalib-1.9.25/kernel/svgalib_helper/Makefile
svgalib-1.9.25_new/kernel/svgalib_helper/Makefile
svgalib-1.9.25/kernel/svgalib_helper/Makefile2006-05-20
13:31:04.0 +0100
-+++ svgalib-1.9.25_new/kernel/svgalib_helper/Makefile2012-06-25
13:39:38.0 +0100
-@@ -11,9 +11,11 @@
-PWD:= $(shell pwd)
-TARGET := svgalib_helper
-
-+ ifneq ($(TOPDIR),)
- ifeq ($(PATCHLEVEL),4)
- include $(TOPDIR)/Rules.make
- endif
-+ endif
-
- else
-
\ No newline at end of file
+diff '--color=auto' -Naurd svgalib-1.9.25.prev/kernel/svgalib_helper/Makefile
svgalib-1.9.25/kernel/svgalib_helper/Makefile
+--- svgalib-1.9.25.prev/kernel/svgalib_helper/Makefile 2020-05-02
09:49:05.072052128 +0300
svgalib-1.9.25/kernel/svgalib_helper/Makefile 2020-05-02
09:50:14.748043187 +0300
+@@ -11,9 +11,11 @@
+PWD:= $(shell pwd)
+TARGET := svgalib_helper
+
++ ifneq ($(TOPDIR),)
+ ifeq ($(PATCHLEVEL),4)
+ include $(TOPDIR)/Rules.make
+ endif
++ endif
+
+ else
+
+diff '--color=auto' -Naurd svgalib-1.9.25.prev/kernel/svgalib_helper/main.c
svgalib-1.9.25/kernel/svgalib_helper/main.c
+--- svgalib-1.9.25.prev/kernel/svgalib_helper/main.c 2020-05-02
09:49:05.075052085 +0300
svgalib-1.9.25/kernel/svgalib_helper/main.c2020-05-02
09:50:14.751043144 +0300
+@@ -38,7 +38,9 @@
+
+ #include
+ #include
+-#include/* cli(), *_flags */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
++ #include/* cli(), *_flags */
++#endif
+ #include /* memcpy and such */
+ #include
+ #include
diff --git a/media-libs/svgalib/files/svgalib-1.9.25-linux_3.9.patch
b/media-libs/svgalib/files/svgalib-1.9.25-linux_3.9.patch
index be10e394707..2e1f87d7c6f 100644
--- a/media-libs/svgalib/files/svgalib-1.9.25-linux_3.9.patch
+++ b/media-libs/svgalib/files/svgalib-1.9.25-linux_3.9.patch
@@ -1,8 +1,9 @@
svgalib-1.9.25/kernel/svgalib_helper/main.c.orig 2016-02-22
11:10:25.0 +0300
-+++ svgalib-1.9.25/kernel/svgalib_helper/main.c2016-02-22
11:17:16.223529679 +0300
-@@ -170,8 +170,12 @@
+diff '--color=auto' -Naurd svgalib-1.9.25.prev/kernel/svgalib_helper/main.c
svgalib-1.9.25/kernel/svgalib_helper/main.c
+--- svgalib-1.9.25.prev/kernel/svgalib_helper/main.c 2020-05-02