Index | Thread | Search

From:
"Anthony J. Bentley" <bentley@openbsd.org>
Subject:
Re: BUG: math/pari - broken gphelp (docs search paths need adjustement)
To:
Dima Pasechnik <dima@sagemath.org>
Cc:
ports@openbsd.org
Date:
Mon, 15 Apr 2024 05:39:18 -0600

Download raw body.

Thread
  • Anthony J. Bentley:

    BUG: math/pari - broken gphelp (docs search paths need adjustement)

Hi,

Dima Pasechnik writes:
> However, gphelp installed by the latest (pari 2.15.4) port is broken:
>
> $ gphelp -k "elliptic curves"
> Could not find translation file, docdir='/usr/local/bin' at /usr/local/bin/gp
> help line 151.

It's been quite some time, but I've fixed this in our package. Thanks
for the report.

> Needless to say, this has to be fixed in port, either by
> directly adjusting the paths  get_docdir is using, or, less hackily,
> use install-doctex and other similar Makefile targets of pari/gp.
> These targets do "the right thing" to gphelp if one specifies
> DOCDIR env. var., as
>
>     gmake DOCDIR=/usr/local/share/doc/pari install

I made the hacky choice to hardcode docdir in the script. When I tried
setting DOCDIR during make, it seemed to have weird effects like not
installing the documentation files at all. After struggling for a bit,
I went with the simple solution.