All of lore.kernel.org
 help / color / mirror / Atom feed
From: richard.purdie@linuxfoundation.org
To: Mark Hatle <mark.hatle@windriver.com>,
	"Slater, Joseph" <joe.slater@windriver.com>,
	"bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Subject: Re: /run/user/<id>/bb
Date: Mon, 07 Jan 2019 17:31:22 +0000	[thread overview]
Message-ID: <d87ce682d2a0e2eda230e8b0e7799f2ec68f46db.camel@linuxfoundation.org> (raw)
In-Reply-To: <d718f0d7-3834-3b42-2fc2-3667ed4e899c@windriver.com>

On Mon, 2019-01-07 at 10:07 -0600, Mark Hatle wrote:
> On 1/7/19 8:56 AM, Richard Purdie wrote:
> > On Thu, 2019-01-03 at 23:57 +0000, Slater, Joseph wrote:
> > > TMPDIR is useful, but named sockets need a "short" pathname, so
> > > it it
> > > might be nice to have a RUNDIR, or something similar, under
> > > /run/user/<id>/bb.  Could this be added?  I would do it if the
> > > concept is accepted.
> > 
> > What problem are we solving with this?
> > 
> > I'm guessing problems with memory resident bitbake in envvars but I
> > am
> > having to guess! :)
> 
> I'm assuming it's a combination of memory resident bitbake, and overall path
> length in TMPDIR to the sockets.  Sockets have a maximum filesystem path length
> (107 characters in Linux) that is much shorted then other components in the
> system (4k or less).
> 
> The typical way people work around this is whenever you use a socket
> you cd to the path of the socket and then open it relative to the
> current location.

The code in bitbake already does that as it happens...

> in either the TMPDIR or RUNDIR type configuration, that 'cd ; open'
> type behavior will still likely be needed.  So I'm not sure if RUNDIR
> actually fixes anything when it comes to path length issues.  It just
> moves the socket to a known location, from 'current' path.

I'm hoping Joe can explain the problem rather than us guessing,
particularly as the code for where I thought the problem may be already
does a chdir().

Cheers,

Richard



  reply	other threads:[~2019-01-07 17:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-03 23:57 /run/user/<id>/bb Slater, Joseph
2019-01-07 14:56 ` /run/user/<id>/bb Richard Purdie
2019-01-07 16:07   ` /run/user/<id>/bb Mark Hatle
2019-01-07 17:31     ` richard.purdie [this message]
2019-01-07 20:48       ` /run/user/<id>/bb Slater, Joseph
2019-01-08 20:03         ` /run/user/<id>/bb richard.purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d87ce682d2a0e2eda230e8b0e7799f2ec68f46db.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=joe.slater@windriver.com \
    --cc=mark.hatle@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.