Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2014 03:36:47 -1000
From:      Kent Kuriyama <kent.kuriyama@gmail.com>
To:        Bernt Hansson <bah@bananmonarki.se>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem with portupgrade - "could not find a temporary directory"
Message-ID:  <CACArijC7eBCuJ5MdySxKoPCuMkeQfOv%2BmGbKE=ANicjFrs%2B9EQ@mail.gmail.com>
In-Reply-To: <544902FF.2000602@bananmonarki.se>
References:  <CACArijA4c-%2BWdbRV=2JXq7p4mw3W3inSTCKLSWRy9bO8PM1RZA@mail.gmail.com> <544902FF.2000602@bananmonarki.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bah@bananmonarki.se> 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?
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACArijC7eBCuJ5MdySxKoPCuMkeQfOv%2BmGbKE=ANicjFrs%2B9EQ>