Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2016 17:09:28 +0000
From:      Miguel C <miguelmclara@gmail.com>
To:        Chagin Dmitry <dchagin@freebsd.org>
Cc:        "freebsd-emulation@freebsd.org" <freebsd-emulation@freebsd.org>
Subject:   Re: Sublime no longer working on FreeBSD CURRENT
Message-ID:  <CADGo8CVtb3jx0o232YB5OZU-eL-Yh2ekz1GuEnKQjNvtrehNDg@mail.gmail.com>
In-Reply-To: <20160307163014.GA4366@chd.heemeyer.club>
References:  <CADGo8CUE9LD1AFMCQtBzYmN8w1OeHZUUvbr0SXztqhiVhc53oA@mail.gmail.com> <20160306013429.GA9032@chd.heemeyer.club> <CADGo8CWEDVXYyT39q=0qDdV5Z=%2BBp4U=BXLRh5m2OHszLrBiNA@mail.gmail.com> <20160307073147.GA4152@chd.heemeyer.club> <CADGo8CVLAeWpFo9%2Bbz9EpoET8r4igw01MOBqjdwC5yGAiLkrhA@mail.gmail.com> <20160307163014.GA4366@chd.heemeyer.club>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 7, 2016 at 4:30 PM, Chagin Dmitry <dchagin@freebsd.org> wrote:

> On Mon, Mar 07, 2016 at 03:21:38PM +0000, Miguel C wrote:
> > Melhores Cumprimentos // Best Regards
> > -----------------------------------------------
> > *Miguel Clara*
> > *IT - Sys Admin & Developer*
> >
> > On Mon, Mar 7, 2016 at 7:31 AM, Chagin Dmitry <dchagin@freebsd.org>
> wrote:
> >
> > > On Mon, Mar 07, 2016 at 01:42:46AM +0000, Miguel C wrote:
> > > > https://dpaste.de/ucXY
> > > >
> > > > It seems to fail do to missing "shm" but this should work with the
> link
> > > to
> > > > tmp on devfs.conf, or at least it did before.
> > > >
> > > yes, it's related to the /dev/shm. please, mount tmpfs to the /tmp, ie
> put
> > > tmpfs      /tmp     tmpfs  rw,size=1g,mode=1777    0       0
> > > to the /etc/fstab
> > >
> > >
> > >
> > Hum I see, was this changed recently? I've been using ZFS in both 10.x
> and
> > Current and it was working without tmpfs
> >
> >
> > For testing I used tmpfs on "/ram" and change the link line on devfs.conf
> > which is now:
> > # link shm
> > link    /ram    shm
> >
> > And sublime works fine like this.
> >
> nice,
>
> > In any case I can adapt the port message to check for this or maybe even
> > add a better way to check it in sublime.sh
> >
> already do, PR: ports/207769
>
> > And many thanks for the ktrace/kdump parameters those should prove handy
> in
> > futther debugging of linux ports :)
> thanks
>

Ah cool, I was doing this in the .sh script:

cat /usr/local/bin/sublime
#!/compat/linux/bin/sh
if [ -L "/dev/shm" ];then
        /usr/local/share/sublime/sublime_text "$@"
else
        echo    "Some Linux applications use shared memory.

Sublime Text 3 can not function without it, you need to set up a link
from /dev/shm to a suitable place, e.g. by adding the following line
to /etc/devfs.conf (takes effect on each boot - restart devfs to apply
then change now):
        link /tmp shm
"
        exit 1;
fi

Which would still pass (wrongfully) cause tmp was not using tmpfs, but I
guess that won't be needed anymore, still probably best to keep it for
freebsd 10.x



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGo8CVtb3jx0o232YB5OZU-eL-Yh2ekz1GuEnKQjNvtrehNDg>