On Wed, Dec 31, 2014 at 01:18:47AM +0100, Jiří Pinkava wrote:
> Dne 31.12.2014 v 01:08 Uffe Jakobsen napsal(a):
> >
> > On 2014-12-31 01:03, Uffe Jakobsen wrote:
> >> On 2014-12-30 05:38, Jiří Pinkava wrote:
> >>> I have trouble installing libsigrok on Gentoo because python bindings
> >>> during installation phase does not respect DESTDIR variable and try to
> >>> install *.py files directly into /usr/lib/....
> >>>
> >>> Attached patch solves this problem, it add --root parameter if DESTDIR
> >>> is set. In order to achieve this bash variable expansion is used, this
> >>> might possibly lead to portability issue?
> >>>
> >> I've run into this problem too - but bash should not be a requisite - I
> >> will suggest that the construction:
> >>
> >> $${DESTDIR:+--root=$(DESTDIR)}
> >>
> >> is replaced with this in this:
> >>
> >> $(if DESTDIR,--root=$(DESTDIR))
> >>
> > Sorry, I'm tired - that should have been:
> >
> > $(if $(DESTDIR),--root=$(DESTDIR))
>
> This is valid for Makefile not for Makefile.am (or at least not work for my)The following shell-only version should work fine: `test "$(DESTDIR)" && echo --root=$(DESTDIR)` Aurel ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

