configure: remove $pkgversion from CONFIG_STAMP input to broaden compatibility
authorBruce Rogers <brogers@suse.com>
Fri, 17 Apr 2020 19:07:37 +0000 (13:07 -0600)
committerwanchao-xu <wanchao.xu@samsung.com>
Tue, 9 Jan 2024 11:46:33 +0000 (19:46 +0800)
As part of the effort to close the gap with Leap I think we are fine
removing the $pkgversion component to creating a unique CONFIG_STAMP.
This stamp is only used in creating a unique symbol used in ensuring the
dynamically loaded modules correspond correctly to the loading qemu.
The default inputs to producing this unique symbol are somewhat reasonable
as a generic mechanism, but specific packaging and maintenance practices
might require the default to be modified for best use. This is an example
of that.

Signed-off-by: Bruce Rogers <brogers@suse.com>
configure

index 94984691ab378620ac2e0ae771ca171d52d18aa1..c68e378776336748b227013a1a3fe1674ef8a690 100755 (executable)
--- a/configure
+++ b/configure
@@ -6811,7 +6811,7 @@ fi
 if test "$modules" = "yes"; then
   # $shacmd can generate a hash started with digit, which the compiler doesn't
   # like as an symbol. So prefix it with an underscore
-  echo "CONFIG_STAMP=_$( (echo $qemu_version; echo $pkgversion; cat $0) | $shacmd - | cut -f1 -d\ )" >> $config_host_mak
+  echo "CONFIG_STAMP=_$( (echo $qemu_version; cat $0) | $shacmd - | cut -f1 -d\ )" >> $config_host_mak
   echo "CONFIG_MODULES=y" >> $config_host_mak
 fi
 if test "$have_x11" = "yes" && test "$need_x11" = "yes"; then