Skip to content

Commit

Permalink
recipes-bsp/patch-u-boot-env: let debhelper automatically enable the …
Browse files Browse the repository at this point in the history
…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 <nicusor.huhulea@siemens.com>
  • Loading branch information
nicusorhuhulea authored and BaochengSu committed Jun 7, 2024
1 parent 420f203 commit b7cfa25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
10 changes: 0 additions & 10 deletions recipes-bsp/patch-u-boot-env/files/postinst

This file was deleted.

6 changes: 1 addition & 5 deletions recipes-bsp/patch-u-boot-env/patch-u-boot-env_0.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ 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"

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
}

0 comments on commit b7cfa25

Please sign in to comment.