Package Details: grap 1.46-1

Git Clone URL: https://aur.archlinux.org/grap.git (read-only, click to copy)
Package Base: grap
Description: A language for typesetting graphs.
Upstream URL: https://www.lunabase.org/~faber/Vault/software/grap
Licenses: custom
Submitter: ndowens
Maintainer: hrauch
Last Packager: haawda
Votes: 5
Popularity: 0.014468
First Submitted: 2009-07-18 03:57 (UTC)
Last Updated: 2020-06-11 22:18 (UTC)

Latest Comments

emk2203 commented on 2024-04-27 08:01 (UTC) (edited on 2024-05-02 11:07 (UTC) by emk2203)

There is a new version available (1.47), but also with the new version, I get the same error as @NikitaIvanov and the resulting executable is only 226 kB:

/usr/include/c++/13.2.1/bits/basic_string.h:1258: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits =  
std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion   '__pos <= size()' failed.  
groff: error: grap: Aborted (core dumped)

If I pull the package from the github repo https://github.com/snorerot13/grap, I can generate the missing configure file with aclocal && autoheader && automake --add-missing && autoconf, and then the compile goes through and gives a proper, working grap with around 4 MB in size. groff -G test.grap > test.ps works as expected.

Conclusion: The downloaded archive needs to be cleaned from artifacts. What works are the following modifications:

$ diff -u PKGBUILD.{old,new}
--- PKGBUILD.old        2024-05-02 09:03:37.683767929 +0200
+++ PKGBUILD.new        2024-05-02 13:02:01.377107481 +0200
@@ -4,7 +4,7 @@
 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

 pkgname=grap
-pkgver=1.46
+pkgver=1.47
 pkgrel=1
 pkgdesc='A language for typesetting graphs.'
 arch=('i686' 'x86_64')
@@ -12,10 +12,12 @@
 license=('custom')
 depends=('gcc-libs')
 source=("https://www.lunabase.org/~faber/Vault/software/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('ee7fa32c0354ff1fb01aba63c180277f8e5f43933dd52c2b6a209bbd429ee97856b629611a84f6c9394b90f9538a11134e48b32f2b2c5b9823e606f03476a8a0')
+sha512sums=('e0c0464188bca29d019589e2d6e503828a2aa84bad2350f16bdb82a9fc38c447e904e8a86a871af6cb41351b8816f276a69f0b01b40e90a930844aa976639e68')

 build() {
   cd $pkgname-$pkgver
+  rm configure Makefile.in aclocal.m4 config.h.in depcomp grap.man missing ylwrap
+  aclocal && autoheader && automake --add-missing && autoconf
   ./configure --prefix=/usr
   make
 }

haawda commented on 2022-09-23 22:51 (UTC)

Th package is not broken, the program is. File a bug report.

NikitaIvanov commented on 2022-09-19 18:39 (UTC)

The package is broken, I get this message after running:

/usr/include/c++/12.2.0/bits/basic_string.h:1221: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion '__pos <= size()' failed.
Aborted (core dumped)