[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gprolog DESTDIR and optional install directories

From: Keri Harris
Subject: gprolog DESTDIR and optional install directories
Date: Sat, 10 Jul 2021 14:55:25 +0200
User-agent: Evolution 3.36.5-0ubuntu1


I ran into the following issue when installing gprolog-1.5.0 when DESTDIR is set:

In src/Makefile.in the target install directories are defined such that DESTDIR is respected:


So far so good. However, there are special checks in the Makefile to see if these destination directories are disabled by way of them being set to "none", e.g:

    if test $(LINKS_DIR) != none; then ...
    if test $(DOC_DIR) != none; then ...
    if test $(HTML_DIR) != none; then ...
    if test $(EXAMPLES_DIR) != none; then ...

If DESTDIR is set, then the above comparisons will always succeed even if the the configure script has set the directories to none. In this case we are comparing "$(DESTDIR)none" vs "none".

There are two ways of addressing this:

1. compare against $(DESTDIR)none. e.g:

    if test $(LINKS_DIR) != $(DESTDIR)none; then ...

2. compare the directories without DESTDIR against none. e.g:

    if test @LINKS_DIR@ != none; then ...

I've attached a patch I'm using on Gentoo Linux. (The patch applies cleanly on top of the gprolog-1.5.0-links.patch [1]).



[1] https://mail.gnu.org/archive/html/bug-prolog/2021-07/msg00001.html

Attachment: gprolog-1.5.0-destdir.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]