Re: [code] textadept: make install ignores DESTDIR

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Thu, 9 Apr 2020 13:26:19 +0200

Hi,

I have an example to circumvent this problems when creating Packages for
Debian/Ubuntu.
It's in my github under https://github.com/paaguti/debian_ta

I hope it may inspire changes in the Makefiles, but if not that it is at
least helpful to someone else.

Health and Peace

/Pedro A:

On Mon, 6 Apr 2020 at 03:32, Mitchell <m.att.foicica.com> wrote:

> 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.
>
>

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
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 Thu 09 Apr 2020 - 07:26:19 EDT

This archive was generated by hypermail 2.2.0 : Fri 10 Apr 2020 - 06:27:57 EDT