From b7cfa254b3d35788e216caa9ec6055f63e6397a0 Mon Sep 17 00:00:00 2001 From: Nicusor Liviu Huhulea Date: Thu, 6 Jun 2024 17:40:58 +0300 Subject: [PATCH] recipes-bsp/patch-u-boot-env: let debhelper automatically enable the service This commit fixes a build error when the patch-u-boot-env-all.deb is trying to install the same patch-u-boot-env.service file in /usr/lib/systemd/system and in /lib/systemd/system The build error is: dpkg: error processing archive /tmp/apt-dpkg-install.../ 434-patch-u-boot-env_0.1_all.deb (--unpack): unable to install new version of '/usr/lib/systemd/system/ patch-u-boot-env.service': No such file or directory This happens because now the isar is taking over this, according to this change: 39adde9f debianize: handle .triggers and .service files Signed-off-by: Nicusor Liviu Huhulea --- recipes-bsp/patch-u-boot-env/files/postinst | 10 ---------- recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb | 6 +----- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 recipes-bsp/patch-u-boot-env/files/postinst diff --git a/recipes-bsp/patch-u-boot-env/files/postinst b/recipes-bsp/patch-u-boot-env/files/postinst deleted file mode 100644 index 736d8415b..000000000 --- a/recipes-bsp/patch-u-boot-env/files/postinst +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# -# Copyright (c) Siemens AG, 2021 -# -# Authors: -# Quirin Gylstorff -# -# SPDX-License-Identifier: MIT - -deb-systemd-helper enable patch-u-boot-env.service || true diff --git a/recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb b/recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb index 2953b7bb8..9888f2f8a 100644 --- a/recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb +++ b/recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb @@ -15,8 +15,7 @@ DEBIAN_DEPENDS = "libubootenv-tool, u-boot-${MACHINE}-config" DPKG_ARCH = "all" -SRC_URI += "file://postinst \ - file://patch-u-boot-env.config \ +SRC_URI += "file://patch-u-boot-env.config \ file://patch-u-boot-env.sh \ file://patch-u-boot-env.service" @@ -24,7 +23,4 @@ do_install () { install -v -d ${D}/usr/share/u-boot-env install -v -m 640 ${WORKDIR}/patch-u-boot-env.config ${D}/usr/share/u-boot-env/patch-u-boot-env.config install -v -m 755 ${WORKDIR}/patch-u-boot-env.sh ${D}/usr/share/u-boot-env/patch-u-boot-env.sh - - install -v -d ${D}/usr/lib/systemd/system - install -v -m 666 ${WORKDIR}/patch-u-boot-env.service ${D}/usr/lib/systemd/system/patch-u-boot-env.service }