packaging: remove GODEBUG command on asaned build 09/310109/2 accepted/tizen/base/20240507.211631 accepted/tizen/base/asan/20240423.074356 accepted/tizen/base/x/20240509.220716
authorDongkyun Son <dongkyun.s@samsung.com>
Tue, 23 Apr 2024 00:47:27 +0000 (09:47 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Tue, 23 Apr 2024 01:22:39 +0000 (01:22 +0000)
Fix qemu stuck issue with "Unsupported syscall: 439"

Change-Id: I9a2ed5bdf4d30fe4c218f8a6f18bd92a66ea35ea
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/golang.spec

index 65a8c3b699b5606b249bb274f04429283631a26f..5694b0895030f61b2f3ac2636f1fa3eb4700541e 100644 (file)
@@ -271,8 +271,10 @@ find $RPM_BUILD_ROOT%{goroot}/src -exec touch -r $RPM_BUILD_ROOT%{goroot}/VERSIO
 touch $RPM_BUILD_ROOT%{goroot}/pkg
 find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \;
 
+%{?!asan:
 export GOROOT=$RPM_BUILD_ROOT%{goroot}
 GODEBUG=installgoroot=all $GOROOT/bin/go install std
+}
 
 # generate the spec file ownership of this source tree and packages
 cwd=$(pwd)