All of lore.kernel.org
 help / color / mirror / Atom feed
* [Chicken and Egg problem] Defining RDEPENDS of the package itself!
@ 2018-07-18 11:37 Zoran Stojsavljevic
  2018-07-18 11:49 ` Alexander Kanavin
  2018-07-18 21:49 ` Mirza Krak
  0 siblings, 2 replies; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-18 11:37 UTC (permalink / raw)
  To: Yocto Project

Hello YOCTO community,

Since I need to build the latest and the greatest Github creations
from the independent contributors, I decided myself to write few YOCTO
recipes and to get myself to this (un)pleasant learning path.

I did few examples, simplistic ones, before I took more complex
recipes to write.

And... I need this one, Cannelloni, one defined here:
https://github.com/mguentner/cannelloni

I guess, I figured out couple of stuff, but the last one, RDEPENDS, I
could not figure out.

I can figure it out with normal Linux installation, and here is how it
is solved in Run Time:

export LD_LIBRARY_PATH=/usr/local/lib ## where DLL
libcannelloni-common.so resides after installation!

Here is what/how the actual error looks like: cannelloni.log (attached).

Please, pay attention to the following log line:

ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: package cannelloni
contains bad RPATH
/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/build:
in file /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni/usr/bin/cannelloni
[rpaths]
ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: /usr/bin/cannelloni
contained in package cannelloni requires libcannelloni-common.so, but
no providers found in RDEPENDS_cannelloni? [file-rdeps]
ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors.
Please consider fixing them.
ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa

The cannelloni recipe is listed below:

SUMMARY = "SocketCAN over Ethernet tunnel using UDP to transfer CAN
frames between two machines"
SECTION = "canapp"
## LICENSE = "CLOSED"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r0"

DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd',
'systemd', '', d)}"
## RDEPENDS_${PN} = "???"

SRCREV = "e3ac7393b566345d057c2d17a4d328007caaacac"

SRC_URI = "git://github.com/mguentner/cannelloni"

S = "${WORKDIR}/git"

inherit pkgconfig cmake
inherit systemd

EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 cannelloni ${D}${bindir}
}

Thank you in advance,
Zoran Stojsavljevic


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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-18 11:37 [Chicken and Egg problem] Defining RDEPENDS of the package itself! Zoran Stojsavljevic
@ 2018-07-18 11:49 ` Alexander Kanavin
  2018-07-18 14:04   ` Zoran Stojsavljevic
  2018-07-18 21:49 ` Mirza Krak
  1 sibling, 1 reply; 16+ messages in thread
From: Alexander Kanavin @ 2018-07-18 11:49 UTC (permalink / raw)
  To: Zoran Stojsavljevic; +Cc: Yocto Project

2018-07-18 13:37 GMT+02:00 Zoran Stojsavljevic <zoran.stojsavljevic@gmail.com>:
> do_install() {
>     install -d ${D}${bindir}
>     install -m 0755 cannelloni ${D}${bindir}
> }

You are installing only the executable binary here, but not the
corresponding library. Just remove the do_install function altogether,
and cmake class should take care of the installation properly.

Alex


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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-18 11:49 ` Alexander Kanavin
@ 2018-07-18 14:04   ` Zoran Stojsavljevic
  2018-07-18 17:06     ` Andre McCurdy
  0 siblings, 1 reply; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-18 14:04 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: Yocto Project

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

Yep. Did it. Some symlink is missing (I guess, symlink to
/usr/local/lib/libcannelloni-common.so???

Initialising tasks: 100%
|#############################################################################################################################################################|
Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks

*ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: cannelloni rdepends on
cannelloni-dev [dev-deps]ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue:
-dev package contains non-symlink .so: cannelloni-dev path
'/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni-dev/usr/lib/libcannelloni-common.so'
[dev-elf]*
ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors. Please
consider fixing them.
ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in:
/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package_qa.7896
ERROR: Task
(/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 539 tasks of which 532 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:

/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:
do_package_qa
Summary: There were 2 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

How I can add this symlink (!) to this recipe?

Thank you,
Zoran

On Wed, Jul 18, 2018 at 1:49 PM, Alexander Kanavin <alex.kanavin@gmail.com>
wrote:

> 2018-07-18 13:37 GMT+02:00 Zoran Stojsavljevic <
> zoran.stojsavljevic@gmail.com>:
> > do_install() {
> >     install -d ${D}${bindir}
> >     install -m 0755 cannelloni ${D}${bindir}
> > }
>
> You are installing only the executable binary here, but not the
> corresponding library. Just remove the do_install function altogether,
> and cmake class should take care of the installation properly.
>
> Alex
>

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

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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-18 14:04   ` Zoran Stojsavljevic
@ 2018-07-18 17:06     ` Andre McCurdy
  2018-07-19  7:22       ` Zoran Stojsavljevic
  0 siblings, 1 reply; 16+ messages in thread
From: Andre McCurdy @ 2018-07-18 17:06 UTC (permalink / raw)
  To: Zoran Stojsavljevic; +Cc: Yocto Project

On Wed, Jul 18, 2018 at 7:04 AM, Zoran Stojsavljevic
<zoran.stojsavljevic@gmail.com> wrote:
> Yep. Did it. Some symlink is missing (I guess, symlink to
> /usr/local/lib/libcannelloni-common.so???
>
> Initialising tasks: 100%
> |#############################################################################################################################################################|
> Time: 0:00:00
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: cannelloni rdepends on
> cannelloni-dev [dev-deps]
> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: -dev package contains
> non-symlink .so: cannelloni-dev path
> '/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni-dev/usr/lib/libcannelloni-common.so'
> [dev-elf]
> ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors. Please
> consider fixing them.
> ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa
> ERROR: Logfile of failure stored in:
> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package_qa.7896
> ERROR: Task
> (/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 539 tasks of which 532 didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
>
> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa
> Summary: There were 2 WARNING messages shown.
> Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
>
> How I can add this symlink (!) to this recipe?

The error says "-dev package contains non-symlink .so".

Simply adding a symlink somewhere will not help. The fix is to ensure
that libcannelloni-common.so gets packaged in the main run-time
package (and not in the -dev package).

Reading the section about non-versioned shared libraries here might help:

  https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries


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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-18 11:37 [Chicken and Egg problem] Defining RDEPENDS of the package itself! Zoran Stojsavljevic
  2018-07-18 11:49 ` Alexander Kanavin
@ 2018-07-18 21:49 ` Mirza Krak
  2018-07-19 10:41   ` cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself) Gunnar Andersson
  1 sibling, 1 reply; 16+ messages in thread
From: Mirza Krak @ 2018-07-18 21:49 UTC (permalink / raw)
  To: Zoran Stojsavljevic; +Cc: Yocto Project

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

On Wed, Jul 18, 2018, 13:38 Zoran Stojsavljevic <
zoran.stojsavljevic@gmail.com> wrote:

> Hello YOCTO community,
>
> Since I need to build the latest and the greatest Github creations
> from the independent contributors, I decided myself to write few YOCTO
> recipes and to get myself to this (un)pleasant learning path.
>
> I did few examples, simplistic ones, before I took more complex
> recipes to write.
>
> And... I need this one, Cannelloni, one defined here:
> https://github.com/mguentner/cannelloni


Recipe for above can be found here,
https://github.com/GENIVI/genivi-dev-platform/blob/master/meta-genivi-dev/meta-genivi-dev/recipes-extended/cannelloni/cannelloni.bb
.

I know that it builds on rocko at least.

/ Mirza

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

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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-18 17:06     ` Andre McCurdy
@ 2018-07-19  7:22       ` Zoran Stojsavljevic
  2018-07-19  7:46         ` Zoran Stojsavljevic
  2018-07-19 10:51         ` Gunnar Andersson
  0 siblings, 2 replies; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19  7:22 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: Yocto Project

Hello Andre,

Thank you for the tips.

Tried what you have suggested. I had some errors, again in
do_install(), then I read .log, and fixed the paths.

This is my recipe, important part of it, as of now:
_______

S = "${WORKDIR}/git"

inherit pkgconfig cmake
inherit systemd

EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"

INSANE_SKIP_${PN} = "ldflags"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
SOLIBS = ".so"
FILES_SOLIBSDEV = ""

do_install () {
    install -d ${D}${libdir}
    install -m 0755 cannelloni ${D}${bindir}
    install -m 0755 ${WORKDIR}/build/libcannelloni-common.so ${D}${libdir}
}
_______

Where I modified install directories. ${libdir} is /usr/lib (instead
/usr/local/lib), all cool with this one as well.

(I guess, I could use LOCAL_LIB =  "/usr/local/lib", and then change
${libdir} with ${LOCAL_LIB})

I went further with bitbake. Now I am failing in do_package()
(inherited from default), with the following ERRORs:

ERROR: cannelloni-1.0-r0 do_package: QA Issue: cannelloni:
Files/directories were installed but not shipped in any package:
  /usr/bin
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install.
cannelloni: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: cannelloni-1.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: cannelloni-1.0-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in:
/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package.3501
ERROR: Task (/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 535 tasks of which 524 didn't need to
be rerun and 1 failed.

Any take on that?
_______

Mirza,

Actually, the recipe I am showing here is the GENIVI (the same you
pointed to), but heavily modified. :-)

And, yes, I am using latest sumo.

Thank you all,
Zoran
_______

On Wed, Jul 18, 2018 at 7:06 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Wed, Jul 18, 2018 at 7:04 AM, Zoran Stojsavljevic
> <zoran.stojsavljevic@gmail.com> wrote:
>> Yep. Did it. Some symlink is missing (I guess, symlink to
>> /usr/local/lib/libcannelloni-common.so???
>>
>> Initialising tasks: 100%
>> |#############################################################################################################################################################|
>> Time: 0:00:00
>> NOTE: Executing SetScene Tasks
>> NOTE: Executing RunQueue Tasks
>> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: cannelloni rdepends on
>> cannelloni-dev [dev-deps]
>> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: -dev package contains
>> non-symlink .so: cannelloni-dev path
>> '/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni-dev/usr/lib/libcannelloni-common.so'
>> [dev-elf]
>> ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors. Please
>> consider fixing them.
>> ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa
>> ERROR: Logfile of failure stored in:
>> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package_qa.7896
>> ERROR: Task
>> (/home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa)
>> failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 539 tasks of which 532 didn't need to be
>> rerun and 1 failed.
>>
>> Summary: 1 task failed:
>>
>> /home/netmodule.intranet/stojsavljevic/projects/beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-canapp/cannelloni/cannelloni.bb:do_package_qa
>> Summary: There were 2 WARNING messages shown.
>> Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
>>
>> How I can add this symlink (!) to this recipe?
>
> The error says "-dev package contains non-symlink .so".
>
> Simply adding a symlink somewhere will not help. The fix is to ensure
> that libcannelloni-common.so gets packaged in the main run-time
> package (and not in the -dev package).
>
> Reading the section about non-versioned shared libraries here might help:
>
>   https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries


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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-19  7:22       ` Zoran Stojsavljevic
@ 2018-07-19  7:46         ` Zoran Stojsavljevic
  2018-07-19 10:51         ` Gunnar Andersson
  1 sibling, 0 replies; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19  7:46 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: Yocto Project

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

This does work:

S = "${WORKDIR}/git"

inherit pkgconfig cmake
inherit systemd

EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"

INSANE_SKIP_${PN} = "ldflags"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_SYSROOT_STRIP = "1"
SOLIBS = ".so"
FILES_SOLIBSDEV = ""

do_install_*append* () {
    install -d ${D}${libdir}
    install -m 0755 ${WORKDIR}/*build/*libcannelloni-common.so ${D}${libdir}
}

Thank you all for help!
Zoran Stojsavljevic

On Thu, Jul 19, 2018 at 9:22 AM, Zoran Stojsavljevic <
zoran.stojsavljevic@gmail.com> wrote:

> Hello Andre,
>
> Thank you for the tips.
>
> Tried what you have suggested. I had some errors, again in
> do_install(), then I read .log, and fixed the paths.
>
> This is my recipe, important part of it, as of now:
> _______
>
> S = "${WORKDIR}/git"
>
> inherit pkgconfig cmake
> inherit systemd
>
> EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release"
>
> INSANE_SKIP_${PN} = "ldflags"
> INHIBIT_PACKAGE_STRIP = "1"
> INHIBIT_SYSROOT_STRIP = "1"
> SOLIBS = ".so"
> FILES_SOLIBSDEV = ""
>
> do_install () {
>     install -d ${D}${libdir}
>     install -m 0755 cannelloni ${D}${bindir}
>     install -m 0755 ${WORKDIR}/build/libcannelloni-common.so ${D}${libdir}
> }
> _______
>
> Where I modified install directories. ${libdir} is /usr/lib (instead
> /usr/local/lib), all cool with this one as well.
>
> (I guess, I could use LOCAL_LIB =  "/usr/local/lib", and then change
> ${libdir} with ${LOCAL_LIB})
>
> I went further with bitbake. Now I am failing in do_package()
> (inherited from default), with the following ERRORs:
>
> ERROR: cannelloni-1.0-r0 do_package: QA Issue: cannelloni:
> Files/directories were installed but not shipped in any package:
>   /usr/bin
> Please set FILES such that these items are packaged. Alternatively if
> they are unneeded, avoid installing them or delete them within
> do_install.
> cannelloni: 1 installed and not shipped files. [installed-vs-shipped]
> ERROR: cannelloni-1.0-r0 do_package: Fatal QA errors found, failing task.
> ERROR: cannelloni-1.0-r0 do_package: Function failed: do_package
> ERROR: Logfile of failure stored in:
> /home/netmodule.intranet/stojsavljevic/projects/
> beaglebone-black/yocto-rocko/poky/build/tmp/work/
> cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/
> temp/log.do_package.3501
> ERROR: Task (/home/netmodule.intranet/stojsavljevic/projects/
> beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-
> canapp/cannelloni/cannelloni.bb:do_package)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 535 tasks of which 524 didn't need to
> be rerun and 1 failed.
>
> Any take on that?
> _______
>
> Mirza,
>
> Actually, the recipe I am showing here is the GENIVI (the same you
> pointed to), but heavily modified. :-)
>
> And, yes, I am using latest sumo.
>
> Thank you all,
> Zoran
> _______
>
> On Wed, Jul 18, 2018 at 7:06 PM, Andre McCurdy <armccurdy@gmail.com>
> wrote:
> > On Wed, Jul 18, 2018 at 7:04 AM, Zoran Stojsavljevic
> > <zoran.stojsavljevic@gmail.com> wrote:
> >> Yep. Did it. Some symlink is missing (I guess, symlink to
> >> /usr/local/lib/libcannelloni-common.so???
> >>
> >> Initialising tasks: 100%
> >> |###########################################################
> ############################################################
> ######################################|
> >> Time: 0:00:00
> >> NOTE: Executing SetScene Tasks
> >> NOTE: Executing RunQueue Tasks
> >> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: cannelloni rdepends on
> >> cannelloni-dev [dev-deps]
> >> ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: -dev package contains
> >> non-symlink .so: cannelloni-dev path
> >> '/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-
> r0/packages-split/cannelloni-dev/usr/lib/libcannelloni-common.so'
> >> [dev-elf]
> >> ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors.
> Please
> >> consider fixing them.
> >> ERROR: cannelloni-1.0-r0 do_package_qa: Function failed: do_package_qa
> >> ERROR: Logfile of failure stored in:
> >> /home/netmodule.intranet/stojsavljevic/projects/
> beaglebone-black/yocto-rocko/poky/build/tmp/work/
> cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/
> temp/log.do_package_qa.7896
> >> ERROR: Task
> >> (/home/netmodule.intranet/stojsavljevic/projects/
> beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-
> canapp/cannelloni/cannelloni.bb:do_package_qa)
> >> failed with exit code '1'
> >> NOTE: Tasks Summary: Attempted 539 tasks of which 532 didn't need to be
> >> rerun and 1 failed.
> >>
> >> Summary: 1 task failed:
> >>
> >> /home/netmodule.intranet/stojsavljevic/projects/
> beaglebone-black/yocto-rocko/poky/meta-test-layer/recipes-
> canapp/cannelloni/cannelloni.bb:do_package_qa
> >> Summary: There were 2 WARNING messages shown.
> >> Summary: There were 4 ERROR messages shown, returning a non-zero exit
> code.
> >>
> >> How I can add this symlink (!) to this recipe?
> >
> > The error says "-dev package contains non-symlink .so".
> >
> > Simply adding a symlink somewhere will not help. The fix is to ensure
> > that libcannelloni-common.so gets packaged in the main run-time
> > package (and not in the -dev package).
> >
> > Reading the section about non-versioned shared libraries here might help:
> >
> >   https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_
> Prebuilt_Libraries
>

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

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

* cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-18 21:49 ` Mirza Krak
@ 2018-07-19 10:41   ` Gunnar Andersson
  2018-07-19 11:09     ` Zoran Stojsavljevic
  0 siblings, 1 reply; 16+ messages in thread
From: Gunnar Andersson @ 2018-07-19 10:41 UTC (permalink / raw)
  To: Zoran Stojsavljevic, Yocto Project

On Wed, 2018-07-18 at 23:49 +0200, Mirza Krak wrote:
> On Wed, Jul 18, 2018, 13:38 Zoran Stojsavljevic <zoran.stojsavljevic@gmail
> .com> wrote:
> > Hello YOCTO community,
> > 
> > Since I need to build the latest and the greatest Github creations
> > from the independent contributors, I decided myself to write few YOCTO
> > recipes and to get myself to this (un)pleasant learning path.
> > 
> > I did few examples, simplistic ones, before I took more complex
> > recipes to write.
> > 
> > And... I need this one, Cannelloni, one defined here:
> > https://github.com/mguentner/cannelloni
> 
> Recipe for above can be found here, https://github.com/GENIVI/genivi-dev-
> platform/blob/master/meta-genivi-dev/meta-genivi-dev/recipes-
> extended/cannelloni/cannelloni.bb. 

Since that layer is not kept as a separate submodule, your only reasonable
option would be copying, so I'll jump in to preempt that.  

It would be better with a single location (shared maintenance).  meta-
genivi-dev is where we keep things that (seem to be so far) unique to our
platform, so rather than recommending to reuse that layer we strive to push
things out of there, as soon as it makes sense.

I'm happy to move cannelloni to a generic layer if there is wider interest.

meta-can-networking?  There might be some other CAN associated components of
interest so that it does not become one of those single-recipe layers...

On the other hand, some related things are elsewhere:

- meta-openembedded/meta-oe/recipes-extended/socketcan/*

Please share your thoughts.

- Gunnar





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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-19  7:22       ` Zoran Stojsavljevic
  2018-07-19  7:46         ` Zoran Stojsavljevic
@ 2018-07-19 10:51         ` Gunnar Andersson
  2018-07-19 11:12           ` Zoran Stojsavljevic
  1 sibling, 1 reply; 16+ messages in thread
From: Gunnar Andersson @ 2018-07-19 10:51 UTC (permalink / raw)
  To: Zoran Stojsavljevic, Andre McCurdy; +Cc: Yocto Project

On Thu, 2018-07-19 at 09:22 +0200, Zoran Stojsavljevic wrote:

[trimmed]

> Actually, the recipe I am showing here is the GENIVI (the same you
> pointed to), but heavily modified. :-)

See previous email about shared maintenance :-)

Is your code published? (I mean not in the email, too messy to extract it
from there)

- Gunnar

-- 
Gunnar Andersson <gandersson@genivi.org>
Development Lead
GENIVI Alliance




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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-19 10:41   ` cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself) Gunnar Andersson
@ 2018-07-19 11:09     ` Zoran Stojsavljevic
  2018-07-19 12:44       ` Zoran Stojsavljevic
  0 siblings, 1 reply; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19 11:09 UTC (permalink / raw)
  To: Gunnar Andersson; +Cc: Yocto Project

> I'm happy to move cannelloni to a generic layer if there is wider interest.

I did not write only the stand-alone recipe for cannelloni, since I
needed the one, original one from this location:
https://github.com/mguentner/cannelloni

I also wrote one for can-utils, since one, residing in YOCTO Projects
from Pengutronix GIT is 8y old.
I used one from here (most recent, I guess):
https://github.com/linux-can/can-utils

So, I created my own layer, and put them both (recipes) there.

If you all ask me, I would like to have some generic CAN layer, where
these CAN recipes can reside.

There are more CAN user space creations, most of them work over
socketCAN (and these days more important socketCAN-Fd) frameworks.

This generic CAN layer creation will be the step toward the unified
automotive system CAN architecture... IMHO.

Zoran
_______


On Thu, Jul 19, 2018 at 12:41 PM, Gunnar Andersson
<gandersson@genivi.org> wrote:
> On Wed, 2018-07-18 at 23:49 +0200, Mirza Krak wrote:
>> On Wed, Jul 18, 2018, 13:38 Zoran Stojsavljevic <zoran.stojsavljevic@gmail
>> .com> wrote:
>> > Hello YOCTO community,
>> >
>> > Since I need to build the latest and the greatest Github creations
>> > from the independent contributors, I decided myself to write few YOCTO
>> > recipes and to get myself to this (un)pleasant learning path.
>> >
>> > I did few examples, simplistic ones, before I took more complex
>> > recipes to write.
>> >
>> > And... I need this one, Cannelloni, one defined here:
>> > https://github.com/mguentner/cannelloni
>>
>> Recipe for above can be found here, https://github.com/GENIVI/genivi-dev-
>> platform/blob/master/meta-genivi-dev/meta-genivi-dev/recipes-
>> extended/cannelloni/cannelloni.bb.
>
> Since that layer is not kept as a separate submodule, your only reasonable
> option would be copying, so I'll jump in to preempt that.
>
> It would be better with a single location (shared maintenance).  meta-
> genivi-dev is where we keep things that (seem to be so far) unique to our
> platform, so rather than recommending to reuse that layer we strive to push
> things out of there, as soon as it makes sense.
>
> I'm happy to move cannelloni to a generic layer if there is wider interest.
>
> meta-can-networking?  There might be some other CAN associated components of
> interest so that it does not become one of those single-recipe layers...
>
> On the other hand, some related things are elsewhere:
>
> - meta-openembedded/meta-oe/recipes-extended/socketcan/*
>
> Please share your thoughts.
>
> - Gunnar
>
>
>


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

* Re: [Chicken and Egg problem] Defining RDEPENDS of the package itself!
  2018-07-19 10:51         ` Gunnar Andersson
@ 2018-07-19 11:12           ` Zoran Stojsavljevic
  0 siblings, 0 replies; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19 11:12 UTC (permalink / raw)
  To: Gunnar Andersson; +Cc: Yocto Project

> Is your code published? (I mean not in the email,
> too messy to extract it from there)

Feel free to comment on it, and to elaborate better recipes. Published
on my scratch pad everything/nothing git:
https://github.com/ZoranStojsavljevic/cip-rt-misc/tree/master/configs/bbb/YOCTO-recipes

Zoran
_______


On Thu, Jul 19, 2018 at 12:51 PM, Gunnar Andersson
<gandersson@genivi.org> wrote:
> On Thu, 2018-07-19 at 09:22 +0200, Zoran Stojsavljevic wrote:
>
> [trimmed]
>
>> Actually, the recipe I am showing here is the GENIVI (the same you
>> pointed to), but heavily modified. :-)
>
> See previous email about shared maintenance :-)
>
> Is your code published? (I mean not in the email, too messy to extract it
> from there)
>
> - Gunnar
>
> --
> Gunnar Andersson <gandersson@genivi.org>
> Development Lead
> GENIVI Alliance
>
>


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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-19 11:09     ` Zoran Stojsavljevic
@ 2018-07-19 12:44       ` Zoran Stojsavljevic
  2018-07-19 12:50         ` Gunnar Andersson
  0 siblings, 1 reply; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19 12:44 UTC (permalink / raw)
  To: Gunnar Andersson; +Cc: Yocto Project

Actually, I ran into this:
http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-extended/socketcan

So here, I think, can-utils recipes should be revisited, cannelloni
recipe added, and also another application recipe added as well:
https://github.com/dschanoeh/socketcand/

Best Regards,
Zoran

On Thu, Jul 19, 2018 at 1:09 PM, Zoran Stojsavljevic
<zoran.stojsavljevic@gmail.com> wrote:
>> I'm happy to move cannelloni to a generic layer if there is wider interest.
>
> I did not write only the stand-alone recipe for cannelloni, since I
> needed the one, original one from this location:
> https://github.com/mguentner/cannelloni
>
> I also wrote one for can-utils, since one, residing in YOCTO Projects
> from Pengutronix GIT is 8y old.
> I used one from here (most recent, I guess):
> https://github.com/linux-can/can-utils
>
> So, I created my own layer, and put them both (recipes) there.
>
> If you all ask me, I would like to have some generic CAN layer, where
> these CAN recipes can reside.
>
> There are more CAN user space creations, most of them work over
> socketCAN (and these days more important socketCAN-Fd) frameworks.
>
> This generic CAN layer creation will be the step toward the unified
> automotive system CAN architecture... IMHO.
>
> Zoran
> _______
>
>
> On Thu, Jul 19, 2018 at 12:41 PM, Gunnar Andersson
> <gandersson@genivi.org> wrote:
>> On Wed, 2018-07-18 at 23:49 +0200, Mirza Krak wrote:
>>> On Wed, Jul 18, 2018, 13:38 Zoran Stojsavljevic <zoran.stojsavljevic@gmail
>>> .com> wrote:
>>> > Hello YOCTO community,
>>> >
>>> > Since I need to build the latest and the greatest Github creations
>>> > from the independent contributors, I decided myself to write few YOCTO
>>> > recipes and to get myself to this (un)pleasant learning path.
>>> >
>>> > I did few examples, simplistic ones, before I took more complex
>>> > recipes to write.
>>> >
>>> > And... I need this one, Cannelloni, one defined here:
>>> > https://github.com/mguentner/cannelloni
>>>
>>> Recipe for above can be found here, https://github.com/GENIVI/genivi-dev-
>>> platform/blob/master/meta-genivi-dev/meta-genivi-dev/recipes-
>>> extended/cannelloni/cannelloni.bb.
>>
>> Since that layer is not kept as a separate submodule, your only reasonable
>> option would be copying, so I'll jump in to preempt that.
>>
>> It would be better with a single location (shared maintenance).  meta-
>> genivi-dev is where we keep things that (seem to be so far) unique to our
>> platform, so rather than recommending to reuse that layer we strive to push
>> things out of there, as soon as it makes sense.
>>
>> I'm happy to move cannelloni to a generic layer if there is wider interest.
>>
>> meta-can-networking?  There might be some other CAN associated components of
>> interest so that it does not become one of those single-recipe layers...
>>
>> On the other hand, some related things are elsewhere:
>>
>> - meta-openembedded/meta-oe/recipes-extended/socketcan/*
>>
>> Please share your thoughts.
>>
>> - Gunnar
>>
>>
>>


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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-19 12:44       ` Zoran Stojsavljevic
@ 2018-07-19 12:50         ` Gunnar Andersson
  2018-07-19 13:18           ` Zoran Stojsavljevic
  2019-02-01  8:32           ` Zoran Stojsavljevic
  0 siblings, 2 replies; 16+ messages in thread
From: Gunnar Andersson @ 2018-07-19 12:50 UTC (permalink / raw)
  To: Zoran Stojsavljevic; +Cc: Yocto Project

On Thu, 2018-07-19 at 14:44 +0200, Zoran Stojsavljevic wrote:
> Actually, I ran into this:
> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-
> extended/socketcan

:-)  I mentioned that in my original response.

> 
> So here, I think, can-utils recipes should be revisited, cannelloni
> recipe added, and also another application recipe added as well:
> https://github.com/dschanoeh/socketcand/

Great, you're answering some of the follow-up questions I had.  I need to
task switch now, but I will finish up that response later anyway so we can
figure out a good strategy together.

- Gunnar

-- 
Gunnar Andersson <gandersson@genivi.org>
Development Lead
GENIVI Alliance



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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-19 12:50         ` Gunnar Andersson
@ 2018-07-19 13:18           ` Zoran Stojsavljevic
  2019-02-01  8:32           ` Zoran Stojsavljevic
  1 sibling, 0 replies; 16+ messages in thread
From: Zoran Stojsavljevic @ 2018-07-19 13:18 UTC (permalink / raw)
  To: Gunnar Andersson; +Cc: Yocto Project

> :-)  I mentioned that in my original response.

I noticed after I sent my email. Sorry/apologies, I do too many
different tasks, so I get very often scrambled. :-(

> I will finish up that response later anyway so we can figure out a good strategy together.

Too many companies do this on their own, my best guess. VW, Audi, BMW,
Daimler Benz... And their partners.

Some better strategy (unification) would be well desired extras. :-)

Thank you,
Zoran
_______

On Thu, Jul 19, 2018 at 2:50 PM, Gunnar Andersson <gandersson@genivi.org> wrote:
> On Thu, 2018-07-19 at 14:44 +0200, Zoran Stojsavljevic wrote:
>> Actually, I ran into this:
>> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-
>> extended/socketcan
>
> :-)  I mentioned that in my original response.
>
>>
>> So here, I think, can-utils recipes should be revisited, cannelloni
>> recipe added, and also another application recipe added as well:
>> https://github.com/dschanoeh/socketcand/
>
> Great, you're answering some of the follow-up questions I had.  I need to
> task switch now, but I will finish up that response later anyway so we can
> figure out a good strategy together.
>
> - Gunnar
>
> --
> Gunnar Andersson <gandersson@genivi.org>
> Development Lead
> GENIVI Alliance
>


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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
  2018-07-19 12:50         ` Gunnar Andersson
  2018-07-19 13:18           ` Zoran Stojsavljevic
@ 2019-02-01  8:32           ` Zoran Stojsavljevic
       [not found]             ` <41858286-414F-4224-9F40-E356163C347D@genivi.org>
  1 sibling, 1 reply; 16+ messages in thread
From: Zoran Stojsavljevic @ 2019-02-01  8:32 UTC (permalink / raw)
  To: Gunnar Andersson; +Cc: Yocto Project, Mirza Krak

Since no reply for socket-can strategy... I long time ago created one
for by me and my needs.

But still... Here is something worth nothing, if anybody considers
socket-can domain!

https://github.com/ZoranStojsavljevic/meta-socketcan

Best Regards,
Zoran Stojsavljevic
_______


On Thu, Jul 19, 2018 at 2:51 PM Gunnar Andersson <gandersson@genivi.org> wrote:
>
> On Thu, 2018-07-19 at 14:44 +0200, Zoran Stojsavljevic wrote:
> > Actually, I ran into this:
> > http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-
> > extended/socketcan
>
> :-)  I mentioned that in my original response.
>
> >
> > So here, I think, can-utils recipes should be revisited, cannelloni
> > recipe added, and also another application recipe added as well:
> > https://github.com/dschanoeh/socketcand/
>
> Great, you're answering some of the follow-up questions I had.  I need to
> task switch now, but I will finish up that response later anyway so we can
> figure out a good strategy together.
>
> - Gunnar
>
> --
> Gunnar Andersson <gandersson@genivi.org>
> Development Lead
> GENIVI Alliance
>


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

* Re: cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself)
       [not found]             ` <41858286-414F-4224-9F40-E356163C347D@genivi.org>
@ 2019-02-01  8:37               ` gandersson
  0 siblings, 0 replies; 16+ messages in thread
From: gandersson @ 2019-02-01  8:37 UTC (permalink / raw)
  To: Zoran Stojsavljevic; +Cc: Yocto Project, Mirza Krak



Thanks very much for the information, Zoran!
And sorry I forgot to return to this issue before.

Best Regards,
Gunnar

On February 1, 2019 9:32:02 AM GMT+01:00, Zoran Stojsavljevic <zoran.stojsavljevic@gmail.com> wrote:
>Since no reply for socket-can strategy... I long time ago created one
>for by me and my needs.
>
>But still... Here is something worth nothing, if anybody considers
>socket-can domain!
>
>https://github.com/ZoranStojsavljevic/meta-socketcan
>
>Best Regards,
>Zoran Stojsavljevic
>_______
>
>
>On Thu, Jul 19, 2018 at 2:51 PM Gunnar Andersson
><gandersson@genivi.org> wrote:
>>
>> On Thu, 2018-07-19 at 14:44 +0200, Zoran Stojsavljevic wrote:
>> > Actually, I ran into this:
>> >
>http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-
>> > extended/socketcan
>>
>> :-)  I mentioned that in my original response.
>>
>> >
>> > So here, I think, can-utils recipes should be revisited, cannelloni
>> > recipe added, and also another application recipe added as well:
>> > https://github.com/dschanoeh/socketcand/
>>
>> Great, you're answering some of the follow-up questions I had.  I
>need to
>> task switch now, but I will finish up that response later anyway so
>we can
>> figure out a good strategy together.
>>
>> - Gunnar
>>
>> --
>> Gunnar Andersson <gandersson@genivi.org>
>> Development Lead
>> GENIVI Alliance
>>



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

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-18 11:37 [Chicken and Egg problem] Defining RDEPENDS of the package itself! Zoran Stojsavljevic
2018-07-18 11:49 ` Alexander Kanavin
2018-07-18 14:04   ` Zoran Stojsavljevic
2018-07-18 17:06     ` Andre McCurdy
2018-07-19  7:22       ` Zoran Stojsavljevic
2018-07-19  7:46         ` Zoran Stojsavljevic
2018-07-19 10:51         ` Gunnar Andersson
2018-07-19 11:12           ` Zoran Stojsavljevic
2018-07-18 21:49 ` Mirza Krak
2018-07-19 10:41   ` cannelloni.bb (Was: [Chicken and Egg problem] Defining RDEPENDS of the package itself) Gunnar Andersson
2018-07-19 11:09     ` Zoran Stojsavljevic
2018-07-19 12:44       ` Zoran Stojsavljevic
2018-07-19 12:50         ` Gunnar Andersson
2018-07-19 13:18           ` Zoran Stojsavljevic
2019-02-01  8:32           ` Zoran Stojsavljevic
     [not found]             ` <41858286-414F-4224-9F40-E356163C347D@genivi.org>
2019-02-01  8:37               ` gandersson

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.