xbps-src: drop fakeroot; xbps-create(8) is our friend.

- This should work for almost 90% current packages, as reported by OpenBSD/ports.
- Packages that use install -o <user> -g <group>  will get fixed progressively.
- xbps-create(8) by default sets pkg files as 0:0, if any pkg needs special
  permissions those can be set via INSTALL scripts (for now).
This commit is contained in:
Juan RP 2014-09-24 19:51:17 +02:00
parent b157085af7
commit 1ce278f035
5 changed files with 12 additions and 24 deletions

View file

@ -101,13 +101,9 @@ install_pkg_from_repos() {
tmplogf=$(mktemp)
if [ -n "$cross" ]; then
$FAKEROOT_CMD $XBPS_INSTALL_XCMD -Ayd "$pkg" >$tmplogf 2>&1
$XBPS_INSTALL_XCMD -Ayd "$pkg" >$tmplogf 2>&1
else
if [ -z "$CHROOT_READY" ]; then
$XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1
else
$FAKEROOT_CMD $XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1
fi
$XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1
fi
rval=$?
if [ $rval -ne 0 -a $rval -ne 17 ]; then
@ -235,7 +231,7 @@ install_pkg_deps() {
iver=$($XBPS_UHELPER_CMD version "${pkgn}")
if [ $? -eq 0 -a -n "$iver" ]; then
echo " [host] ${_realpkg}: installed ${iver} (unresolved) removing..."
$FAKEROOT_CMD $XBPS_REMOVE_CMD -iyf $pkgn >/dev/null 2>&1
$XBPS_REMOVE_CMD -iyf $pkgn >/dev/null 2>&1
fi
else
if [ -n "${_exact}" ]; then