[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: apl --show_src_dir
From: |
Chris Moller |
Subject: |
Re: apl --show_src_dir |
Date: |
Fri, 1 Oct 2021 09:20:38 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
Hi, Jürgen,
That's exactly what I did yesterday--I pulled down svn 1485, ran
./configure --without-gtk3 and ran make -j6. That created a file
called src/makefile.h that contained
// some strings exported from Makefile
//
#define xSTR(x) #x
#define Makefile__bindir xSTR(/usr/local/bin)
#define Makefile__docdir xSTR(/usr/local/share/doc/apl)
#define Makefile__sysconfdir xSTR(/usr/local/etc)
#define Makefile__pkglibdir xSTR(/usr/local/lib/apl)
#define Makefile__localedir xSTR(/usr/local/share/locale)
#define Makefile__srcdir
xSTR(/home/eedjsa/savannah-repo-apl/trunk/src)
#define Makefile__host_os xSTR(linux-gnu)
which seems to be where that savannah reference is coming from.
I just repeated the whole process with a fresh svn co, and it's
still doing that:
[0] ~ >apl --show_src_dir
/home/eedjsa/savannah-repo-apl/trunk/src
[0] ~ >
But doing some tinkering just now, if I rm src/makefile.h and rerun
the make and install, it works as expected:
[0] ~ >apl --show_src_dir
/home/moller/Downloads/apl-1485
[0] ~ >
A little more tinkering with your autoreconf --force --install
suggestion, but that didn't help
Chris
On 10/1/21 04:46, Dr. Jürgen Sauermann
wrote:
Hi
Chris,
simply run ./configure and make after every SVN update.
./configure recomputes the paths that are being displayed.
Best Regards,
Jürgen
On 9/30/21 8:37 PM, Chris Moller wrote:
I don't know if it's a bug or a feature,
but
apl --show_src_dir
used to show the local apl directory used to build it but is now
showing
/home/eedjsa/savannah-repo-apl/trunk/src
When writing native functions, in order to set the include path,
it was really handy being able to get the local directory
straight fromapl itself. Can that capability be put back in?
Maybe with another option like --show_local_src_dir?
Thanks,
Chris
OpenPGP_0xDA6C01938888083E.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature