Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect /etc/makepkg.conf.d folder #956

Open
stereomato opened this issue Oct 31, 2024 · 6 comments
Open

Respect /etc/makepkg.conf.d folder #956

stereomato opened this issue Oct 31, 2024 · 6 comments

Comments

@stereomato
Copy link

I'm not sure since when, but now makepkg can be configured with drop-in files @ /etc/makepkg.conf.d, but currently aura doesn't detect them

@fosskers
Copy link
Owner

fosskers commented Nov 1, 2024

And do you have settings in that folder? What do they look like?

@stereomato
Copy link
Author

ls /etc/makepkg.conf.d/

fortran.conf rust.conf stereomato.conf

The first two are there by default, the 3rd I added. makepkg does respect all three

@fosskers
Copy link
Owner

fosskers commented Nov 2, 2024

Would you mind sharing the contents?

@stereomato
Copy link
Author

 #!/hint/bash
#
# /etc/makepkg.conf.d/fortran.conf
#

#########################################################################
# FORTRAN LANGUAGE SUPPORT
#########################################################################

# Flags used for the Fortran compiler, similar in spirit to CFLAGS. Read
# linkman:gfortran[1] for more details on the available flags.
#FFLAGS="-O2 -pipe"
#FCFLAGS="$FFLAGS"

# Additional compiler flags appended to `FFLAGS` and `FCFLAGS` for use in debugging. Usually
# this would include: ``-g''. Read linkman:gfortran[1] for more details on the wide
# variety of compiler flags available.
#DEBUG_FFLAGS="-g"
#!/hint/bash
# shellcheck disable=2034

#
# /etc/makepkg.conf.d/rust.conf
#
#########################################################################
# RUST LANGUAGE SUPPORT
#########################################################################

# Flags used for the Rust compiler, similar in spirit to CFLAGS. Read
# linkman:rustc[1] for more details on the available flags.
RUSTFLAGS="-Cforce-frame-pointers=yes"

# Additional compiler flags appended to `RUSTFLAGS` for use in debugging.
# Usually this would include: ``-C debuginfo=2''. Read linkman:rustc[1] for
# more details on the available flags.
DEBUG_RUSTFLAGS="-C debuginfo=2"
MAKEFLAGS="-j$(nproc)"
PACKAGER="Luis O. <[email protected]>"

@fosskers
Copy link
Owner

fosskers commented Nov 7, 2024

Ah interesting, so this is a way to globally set various environment variables for a language, but the change is isolated to the usage of makepkg.

@fosskers
Copy link
Owner

fosskers commented Nov 7, 2024

Also, by "Aura doesn't detect them", what did you mean specifically? Aura is calling makepkg, so it should "just work" in that sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants