From nobody Tue Feb 04 10:22:10 2025 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YnKDY6cKmz5mYK2 for ; Tue, 04 Feb 2025 10:22:21 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YnKDY3YK2z3GFc for ; Tue, 04 Feb 2025 10:22:21 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738664541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dk2Hbgu/SR0uWrIoocvvd7bDkFwNKZVE0dS6xx2Pkw8=; b=fKjWcL+8Wnio5NK49j+DRk++I3CGJJvwW34kTi+CtMWR4PWA5vy9ETfRpzEf7+eMuWjv79 FPPVWXDI+tKUgNb9y/oe8TrV8C5X1O5JZpKKdOAiGDupLbAzPfJVDrmKUeAppSjUsGKqzC TcFdJn8S6KTwvajqqZdyu17M+oSC2IKPjvAUBvTNqDh7ahik5B0Zav6eUArkOhTc8Yntqf jfPTYMKuYrCjcD3l7jHAFgSZfLaDJF3D9JrTSbVwdqI9gAwHxHzSz7S7Z7EA/L3PzmxiAK +OTNMjXaOgcY8R7HHlWymulQoJEk0PxVcSE23t8lyQK2D4H8IlkdyJq6a0AEmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738664541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dk2Hbgu/SR0uWrIoocvvd7bDkFwNKZVE0dS6xx2Pkw8=; b=h6Mm4vAaYl4Keo+vuVZ/6T3czNsfg8Du/Dp+WUbKQgmiBbHRoYZ5znjmxxoZfrPeyhbnwf yDe8Ox+WRWXZ5Lfe6ltP7NfTqHrEeycJhAKUZv1GjEHW2PDuyXY9ZgjnPtBA3kU77hBK19 rq4H7Wh2nkgRjkxDSvFiuJgM43XMABNMjNR0h5AMlseVGJ/4pgtNuP+Ea56HOe2isXLj27 xXit2+nkFnxRXr5loYC6NhtLKXWmVrUT/diicq+ebSwA3AoMlqCxXauAYt67/Tl1y9TDTM UwsIrG/aI5/tmmV2ADEHHaQcNdoVHAohSyG96v3SSk2mbsNSNhHRG6YcVgLaWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738664541; a=rsa-sha256; cv=none; b=C0f5tUlvA8caDSF+iRi1B16dHj+jQmqJ/GAqBnhUagpOW0F0dVq2T421lRIw/KgepGZPwK 62XMzfIvXhI8OV6uuEej+8gfiOslJUETlA1rfk4Ye1rz/Orp/4MkK8ruj/hhBqheqZ6kpR VpF+Kna39Q71aMXjfMqe4m7RLa/lagQW3GGjeXbWammoeAWU4tnnWKtX0rHmGpZRSqGfUT zjA4uQre8D1rikrgEm6qjfLDd84A6dpqDy90RrJxqpxNdxD6hN8PX7SwIgCsMfBjf9Eyx2 hZ9GVznFIdf5eKPfRlhf4fc1xErjSwTsCuJ3EvHcCblvW3B8ehWVssRHRqhB8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YnKDY35vtzBtK for ; Tue, 04 Feb 2025 10:22:21 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-7b6f6e08adeso54246485a.3 for ; Tue, 04 Feb 2025 02:22:21 -0800 (PST) X-Gm-Message-State: AOJu0Ywuf0hpTbpaVWbfNwVxDujiEffVg+/mvtXKlCSh8kmkbpBLXRyd J/3jY35a1dtq5ks4RjnGgUboqdvYT/cf/TpwBAFi4fXxb3kmgcoy3iiskcHJDKQLu9qcDLjmbsY yGo0p9Njk5aoDQL7XZRt8WMnOwy0= X-Google-Smtp-Source: AGHT+IHCyYK1Xhjl286GNxEPIdNcsBAR4aMP0B0c61P2AmOCjkSpi3f+EVc+B7kxgAoKfMDqBEKLwQeT14OZisVtw2c= X-Received: by 2002:ac8:5d91:0:b0:467:885e:2c6e with SMTP id d75a77b69052e-47017e504a7mr20020961cf.1.1738664541016; Tue, 04 Feb 2025 02:22:21 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 References: <715c84e2-ae15-4a31-93e4-9f3514bf4031@protonmail.com> In-Reply-To: <715c84e2-ae15-4a31-93e4-9f3514bf4031@protonmail.com> From: Nuno Teixeira Date: Tue, 4 Feb 2025 10:22:10 +0000 X-Gmail-Original-Message-ID: X-Gm-Features: AWEUYZlL0jrFPF6yqODNo63a8T8NzycwJdfMqcYssOjihcfz2AyvT-DsBWP8iYY Message-ID: Subject: Re: How can i prevent blueprint-compiler from generating pycache files thus causing build_fs_violation To: Yusuf Yaman Cc: ports@freebsd.org Content-Type: multipart/alternative; boundary="00000000000059e8ca062d4e629a" --00000000000059e8ca062d4e629a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Could you take a look a devel/root port? I remember that I did have some problems related and since some port is using: # Files in lib/root/__pycache__ have links into WRKDIR and should not be staged post-install: ${RM} -r ${STAGEDIR}${PREFIX}/lib/root/__pycache__ Cheers, Yusuf Yaman escreveu (segunda, 3/02/2025 =C3=A0(s= ) 20:38): > # grep blueprint-compiler > > work/flare-f412701ad8eb30d8ff0aa15db5cbc4997b21b340/data/resources/meson.= build > command: [find_program('blueprint-compiler', version: '>=3D 0.12.0'), > 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'], > > I guess that meson.build file is running blueprint-compiler and then i > assume it generates __pycache__ files and i can't even seem to delete > these __pycache__ directories in the Makefile either. > > I saw that some ports use that environment variable to prevent > generating __pycache__ files but why it doesn't work for my port while > it does for others? is it an issue with blueprint-compiler program? > > On 2/1/25 20:12, Yusuf Yaman wrote: > > Hello, > > > > I am trying to port a third-party Signal messaging app which has buil > > dependency on devel/blueprint-compiler and the port builds fine but i a= m > > getting build_fs_violation error in poudriere testport even though I > > have that PYTHONDONTWRITEBYTECODE=3D1 set in MAKE_ENV variable in > > Makefile. How can i overcome this? Thanks in advance. > > > > =3D>> Checking for filesystem violations... done > > =3D>> Error: Filesystem touched during build: > > extra: > > > usr/local/lib/python3.11/site-packages/blueprintcompiler/outputs/xml/__py= cache__ > > extra: > > > usr/local/lib/python3.11/site-packages/blueprintcompiler/outputs/__pycach= e__ > > extra: > usr/local/lib/python3.11/site-packages/blueprintcompiler/__pycache__ > > extra: > > > usr/local/lib/python3.11/site-packages/blueprintcompiler/language/__pycac= he__ > > =3D>> Cleaning up wrkdir > > > > https://github.com/nxjosephofficial/flare-ports > > > > Best regards, > > > > Yusuf. > > > > > --=20 Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --00000000000059e8ca062d4e629a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Could you take a look= a devel/root port?
I remember that I did have some problems rela= ted and since some port is using:

# Files in lib/r= oot/__pycache__ have links into WRKDIR and should not be staged
post-ins= tall:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ${RM} -r ${STAGEDIR}${PREFIX}/lib/root= /__pycache__

Cheers,

Yu= suf Yaman <nxjoseph@protonmai= l.com> escreveu (segunda, 3/02/2025 =C3=A0(s) 20:38):
# grep blueprint-compiler
work/flare-f412701ad8eb30d8ff0aa15db5cbc4997b21b340/data/resources/meson.bu= ild
=C2=A0=C2=A0 command: [find_program('blueprint-compiler', version: = '>=3D 0.12.0'),
'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@'= , '@INPUT@'],

I guess that meson.build file is running blueprint-compiler and then i
assume it generates __pycache__ files and i can't even seem to delete <= br> these __pycache__ directories in the Makefile either.

I saw that some ports use that environment variable to prevent
generating __pycache__ files but why it doesn't work for my port while =
it does for others? is it an issue with blueprint-compiler program?

On 2/1/25 20:12, Yusuf Yaman wrote:
> Hello,
>
> I am trying to port a third-party Signal messaging app which has buil<= br> > dependency on devel/blueprint-compiler and the port builds fine but i = am
> getting build_fs_violation error in poudriere testport even though I > have that PYTHONDONTWRITEBYTECODE=3D1 set in MAKE_ENV variable in
> Makefile. How can i overcome this? Thanks in advance.
>
> =3D>> Checking for filesystem violations... done
> =3D>> Error: Filesystem touched during build:
> extra:
> usr/local/lib/python3.11/site-packages/blueprintcompiler/outputs/xml/_= _pycache__
> extra:
> usr/local/lib/python3.11/site-packages/blueprintcompiler/outputs/__pyc= ache__
> extra: usr/local/lib/python3.11/site-packages/blueprintcompiler/__pyca= che__
> extra:
> usr/local/lib/python3.11/site-packages/blueprintcompiler/language/__py= cache__
> =3D>> Cleaning up wrkdir
>
> https://github.com/nxjosephofficial/flare-ports<= /a>
>
> Best regards,
>
> Yusuf.
>




--
--00000000000059e8ca062d4e629a--