From: Fredrik Salomonsson <plattfot@posteo.net>
To: 57790@debbugs.gnu.org
Subject: bug#57790: Strange behavior with emacs-build-system
Date: Wed, 14 Sep 2022 02:59:03 +0000 [thread overview]
Message-ID: <87v8pqbr0o.fsf@d2.com> (raw)
Hi,
I encountered a strange behavior when using a guix.scm file to build and
run test in an emacs project. The project is called issue.el[0].
I have the following guix.scm:
---✀----------------------------------------------------------------------------
(use-modules
((guix licenses) #:prefix license:)
(guix packages)
(guix gexp)
(guix download)
(guix git-download)
(guix build-system emacs)
(guix build emacs-utils)
(gnu packages)
(gnu packages emacs)
(gnu packages emacs-xyz)
(ice-9 popen)
(ice-9 rdelim)
)
(define %git-commit
(read-string (open-pipe "git show HEAD | head -1 | cut -d ' ' -f2" OPEN_READ)))
(define (skip-git-directory file stat)
"Skip the `.git` directory when collecting the sources."
(let ((name (basename file)))
(not (string=? name ".git"))))
(package
(name "emacs-issue-el")
(version (git-version (emacs-header-parse "version" "issue.el") "HEAD" %git-commit))
(source (local-file (dirname (current-filename))
#:recursive? #t
#:select? skip-git-directory))
(build-system emacs-build-system)
(arguments
(list #:tests? (not (%current-target-system))
#:test-command #~'("ert-runner")))
(native-inputs (list emacs-ert-runner))
(propagated-inputs
(list
emacs-org-jira))
(home-page "https://sr.ht/~plattfot/issue.el")
(synopsis "List issues from various issue trackers in emacs")
(description
"List issues from various issue trackers in a tabulated buffer in
@code{Emacs} and act on them. Current supported issue tracker is
@code{jira}.")
(license license:gpl3+))
--------------------------------------------------------------------------------
If I name the local clone `issue.el` (name of the directory);
`guix build -f guix.scm` will fail. It will just copy the file
`issue.el` and then `ert-runner` fails as there is no test directory.
But if I name the local clone something else, e.g. `issue-el` then it
will copy all the files, `ert-runner` will be happy and
`guix build -f guix.scm` will succeed.
I'm not sure if this is an issue in `emacs-build-system`, `local-file`
or plain old user error.
[0] https://git.sr.ht/~plattfot/issue.el
--
s/Fred[re]+i[ck]+/Fredrik/g
next reply other threads:[~2022-09-14 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 2:59 Fredrik Salomonsson [this message]
2022-10-11 9:51 ` bug#57790: Strange behavior with emacs-build-system zimoun
2022-10-11 17:32 ` Fredrik Salomonsson
2022-10-12 3:46 ` Fredrik Salomonsson
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v8pqbr0o.fsf@d2.com \
--to=plattfot@posteo.net \
--cc=57790@debbugs.gnu.org \
/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/guix.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).