New package: kwebapp-0.6.9
This commit is contained in:
parent
60aa132f56
commit
abe03411e0
2 changed files with 101 additions and 0 deletions
83
srcpkgs/kwebapp/patches/NULL_va_list.patch
Normal file
83
srcpkgs/kwebapp/patches/NULL_va_list.patch
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
diff --git config.c config.c
|
||||||
|
index 16683a1..a9357c2 100644
|
||||||
|
--- config.c
|
||||||
|
+++ config.c
|
||||||
|
@@ -882,7 +882,7 @@ ort_config_msg(struct config *cfg, enum msgtype type,
|
||||||
|
|
||||||
|
if (NULL == fmt) {
|
||||||
|
ort_config_msgv(cfg, type,
|
||||||
|
- chan, er, pos, NULL, NULL);
|
||||||
|
+ chan, er, pos, NULL, ap);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git linker.c linker.c
|
||||||
|
index 33ca33d..c5cd929 100644
|
||||||
|
--- linker.c
|
||||||
|
+++ linker.c
|
||||||
|
@@ -65,16 +65,17 @@ gen_warnx(struct config *cfg,
|
||||||
|
va_end(ap);
|
||||||
|
} else
|
||||||
|
ort_config_msgv(cfg, MSGTYPE_WARN,
|
||||||
|
- channel, 0, pos, NULL, NULL);
|
||||||
|
+ channel, 0, pos, NULL, ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gen_err(struct config *cfg, const struct pos *pos)
|
||||||
|
{
|
||||||
|
+ va_list ap;
|
||||||
|
int er = errno;
|
||||||
|
|
||||||
|
ort_config_msgv(cfg, MSGTYPE_FATAL,
|
||||||
|
- channel, er, pos, NULL, NULL);
|
||||||
|
+ channel, er, pos, NULL, ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
@@ -90,7 +91,7 @@ gen_errx(struct config *cfg,
|
||||||
|
va_end(ap);
|
||||||
|
} else
|
||||||
|
ort_config_msgv(cfg, MSGTYPE_ERROR,
|
||||||
|
- channel, 0, pos, NULL, NULL);
|
||||||
|
+ channel, 0, pos, NULL, ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
diff --git parser.c parser.c
|
||||||
|
index 05a4cef..f9b75e9 100644
|
||||||
|
--- parser.c
|
||||||
|
+++ parser.c
|
||||||
|
@@ -341,12 +341,13 @@ parse_warnx(struct parse *p, const char *fmt, ...)
|
||||||
|
va_end(ap);
|
||||||
|
} else
|
||||||
|
ort_config_msgv(p->cfg, MSGTYPE_WARN,
|
||||||
|
- channel, 0, &pos, NULL, NULL);
|
||||||
|
+ channel, 0, &pos, NULL, ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
static enum tok
|
||||||
|
parse_err(struct parse *p)
|
||||||
|
{
|
||||||
|
+ va_list ap;
|
||||||
|
int er = errno;
|
||||||
|
struct pos pos;
|
||||||
|
|
||||||
|
@@ -355,7 +356,7 @@ parse_err(struct parse *p)
|
||||||
|
pos.column = p->column;
|
||||||
|
|
||||||
|
ort_config_msgv(p->cfg, MSGTYPE_FATAL,
|
||||||
|
- channel, er, &pos, NULL, NULL);
|
||||||
|
+ channel, er, &pos, NULL, ap);
|
||||||
|
|
||||||
|
p->lasttype = TOK_ERR;
|
||||||
|
return p->lasttype;
|
||||||
|
@@ -378,7 +379,7 @@ parse_errx(struct parse *p, const char *fmt, ...)
|
||||||
|
va_end(ap);
|
||||||
|
} else
|
||||||
|
ort_config_msgv(p->cfg, MSGTYPE_ERROR,
|
||||||
|
- channel, 0, &pos, NULL, NULL);
|
||||||
|
+ channel, 0, &pos, NULL, ap);
|
||||||
|
|
||||||
|
p->lasttype = TOK_ERR;
|
||||||
|
return p->lasttype;
|
18
srcpkgs/kwebapp/template
Normal file
18
srcpkgs/kwebapp/template
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Template file for 'kwebapp'
|
||||||
|
pkgname=kwebapp
|
||||||
|
version=0.6.9
|
||||||
|
revision=1
|
||||||
|
build_style=configure
|
||||||
|
configure_args="PREFIX=/usr MANDIR=/usr/share/man"
|
||||||
|
makedepends="expat-devel"
|
||||||
|
short_desc="Web application source generator"
|
||||||
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
||||||
|
license="ISC"
|
||||||
|
homepage="https://kristaps.bsd.lv/kwebapp/"
|
||||||
|
distfiles="https://kristaps.bsd.lv/kwebapp/snapshots/kwebapp-${version}.tar.gz"
|
||||||
|
checksum=b2bf1e0a3f7609e53e0877eb033c9a8a5e847628433aeb3d2e1e0f202bcad18e
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
sed -n '2,16p' main.c >LICENSE
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue