mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
rix: fixup
This commit is contained in:
parent
4533b8fa78
commit
2243b118b4
4 changed files with 43 additions and 1 deletions
21
srcpkgs/rix/patches/fixes.patch
Normal file
21
srcpkgs/rix/patches/fixes.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- rixc.h.orig
|
||||||
|
+++ rixc.h
|
||||||
|
@@ -15,6 +15,7 @@
|
||||||
|
|
||||||
|
void defineRSLSymbols(Object *);
|
||||||
|
|
||||||
|
+Object *directive(char *key, char *value);
|
||||||
|
Object *findByName(char *name);
|
||||||
|
Object *findFunctionByFullName(char *name);
|
||||||
|
|
||||||
|
--- rix.l.orig
|
||||||
|
+++ rix.l
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
#include "ObjectTree.h"
|
||||||
|
#include "rix.tab.h" /* Generated by bison. */
|
||||||
|
#include "rixc.h"
|
||||||
|
-#include "error.h"
|
||||||
|
+#include "errors.h"
|
||||||
|
|
||||||
|
#define INSERT_BUFF_LEN 1024
|
||||||
|
#define INDENT_STACK_MAX 512
|
11
srcpkgs/rix/patches/makefile.patch
Normal file
11
srcpkgs/rix/patches/makefile.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- Makefile.orig
|
||||||
|
+++ Makefile
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
flex rix.l
|
||||||
|
|
||||||
|
rixc: lex.yy.c rix.tab.c rix.tab.h
|
||||||
|
- gcc -ggdb preproc.c ObjectTree.c rix.tab.c lex.yy.c rixc.c errors.c crsl.c -lfl -o rixc
|
||||||
|
+ ${CC} ${CFLAGS} -ggdb preproc.c ObjectTree.c rix.tab.c lex.yy.c rixc.c errors.c crsl.c -o rixc ${LDFLAGS}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm rixc rix.tab.c lex.yy.c rix.tab.h
|
11
srcpkgs/rix/patches/overflow.patch
Normal file
11
srcpkgs/rix/patches/overflow.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- rixc.c.orig
|
||||||
|
+++ rixc.c
|
||||||
|
@@ -1563,7 +1563,7 @@
|
||||||
|
Object *objectfloat(float f)
|
||||||
|
{
|
||||||
|
compilerDebugPrintf("objectfloat(%f)\n", f);
|
||||||
|
- char buffer[128];
|
||||||
|
+ char buffer[BUFFLEN];
|
||||||
|
snprintf(buffer, BUFFLEN, "%f", f);
|
||||||
|
Object *result = CreateObject(0, 0, 0, Expression, "float");
|
||||||
|
addCode(result, buffer);
|
|
@ -10,7 +10,6 @@ license="GPL-3"
|
||||||
homepage="https://github.com/riolet/rix"
|
homepage="https://github.com/riolet/rix"
|
||||||
distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
|
distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
|
||||||
checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
|
checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
|
||||||
nostrip=yes
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin rixc
|
vbin rixc
|
||||||
|
|
Loading…
Add table
Reference in a new issue