* [libgpiod][PATCH] bindings: python: pass DESTDIR to setup.py
@ 2023-02-13 17:05 Bartosz Golaszewski
2023-02-13 17:06 ` Peter Robinson
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2023-02-13 17:05 UTC (permalink / raw)
To: Kent Gibson, Linus Walleij, Andy Shevchenko, Viresh Kumar
Cc: linux-gpio, Bartosz Golaszewski, Peter Robinson
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
As per automake docs:
The DESTDIR variable can be used to perform a staged installation. The
package should be configured as if it was going to be installed in its
final location (e.g., --prefix /usr), but when running make install, the
DESTDIR should be set to the absolute name of a directory into which the
installation will be diverted. From this directory it is easy to review
which files are being installed where, and finally copy them to their
final location by some means.
Prefix $(prefix) with $(DESTDIR) when calling setup.py.
Reported-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
bindings/python/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 9fb2e95..75ce53b 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -18,7 +18,7 @@ all-local:
install-exec-local:
GPIOD_WITH_TESTS= \
- $(PYTHON) $(srcdir)/setup.py install --prefix=$(prefix)
+ $(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix)
SUBDIRS = gpiod
--
2.37.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [libgpiod][PATCH] bindings: python: pass DESTDIR to setup.py
2023-02-13 17:05 [libgpiod][PATCH] bindings: python: pass DESTDIR to setup.py Bartosz Golaszewski
@ 2023-02-13 17:06 ` Peter Robinson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Robinson @ 2023-02-13 17:06 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Kent Gibson, Linus Walleij, Andy Shevchenko, Viresh Kumar,
linux-gpio, Bartosz Golaszewski
On Mon, Feb 13, 2023 at 5:05 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> As per automake docs:
>
> The DESTDIR variable can be used to perform a staged installation. The
> package should be configured as if it was going to be installed in its
> final location (e.g., --prefix /usr), but when running make install, the
> DESTDIR should be set to the absolute name of a directory into which the
> installation will be diverted. From this directory it is easy to review
> which files are being installed where, and finally copy them to their
> final location by some means.
>
> Prefix $(prefix) with $(DESTDIR) when calling setup.py.
>
> Reported-by: Peter Robinson <pbrobinson@gmail.com>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Fixes the build for Fedora, thanks.
> ---
> bindings/python/Makefile.am | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
> index 9fb2e95..75ce53b 100644
> --- a/bindings/python/Makefile.am
> +++ b/bindings/python/Makefile.am
> @@ -18,7 +18,7 @@ all-local:
>
> install-exec-local:
> GPIOD_WITH_TESTS= \
> - $(PYTHON) $(srcdir)/setup.py install --prefix=$(prefix)
> + $(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix)
>
> SUBDIRS = gpiod
>
> --
> 2.37.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-13 17:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 17:05 [libgpiod][PATCH] bindings: python: pass DESTDIR to setup.py Bartosz Golaszewski
2023-02-13 17:06 ` Peter Robinson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox