GNU bug report logs - #61802
29.0.60; Packages supporting "package.el" throw comp warnings when package.el not loaded

Previous Next

Package: emacs;

Reported by: Chris Brolly <Chris.Brolly <at> building-controls.com>

Date: Sun, 26 Feb 2023 08:31:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.60

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61802 in the body.
You can then email your comments to 61802 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61802; Package emacs. (Sun, 26 Feb 2023 08:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Brolly <Chris.Brolly <at> building-controls.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 26 Feb 2023 08:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chris Brolly <Chris.Brolly <at> building-controls.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 29.0.60; Packages supporting "package.el" throw comp warnings when
 package.el not loaded
Date: Sun, 26 Feb 2023 02:18:05 +0000
[Message part 1 (text/html, inline)]
[bcsemailsig_52b4a686-8025-40b5-8c88-171d00a4dec3.png (image/png, inline)]
[emailsigtool_60be44bb-cb75-4a7f-9f7a-664d2f213eea.png (image/png, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61802; Package emacs. (Fri, 03 Mar 2023 09:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 61802 <at> debbugs.gnu.org (full text, mbox):

From: No Wayman <iarchivedmywholelife <at> gmail.com>
To: Chris.Brolly <at> building-controls.com, 61802 <at> debbugs.gnu.org
Subject: bug#61802: 29.0.60; Packages supporting "package.el" throw comp
 warnings when package.el not loaded
Date: Fri, 03 Mar 2023 04:55:04 -0500
I imagine any alternative package manager which does not rely on 
package.el will see these warnings when byte-compiling. (I see 
them with Elpaca).
I don't see the point in byte-compiling them, so it may be worth 
suggesting a file-local no-byte-compile variable be added to such 
files.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61802; Package emacs. (Sun, 01 Oct 2023 12:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 61802 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Chris Brolly <Chris.Brolly <at> building-controls.com>, 61802 <at> debbugs.gnu.org
Subject: Re: 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
tags 61802 notabug
close 61802
thanks

Chris Brolly <Chris.Brolly <at> building-controls.com> 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.




Added tag(s) notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 01 Oct 2023 12:38:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 61802 <at> debbugs.gnu.org and Chris Brolly <Chris.Brolly <at> building-controls.com> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 01 Oct 2023 12:38:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Oct 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.