unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Chris Brolly <Chris.Brolly@building-controls.com>, 61802@debbugs.gnu.org
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	[thread overview]
Message-ID: <CADwFkmkgA8746zycQ71y5f=k0Q-KzNQScAZKryucKiOCp6b8Nw@mail.gmail.com> (raw)
In-Reply-To: <PH7PR22MB3706EE41ED5FFA0D9DC58127D1AE9@PH7PR22MB3706.namprd22.prod.outlook.com>

tags 61802 notabug
close 61802
thanks

Chris Brolly <Chris.Brolly@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.





      parent reply	other threads:[~2023-10-01 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <b4a53b5a-a43b-42e7-b548-8e6b3dfd0e8f.8f2b985c-b180-4d60-aa4a-8d2009e8f1c6.c605cb26-c442-4910-8f89-0bc8645e0910@emailsignatures365.codetwo.com>
2023-02-26  2:18 ` bug#61802: 29.0.60; Packages supporting "package.el" throw comp warnings when package.el not loaded Chris Brolly
2023-03-03  9:55   ` No Wayman
2023-10-01 12:36   ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmkgA8746zycQ71y5f=k0Q-KzNQScAZKryucKiOCp6b8Nw@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=61802@debbugs.gnu.org \
    --cc=Chris.Brolly@building-controls.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).