Diff of /trunk/wharfie/wharfie.mk [r4] .. [r5]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/wharfie/wharfie.mk
+++ b/trunk/wharfie/wharfie.mk
@@ -1,8 +1,10 @@
 SHELL=/bin/bash
-SUDO=$(shell which sudo)
-DBOOTSTRAP=$(shell ${SUDO} which qemu-debootstrap)
-DBOOTSTRAP2=$(shell ${SUDO} which debootstrap)
-FAKEROOT=$(shell which fakeroot)
+PATH := $(PATH):/sbin:/usr/sbin
+SUDO=$(shell PATH=${PATH}:/sbin:/usr/sbin which sudo)
+FAKEROOT=$(shell PATH=${PATH}:/sbin:/usr/sbin which fakeroot)
+FAKECHROOT=$(shell PATH=${PATH}:/sbin:/usr/sbin which fakechroot)
+DBOOTSTRAP=$(shell PATH=${PATH}:/sbin:/usr/sbin which qemu-debootstrap)
+DBOOTSTRAP2=$(shell PATH=${PATH}:/sbin:/usr/sbin which debootstrap)
 PACKAGES=locales systemd
 
 MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
@@ -11,9 +13,17 @@
 # extend path to sbin binaries
 export PATH := /usr/sbin:${PATH}
 
-ifeq (${FAKEROOT},)
-$(error fakeroot not found. On debian, you may install the package fakeroot first)
+ifeq (${SUDO},)
+$(error sudo not found. On debian, you may install the package sudo first)
 endif
+
+#ifeq (${FAKEROOT},)
+#$(error fakeroot not found. On debian, you may install the package fakeroot first)
+#endif
+
+#ifeq (${FAKECHROOT},)
+#$(error fakechroot not found. On debian, you may install the package fakechroot first)
+#endif
 
 ifeq (${DBOOTSTRAP},)
 $(error qemu-debootstrap not found. On debian, you may install the package qemu-user-static first)
@@ -22,8 +32,6 @@
 ifeq (${DBOOTSTRAP2},)
 $(error debootstrap not found. On debian, you may install the package debootstrap first)
 endif
-
-FAKEROOT+=-s ${CWD}/.fakeroot
 
 -include debian_version.mk