Re: [PATCH i2c-tools] py-smbus/Module.mk: Install with PREFIX defined

From
Jean Delvare <hidden>
Date
2021-10-04 18:03:14
Reply to
Morten Linderud, 2021-09-19
Hi Morten,

On Sun, 19 Sep 2021 12:08:51 +0200, Morten Linderud wrote:
quoted hunk ↗ jump to hunk
If we are building to a defined destdir py-smbus is going to ignore this
and try install to the actual root. This breaks packaging setups as the
install section would fail.

Signed-off-by: Morten Linderud <redacted>
---
 py-smbus/Module.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/py-smbus/Module.mk b/py-smbus/Module.mk
index 04ceb64..1e2ded1 100644
--- a/py-smbus/Module.mk
+++ b/py-smbus/Module.mk
@@ -22,7 +22,7 @@ clean-python:
 	rm -rf py-smbus/build
 
 install-python:
-	$(DISTUTILS) install
+	$(DISTUTILS) install --prefix="$(PREFIX)"
 
 all: all-python
 
Thanks for catching and fixing this. Applied.

-- 
Jean Delvare
SUSE L3 Support
Thread (3 messages) 3 messages, 3 authors, last reply 2021-10-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help