Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2018 08:40:05 +0100
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        "Jason E. Hale" <jhale@freebsd.org>
Cc:        Emanuel Haupt <ehaupt@freebsd.org>, "ports@freebsd.org" <ports@freebsd.org>, Yuri <yuri@rawbw.com>
Subject:   Re: Why some python ports fail with build_fs_violation like this: usr/local/lib/python3.6/site-packages/dbus/__pycache__ ?
Message-ID:  <20180306084005.6379034c47e40cd89709dacd@FreeBSD.org>
In-Reply-To: <CAJE75NF81RTE8kzbLA4ajAsHD09x4fjggtLbvz92n79QuTik5w@mail.gmail.com>
References:  <935dd8c6-18ab-cd7f-1f41-31ff44179719@rawbw.com> <20180305112450.4bf542c1b3f2e0e9e993ad4e@FreeBSD.org> <CAJE75NF81RTE8kzbLA4ajAsHD09x4fjggtLbvz92n79QuTik5w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Jason E. Hale" <jhale@freebsd.org> wrote:
> On Mon, Mar 5, 2018 at 5:24 AM, Emanuel Haupt <ehaupt@freebsd.org>
> wrote:
> > Yuri <yuri@rawbw.com> wrote:
> >> Examples:
> >>
> >> http://package21.nyi.freebsd.org/data/111amd64-default-qat/463452/logs/errors/py36-notify2-0.3.1.log
> >>
> >> http://package21.nyi.freebsd.org/data/111amd64-default-qat/463452/logs/errors/Carla-1.9.8.log
> >>
> >>
> >> Yuri
> >
> > I run into the same problem trying to update the nagstamon port
> > (both poudriere and poudriere-devel).
> >
> > In my case the port is heavily reliant on python36 flavoured
> > dependencies.
> >
> > Here is my build log:
> > http://people.freebsd.org/~ehaupt/misc/7DB621161F-672C5B551B-0F0958D74F-E60E451E4E/nagstamon-3.0.2.log
> >
> > In my case the following files are modified during the build stage:
> >
> > extra:
> > usr/local/lib/python3.6/site-packages/dbus/mainloop/__pycache__
> > extra: usr/local/lib/python3.6/site-packages/dbus/__pycache__
> >
> > I'm not sure why that happens.
> >
> > Emanuel
> 
> The problem looks to be in the devel/py-dbus port. It uses a script
> called ${WRKSRC}/py-compile to compile the Python bytecode, but it is
> not PEP 3147 compliant. I.e., it is writing out .pyc and .pyo files in
> Python < 3.2 style. Therefore, whenever the ports you are trying to
> build are loading the dbus module, it is creating the bytecode in the
> correct location on the fly and touching the filesystem.

Thank you for your explanation.

Emanuel



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