[meta-freescale] Removing lines from pkg_postint_${PN}_append_mx6

Mauro Ziliani mauro at faresoftware.it
Thu Jan 31 01:27:35 PST 2019


Hi all.

I need to remove the red lines from
meta-fsl-bsp-release/recipes-core/initscripts/initscripts_%.bbappend.

# Append to remove /proc/cpu/aligntment from alignmnet script
FILESEXTRAPATHS_prepend := "${THISDIR}/arm:"

SRC_URI_append_imx = " file://alignment.sh "

# file to support gpu load services
SRC_URI_append_mx6 = " file://gpuload \
                       file://gpuload.service"

do_install_append_mx6 () {
    install -d ${D}/usr/bin
    install -d ${D}/lib/systemd/system
    install -m 0755 ${WORKDIR}/gpuload ${D}/usr/bin
    install -m 0755 ${WORKDIR}/gpuload.service ${D}/lib/systemd/system
}

pkg_postinst_${PN}_append_mx6 () {
    #!/bin/sh
    ln -s /lib/systemd/system/gpuload.service
/etc/systemd/system/multi-user.target.wants/
}

FILES_${PN}_append_mx6 = " /lib/systemd/system/gpuload.service
/usr/bin/gpuload"
PACKAGE_ARCH = "${MACHINE_ARCH}"


My system uses Debian package managementt without systemd.

This lineas breaks the consistency of installation and when I do un
upgrade in debian-style from a terminal

apt-get update

apt-get upgrade


I get the error

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up initscripts:armhf (1.0-r155.0) ...
ln: target '/etc/systemd/system/multi-user.target.wants/' is not a
directory: No such file or directory
dpkg: error processing package initscripts:armhf (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initscripts:armhf

because /etc/systemd missing.


I don't want to modify the recipe above, but change it with my own recipe.


How can I do that in my initscrips_%.bbappend?


Best regads,

  Mauro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20190131/2f6aeac8/attachment.html>


More information about the meta-freescale mailing list