From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#61802: 29.0.60; Packages supporting "package.el" throw comp warnings when package.el not loaded Date: Sun, 1 Oct 2023 05:36:38 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4228"; mail-complaints-to="usenet@ciao.gmane.io" To: Chris Brolly , 61802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 01 14:38:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qmvi8-0000ic-G7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Oct 2023 14:38:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmvhl-0002md-E8; Sun, 01 Oct 2023 08:37:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmvhj-0002mJ-7k for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 08:37:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmvhi-0000ec-Vp for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 08:37:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmvhy-0001lT-HZ for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 08:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Oct 2023 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61802 X-GNU-PR-Package: emacs Original-Received: via spool by 61802-submit@debbugs.gnu.org id=B61802.16961638246696 (code B ref 61802); Sun, 01 Oct 2023 12:38:02 +0000 Original-Received: (at 61802) by debbugs.gnu.org; 1 Oct 2023 12:37:04 +0000 Original-Received: from localhost ([127.0.0.1]:60801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmvh2-0001ju-4a for submit@debbugs.gnu.org; Sun, 01 Oct 2023 08:37:04 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:42383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmvgz-0001jI-T9 for 61802@debbugs.gnu.org; Sun, 01 Oct 2023 08:37:02 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5056ca2b6d1so2727403e87.1 for <61802@debbugs.gnu.org>; Sun, 01 Oct 2023 05:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696163799; x=1696768599; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=SFL7UyjW4ABV/q1E08LK24S26qIJCp+o7+XFhHmDQFU=; b=gdZzx0rSjrA8LXfV6kKPEQXopv8B08AHvLERWhJzEznAPFuk4y/ubTZMx95v7/Dpc2 wAH/sW58o3/W45mHSnyk9WTX7Vi3G9T4UWsYpBwRR/D6uCw4TRCKPkOvbBUC9gAlV2LR z6fs5YxbbwuBVbg5HVy+TN/2ixzcr/bXGQHaXYMktd1sLVOAEFsVcY2iBXnbcN5FTQ7R cYXTFIZfcypt7IRP/YiKDYzxxHXghIKIMJw0kOAALKBCbKM2S4JqABviz0qqbr6D/Auq p1V/ZelvdCYS5AxEhubJTYIutT5zUOLjdoPCA8YEdqU/LhxhyfrXh3xqeJNS3JyocEli vILg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696163799; x=1696768599; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SFL7UyjW4ABV/q1E08LK24S26qIJCp+o7+XFhHmDQFU=; b=D/LkVjH8lUM4ObWQpOT9KzZU5GNym1RLRxYqqfcEetN8o0E3H3WSFghsL8/WMeiJ51 davi1vArGA36V5ZSl768IG0JsuwBGMXj25LYi18+fS8ModVyVoy7q34hb0t0tR36LZ/x LDhan2lBpuV8gcWxBpKFCL6UFiRNtj2E7DR/+6ryu83AzqGRHaOGK/2ulNo7sXETgJ/Y WI4PFcwyqtdvkV81LIr5U65KnWVLFGy9UpvIAW6tY/ei61PJ32cC0WGNBIuSnTx/gOo2 8+EkRZm+kR79cL+5ydsCas89bONLtKXjHSdQTrQQgPYHkhnMl5SRCy8X5ldchln7eYg4 00QA== X-Gm-Message-State: AOJu0YybHrxRXdu55TcCWEsJtW1ARbBQSAiJ8KiAzkqcNIKby8oxNtTx A8Ydpz8ktrBw9rM9LLHj7aI/Q2F7D9B3iH2T7baLPzYdmjk= X-Google-Smtp-Source: AGHT+IGPUB+aS9pKOt4HHbUYZAdo1b+16yZ0q2u7JtkYK7t626VNRcRNAqQkH+NEbnGWnjB6FGoGfSm/ZRcw4WBUEVs= X-Received: by 2002:a05:6512:3b84:b0:4fe:4896:b6ab with SMTP id g4-20020a0565123b8400b004fe4896b6abmr7932119lfv.15.1696163799380; Sun, 01 Oct 2023 05:36:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 1 Oct 2023 05:36:38 -0700 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271612 Archived-At: tags 61802 notabug close 61802 thanks Chris Brolly writes: > When packages are built (using straight-use-package) with native-comp > enabled, many result in the warning such as the one resulting from magit > being compiled below: > Warning (comp): magit-section-pkg.el:1:2: Warning: the function > 'define-package' is not known to be defined. > Warning (comp): git-commit-pkg.el:1:2: Warning: the function > 'define-package' is not known to be defined. > Warning (comp): magit-section-pkg.el:1:2: Warning: the function > 'define-package' is not known to be defined. > Warning (comp): magit-pkg.el:1:2: Warning: the function > 'define-package' is not known to be defined. > This will happen after the initial straight.el build process is > completed. > I've tried to cut this down, but i was unable to replicate it without > straight.el. Just using use-package on its own with another package was > unsuccessful. > > (unless (featurep 'straight) > ;;(setq straight-repository-branch "rr-fix-renamed-variable") > (defvar bootstrap-version) > (let ((bootstrap-file > (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) > (bootstrap-version 6)) > (unless (file-exists-p bootstrap-file) > (with-current-buffer > (url-retrieve-synchronously > "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" > 'silent 'inhibit-cookies) > (goto-char (point-max)) > (eval-print-last-sexp))) > (load bootstrap-file nil 'nomessage)) > (setq my-straight-pkgs > '((use-package :type git :host github :repo "jwiegley/use-package") > (magit :type git :host github :repo "magit/magit"))) > (dolist (pkg my-straight-pkgs) > (straight-use-package pkg))) > > Once run, the warnings begin to pile up over the next few > minutes. Nothing else untoward seems to happen, but I was recommended to > report this so here I am. This is a bug in straight.el, which seems to be compiling "foo-pkg.el" files. It should not do that. I recommend reporting this bug to the straight.el maintainers. Meanwhile, I'm closing this bug. Thanks.