File disable-gobuild-in-makefile.patch of Package deepin-daemon
diff -Nur dde-daemon-5.14.18/Makefile dde-daemon-5.14.18-new/Makefile
--- dde-daemon-5.14.18/Makefile 2022-03-03 17:27:19.000000000 +0800
+++ dde-daemon-5.14.18-new/Makefile 2022-04-03 21:42:19.575417035 +0800
@@ -6,8 +6,8 @@
export GOPATH=$(shell go env GOPATH)
BINARIES = \
- dde-session-daemon \
- dde-system-daemon \
+# dde-session-daemon \
+# dde-system-daemon \
grub2 \
search \
theme-thumb-tool \
@@ -16,7 +16,7 @@
soundeffect \
dde-lockservice \
dde-authority \
- default-terminal \
+# default-terminal \
dde-greeter-setter
LANGUAGES = $(basename $(notdir $(wildcard misc/po/*.po)))
@@ -31,7 +31,7 @@
@ln -snf ../../../.. ${GOPATH_DIR}/src/${GOPKG_PREFIX};
out/bin/%: prepare
- env GOPATH="${CURDIR}/${GOPATH_DIR}:${GOPATH}" ${GOBUILD} -o $@ ${GOBUILD_OPTIONS} ${GOPKG_PREFIX}/bin/${@F}
+# env GOPATH="${CURDIR}/${GOPATH_DIR}:${GOPATH}" ${GOBUILD} -o $@ ${GOBUILD_OPTIONS} ${GOPKG_PREFIX}/bin/${@F}
out/bin/default-file-manager: bin/default-file-manager/main.c
gcc $^ $(shell pkg-config --cflags --libs gio-unix-2.0) $(CFLAGS) -o $@
@@ -59,7 +59,7 @@
deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.$$i.policy.in misc/ts/com.deepin.daemon.$$i.policy misc/polkit-action/com.deepin.daemon.$$i.policy; \
done
-build: prepare out/bin/default-terminal out/bin/default-file-manager out/bin/desktop-toggle $(addprefix out/bin/, ${BINARIES}) ts_to_policy icons translate
+build: prepare out/bin/default-file-manager out/bin/desktop-toggle $(addprefix out/bin/, ${BINARIES}) ts_to_policy icons translate
test: prepare
env GOPATH="${CURDIR}/${GOPATH_DIR}:${GOPATH}" go test -v ./...