bug-texinfo
[Top][All Lists]
Advanced

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

Re: Directory names hard-coded in Texinfo Perl scripts


From: Per Bothner
Subject: Re: Directory names hard-coded in Texinfo Perl scripts
Date: Sat, 18 Dec 2021 09:00:03 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0



On 12/18/21 06:59, Gavin Smith wrote:
On Sat, Dec 18, 2021 at 2:54 PM Eli Zaretskii <eliz@gnu.org> wrote:
Is this part supposed to work also when Texinfo is installed in a
directory different from the prefix with which it was configured?

No, it is only for running from the source/build directory, not for
the installed program.

It is highly desirable to be more general than that.
Note that automake-generated Makefiles allow overriding
both prefix and DESTDIR at install time.  I believe DESTDIR is
creating install images, so handling DESTDIR correctly is a
facctor in writing correct 'make install' rules, not runtime.

However, overriding prefix at install time is also useful.
I use it to create an AppImage of DomTerm: An AppImage is
basically an executable single-file partial file system:
It basically makes an archive wrapping the $prefix tree.

When you run the AppImage, the $prefix tree is mounted as a
temporary user file system.  With a path that may differ each
time you run the AppImage.  For example, running DomTerm.AppImage
the file domterm.jar appears to the domterm execuatble as:
/tmp/.mount_DomTerfjMAQ5/usr/bin/../share/domterm/domterm.jar
I.e. the effective $prefix is /tmp/.mount_DomTerfjMAQ5/usr/ .
--
        --Per Bothner
per@bothner.com   http://per.bothner.com/



reply via email to

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