From owner-freebsd-pkg@FreeBSD.ORG Sun Sep 7 23:04:02 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BB40B89; Sun, 7 Sep 2014 23:04:02 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEB811909; Sun, 7 Sep 2014 23:04:01 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id ty20so4347153lab.21 for ; Sun, 07 Sep 2014 16:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=AAO5JHlBzZhftkDwVUoCAsjNVeSBbIFeLPD6GkCcq3k=; b=pyK3PCA13WbzYACOmaXYtJLUqF4rpN85Bao33QDsue9e/gEqHlAA7PLeSYH2u2nSv9 Uq82e0+gjh+inyY6ZOVcAalzkiaN1btCmJ5FrgoXTt+SKkT2CVbxwH6ibkoK6L+mL6Ld dxvXG8Blk5kCyvECeuS54l5NRqSccpZjC7k+khPV0L9/ukRrt9s48oELhyfvyUXDxSer 1beanSudDlb/npg+WG6tXd8HeMk7dtdmIifluKNl9wvrETymjWEnOG+BC/+4YAeSjP+0 x243XMTrKssDmzyu58m4oq2iDh44a177LszrkzZxokm+lOlM34ly2YZCnvLi+/WGaoGy tWXw== MIME-Version: 1.0 X-Received: by 10.152.37.5 with SMTP id u5mr10655235laj.65.1410131039395; Sun, 07 Sep 2014 16:03:59 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.22.72 with HTTP; Sun, 7 Sep 2014 16:03:59 -0700 (PDT) Date: Sun, 7 Sep 2014 16:03:59 -0700 X-Google-Sender-Auth: 2v9jDX7WEFTeZfzOr_QcZwDJr9Q Message-ID: Subject: make -DNO_ROOT to create chroot, problem installing into chroot with pkg From: Craig Rodrigues To: freebsd-current Current Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 23:04:02 -0000 Hi, I am using pkg 1.3.7. I did the following as a regular user, not root: rm -fr /tmp/package cd /usr/src make buildworld make buildkernel make -DNO_ROOT -DDB_FROM_SRC installworld DESTDIR=/tmp/package make -DNO_ROOT -DDB_FROM_SRC installkernel DESTDIR=/tmp/package make -DNO_ROOT -DDB_FROM_SRC distribution DESTDIR=/tmp/package This created an installed world under /tmp/package Then I did: pkg -c /tmp/package install -y devel/kyua I got: pkg: chroot failed! Then I tried the same command under sudo: sudo pkg -c /tmp/package install -y devel/kyua I got: pkg: /var/db/pkg wrong user or group ownership (expected 0/0 versus actual 818/0) Is there a way to install packages into chroot without being root? -- Craig