Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882055 - app-emacs/ebuild-mode: variable that holds environment variables for the ebuild
Summary: app-emacs/ebuild-mode: variable that holds environment variables for the ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-19 21:58 UTC by Pascal Jäger
Modified: 2022-12-01 18:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Jäger 2022-11-19 21:58:20 UTC
When I use the 'ebuild' command on the command line I usually do something like this: 'CC=clang CXX=clang++ USE="blabla" ebuild mypackage-0.8.15.ebuild clean install' to test it. 
Right now I work on clang16 bugs (https://bugs.gentoo.org/870412) so I have to set CC=clang all the time. 
Could we have a variable in ebuild-mode that sets those environment variables before running the ebuild?

Reproducible: Always
Comment 1 Ulrich Müller gentoo-dev 2022-11-21 12:07:31 UTC
Setting these variables with "M-x setenv" is not an option?
Comment 2 Larry the Git Cow gentoo-dev 2022-11-28 18:20:42 UTC Comment hidden (obsolete)
Comment 3 Larry the Git Cow gentoo-dev 2022-11-29 19:40:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?id=a31d9b76f526c2be5e8edcb161e60a60aa8ecaa9

commit a31d9b76f526c2be5e8edcb161e60a60aa8ecaa9
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-11-28 18:18:20 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-11-29 19:32:38 +0000

    New variable for additional subprocess environment
    
    * ebuild-mode.el (ebuild-mode-process-environment): New custom
    variable. Bug 882055.
    (ebuild-run-command, ebuild-mode-run-pkgdev)
    (ebuild-mode-run-pkgcheck): Use it.
    
    Bug: https://bugs.gentoo.org/882055
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 ChangeLog      |  5 +++++
 ebuild-mode.el | 17 ++++++++++++++---
 2 files changed, 19 insertions(+), 3 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-12-01 18:36:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1896c3847ea94c478b92d1195fda6e3b266a0c

commit fb1896c3847ea94c478b92d1195fda6e3b266a0c
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-12-01 18:33:48 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-12-01 18:36:41 +0000

    app-emacs/ebuild-mode: add 1.61
    
    Closes: https://bugs.gentoo.org/881449
    Closes: https://bugs.gentoo.org/882053
    Closes: https://bugs.gentoo.org/882055
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-emacs/ebuild-mode/Manifest                |  1 +
 app-emacs/ebuild-mode/ebuild-mode-1.61.ebuild | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)