Date: Wednesday, July 29, 2020 @ 23:27:57 Author: kkeen Revision: 665854
archrelease: copy trunk to community-x86_64 Added: pinfo/repos/community-x86_64/ChangeLog (from rev 665853, pinfo/trunk/ChangeLog) pinfo/repos/community-x86_64/PKGBUILD (from rev 665853, pinfo/trunk/PKGBUILD) pinfo/repos/community-x86_64/gcc10-stringop.diff (from rev 665853, pinfo/trunk/gcc10-stringop.diff) Deleted: pinfo/repos/community-x86_64/ChangeLog pinfo/repos/community-x86_64/PKGBUILD ---------------------+ ChangeLog | 6 +-- PKGBUILD | 76 ++++++++++++++++++++++++++++---------------------- gcc10-stringop.diff | 28 ++++++++++++++++++ 3 files changed, 74 insertions(+), 36 deletions(-) Deleted: ChangeLog =================================================================== --- ChangeLog 2020-07-29 23:27:43 UTC (rev 665853) +++ ChangeLog 2020-07-29 23:27:57 UTC (rev 665854) @@ -1,3 +0,0 @@ -2007-06-28 tardo <ta...@nagi-fanboi.net> -* Built for x86_64 - Copied: pinfo/repos/community-x86_64/ChangeLog (from rev 665853, pinfo/trunk/ChangeLog) =================================================================== --- ChangeLog (rev 0) +++ ChangeLog 2020-07-29 23:27:57 UTC (rev 665854) @@ -0,0 +1,3 @@ +2007-06-28 tardo <ta...@nagi-fanboi.net> +* Built for x86_64 + Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-07-29 23:27:43 UTC (rev 665853) +++ PKGBUILD 2020-07-29 23:27:57 UTC (rev 665854) @@ -1,33 +0,0 @@ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Jaroslaw Swierczynski <swier...@aur.archlinux.org> - -pkgname=pinfo -pkgver=0.6.10 -pkgrel=9 -pkgdesc="A hypertext info file viewer" -arch=('x86_64') -url="http://pinfo.sourceforge.net/" -# https://fossies.org/linux/misc/pinfo-0.6.10.tar.gz/ -license=('GPL') -depends=('ncurses' 'readline') -#source=("https://alioth.debian.org/frs/download.php/file/3351/$pkgname-$pkgver.tar.bz2") -#source=("https://arch.p5n.pp.ru/~sergej/dl/2014/pinfo-$pkgver.tar.bz2") -source=("https://fossies.org/linux/misc/old/pinfo-$pkgver.tar.bz2") -sha256sums=('122180a0c23d11bc9eb569a4de3ff97d3052af96e32466fa62f2daf46ff61c5d') - -build() { - cd "$srcdir"/$pkgname-$pkgver - CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common - unset LDFLAGS - [ -x configure ] || ./autogen.sh - sed -i 's|nogroup|nobody|' src/pinforc.in src/utils.c - [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc --enable-cursor \ - --mandir=/usr/share/man --infodir=/usr/share/info - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install - rm -f "$pkgdir/usr/share/info/dir" -} Copied: pinfo/repos/community-x86_64/PKGBUILD (from rev 665853, pinfo/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-07-29 23:27:57 UTC (rev 665854) @@ -0,0 +1,43 @@ +# Maintainer: Kyle Keen <keen...@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Jaroslaw Swierczynski <swier...@aur.archlinux.org> + +pkgname=pinfo +pkgver=0.6.13 +pkgrel=1 +pkgdesc="A hypertext info file viewer" +arch=('x86_64') +url="http://pinfo.sourceforge.net/" +# https://fossies.org/linux/misc/pinfo-0.6.10.tar.gz/ +license=('GPL') +depends=('ncurses' 'readline') +#source=("https://alioth.debian.org/frs/download.php/file/3351/$pkgname-$pkgver.tar.bz2") +#source=("https://arch.p5n.pp.ru/~sergej/dl/2014/pinfo-$pkgver.tar.bz2") +#source=("https://fossies.org/linux/misc/old/pinfo-$pkgver.tar.bz2") +source=("pinfo-$pkgver.tgz::https://github.com/baszoetekouw/pinfo/archive/v$pkgver.tar.gz" + gcc10-stringop.diff) +sha256sums=('9dc5e848a7a86cb665a885bc5f0fdf6d09ad60e814d75e78019ae3accb42c217' + '876fd9e3fbb6e129abe183dceb4db03cbd152467e7f0b7edd7cb03c5bc201c32') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + # remove on 0.6.14 + patch -Np1 -i ../gcc10-stringop.diff +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common + unset LDFLAGS + [ -x configure ] || ./autogen.sh + sed -i 's|nogroup|nobody|' src/pinforc.in src/utils.c + [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc --enable-cursor \ + --mandir=/usr/share/man --infodir=/usr/share/info + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir/usr/share/info/dir" +} Copied: pinfo/repos/community-x86_64/gcc10-stringop.diff (from rev 665853, pinfo/trunk/gcc10-stringop.diff) =================================================================== --- gcc10-stringop.diff (rev 0) +++ gcc10-stringop.diff 2020-07-29 23:27:57 UTC (rev 665854) @@ -0,0 +1,28 @@ +diff --git a/src/utils.c b/src/utils.c +index cb2fe76..2e4139c 100644 +--- a/src/utils.c ++++ b/src/utils.c +@@ -848,10 +848,9 @@ char * + make_tempfile() + { + char *filename; +- size_t len; + + /* TODO: fix hardcoded /tmp */ +- char tmpfile_template[] = "/tmp/pinfo.XXXXXX"; ++ char tmpfile_template[32] = "/tmp/pinfo.XXXXXX"; + + /* create a tmpfile */ + int fd = mkstemp(tmpfile_template); +@@ -864,9 +863,8 @@ make_tempfile() + } + + /* allocate a new string and copy the filename there */ +- len = strlen(tmpfile_template)+1; +- filename = xmalloc(len+1); /* guarenteerd to be set to \0's */ +- strncpy(filename, tmpfile_template, len); ++ filename = xmalloc(33); /* guarenteerd to be set to \0's */ ++ strncpy(filename, tmpfile_template, 32); + + /* close the file */ + close(fd);