**** BEGIN LOGGING AT Tue Feb 20 03:00:03 2018 Feb 20 06:28:37 New news from stackoverflow: Yocto - Try to use Realtime Kernel Version Feb 20 07:28:47 New news from stackoverflow: Difference between SRC_URI and FILESEXTRAPATHS_prepend in bitbake Feb 20 07:32:40 Hi Folks, I have a problem with building a system with read-only-rootfs. I'm using Yocto-Dizzy after adding "read-only-rootfs" to "EXTRA_IMAGE_FEATURES" in "conf/local.conf" i faith the problem that some packages could't be configured as read-only-rootfs. Feb 20 07:32:53 The first Error is: "ERROR: The following packages could not be configured offline and rootfs is read-only: ['libomxil', 'gdk-pixbuf-loader-jpeg', 'gdk-pixbuf-loader-xpm', 'gdk-pixbuf-loader-gif', 'pango-module-basic-fc', 'gdk-pixbuf-loader-png']" Feb 20 07:34:21 How can add the capability for read-only-rootfs-configuration for these Packages? And How do i find out where these Packages belonge to? Feb 20 07:36:36 I'm using the old dizzy-release because i need the Layer: "meta-amd" which hasn't got support for rocko. Feb 20 09:33:42 Hi folks! Is there an opportunity to disable recipe from oe-core? Feb 20 09:59:20 New news from stackoverflow: Compile rygel for yocto with plugins Feb 20 10:29:21 New news from stackoverflow: Bitbake meta-toolchain-qt5: UnicodeDecodeError Feb 20 10:55:41 rburton: hello, I have hit an issue when kernel headers are not included in the SDK I get with populate_sdk, even though my images build fine. How do I even start trying to resolve this issue? Feb 20 10:56:13 so when using the SDK I now get errors like fatal error: linux/errno.h: No such file or directory Feb 20 10:56:33 I am using Rocko Feb 20 11:35:59 acrap: BBMASK ? Feb 20 11:37:20 maxin: what BBMASK? Feb 20 11:38:35 acrap: http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-BBMASK Feb 20 11:39:40 maxin: wow! Thanks! Feb 20 11:40:39 acrap: or may be PNBLACKLIST: http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-PNBLACKLIST - depending on your requirement Feb 20 11:50:47 maxin: it works (BBMASK). But it disable not only what i need. I need to disable only non-native version of my packet. Feb 20 11:53:41 maxin: by the way, thank you :) Feb 20 11:54:00 acrap: in that case, you need PNBLACKLIST.. Feb 20 11:55:15 maxin: i need to specify name of layer. Am i right? Feb 20 11:55:48 acrap: eg: INHERIT += "blacklist" PNBLACKLIST[nativesdk-libidn] = "reason" will just disable nativesdk-libidn Feb 20 11:58:32 maxin: thank you! It helps me. Feb 20 12:04:43 maxin: oh, i got message that my image requires it (RDEPENDS), but it isn't. I even tried add RDEPENDS_imagename_remove += "packagename" (local.conf). but it doesn't help. I got chain "Missing or unbuildable dependency chain was: ['imagename', 'packagename]" Feb 20 12:06:35 acrap: ah, find the dependency and see if you can remove it.. Feb 20 12:07:54 maxin: how can i do that? Why can't i see it in dependency chain? I tried to grep all the layers, but can't see any dependencies :( Feb 20 12:10:36 acrap: try : bitbake -g && less task-depends.dot Feb 20 12:19:49 maxin: that's not help. I see one of my packet dependency in task-depends.dot, but i cant figure out why it is there. It's not mentioned in *.bb or *.inc files. Feb 20 12:37:02 acrap: hmm.. I am not so sure about easy ways to find reverse dependencies Feb 20 12:39:16 maxin: you help me enough. Now i know more useful tricks! May be i should stop trying to remove this package. It's not so important. Feb 20 12:40:22 acrap: good to hear.all the best .. Feb 20 12:40:51 maxin: thank you :) Feb 20 12:58:02 In my target sysroot shipped with the SDK I am missing such headers as /usr/include/linux/limits.h or /usr/include/linux/errno.h Does anyone have any idea why that might happen? Feb 20 13:38:34 Hey, what happened to `devtool update recipe`? It doesn't seem to exist anymore in the devtool of rocko :s Feb 20 13:42:56 seppe: devtool update-recipe Feb 20 13:50:55 mckoan: that doesn't seem to do the same as update recipe... Feb 20 13:51:08 I'm trying to follow https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe Feb 20 13:51:38 I think `devtool finish` might be what I want though Feb 20 13:52:31 which is creating a patch for the vendored linux sources Feb 20 13:56:02 hhm, nvm, looks like update-recipe is definetly what I want Feb 20 13:56:27 Do I need to commit my changes in my workspace for it to work? Feb 20 14:02:54 zeddii, armpit: Think I understand the 4.12 arm64 failure Feb 20 14:03:16 oh ? that's good, since I just did a boot this morning and was going to start bisecting. Feb 20 14:03:28 zeddii: we need http://git.yoctoproject.org/cgit.cgi/linux-yocto/patch/?id=629a359bdb0e0652a8227b4ff3125431995fec6e Feb 20 14:04:07 zeddii: literally just confirmed it works with that applied Feb 20 14:04:32 ahah. I can do a test very quickly here, and get it merged. I can then let PaulG know that he needs it in his queue for his next -stable. Feb 20 14:04:57 RP: I also just tried that oe-selftest for the mod-scripts, and will look at that if this is fixed. Feb 20 14:05:19 but the one-liner fix you wondered about didn't seem to change it, so I need to ponder it more. Feb 20 14:08:33 RP: rburton: I did the upgrade of mesa including the latest regression fix and sent all patches together in a v2. Total of 6 patches Feb 20 14:11:02 qemuarm64 login: root Feb 20 14:11:02 root@qemuarm64:~# uname -a Feb 20 14:11:02 Linux qemuarm64 4.12.20-yocto-standard #2 SMP PREEMPT Tue Feb 20 09:07:07 EST 2018 aarch64 GNU/Linux Feb 20 14:11:16 RP: confirmed here as well. will merge that and send the updated revs in the next few mins. Feb 20 14:46:22 hello Feb 20 14:46:27 zeddii: thanks! Feb 20 14:48:27 i have a small issue with python code in a recipe, if i write SRC_URI = "{@d.getVar('foo').bar()}", should it works? Feb 20 14:48:33 work* Feb 20 14:49:03 hello Feb 20 14:49:11 i have an error saying "The URL: '{@d.getVar...' is invalid and cannot be interpreted" Feb 20 14:50:02 if you have to write a ~1500 lines script for automating yocto builds, what would you use? rust, ruby, python, bash, or something else? i have currently a bash version but is a complete mess and iwant to rewrite it Feb 20 14:50:18 where is the error in what i do? Feb 20 14:50:21 hastake: the expansion is "${...}", "{...}" afaik Feb 20 14:50:26 erm. Feb 20 14:50:39 hastake: the expansion is "${...}", not "{...}" afaik. e.g. you need the '$' Feb 20 14:51:26 cornel: reconsider life choces, because a ~1500 line single script is ... meh Feb 20 14:51:32 :) Feb 20 14:51:59 you're right but is part of the job :) Feb 20 14:52:13 however, splitting it in three would be the next generation Feb 20 14:52:19 LetoThe2nd: i am idiot, thanks Feb 20 14:52:24 cornel: generally i'd always say: see whats already around and reuse, not reinvent. Feb 20 14:52:30 but i was pondering if i should move away from bash Feb 20 14:52:40 cornel: e.g. use repo, or kis as infrastructure Feb 20 14:52:51 cornel: or rip something out of the yocto autobuilder. Feb 20 14:52:52 kis? Feb 20 14:53:09 i have no idea what kis or autobuilder are Feb 20 14:53:30 searching ... Feb 20 14:53:51 the autobuilder is part of the yocto project, so should be easy to find. Feb 20 14:54:15 found autobuilder Feb 20 14:54:21 not found kis Feb 20 14:55:25 my bad, its called kas. see: https://github.com/siemens/meta-iot2000 Feb 20 14:55:30 that uses it. Feb 20 14:56:43 interesting Feb 20 14:56:50 thank you very much LetoThe2nd Feb 20 15:05:40 cornel: http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper might be interesting depending on what you're doing. Its python based Feb 20 15:07:26 thank you RP Feb 20 15:18:07 RP, zeddii thanks Feb 20 15:21:30 Huh, I just realized meta-external-toolchain probably breaks for armeb Feb 20 15:21:54 armeb is the only big-endian tune that doesn't pass -meb/-mb/-mbig-endian in TUNE_CCARGS, it assumes the TUNE_ARCH changed the toolchain's default Feb 20 15:21:58 true for internal, not so much for external Feb 20 15:22:14 maybe i'll submit a patch to oe-core to pass it explicitly like all the others do Feb 20 15:26:01 kergoth: might be an idea... Feb 20 15:26:08 armpit: I triggered 2.4.2 rc2 Feb 20 15:26:26 RP, thanks Feb 20 15:26:30 * zeddii goes back to loooking at sametume_samsigs Feb 20 15:27:15 * armpit works on pull request Feb 20 15:31:44 clsulliv, did you resolve your CONFIG_UNWINDER_ORC libelf dependency issue? I just came across the the same when trying to build a module oot and my attempts to fix it do not seem to be fruitful :/ Feb 20 15:37:54 ejoerns. are you carrying something like this in your kernel recipe ? DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" Feb 20 15:38:36 zeddii, jep. and kernel works fine. but compiling out-of-tree modules not Feb 20 15:38:54 yah. there's a patch for that floating around, IIRC correctly. Feb 20 15:39:15 I've completely torn apart the kernel-devsrc package. so it handles it now, but that's not ready to submit quite yet. Feb 20 15:41:12 [OE-core] [PATCH] kernel: add objtool to shared workdir Feb 20 15:43:17 zeddii, for this I sent [OE-core] [PATCH] module-base: use modules_prepare build target in do_make_scripts() Feb 20 15:43:43 make_scripts is completely different now. Feb 20 15:43:46 with the patch under test. Feb 20 15:44:23 RP: there the oe-self test passed, I'll send a new patch. Feb 20 15:46:32 zeddii, mh, mine is 2 weeks older but was ignored... Well, don't you think calling modules_prepare is the more general solution? Feb 20 15:46:38 nope Feb 20 15:47:11 the patch to take all the scripts crap out of the kernel bbclass has been ongoing for 6 months Feb 20 15:47:15 so that pre-dates everything ;) Feb 20 15:47:43 but we actually do want the scripts in some scenarios, it wasn't being used due to not knowing about modules_prepare. Feb 20 15:49:50 my patch actually is for module-base.bbclass not kernel.bbclass Feb 20 15:50:14 same differece Feb 20 15:50:24 * zeddii shrugs Feb 20 15:50:46 we are getting it all out of that build process it races and has been junk for a long time. Feb 20 15:51:12 that + devsrc are changing once I the sig gens changse are sorted + we can cross build the scripts, etc. Feb 20 15:56:53 zeddii, mh, ok. But I'm still unsure how to fix my issue now :D maybe I'll give the crude objtool workaround a try ;) Feb 20 15:57:52 zeddii: thanks, what was it out of interest? Feb 20 15:58:17 RP: it was the line you suggested for the fix, or did you mean 'what was the error I saw initially' ? Feb 20 15:58:29 Just to ask Feb 20 15:58:51 I do need to override linux-yocto-4.12 to linux-yocto-dev Feb 20 15:58:58 my error was due to dangling bbappends ;) so I cleanedup my layers. Feb 20 15:59:03 zeddii: I just saw the email, I was wondering what the fix was. Glad I was able to guess :) Feb 20 15:59:06 I'm using MACHINE=qemuarm Feb 20 15:59:21 the only way to override PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" Feb 20 15:59:25 RP: yah. I'm pretty dense when it comes to that stuff, so I ran with your suggesetion. Feb 20 15:59:29 lukma, yep. Feb 20 15:59:45 is to put it into build_dir/conf/local.conf Feb 20 16:00:03 Can it be done in other way? Feb 20 16:00:12 it can be in any conf file, i.e. a layer you are including, etc Feb 20 16:00:17 Like override some parts of quemu.inc ? Feb 20 16:01:15 zeddii: I rather thought about adding meta-XXX/conf/machine/qemuarm.conf Feb 20 16:01:34 and override it there - which is a more portable solution IMHO Feb 20 16:02:10 But it seems like it doesn't overwrite stuff in poky/meta/conf/machine Feb 20 16:02:46 zeddii: those kind of bugs are a pain to debug which is why we have those tests to spot them! Feb 20 16:03:23 indeed. doing a final build test now, and will send v3 shortly. then back to kernel-devsrc and integrating it with the scripts-cross build test. Feb 20 16:03:39 task swap death Feb 20 16:03:50 * zeddii notes RP knows task swap death better than me ;) Feb 20 16:04:01 zeddii: I know the feeling, believe me! :) Feb 20 16:04:20 * RP ponders toolchains, bugs, stable releases or misc next Feb 20 16:07:54 Ok, so there is no "easy" way to adjust PREFERRED_PROVIDER_virtual/kernel for MACHINE=qemuarm ? Feb 20 16:09:09 By easy - I mean portable Feb 20 16:09:36 to avoid copying local.conf to the deployment directory/setup? Feb 20 16:09:50 lukma: the portable way is to define your own machine that sets up things the way you want them. Feb 20 16:10:00 local.conf, site.conf, or add a custom machine that's based on or includes qemuarm Feb 20 16:10:24 for reasons unknown people always try to avoid own images, own machines, own distros and prefer beating things into shape. Feb 20 16:11:35 LetoThe2nd: :) Feb 20 16:11:42 People are lazy Feb 20 16:11:42 i think people think it's harder or more imposing than it is Feb 20 16:11:54 kergoth: yeah Feb 20 16:12:00 i suspect it seems intimidating to new users, even though it's trivial Feb 20 16:12:17 If I do have qemuarm machine written by OE|yocto core team Feb 20 16:12:33 then why should I re-invent the wheel? Feb 20 16:12:50 kergoth: ironic given the problem we had with oe-classic... Feb 20 16:12:58 FYI, you can create a new machine that includes/requires the existing qemuarm machine, if you don't want to bother copying it for some reason.. Feb 20 16:13:03 lukma: then what is complicated about having a myquemarm.conf that just pulls in the prewritten stuff and just overriding it? Feb 20 16:13:03 just need to tweak MACHINEOVERRIDES to include both Feb 20 16:13:17 RP: heh, indeed Feb 20 16:13:41 good point Feb 20 16:13:55 zeddii, :( build server says no and my recipe still cries for libelf-dev... Feb 20 16:14:20 kergoth: I will do that this way Feb 20 16:16:05 I'll have to test the use case against my re-worked packages. I'm back to them now that qemuarm64 is booting. I was getting that error, but haven't seen it for a while now. Feb 20 16:19:14 zeddii, also seems to be polluted by the host env as it works on my local machine but not on my CI server Feb 20 17:00:36 New news from stackoverflow: Skip printk calls Feb 20 17:08:11 RP: my gmail copy of oe-core is messing with me. If you don't see both of my patches in the make-mod-scripts (v3), can you shout/yell at me ? Feb 20 17:08:36 I only see 2/2, but I think it has threaded 1/2 away, and it may have appeared on the list. Feb 20 17:26:50 zeddii: yeah 1/2 was there, it's in mut now at least Feb 20 17:27:09 ok. I *detest* the threading that gmail does with patches. Feb 20 17:27:35 but yet, I need the list somewhere that I can check from home without VPN :D Feb 20 17:28:41 zeddii: you reminded me to ask twitter for mailer suggestions for exactly that reason Feb 20 17:52:21 zeddii, fyi I guess the fuckup is mainly caused by the kernel Makefile using $(HOSTCC) for the libelf-test during module builds. Thus (in contrast to kernel builds) for modules it uses the build machine's toolchain for checking (in kernel class we do set HOSTCC to ${BUILDCC} explicitly) Feb 20 18:20:25 anyone around? have a bit of a dilemma Feb 20 18:43:00 alex___: I'm here FWIW Feb 20 18:57:12 so I have a recipe named activist.bb that I want to rename to activist-acceptance.bb, activist-staging.bb, and activist-production.bb, depending on environment. the challenge is, I want the resulting debian package to install into a directory named activist regardless of environment specified, but it's getting that value from the PN variable which is set by the recipe name which includes the environment Feb 20 19:06:13 You don't have any control of ${PN} getting passed as part of the installation directory? Feb 20 19:06:59 Within the recipe it says: Feb 20 19:07:00 pkg_postinst_${PN}() { Feb 20 19:07:22 If I change PN would it update appropriately? Feb 20 19:08:26 meaning if I set it to pkg_postinst_activist would the install folder be named activist? Feb 20 19:08:48 or does that just specify which application the pkg_postinst applies to? Feb 20 19:09:28 I don't think that pkg_postinst affect the installation directory Feb 20 19:09:37 usually.... Feb 20 19:11:26 But you might want to clarify "installation directory" Feb 20 19:15:06 the directory where the application is installed Feb 20 19:15:21 it's always /usr/pkgs/PN regardless of application Feb 20 19:15:29 Usually thats set by do_install() Feb 20 19:16:13 ooh yeah! Feb 20 19:16:27 so I have this block in a class file that's inherited by each individual sub-recipe Feb 20 19:16:34 `bundler_do_install() { install -d ${D}${prefix}/pkgs/ install -d ${D}${prefix}/pkgs/${PN} rsync -rtv ${S}/ ${D}${prefix}/pkgs/${PN} }` Feb 20 19:17:20 so it's precisely there where ${PN} needs to be ${PN} minus the environment, right? Feb 20 19:17:44 Right Feb 20 19:17:52 so maybe I could declare a variable such PN_NEW that grabs PN then removes the environment tag from the end of it Feb 20 19:18:02 then update the install block to use PN_NEW instead of PN Feb 20 19:18:06 does that make sense? Feb 20 19:19:24 thank you so much JPE! Our systems guy left and I inherited this code base. I'm a junior devops guy with only 1 year of experience so still have so much to learn. Feb 20 19:21:00 Ya, I think thing might work: PN_INSTALL_DIR = "${@d.getVar('PN').split('-')[0]}" Feb 20 19:21:03 np Feb 20 19:21:35 That's just beautiful thank you sir! I miss Python. It's all Ruby here. Feb 20 19:23:11 ... Did you reverse that? bitbake uses python Feb 20 19:23:30 By "here" I meant my company heh Feb 20 19:23:56 I started in Python, fell in love with it, then was forced to switch to Ruby; now I'm starting to get Stockholm Syndrome Feb 20 19:24:01 Oh, right. Got it ;) Feb 20 19:24:09 I barely even remember my real parents anymore Feb 20 20:05:25 hi Feb 20 20:07:13 glib doesn't compile in poky "rocko" Feb 20 20:07:17 https://paste.ofcode.org/MBqSyKZ8mirQSBvbFRPXvc Feb 20 21:06:15 glibc* Feb 20 21:06:48 this branch is broken Feb 20 21:27:25 JPEWhacker so sometimes the application names include the - character Feb 20 21:28:09 so I think I need to write it like this: Feb 20 21:28:10 INSTALL_FOLDER = '-'.join(PN.split('-')[0:-1]) Feb 20 21:28:46 Is there a more technically correct way to do that? Getting a little bit of a code smell vibe. Feb 20 21:32:01 you can replace the '-' with say '_' or another character if this makes more sense.. Feb 20 21:46:34 Can I reference PN freely in a class file or do I need to do something like bb.data.getVar('PN',d,1)? Feb 20 21:49:02 Not sure I understand the question Feb 20 21:49:27 Is bundler_do_install() in a class file? Feb 20 21:49:39 yes Feb 20 21:50:15 Ya, you can reference PN in a class file. You would use bb.data.getVar('PN') in Python code, and ${PN} elsewhere Feb 20 21:50:28 Are you willing to change the bbclass file? Feb 20 21:50:46 Definitely Feb 20 21:51:19 INSTALL_FOLDER = '-'.join(bb.data.getVar('PN').split('-')[0:-1]) Feb 20 21:51:32 You might consider doing it a little "dumber" then. In the bbclass do something like: INSTALL_FOLDER ?= "${PN}", then override it in each recipe Feb 20 21:52:07 e.g. INSTALL_FOLDER = "activist" Feb 20 21:52:11 I get a parse error from the above line Feb 20 21:52:39 Ya, you need the "this is python code" delimiters, ${@ } Feb 20 21:52:50 Ah gotchya I'm such a newb heh Feb 20 21:52:58 so I was planning to add a regex if clause Feb 20 21:53:01 e.g. INSTALL_FOLDER = "${@'-'.join(bb.data.getVar('PN').split('-')[0:-1])}" Feb 20 21:54:13 That works. You still might want to define that weakly so it can be overriden easily on per-recipe basis, e.g. INSTALL_FOLDER ?= "...." Feb 20 21:54:47 that's a good idea thank you Feb 20 22:05:58 so when i construct the whole if clause that should be encapsulated in ${@ } as well, right?? Feb 20 22:11:56 hmm i'll try to set it up as a python function Feb 20 22:12:40 Ya, I would write a function Feb 20 22:18:28 will the function be automatically invoked or do I need to invoke it? Feb 20 22:18:51 or do i do something like "python do_install_prepend" Feb 20 22:23:04 python do_install_prepend () { PN = bb.data.getVar('PN') environments = ['acceptance', 'staging', 'production'] if any(n in PN for n in environments): INSTALL_FOLDER = '-'.join(bb.data.getVar('PN').split('-')[0:-1]) else: INSTALL_FOLDER = PN } Feb 20 22:25:15 I'm just going to make it "dumb" and put it in the recipes Feb 20 22:26:39 oh hm that's not going to work because the do_install is in the class not the recipes... Feb 20 22:35:48 alex___: I think some time reading the manual would be in order, but you can start with this: https://paste.ofcode.org/FRi5kSW2HySxtKCeRiQbua Feb 20 22:43:50 amen thanks JPE Feb 20 22:54:35 holy crapoly Feb 20 22:54:38 i think it worked... Feb 20 22:57:25 nope jumped the gun : ) Feb 20 23:00:11 woot fixed the issue -- just had to make a small adjustment in the actual recipe file! Feb 20 23:00:38 JPEWhacker: here's the code in case you're curious: https://paste.ofcode.org/qvG5kRtsbwCwMf7XXBNdm9 Feb 20 23:00:44 I owe you a beer man Feb 20 23:02:42 Lol, no problem. It looks really good, I would only make one change: the "d" argument to the function is the bb data store, so instead of bb.data.getVar('PN', d, 1), you can simply do d.getVar('PN') Feb 20 23:04:34 didil: glibc in rocko branch builds fine here Feb 20 23:06:22 rburton: not on my computer Feb 20 23:06:43 Ubuntu 17.10 Feb 20 23:07:01 didil: that's interesting, but it works on the entire autobuilder. so you've an interesting quirk. have you tried with a different MACHINE? do you have anything apart from just oe-core? Feb 20 23:08:19 not yet :/, I use meta-freescale and meta-openembedded and meta-qt5 Feb 20 23:08:49 added to poky Feb 20 23:10:29 didil: i'd rip those layers out, set machine=qemuarm, and try building glibc Feb 20 23:10:40 if it works then you know its not oe-core at fault Feb 20 23:10:56 if it doesn't then file a bug Feb 20 23:11:07 i'm compiling the pyro branch Feb 20 23:11:19 it passes the glibc compilation task Feb 20 23:11:39 ok i'll do it Feb 20 23:13:06 thanks :) Feb 20 23:48:56 i need to instantiate the images that i build (eg add some unique id and certificates inside). any idea the simpler way to do that? any alternative? Feb 20 23:49:42 (i tried to find documentation about that, but unfortunalty no luck. any ptr?) **** ENDING LOGGING AT Wed Feb 21 03:00:02 2018