I did a rookie mistake with my system. I was editing the file makepkg.conf and without first taking a backup of the original /etc/makepkg.conf file, I overwrote the original file. I realized with horror what had happened after I had closed KWrite. This happened because it was late in night and I had not configured KWrite to show me the path of the file in the title bar as well as navigation bar. I lost a chunk of the file. Everything above the section ARCHITECTURE, COMPILE FLAGS was lost. The following sections are intact and have not been modified.
BUILD ENVIRONMENT
GLOBAL PACKAGE OPTIONS
PACKAGE OUTPUT
COMPRESSION DEFAULTS
EXTENSION DEFAULTS
OTHER
I tried to find the original file in the iso that was used to install Endeavour OS but could not locate it. I am running Endevaour OS on Intel CPU with Intel Graphics chips.
Can some one please provide me with their unedited or original /etc/makepkg.conf file? It would be much appreciated. Otherwise the only option left would be for me to reinstall OS. I want to avoid that as far as possible.
This was the solution I was looking for. Thanks @Bink. You are a life saver. I was dreading the task of reinstalling EOS all over again. I found out that the section SOURCE ACQUISITION was missing.
One quick question, does the value of key-values pairs in SOURCE ACQUISITION section change based on the CPU/GPU/Motherboard or some other factor? Or there are some additional keys that can be put in the section SOURCE ACQUISITION?
The version I linked you matches what’s in my file. Where you might like to tweak for your systems specific architecture, is in the “Compiler and Linker Flags” section.
See here for some details about how to do that. I do this on all my systems, but compilation optimization will only impact packages built from source (eg: non-bin open source packages installed from the AUR):
pacman -Sy followed by pacman -S package (Note the absence of -Su in the installation of the package.)
pacman -Syuw (Note that pacman -Syuw does imply the same risks like pacman -Sy, as it will update the pacman sync database without installing the newer packages.)