From bbc32645a465be1aabd275ed237035eef4a8fb14 Mon Sep 17 00:00:00 2001 From: "xiang.zhou" Date: Tue, 9 Jan 2024 15:59:10 +0800 Subject: [PATCH] focas:update focas2 lib and check apt-mark exits --- create_neuron_deb.py | 2 +- cross-package.sh | 2 +- deb/postinst | 4 +++- deb2rpm.sh | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/create_neuron_deb.py b/create_neuron_deb.py index 02216f37..d36acd2a 100755 --- a/create_neuron_deb.py +++ b/create_neuron_deb.py @@ -38,7 +38,7 @@ def parse_args(): rules.append(mkdeb.FileMap(package_dir + '/neuron', "/opt/neuron/", "x")) rules.append(mkdeb.FileMap( - package_dir + "/libfwlib32.so.1", "/opt/neuron/")) + package_dir + "/libfocas32.so.1", "/opt/neuron/")) rules.append(mkdeb.FileMap( package_dir + '/libneuron-base.so', "/opt/neuron/")) rules.append(mkdeb.FileMap( diff --git a/cross-package.sh b/cross-package.sh index 3e4db5a9..d61ff470 100755 --- a/cross-package.sh +++ b/cross-package.sh @@ -121,7 +121,7 @@ cp $neuron_modules_dir/build/plugins/libplugin-gewu2.so \ $neuron_modules_dir/build/plugins/libplugin-focas.so \ $package_dir/plugins/ -cp $neuron_modules_dir/build/plugins/focas/libfwlib32.so.1 $package_dir/ +cp $neuron_modules_dir/build/plugins/focas/libfocas32.so.1 $package_dir/ cp $neuron_modules_dir/build/plugins/schema/*.json \ $package_dir/plugins/schema/ diff --git a/deb/postinst b/deb/postinst index dfdb1fe1..8e051430 100644 --- a/deb/postinst +++ b/deb/postinst @@ -7,7 +7,9 @@ systemctl enable neuron systemctl start neuron ( sleep 3 -apt-mark hold neuron +if command -v apt-mark >/dev/null 2>&1; then + apt-mark hold neuron +fi ) & if [ -e "/etc/systemd/system/neuron.ekuiper.service" ]; then diff --git a/deb2rpm.sh b/deb2rpm.sh index c9453436..4be73249 100755 --- a/deb2rpm.sh +++ b/deb2rpm.sh @@ -54,7 +54,7 @@ Requires: perl-interpreter sed -i '/\%description/i \ %global privlibs libneuron-base\ %global privlibs %{privlibs}|liblicense\ -%global privlibs %{privlibs}|libfwlib32\ +%global privlibs %{privlibs}|libfocas32\ %global privlibs %{privlibs}|libzlog\ %global __requires_exclude ^(%{privlibs})\\.so\ ' $specfile