From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 13:36:48 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2EF1FCA1 for ; Thu, 23 Oct 2014 13:36:48 +0000 (UTC) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (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 F15817C5 for ; Thu, 23 Oct 2014 13:36:47 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id tr6so954207ieb.18 for ; Thu, 23 Oct 2014 06:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qNYkNntUzaeFtspLVH1W/WWX3TOYMfTSgP1PCaAuqa8=; b=w8ICqeY5NNYjEXVQVOMCeok2kvU4JmGgTXv1VYJZ4kmibKrTsE8sluwNLoECMysJcF XFlWqE4N6XguE58ocn8ZsU+CPkoyXzHM1oEyLlE547G2iG/ze8DKIrSj7F4/D8gZ7WqR /31TYh8HDLqU6MFvioItLlaa4tD1wH28zmE3P+KpAEKsh2uV73IPPA4KfWnxsktyQDXn OiF2JRZHRoVHOP8L+P6jBC6lgIFvddbt2pSr+PJ1n5dhE7eSJ2GUMNYKQcS5sdt+dfUe nj/xyNGcz/efrHaDZCEU9iHmDWqGBaWm++vAGpazmkLevGhmhBe/kSoAwxvHQourOkjq qPgQ== MIME-Version: 1.0 X-Received: by 10.42.227.198 with SMTP id jb6mr1483222icb.80.1414071407337; Thu, 23 Oct 2014 06:36:47 -0700 (PDT) Received: by 10.107.12.132 with HTTP; Thu, 23 Oct 2014 06:36:47 -0700 (PDT) In-Reply-To: <544902FF.2000602@bananmonarki.se> References: <544902FF.2000602@bananmonarki.se> Date: Thu, 23 Oct 2014 03:36:47 -1000 Message-ID: Subject: Re: Problem with portupgrade - "could not find a temporary directory" From: Kent Kuriyama To: Bernt Hansson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2014 13:36:48 -0000 Bernt, thank you for your email. I finally figured out that I had mistakenly set the file protection bits of "/tmp" to: drwxrwxrwx They should be set to: drwxrwxrwt Portupgrade calls a ruby script "/usr/local/lib/ruby/2.0/tmpdir.rb" to check on the existence of the temporary directory. It is that script that is looking for the sticky bit to be set on "/tmp". Kent On Thu, Oct 23, 2014 at 3:30 AM, Bernt Hansson wrote: > On 2014-10-23 15:21, Kent Kuriyama wrote: > >> This problem is self-inflicted but I can't figure out what I did to cause >> it. When using 'portupgrade' to upgrade software I get the following >> message: >> >> root@monitor4:~ # portupgrade -fp dri >> [Reading data from pkg(8) ... - 635 packages found - done] >> ** Listing the failed packages (-:ignored / *:skipped / !:failed) >> ! graphics/dri (dri-9.1.7_6,2) (could not find a temporary >> directory) >> >> The environment variables are set: >> >> PKG_TMPDIR=/tmp >> TMPDIR=/tmp >> >> I am unable to find the string "could not find a temporary directory" in >> the source tree of portupgrade. Does anyone know what could cause this >> message? Thanks. >> >> Kent >> > > Full filesystem? >