Description of problem: grubby fails to build for 64-bit ARM (Aarch64) due to a compile error. Version-Release number of selected component (if applicable): grubby-8.26-2.fc19 How reproducible: Consistently Steps to Reproduce: on an Aarch64 simulator/builder - 1. yum downloader --source grubby 2. mock --rebuild grubby-8.26-2.fc19.src.rpm 3. Actual results: -------------------- + make gcc -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector -std=gnu99 -Wall -Werror -Wno-error=unused-function -Wno-unused-function -ggdb -DVERSION='"8.26"' -c -o grubby.o grubby.c grubby.c:1:0: error: -fstack-protector not supported for this target [-Werror] /* ^ cc1: all warnings being treated as errors make: *** [grubby.o] Error 1 -------------------- Expected results: Package builds without errors. Additional info: RPM_OPT_FLAGS is set in the grubby Makefile, which overrides the settings in the rpm macros. This breaks the Aarch64 build.
Created attachment 764811 [details] Patch to only set RPM_OPT_FLAGS if undefined. I verified this builds through mock on both x86_64 and aarch64.
Verified the current version (grubby-8.33-1.fc21) built in rawhide.