So, here are my changes.
Original:
117 if [ -f %_sourcedir/config-%{version} ]; then
118 cp %_sourcedir/config-%{version} .config
119 else
120 cp %_sourcedir/config .config
121 fi
...
130 MAKE_ARGS="$MAKE_ARGS -C %build_src_dir O=$PWD"
131 if test -e %_sourcedir/TOLERATE-UNKNOWN-NEW-CONFIG-OPTIONS; then
132 yes '' | make oldconfig $MAKE_ARGS
133 else
134 cp .config .config.orig
135 make silentoldconfig $MAKE_ARGS < /dev/null
136 %_sourcedir/check-for-config-changes .config.orig .config
137 rm .config.orig
138 fi
My version:
117 if [ -f %_sourcedir/config-%{version} ]; then
118 cp %_sourcedir/config-%{version} .config
119 else
120 cp %_sourcedir/config .config
+++ cat /proc/config.gz | unzip > .config.current
121 fi
...
130 MAKE_ARGS="$MAKE_ARGS -C %build_src_dir O=$PWD"
131 if test -e %_sourcedir/TOLERATE-UNKNOWN-NEW-CONFIG-OPTIONS; then
132 yes '' | make oldconfig $MAKE_ARGS
133 else
134 cp .config .config.orig
+++ cp .config.current .config
135 make silentoldconfig $MAKE_ARGS < /dev/null
--- %_sourcedir/check-for-config-changes .config.orig .config
+++ %build_src_dir/scripts/kconfig/merge_config.sh .config .config.orig
137 rm .config.orig
138 fi
I don't know if this issue is related to my configuration or not, let me know.
I had already noticed that, in fact I'm using the host version as .config, but an error occurs at the line specified above.
With the trick of using the current configs and then override them with your file I've managed to build the rpms, but the sign fails (maybe it's the key related issue you commentes about in the spec file), so I wanted to ask you to check if it could be a problem with my system or packages.
I've tested on the R4.0 rc1, so fc25, I'll try it soon on the R3.2 (fc23 and fc24), so we can crosscheck the script.
I saw both dom0 and vm rpms are generated, but is it better to generate different rpms for them with config-host and config-vm?