**** BEGIN LOGGING AT Wed Oct 24 03:00:00 2018 Oct 24 05:39:20 how to manage the execution sequence of do_install_append(), I define a variable LIBDIR in a using , but the statement is placed at the end, making no different of the output. do I need to override the do_install in *.bbappend file? Oct 24 07:40:52 New news from stackoverflow: Adding new recipe in yocto Oct 24 07:42:39 Hi, folks! Oct 24 07:43:24 My machine configuration is Mips64 and I use MULTILIB. It works ok, but there is a question... Oct 24 07:43:59 Is it possible to build a recipe(non library) only for 32bit? Oct 24 07:44:42 I know about lib32-${libname} notation, but what about non-libraries? Oct 24 07:48:27 The sources I have to compile aren't build on 64bit at all (or build but doesn't work because of shitty 'it's normal to keep pointers in int variables' code) Oct 24 07:49:46 So, I have to build ONLY 32 bit version. Oct 24 08:06:58 Hi, I have this rpm package (kernel-devsrc) that insists in requiring "/bin/awk" when the rpm is built, but I can't figure out why. Oct 24 08:07:26 How are dependencies of an rpm package determined? (It doesn't seem to come from RDEPENDS or DEPENDS in this case, that I can see) Oct 24 08:18:28 joseppc: it can be just more difficult dependency chain than you think. There could be no direct relations between them. Oct 24 08:19:41 You can blacklist recipe with bin/awk and try to run bitbake to get error message with a dependency chain Oct 24 08:29:28 acrap: mm, I am not sure I understand. Do you mean blacklist the recipe causing the trouble? Oct 24 08:30:53 acrap: I looked at all rpm specs produced in the build, and only this package requires /bin/awk (instead of /usr/bin/awk which is what is provided by gawk) Oct 24 08:32:02 joseppc: nope. Sorry that I can't express my thoughts clearly... So, do you get an error during do_package task for kernel-devsrc? Oct 24 08:33:18 acrap: ah sorry, my fault, I didn't explain enough. I get the error when I do populate_sdk Oct 24 08:35:08 joseppc: did you customize something? Oct 24 08:35:53 acrap: nope, but I am using meta-freescale layers Oct 24 08:36:11 joseppc: let's take a look at your log if you don't mind Oct 24 08:36:14 I empirically found out that when building a package (at least for rpms), somehow do_package (or some other taks) looks at the shebang of all the scrips installed, and adds automatically that as a requirement Oct 24 08:37:44 acrap: ok, this is the error: https://hastebin.com/eqeticemav.sql Oct 24 08:39:38 joseppc: have you googled it? I found something: https://github.com/agherzan/meta-raspberrypi/issues/187 Oct 24 08:40:27 joseppc: there is a solution http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/commit/?id=8af11c1cdd8fa08217e702b57cf96e9030db52b2 Oct 24 08:40:58 acrap: yep, I added the same fix as in yocto mainline, but that didn't do the trick Oct 24 08:42:00 acrap: I even went as far as to change all instances of "#!/bin/awk" to "#!/usr/bin/awk" in the kernel =) Oct 24 08:44:01 joseppc: Have you tried to use the patch with empty build directory? Oct 24 08:45:23 acrap: what do you mean, like removing sstate, cache, and tmp directories? (in that case, yes ;-)) Oct 24 08:48:05 joseppc: check it (search for awk) : https://www.yoctoproject.org/irc/%23yocto.2017-02-09.log.html Oct 24 08:50:18 acrap: yep, that's the fix I tried too :-/ Oct 24 08:51:28 joseppc: "instead of /usr/bin/awk which is what is provided by gawk" and /usr/bin/awk/ does exist in your rootfs? Oct 24 08:57:46 joseppc: 1. create patch for gawk recipe that will copy awk binary also to /usr/bin/. Add gawk manually to your image. Try to build. Oct 24 08:58:53 I've forgotten about the numbers after 1, but... You know what i mean. Oct 24 09:00:00 acrap: when deploying the sdk, rpm complains that it can't find any package providing /bin/awk, and gawk doesn't. gawk rpm is there and list of packages is fine Oct 24 09:01:17 acrap: I thought about it, but we deleted awk from /bin for a reason I suppose. Oct 24 09:01:47 And I'd really like to understand the cause of the problem now! =) Oct 24 09:02:36 "gawk rpm is there" but it doesn't provide /bin/awk Oct 24 09:03:25 acrap: correct, it doesn't, it provides /usr/bin/awk (among other files) Oct 24 09:09:26 I've found gawk.bbappend. It must be helpful for you https://hastebin.com/onasakosok.bash Oct 24 09:09:54 it creates symbolic link into bin Oct 24 09:10:10 it's a part of wrlinux Oct 24 09:10:22 acrap: oh, thanks! That would solve the problem. I am still puzzled about its cause :-/ Oct 24 09:10:57 something going wrong with your scripts/ver_linux patch Oct 24 09:11:10 somehow it wasn't applyed Oct 24 09:11:11 New news from stackoverflow: GPU on yocto rocko - kernel 4.14 || Installing docker on Siemens Simatic IoT2040 Oct 24 09:12:16 acrap: it is applied, that I am sure of :-/ Oct 24 09:14:19 joseppc: how can you be sure? Have you added some output to script and saw the logs? Oct 24 09:16:32 acrap: I looked at the package data and files produced, the patch seems to be applied Oct 24 09:19:57 joseppc: oh... the gist of error may be everywhere. Sometimes I chose wrong configs because of too much build dirs I have... Usually, the answer is pretty simple and frustrating. Oct 24 09:23:59 acrap: agree, it must be something I've overlooked, it's very annoying not to know why things happen (I only have one build dir on this machine) Oct 24 10:43:39 joseppc: I know that feel Oct 24 12:41:56 New news from stackoverflow: psplash image does not appear (yocto & qemu) Oct 24 13:12:01 New news from stackoverflow: ADV7513 on yocto - kernel 4.14 Oct 24 13:28:50 i can't understand DEPENDS and RDEPENDS differences Oct 24 13:29:28 DEPENDS is build time dependences and it seems clear Oct 24 13:29:36 not clear RDEPENDS Oct 24 13:29:53 angelo_ts: RDEPENDS is stuff that you need at runtime, but that is not necessary during the build process Oct 24 13:30:17 angelo_ts: imagine your application calls bc for some calculations, for example. or gnuplot Oct 24 13:30:53 angelo_ts: you wouldn't need them during compilation time, your app will happily build without. but they have to be there at runtime. Oct 24 13:30:58 so -> RDEPENDS Oct 24 13:31:03 ok so RDEPENDS requires rootfs will have them Oct 24 13:31:57 angelo_ts: almost, RDEPENDS requires that the resulting "whatever" into which your thing is installed has them Oct 24 13:32:15 in almost all cases is a rootfs, but as usual, there are corner cases Oct 24 13:32:17 mm ok Oct 24 13:32:34 is there a smart method to determine them ? i guess ldd or objdump for the first, right ? Oct 24 13:34:59 angelo_ts: nah, don't rely on magic there. write down what you need. Oct 24 13:35:10 ok Oct 24 13:35:13 for example Oct 24 13:35:18 the app needs a dynamic lib Oct 24 13:35:36 it should be in DEPENDS and RDEPENDS, right ? Oct 24 13:38:28 no, DEPENDS only Oct 24 13:38:52 there is propagation from DEPENDS to RDEPENDS Oct 24 13:39:20 ok thanks Oct 24 14:09:50 ALL: Quick question: I have add IMAGE_INSTALL += "lighttpd php". How do I get some of the deploy RPMs from lighttpd directory into the final rootfs. For example I want the ./tmp/deploy/rpm/x86/lighttpd-module-redirect-1.4.45-r0.x86.rpm installed? Oct 24 14:12:31 ALL: Is there a simple _append for this (an example)? Oct 24 14:12:44 I believe it should be IMAGE_INSTALL_append Oct 24 14:17:02 LetoThe2nd: so, how do you specify that something is needed at build time only? Oct 24 14:20:21 joseppc: The rpm modules from lighttpd can be requested using IMAGE_INSTALL_append? I will try, but seems like a lighttpd_append would be the correct way. I am trying to solve this quickly. Did some quick searches, and some people copy the needed lighttpd module RPMs to target and install. Seems incorrect. Right? Oct 24 14:23:19 mrk377: I probably misunderstood you, I thought you meant to install the package into the image, not the rpm itself Oct 24 14:26:53 joseppc: I would like the dynamic lighttpd modules installed in rootfs during bitbake. I don't want to manually install the *.rpms. Oct 24 14:27:30 joseppc: So I would like it to be in the image. Yes. Oct 24 14:29:19 BCMM: hum, that in the most cases would be something that runs on the host, right? for that, you DEPEND on the -native version. this will not make its way to the runtime, then Oct 24 14:29:35 ah, thanks Oct 24 14:31:55 mrk377: then just add them to IMAGE_INSTALL, and use _append, += will not work at that stage Oct 24 14:33:23 joseppc: I'm trying now. Oct 24 15:15:48 joseppc: Yup, just add the dynamic modules needed (i.e. lighttpd-module-rewrite) to the IMAGE_INSTALL. Works fine. Oct 24 15:37:59 whats the secret to using python3 as default in an image and not 2 Oct 24 15:38:46 besides rm /usr/bin/python ln -s /usr/bin/python3 /usr/bin/python Oct 24 20:03:22 should probably start using update-alternatives for that link fi we don't already Oct 24 22:13:44 New news from stackoverflow: Cannot install regular files for Yocto using CMake Oct 24 22:35:24 ALL: I have added php to my IMAGE_INSTAL. When I run "rpm -ql php" on the installed image, it only shows /usr/bin/phpdbg installed. I am using rocko, and curious if others have seen this. Oct 24 23:05:33 mrk377: been a while since I did anything with the php recipe, but you may need to be more specific about which package produced by the php recipe that you want installed Oct 24 23:15:00 bluelightning: I have added php-cli, and I don't see a this WARNING: failed for setscene task is ...php-native/7.1.9-r0/temp/log.do_populate_sysroot_setscene Oct 24 23:20:15 bluelightning: The php binary is still missing. Strange. Oct 24 23:21:24 bluelightning: Ahah. php-cli included the /usr/bin/php binary. Good to go. Yikes. Dummy. **** ENDING LOGGING AT Thu Oct 25 03:00:00 2018