gpm icon indicating copy to clipboard operation
gpm copied to clipboard

Fix DESTDIR

Open posophe opened this issue 9 years ago • 9 comments

posophe avatar Jan 23 '15 10:01 posophe

this doesn't seem to make sense. the build already supports DESTDIR -- see the Makefile.include.in and how it utilizes ROOT/DESTDIR.

vapier avatar Feb 14 '16 20:02 vapier

The way you're talking about is not the standard one. Without the patch (actually applied on gpm sources in openSUSE), Make BUILDROOT=%{buildroot} isn't handled correctly by make.

posophe avatar Feb 14 '16 20:02 posophe

it is standard: make install DESTDIR=/some/path works the same in gpm as automake based projects.

your changes, as written, break that behavior because DESTDIR gets expanded twice.

vapier avatar Feb 14 '16 21:02 vapier

I didn't make the initial patch. Let me just talk to the original author about the changes, and the why they've been done this way.

posophe avatar Feb 14 '16 21:02 posophe

all the commits have your name on them. if you aren't the author, then you should be fixing your git commits to correctly attribute the original author.

vapier avatar Feb 14 '16 22:02 vapier

@vapier it's great to see you still being around and sanity checking - thanks a lot for your efforts!

telmich avatar Feb 14 '16 22:02 telmich

Any chance to merge this PR and release new version? 🤔

kloczek avatar Nov 07 '23 17:11 kloczek

Indeed in https://github.com/telmich/gpm/pull/6/commits/16628b44e999225c6bcf099bba004cb13be5324f is typo which is possible to fix by s,$(DESTDIR) $(includedir)/gpm.h,$(DESTDIR)$(includedir)/gpm.h,

Nevertheless install should use DESTDIR style install as all autoconf or autoconf/automake using projects and this PR fixes that.

kloczek avatar Nov 07 '23 17:11 kloczek

this PR is actively broken/bad as i described. look at how DESTDIR is expanded twice.

i'm not against deleting ROOT and moving DESTDIR to the individual rules rather than putting into the immediate path variables, but this PR doesn't do that.

if you want to submit a new PR that correctly fixes things, then please do. this PR, as-is, is not safe, and cannot be merged.

vapier avatar Nov 07 '23 18:11 vapier