From nobody Sat Feb 18 07:42:44 2023 X-Original-To: dev-commits-ports-all@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 4PJgdZ4z5Tz3rYGQ; Sat, 18 Feb 2023 07:42:58 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PJgdZ0FDyz4DBP; Sat, 18 Feb 2023 07:42:58 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of antoine.brodin.freebsd@gmail.com designates 209.85.208.176 as permitted sender) smtp.mailfrom=antoine.brodin.freebsd@gmail.com; dmarc=none Received: by mail-lj1-f176.google.com with SMTP id z4so259926lji.0; Fri, 17 Feb 2023 23:42:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OTm/gAut9t3nV2dH1ARRyvg5m1EY1xfqcIj11MCdpRc=; b=i1MHK5tEiutncGGZsmBXXZo+SfLp6lNiLxg42pvZovw8wAnzPqx9a0TnOUtaOPhcg8 8D4hrmC+o5DjNashMoYBHeb2WctQagfOE5QX3tgG9JUTK9oZE91gWag8+asbEUlP9lxP guNdtQ/4yF/ihTAZnXnS7UI6v+Act3JlONV6TPXcEAajHAySFXenFaAJdHki18ZOWw4r 7AZI5YGRhY43fIsDQm/PmSG11Y+FPGYAlukad894+JAV550/QDiNAaKrFdkhyLk2hXXU rUH8ULLI7HRtjT2mUuq5HfmaXTktfm+Cod3F6LJTS2TOmn/14Fr+1KDlwnicfK85FsNc ZkmQ== X-Gm-Message-State: AO0yUKVu5/5Z0mOLpfukjj1XZpeXJ87BeD0OTytjIOfio4cYmN4PriD7 EqJBy/DdHuldHqPdH1o6fz8Od4o3rqwhiHpibwdHUDoyLI0= X-Google-Smtp-Source: AK7set9lpmcRp47f4+6dM0KMcGb0nvVmoHLn6vdHSPdKRsd/cfViEIgNJV6Xdc5xoPR63Ms+41xGMLsMx7cFqZSo8ag= X-Received: by 2002:a2e:b554:0:b0:293:34b9:b86a with SMTP id a20-20020a2eb554000000b0029334b9b86amr1031633ljn.7.1676706175337; Fri, 17 Feb 2023 23:42:55 -0800 (PST) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 References: <202302152135.31FLZxEE021962@gitrepo.freebsd.org> In-Reply-To: <202302152135.31FLZxEE021962@gitrepo.freebsd.org> From: Antoine Brodin Date: Sat, 18 Feb 2023 07:42:44 +0000 Message-ID: Subject: Re: git: c17ddfbf66e2 - main - lang/python: add bytecode trigger To: Charlie Li Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-2.34 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.34)[-0.337]; FORGED_SENDER(0.30)[antoine@freebsd.org,antoinebrodinfreebsd@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[dev-commits-ports-all@freebsd.org,dev-commits-ports-main@freebsd.org]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; R_DKIM_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.176:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.176:from]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[freebsd.org]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[antoine@freebsd.org,antoinebrodinfreebsd@gmail.com]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PJgdZ0FDyz4DBP X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Wed, Feb 15, 2023 at 9:36 PM Charlie Li wrote: > > The branch main has been updated by vishwin: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=c17ddfbf66e2801ec620d49979aca3d7077d7002 > > commit c17ddfbf66e2801ec620d49979aca3d7077d7002 > Author: Charlie Li > AuthorDate: 2023-02-15 20:57:06 +0000 > Commit: Charlie Li > CommitDate: 2023-02-15 21:35:07 +0000 > > lang/python: add bytecode trigger > > Facilitates compiling, writing and removing bytecode files (.pyc) > in site-packages after all pkg transactions have been completed. > > Technical details: https://wiki.freebsd.org/Python/CompiledPackages > > Fixes reports of Python port builds as root failing on filesystem > violations due to bytecode file writes where the port did not include > them in the package. > > For those ports/packages that currently package bytecode, some > checksum mismatches on those files may occur. This is harmless and > will be rectified, in large as part of a USE_PYTHON=distutils > overhaul to reduce churn. > > While here, implement a long-standing todo item of letting lang/python > ports use python.mk bits. Not only does this obviate duplicate > variables in each Makefile, but SUB_LIST (also added) is used for > these triggers. > > Co-authored by: tcberner > Approved by: tcberner (mentor) > Differential Revision: https://reviews.freebsd.org/D34739 Hello, There are some errors with this trigger: Installing py39-sphinx-5.3.0,1... >=> Cleaning stale bytecode files... pkg-static: Failed to execute lua trigger: [string "function cleanup(directory)..."]:21: attempt to get length of a nil value (local 'res') pkg-static: lua script failed Installing py39-breathe-4.34.0... >=> Cleaning stale bytecode files... pkg-static: Failed to execute lua trigger: attempt to index a nil value pkg-static: lua script failed Antoine