Re: [code] textadept: make install ignores DESTDIR

From: Mitchell <m.att.foicica.com>
Date: Sun, 5 Apr 2020 21:32:15 -0400 (EDT)

Hi,

On Tue, 25 Feb 2020, GMail wrote:

>
> make curses install DESTDIR= will install correctly, except for a few files of which some symlinks are broken
>
> './usr/share/pixmaps/textadept.png' -> '/usr/local/share/textadept/core/images/ta_48x48.png'
> './usr/share/pixmaps/textadept.svg' -> '/usr/local/share/textadept/core/images/textadept.svg'
> './usr/local/bin/textadept-curses' -> '/usr/local/share/textadept/textadept-curses'

I've finally had the time to look into this and do not see an issue, though perhaps I am mistaken. I ran the following:

   make PREFIX=/usr/local DESTDIR=/tmp/pkg curses install

I get the following directory structure:

   /tmp/pkg/usr/
     share/
       pixmaps/
         textadept.png -> /usr/local/share/textadept/core/images/ta_48x48.png
         textadept.svg -> /usr/local/share/textadept/core/images/textadept.svg
     local/
       bin/
         textadept-curses -> /usr/local/share/textadept/textadept-curses
       share/
         textadept/
           core/
             ...
             images/
               ...
               ta_48x48.png
               textadept.svg
               ...

All three links will be valid once the contents of /tmp/pkg are properly installed on a system (typically via a package manager). They are not valid at present because `make ... DESTDIR=...` is an intermediate step.

> make install DESTDIR has these broken symlinks
>
>
> './usr/share/pixmaps/textadept.png' -> '/usr/local/share/textadept/core/images/ta_48x48.png'
> './usr/share/pixmaps/textadept.svg' -> '/usr/local/share/textadept/core/images/textadept.svg'
> './usr/local/bin/textadept' -> '/usr/local/share/textadept/textadept'

The same explanation applies above.

> Strangely enough, there is no textadept-curses when you use make install, Which I thought would include the both

The manual[1] documents the separate commands.

Cheers,
Mitchell

[1]: https://foicica.com/textadept/manual.html#Makefile.Command.Summary

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 05 Apr 2020 - 21:32:15 EDT

This archive was generated by hypermail 2.2.0 : Mon 06 Apr 2020 - 06:55:11 EDT