Public bug reported: dh-elpa supports the "ert_eval" directive inside d/elpa-test, which allows the package to provide custom Elisp code to be executed before ERT is invoked. Unfortunately, a similar feature is missing for buttercup tests. This means that, whenever a package uses buttercup to run its tests, the maintainer needs to override dh_elpa_test and invoke buttercup by hand. This, however, only works during build time; dh-elpa is also used to run autopkgtest, and in that specific scenario it's not possible to execute custom Elisp code using buttercup at all.
Why is this important, you might ask. Well, I've been investigating a bug in Emacs 28.2's native compilation mechanism which affects a bunch of packages (see bug #2006963 for more details). One of those affected packages is flycheck, which uses buttercup. I uploaded a fix for a flycheck FTBFS which addresses the problem, but the package still fails its autopkgtest because of the problem mentioned above. Long story short, I've implemented the support for a new dh-elpa directive called "buttercup_eval" and would like it to Lunar. I also proposed the feature to Debian here: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=1032202 ** Affects: dh-elpa (Ubuntu) Importance: Undecided Status: New ** Affects: dh-elpa (Debian) Importance: Unknown Status: Unknown ** Bug watch added: Debian Bug tracker #1032202 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032202 ** Also affects: dh-elpa (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032202 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to dh-elpa in Ubuntu. https://bugs.launchpad.net/bugs/2008919 Title: [FFe] Implement support for "buttercup_eval" Status in dh-elpa package in Ubuntu: New Status in dh-elpa package in Debian: Unknown Bug description: dh-elpa supports the "ert_eval" directive inside d/elpa-test, which allows the package to provide custom Elisp code to be executed before ERT is invoked. Unfortunately, a similar feature is missing for buttercup tests. This means that, whenever a package uses buttercup to run its tests, the maintainer needs to override dh_elpa_test and invoke buttercup by hand. This, however, only works during build time; dh-elpa is also used to run autopkgtest, and in that specific scenario it's not possible to execute custom Elisp code using buttercup at all. Why is this important, you might ask. Well, I've been investigating a bug in Emacs 28.2's native compilation mechanism which affects a bunch of packages (see bug #2006963 for more details). One of those affected packages is flycheck, which uses buttercup. I uploaded a fix for a flycheck FTBFS which addresses the problem, but the package still fails its autopkgtest because of the problem mentioned above. Long story short, I've implemented the support for a new dh-elpa directive called "buttercup_eval" and would like it to Lunar. I also proposed the feature to Debian here: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=1032202 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dh-elpa/+bug/2008919/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

