GNU bug report logs -
#52388
[PATCH] build-system: emacs: Add generation of -pkg.el files.
Previous Next
Reported by: Andrew Tropin <andrew <at> trop.in>
Date: Thu, 9 Dec 2021 12:53:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 52388 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Andrew,
Am Donnerstag, dem 09.12.2021 um 12:01 +0300 schrieb Andrew Tropin:
>
> * guix/build/emacs-build-system.scm (%default-exclude): Add
> generation of
> -pkg.el files for packages, which do not provide them.
> ---
> Implemented phase, which generates -pkg.el from comments in library
> file. The solution for finding main el file of the package is a
> little hacky, because package name isn't available build time.
>
> I took a part of the elisp implementation from melpa source code.
> https://github.com/melpa/melpa/blob/master/package-build/package-build.el#L553
As promised, I took a deeper look at your patch. As already noted,
there were some clean-up actions I had to perform, such as keeping to
our line limit (it was not easy, I tell you) among other things. Also,
confusingly, your condition-case code did not handle errors and wrong
handling of the version field blew up everything for me. Did you test
this code?
In any case, attached is my revised patch. I so far only checked it
with emacs-olivetti -- a package whose description is missing in
current Guix Emacs. I'll give everyone some time to test things before
pushing this however; I don't want to break a bunch of Emacs packages
scattered around various files.
Cheers
[0001-build-system-emacs-Ensure-that-package-descriptions-.patch (text/x-patch, attachment)]
This bug report was last modified 3 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.