diff -Naur WiringPi-2.61-1/build WiringPi-2.61-1.patch/build --- WiringPi-2.61-1/build 2022-10-08 15:38:33.344343519 +0000 +++ WiringPi-2.61-1.patch/build 2022-10-08 15:37:23.425779952 +0000 @@ -43,7 +43,7 @@ fi } -sudo=${WIRINGPI_SUDO-sudo} +sudo= if [ x$1 = "xclean" ]; then cd wiringPi @@ -133,11 +133,12 @@ if [ x$1 = "xstatic" ]; then make -j5 DESTDIR="$DESTDIR" PREFIX="$PREFIX" static check_make_ok - $sudo make install-static + $sudo make DESTDIR=$DESTDIR PREFIX=$PREFIX LDCONFIG= install-static else - make DESTDIR="$DESTDIR" PREFIX="$PREFIX" -j5 + echo "lib $DESTDIR $PREFIX" + make DESTDIR=$DESTDIR PREFIX=$PREFIX -j5 check_make_ok - $sudo make install + $sudo make DESTDIR=$DESTDIR PREFIX=$PREFIX LDCONFIG= install fi check_make_ok @@ -148,20 +149,21 @@ if [ x$1 = "xstatic" ]; then make -j5 DESTDIR="$DESTDIR" PREFIX="$PREFIX" static check_make_ok - $sudo make install-static + $sudo make DESTDIR=$DESTDIR PREFIX=$PREFIX LDCONFIG= install-static else make -j5 DESTDIR="$DESTDIR" PREFIX="$PREFIX" check_make_ok - $sudo make install + $sudo make DESTDIR=$DESTDIR PREFIX=$PREFIX LDCONFIG= install fi check_make_ok echo echo "GPIO Utility" cd ../gpio + echo $DESTDIR $PREFIX make -j5 DESTDIR="$DESTDIR" PREFIX="$PREFIX" check_make_ok - $sudo make install + $sudo make DESTDIR=$DESTDIR PREFIX=$PREFIX LDCONFIG= WIRINGPI_SUID=0 install check_make_ok # echo diff -Naur WiringPi-2.61-1/devLib/Makefile WiringPi-2.61-1.patch/devLib/Makefile --- WiringPi-2.61-1/devLib/Makefile 2022-10-08 15:38:33.344343519 +0000 +++ WiringPi-2.61-1.patch/devLib/Makefile 2022-10-08 15:37:23.415780165 +0000 @@ -93,7 +93,7 @@ $Q echo "[Install Dynamic Lib]" $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib $Q install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) - $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so + $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so $Q $(LDCONFIG) .PHONY: install-static diff -Naur WiringPi-2.61-1/wiringPi/Makefile WiringPi-2.61-1.patch/wiringPi/Makefile --- WiringPi-2.61-1/wiringPi/Makefile 2021-12-23 18:27:13.000000000 +0000 +++ WiringPi-2.61-1.patch/wiringPi/Makefile 2022-10-08 15:37:23.425779952 +0000 @@ -96,12 +96,13 @@ .PHONY: install install: $(DYNAMIC) $Q echo "[Install Headers]" + $Q echo "$(DESTDIR)$(PREFIX)" $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include $Q echo "[Install Dynamic Lib]" $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib $Q install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) - $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so + $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so $Q $(LDCONFIG) .PHONY: check-deb-destdir