trn: fix build w/ gcc10
This commit is contained in:
parent
d1862eb828
commit
a26d7bc937
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ revision=6
|
||||||
wrksrc=$pkgname-${version/test/-test}
|
wrksrc=$pkgname-${version/test/-test}
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="groff bison"
|
hostmakedepends="groff bison"
|
||||||
makedepends="ncurses-devel gettext-devel"
|
makedepends="ncurses-devel gettext-devel libnsl-devel"
|
||||||
depends="virtual?smtp-server"
|
depends="virtual?smtp-server"
|
||||||
short_desc="Text-based threaded Usenet newsreader"
|
short_desc="Text-based threaded Usenet newsreader"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
@ -15,11 +15,12 @@ distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}4/${wrksrc}.tar.gz"
|
||||||
checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff
|
checksum=9ab0430244903ad86ed74fcc2fdc39dc043d23968888e071313050a967b8a6ff
|
||||||
nocross="sh: ./try: cannot execute binary file: Exec format error"
|
nocross="sh: ./try: cannot execute binary file: Exec format error"
|
||||||
|
|
||||||
CFLAGS="-fcommon"
|
CFLAGS="-Wno-implicit-int -fcommon"
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i 's/pipe2/pipetwo/g' filter.c
|
sed -i 's/pipe2/pipetwo/g' filter.c
|
||||||
sed -i '1i#include <time.h>' nntpclient.h
|
sed -i '1i#include <time.h>' nntpclient.h
|
||||||
|
sed -i '/#include <stdio.h>/i #include <stdlib.h>' Configure
|
||||||
}
|
}
|
||||||
do_configure() {
|
do_configure() {
|
||||||
cp ${FILESDIR}/Policy.sh .
|
cp ${FILESDIR}/Policy.sh .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue