diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-01-21 05:47:49 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-01-21 17:59:42 +0100 |
commit | 30ad57f5bd43902fe63eb3d12d475791ccd4848a (patch) | |
tree | 959b2d50bfdb370d2e57a9d0226837a370f6147a /source/l/svgalib | |
parent | f8721233ca388707ef95cde2fe3fcfad12f50f46 (diff) | |
download | current-30ad57f5bd43902fe63eb3d12d475791ccd4848a.tar.gz |
Fri Jan 21 05:47:49 UTC 202220220121054749
a/aaa_libraries-15.0-x86_64-15.txz: Rebuilt.
Upgraded: libzstd.so.1.5.2.
a/kernel-firmware-20220119_0c6a7b3-noarch-1.txz: Upgraded.
a/kernel-generic-5.15.16-x86_64-1.txz: Upgraded.
a/kernel-huge-5.15.16-x86_64-1.txz: Upgraded.
a/kernel-modules-5.15.16-x86_64-1.txz: Upgraded.
ap/vim-8.2.4166-x86_64-1.txz: Upgraded.
d/kernel-headers-5.15.16-x86-1.txz: Upgraded.
d/rust-1.58.1-x86_64-1.txz: Upgraded.
k/kernel-source-5.15.16-noarch-1.txz: Upgraded.
l/qt5-5.15.3_20211130_014c375b-x86_64-2.txz: Rebuilt.
Applied upstream patch:
[PATCH] Move the wayland socket polling to a separate event thread.
Thanks to LuckyCyborg.
l/svgalib-1.9.25-x86_64-7.txz: Rebuilt.
Don't try to use the (broken) assembly. Thanks to nobodino.
l/zstd-1.5.2-x86_64-1.txz: Upgraded.
x/ibus-m17n-1.4.9-x86_64-1.txz: Upgraded.
xap/vim-gvim-8.2.4166-x86_64-1.txz: Upgraded.
extra/php80/php80-8.0.15-x86_64-1.txz: Upgraded.
extra/php81/php81-8.1.2-x86_64-1.txz: Upgraded.
isolinux/initrd.img: Rebuilt.
kernels/*: Upgraded.
usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/l/svgalib')
-rw-r--r-- | source/l/svgalib/svgalib-1.9.21-demos.patch | 431 | ||||
-rw-r--r-- | source/l/svgalib/svgalib-1.9.25.no_asm.patch | 11 | ||||
-rwxr-xr-x | source/l/svgalib/svgalib.SlackBuild | 10 |
3 files changed, 448 insertions, 4 deletions
diff --git a/source/l/svgalib/svgalib-1.9.21-demos.patch b/source/l/svgalib/svgalib-1.9.21-demos.patch new file mode 100644 index 00000000..7da772ed --- /dev/null +++ b/source/l/svgalib/svgalib-1.9.21-demos.patch @@ -0,0 +1,431 @@ +--- svgalib-1.9.21/demos/testgl.c.demos 2002-04-03 09:31:14.000000000 +0200 ++++ svgalib-1.9.21/demos/testgl.c 2005-07-01 20:51:55.000000000 +0200 +@@ -184,7 +184,7 @@ + + if (!vga_hasmode(VGAMODE)) { + printf("Mode not available.\n"); +- exit(-1); ++ return -1; + } + VIRTUAL = 0; /* No virtual screen. */ + if (vga_getmodeinfo(VGAMODE)->colors == 16 || +@@ -224,5 +224,5 @@ + if (VIRTUAL) + gl_freecontext(backscreen); + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/vgatweak.c.demos 2000-08-06 12:20:02.000000000 +0200 ++++ svgalib-1.9.21/demos/vgatweak.c 2005-07-01 20:51:55.000000000 +0200 +@@ -124,7 +124,7 @@ + testmode(mode); + else { + printf("Error: Video mode not supported by driver\n"); +- exit(-1); ++ return -1; + } + + return 0; +--- svgalib-1.9.21/demos/linearfork.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/linearfork.c 2005-07-01 20:51:55.000000000 +0200 +@@ -82,7 +82,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(1); ++ return 1; + } + vga_setmode(vgamode); + vga_setlinearaddressing(); +@@ -95,7 +95,7 @@ + /* purposes. */ + if (keyboard_init()) { + printf("Could not initialize keyboard.\n"); +- exit(1); ++ return 1; + } + /* Translate to 4 keypad cursor keys, and unify enter key. */ + keyboard_translatekeys(TRANSLATE_CURSORKEYS | TRANSLATE_KEYPADENTER | +@@ -161,5 +161,5 @@ + keyboard_close(); /* Don't forget this! */ + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/bg_test.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/bg_test.c 2005-07-01 20:51:55.000000000 +0200 +@@ -9,6 +9,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> ++#include <string.h> + #include <strings.h> + #include <vga.h> + #include <vgagl.h> +--- svgalib-1.9.21/demos/accel.c.demos 2002-04-03 09:30:23.000000000 +0200 ++++ svgalib-1.9.21/demos/accel.c 2005-07-01 20:51:55.000000000 +0200 +@@ -97,7 +97,7 @@ + + if (accelfuncs == 0) { + printf("No acceleration supported.\n"); +- exit(0); ++ return 1; + } + printf("Accelflags: 0x%08X\n", accelfuncs); + +@@ -292,7 +292,7 @@ + ); + } + vga_setmode(TEXT); +- exit(-1); ++ return 0; + } + + +--- svgalib-1.9.21/demos/vgatest.c.demos 2005-01-27 11:34:16.000000000 +0100 ++++ svgalib-1.9.21/demos/vgatest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -275,7 +275,7 @@ + + if (mode < 1 || mode > GLASTMODE) { + printf("Error: Mode number out of range \n"); +- exit(-1); ++ return -1; + } + } + if (vga_hasmode(mode)) { +@@ -285,7 +285,7 @@ + } + } else { + printf("Error: Video mode not supported by driver\n"); +- exit(-1); ++ return -1; + } + + vga_setmode(TEXT); +--- svgalib-1.9.21/demos/printftest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/printftest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -44,7 +44,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(1); ++ return 1; + } + + vga_setmode(vgamode); +@@ -68,5 +68,5 @@ + + vga_setmode(TEXT); + +- exit(retval); ++ return retval; + } +--- svgalib-1.9.21/demos/fun.c.demos 2002-07-20 18:33:54.000000000 +0200 ++++ svgalib-1.9.21/demos/fun.c 2005-07-01 20:51:55.000000000 +0200 +@@ -13,6 +13,7 @@ + #include <unistd.h> + #include <string.h> + #include <time.h> ++#include <string.h> + #include <vga.h> + #include <vgagl.h> + +--- svgalib-1.9.21/demos/bankspeed.c.demos 2002-04-03 09:31:22.000000000 +0200 ++++ svgalib-1.9.21/demos/bankspeed.c 2005-07-01 20:51:55.000000000 +0200 +@@ -125,7 +125,7 @@ + + if (!vga_hasmode(VGAMODE)) { + printf("Mode not available.\n"); +- exit(-1); ++ return -1; + } + VIRTUAL = 0; /* No virtual screen. */ + if (vga_getmodeinfo(VGAMODE)->colors == 16 || +@@ -165,5 +165,5 @@ + t2=clock(); + printf("total:%1.2f sec\n",(1.0*t2-t1)/CLOCKS_PER_SEC); + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/eventtest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/eventtest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -3,6 +3,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <unistd.h> ++#include <time.h> + #include <sys/time.h> + #include <sys/types.h> + #include <vga.h> +@@ -254,5 +255,5 @@ + keyboard_close(); /* Don't forget this! */ + #endif + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/svidtune.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/svidtune.c 2005-07-01 20:51:55.000000000 +0200 +@@ -48,7 +48,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(1); ++ return 1; + } + + vga_setmode(vgamode); +@@ -176,5 +176,5 @@ + + vga_setmode(TEXT); + +- exit(retval); ++ return retval; + } +--- svgalib-1.9.21/demos/keytest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/keytest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -38,7 +38,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(1); ++ return 1; + } + printf("\nWARNING: This program will set the keyboard to RAW mode.\n" + "The keyboard routines in svgalib have not been tested\n" +@@ -61,7 +61,7 @@ + /* purposes. */ + if (keyboard_init()) { + printf("Could not initialize keyboard.\n"); +- exit(1); ++ return 1; + } + /* Translate to 4 keypad cursor keys, and unify enter key. */ + keyboard_translatekeys(TRANSLATE_CURSORKEYS | TRANSLATE_KEYPADENTER | +@@ -126,5 +126,5 @@ + + keyboard_close(); /* Don't forget this! */ + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/scrolltest.c.demos 2000-01-12 21:03:39.000000000 +0100 ++++ svgalib-1.9.21/demos/scrolltest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -304,5 +304,5 @@ + demo3(); + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/forktest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/forktest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -82,7 +82,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(1); ++ return 1; + } + vga_setmode(vgamode); + gl_setcontextvga(vgamode); +@@ -94,7 +94,7 @@ + /* purposes. */ + if (keyboard_init()) { + printf("Could not initialize keyboard.\n"); +- exit(1); ++ return 1; + } + /* Translate to 4 keypad cursor keys, and unify enter key. */ + keyboard_translatekeys(TRANSLATE_CURSORKEYS | TRANSLATE_KEYPADENTER | +@@ -160,5 +160,5 @@ + keyboard_close(); /* Don't forget this! */ + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/mjoytest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/mjoytest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -196,7 +196,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(-1); ++ return -1; + } + + puts("In the demo, press\n" +@@ -286,6 +286,6 @@ + printf("Shutting down.\n"); + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } + +--- svgalib-1.9.21/demos/speedtest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/speedtest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -1,4 +1,3 @@ +- + #include <unistd.h> + #include <stdlib.h> + #include <stdio.h> +@@ -308,5 +307,5 @@ + speed(); + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/linearspeed.c.demos 2003-11-07 10:26:02.000000000 +0100 ++++ svgalib-1.9.21/demos/linearspeed.c 2005-07-01 20:51:55.000000000 +0200 +@@ -418,5 +418,5 @@ + if(!fast)sysmem_speed(); + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } +--- svgalib-1.9.21/demos/testlinear.c.demos 2004-09-16 19:56:12.000000000 +0200 ++++ svgalib-1.9.21/demos/testlinear.c 2005-07-01 20:51:55.000000000 +0200 +@@ -11,7 +11,7 @@ + #include <string.h> + #include <vga.h> + #include <time.h> +-#include "../src/libvga.h" ++#include "libvga.h" + + + #define USE_LINEAR_ADDRESSING +@@ -66,7 +66,7 @@ + if (!(argc == 2 && strcmp(argv[1], "--force") == 0)) + if (!(vga_getmodeinfo(vga_getdefaultmode())->flags & CAPABLE_LINEAR)) { + printf("Linear addressing not supported for this chipset.\n"); +- exit(1); ++ return 1; + } + vga_init(); + vga_setmode(vga_getdefaultmode()); +@@ -75,7 +75,7 @@ + if (vga_setlinearaddressing() == -1) { + vga_setmode(TEXT); + printf("Could not set linear addressing.\n"); +- exit(-1); ++ return -1; + } + #endif + +--- svgalib-1.9.21/demos/Makefile.demos 2004-11-16 08:59:52.000000000 +0100 ++++ svgalib-1.9.21/demos/Makefile 2005-07-01 20:59:09.000000000 +0200 +@@ -4,19 +4,15 @@ + # This file is a part of SVGAlib. + #---------------------------------------------------------------------- + +-include ../Makefile.cfg +- +-srcdir = .. +-VPATH = $(srcdir)/demos +- + #---------------------------------------------------------------------- +-# Compiler Section (overrides Makefile.cfg) ++# Compiler Section + #---------------------------------------------------------------------- + +-CFLAGS = $(WARN) $(OPTIMIZE) -I$(srcdir)/include -I$(srcdir)/gl $(DEBFLAGS) +-ifeq (a.out, $(TARGET_FORMAT)) +- CFLAGS += -DSVGA_AOUT +-endif ++CC = gcc ++CFLAGS = -Wall -Wstrict-prototypes ++CFLAGS += -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g ++LDFLAGS = -s ++LIBS = -lvgagl -lvga -lm + + #---------------------------------------------------------------------- + # Rules Section +@@ -25,51 +21,12 @@ + PROGS = fun testgl speedtest mousetest vgatest scrolltest testlinear \ + keytest testaccel accel forktest eventtest spin bg_test printftest \ + joytest mjoytest bankspeed lineart linearspeed addmodetest \ +- svidtune linearfork cursor vgatweak buildcsr +- +-# Determine what library (static or shared) we will be linking programs with +-ifdef INSTALLSHAREDLIB +- LIBS = -lvgagl -lvga +-endif +-ifndef LIBS +- LIBS = ../staticlib/libvgagl.a ../staticlib/libvga.a -lm +- LVGADEP = $(LIBS) +-endif ++ svidtune linearfork cursor vgatweak + + all: $(PROGS) + +-.PHONY: all clean cleanbin dep +- +-$(PROGS): $(LVGADEP) +- + .c: + $(CC) $(CFLAGS) $(LDFLAGS) -o $* $*.c $(LIBS) + +-rwpage: rwpage.pp +- $(PC) -Rintel rwpage.pp +- +-testaccel: testaccel.c +- $(CC) $(CFLAGS) $(LDFLAGS) -o testaccel testaccel.c $(LIBS) -lm +- +-accel: accel.c +- $(CC) $(CFLAGS) $(LDFLAGS) -o accel accel.c $(LIBS) -lm +- +-linearspeed: linearspeed.c memset.o +- $(CC) $(CFLAGS) $(LDFLAGS) -o linearspeed linearspeed.c memset.o $(LIBS) +- +-buildcsr: mkcur.o +- $(CC) -o buildcsr $(LDFLAGS) mkcur.o -lvgagl -lvga +- +-clean: cleanbin +- rm -f .depend *.o *~ *.bak core +- +-cleanbin: +- rm -f $(PROGS) rwpage +- +-# +-# No dependencies required here. +-# +- +-dep: +-.depend: +- ++clean: ++ rm -f $(PROGS) +--- svgalib-1.9.21/demos/mousetest.c.demos 2000-01-06 13:12:36.000000000 +0100 ++++ svgalib-1.9.21/demos/mousetest.c 2005-07-01 20:51:55.000000000 +0200 +@@ -34,7 +34,7 @@ + + if (!vga_hasmode(vgamode)) { + printf("Mode not available.\n"); +- exit(-1); ++ return -1; + } + #ifndef MANUALLY_SETUP_MOUSE + /* Enable automatic mouse setup at mode set. */ +@@ -72,7 +72,7 @@ + /* To be able to test fake mouse events... */ + if (keyboard_init()) { + printf("Could not initialize keyboard.\n"); +- exit(1); ++ return 1; + } + + /* Set the range for the wheel */ +@@ -136,5 +136,5 @@ + #endif + + vga_setmode(TEXT); +- exit(0); ++ return 0; + } diff --git a/source/l/svgalib/svgalib-1.9.25.no_asm.patch b/source/l/svgalib/svgalib-1.9.25.no_asm.patch new file mode 100644 index 00000000..8e489774 --- /dev/null +++ b/source/l/svgalib/svgalib-1.9.25.no_asm.patch @@ -0,0 +1,11 @@ +--- ./Makefile.cfg.orig 2022-01-19 16:04:36.833030933 -0600 ++++ ./Makefile.cfg 2022-01-19 16:05:13.758031759 -0600 +@@ -79,7 +79,7 @@ + + # uncomment this if your compiler fails on compiling the assembler in + # src/vgaconvplanar.c, gl/inlstring.h, gl/line.c or gl/scale.c +-# NO_ASM = y ++NO_ASM = y + + # uncomment if you want to set attribute controller and dac without delay + # This breaks original VGA, but seems to work on new cards. diff --git a/source/l/svgalib/svgalib.SlackBuild b/source/l/svgalib/svgalib.SlackBuild index 76e9868a..880c7c6b 100755 --- a/source/l/svgalib/svgalib.SlackBuild +++ b/source/l/svgalib/svgalib.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2006, 2007, 2008, 2009, 2010, 2015, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2008, 2009, 2010, 2015, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=svgalib -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-6} +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +BUILD=${BUILD:-7} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -65,7 +65,7 @@ mkdir -p $TMP $PKG cd $TMP rm -rf ${PKGNAM}-${VERSION} -tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1 +tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z || exit 1 cd ${PKGNAM}-$VERSION || exit 1 # Make sure ownerships and permissions are sane: @@ -89,6 +89,8 @@ zcat $CWD/svgalib.nohelper.diff.gz | patch -p1 --verbose || exit 1 zcat $CWD/svgalib-1.9.25-round_gtf_gtfcalc_c.patch.gz | patch -p1 --verbose || exit 1 zcat $CWD/svgalib-1.9.25-vga_getmodenumber.patch.gz | patch -p1 --verbose || exit 1 zcat $CWD/svgalib-1.9.25-quickmath-h-redefinitions.patch.gz | patch -p1 --verbose || exit 1 +zcat $CWD/svgalib-1.9.21-demos.patch.gz | patch -p1 --verbose || exit 1 +zcat $CWD/svgalib-1.9.25.no_asm.patch.gz | patch -p1 --verbose || exit 1 # Build and install - spamming your partition first...: make install NO_HELPER=y || exit 1 |