+2007-09-08 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-buildpackage.sh: Use fakeroot, if present, as default
+ value for the '-r' option.
+
2007-09-06 Guillem Jover <guillem@debian.org>
* scripts/dpkg-genchanges.pl: Stop recognizing the obsolete Optional
* Document in dpkg-scanpackages that apt now requires Packages.bz2 instead
of Packages.gz. Closes: #440973
* Stop recognizing the obsolete Optional field when building packages.
+ * Use fakeroot, if present, by default to gain root privileges in
+ dpkg-buildpackage.
[ Updated dpkg translations ]
* Portuguese (Miguel Figueiredo).
Options:
-r<gain-root-command>
+ command to gain root privileges (default is fakeroot if it
+ exists).
-p<sign-command>
-d do not check build dependencies and conflicts.
-D check build dependencies and conflicts.
}
rootcommand=''
+if command -v fakeroot >/dev/null 2>&1; then
+ rootcommand=fakeroot
+fi
+
signcommand=""
if [ -e "$GNUPGHOME" ] || [ -e "$HOME/.gnupg" ] && \
command -v gpg > /dev/null 2>&1; then