aura icon indicating copy to clipboard operation
aura copied to clipboard

Respect /etc/makepkg.conf.d folder

Open ghost opened this issue 1 year ago • 6 comments

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

ghost avatar Oct 31 '24 22:10 ghost

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

fosskers avatar Nov 01 '24 23:11 fosskers

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

ghost avatar Nov 02 '24 00:11 ghost

Would you mind sharing the contents?

fosskers avatar Nov 02 '24 01:11 fosskers

 #!/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]>"

ghost avatar Nov 04 '24 05:11 ghost

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 avatar Nov 07 '24 00:11 fosskers

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

fosskers avatar Nov 07 '24 00:11 fosskers