All of lore.kernel.org
 help / color / mirror / Atom feed
* Removing lines from pkg_postint_${PN}_append_mx6
@ 2019-01-31  9:27 Mauro Ziliani
  2019-01-31 12:01 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Ziliani @ 2019-01-31  9:27 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1890 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 3028 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Removing lines from pkg_postint_${PN}_append_mx6
  2019-01-31  9:27 Removing lines from pkg_postint_${PN}_append_mx6 Mauro Ziliani
@ 2019-01-31 12:01 ` Otavio Salvador
  2019-02-01 15:35   ` Mauro Ziliani
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2019-01-31 12:01 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: meta-freescale

Hello Mauro,

On Thu, Jan 31, 2019 at 7:28 AM Mauro Ziliani <mauro@faresoftware.it> wrote:
> I need to remove the red lines from meta-fsl-bsp-release/recipes-core/initscripts/initscripts_%.bbappend.

I suggest you to use meta-freescale directly, without their release layer.

Do we miss something?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Removing lines from pkg_postint_${PN}_append_mx6
  2019-01-31 12:01 ` Otavio Salvador
@ 2019-02-01 15:35   ` Mauro Ziliani
  2019-02-01 16:19     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Ziliani @ 2019-02-01 15:35 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

Thanks

I must use the bsp received from the board productor.

In the meta-fsl-bsp-release/.../initscripts_%.bbappend recipe in
pkg_postinst_${PN}_append_mx6 function, there a line to install
gpuload.service in a systemd environment.

But my system is not based on systemd.


The package-managent is debian, so when I try apt-get update initscripts
result broken.


MZ


Il 31/01/19 13:01, Otavio Salvador ha scritto:
> I suggest you to use meta-freescale directly, without their release layer.
>
> Do we miss something?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Removing lines from pkg_postint_${PN}_append_mx6
  2019-02-01 15:35   ` Mauro Ziliani
@ 2019-02-01 16:19     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2019-02-01 16:19 UTC (permalink / raw)
  To: Mauro Ziliani; +Cc: meta-freescale

Hello Mauro,

On Fri, Feb 1, 2019 at 1:36 PM Mauro Ziliani <mauro@faresoftware.it> wrote:
> I must use the bsp received from the board productor.
>
> In the meta-fsl-bsp-release/.../initscripts_%.bbappend recipe in
> pkg_postinst_${PN}_append_mx6 function, there a line to install
> gpuload.service in a systemd environment.
>
> But my system is not based on systemd.
>
>
> The package-managent is debian, so when I try apt-get update initscripts
> result broken.

If you are going to use the vendor BSP, also use their distro so it
works as expected:

 - RPM backend
 - systemd init

Anything different of this, you are on "undefined behavior" ;-)


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-01 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-31  9:27 Removing lines from pkg_postint_${PN}_append_mx6 Mauro Ziliani
2019-01-31 12:01 ` Otavio Salvador
2019-02-01 15:35   ` Mauro Ziliani
2019-02-01 16:19     ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.