**** BEGIN LOGGING AT Wed Jun 14 03:00:03 2017 Jun 14 04:16:32 hello, everyone, good afternoon... Jun 14 04:20:10 I have a question related with meta-web-kiosk, does anyone have a knowledge about it ? thanks Jun 14 05:23:17 rick1: what questions do you have specific to that layer Jun 14 05:56:06 Hi, I'm trying to convince the qtbase recipe to put the bearer plugins into a separate package... so what I did in a .bbappend is https://paste.gnome.org/phzqqnnjw - I see the folders being created in packages-split, but the .so files still end up in the generic -plugins package... Jun 14 05:58:31 morning all Jun 14 06:32:43 I want to add chromium browser into core-image-sato...The step : 1 .I had made core-image-sato-custom.bb Jun 14 06:33:09 2. Add add bblayer.conf ==> meta-browser Jun 14 06:33:52 3. Add IMAGE_INSTALL += "chromium" inside core-image-sato-custom.bb ? Jun 14 06:34:09 sounds about right? Jun 14 06:34:11 doesn't it work? Jun 14 06:34:46 correct me if I'm wrong, I can't do that yet because I 've been compiling something else here.. Jun 14 06:35:34 just make sure the meta-browser layer is before your own layer, iirc that matters Jun 14 06:36:34 I don't have much layer, only default in bblayers.conf..I'll keep posted if I can or can not that.. Jun 14 06:36:43 many layers.. Jun 14 06:36:54 I don't have many layers Jun 14 06:37:36 I'm learning so I'm not sure... Jun 14 06:37:49 sandsmark: nah that actually not *that* important. Jun 14 06:38:10 way more important is that the release branches are coherent. e.g. all morty, all krogoth, you get it. Jun 14 06:38:42 ah, my bad Jun 14 06:39:18 sandsmark: no bad. AFAIK there can be edge cases where the order matters, and its good practise :) Jun 14 06:40:01 ok, so I wasn't misremembering completely :p Jun 14 06:40:50 sandsmark: not at all. its just in most cases not important when adding some package that does not already see appends or such. Jun 14 06:41:06 I'm following the book 5.2. Customizing Images yoctoproject 2.3 mega manual Jun 14 06:41:10 ah, of course Jun 14 06:42:02 so yeah, keep it after the meta-browser layer, you're probably going to bbappend to the chromium recipe Jun 14 06:42:13 rick1: btw, the chromium recipe in the meta-browser layer was very outdated last I looked Jun 14 06:42:16 it used gyp for example Jun 14 06:42:45 rick1: all is well. just for completeness, your core-image-sato-custom recipe should go into your custom layer, not into one of the existing upstream ones. Jun 14 06:43:02 rick1: this is up to date: https://github.com/rakuco/meta-crosswalk/tree/chromium59/recipes-browser/chromium Jun 14 06:43:33 thanks sandmark... Jun 14 06:43:51 leto: how can I use custom layer ? Jun 14 06:44:31 rick1: there's a command that creates the basic directory structure for it Jun 14 06:44:57 rick1: poky comes with a script called yocto-layer. so, "yocto-layer create mystuff" should create a layer where you are, in a directory called "meta-mystuff" Jun 14 06:45:10 my experiment now, put custom-image-sato-custom.bb, inside poky/meta/recipes-sato/images Jun 14 06:45:18 rick1: add that to bblayers.conf, and use it just like the existing ones. Jun 14 06:45:29 and bitbake it.....it's running now with Jun 14 06:46:00 IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbear hwcodecs ssh-server-openssh" and IMAGE_INSTALL += "strace nano" Jun 14 06:46:20 rick1: for a first test tinkering in poky is all fine. its just once you modify more than one place, want to keep your changes, want to pull updates, then it becomes nasty. so basically, in all real-world usage cases. Jun 14 06:46:55 Leto : I see...I don't have your skill yet Jun 14 06:47:16 rick1: it's very straightforward to use a custom layer Jun 14 06:47:20 rick1: all is well as long as you're willing to learn :) Jun 14 06:47:34 and it gets harder to move stuff over later, so better start with it right away (from experience) Jun 14 06:47:54 but another unrelated issue that I've been stuck with half a day (and a night); I added a wpa-supplicant_%.bbappend and put in «SYSTEMD_SERVICE_${PN} = "wpa_supplicant@wlan0.service"» and «SYSTEMD_AUTO_ENABLE = "enable"», to try to get it to auto-enable wifi on boot, but for some reason my image ends up with «wpa_supplicant@%i.service» in the multi-user.target.wants folder Jun 14 06:48:39 sandsmark: were all those underscores intended? Jun 14 06:48:40 the pkg post_inst script seems to do the right stuff («systemctl $OPTS enable wpa_supplicant@wlan0.service»), and if I run that manually after booting it enables it correctly Jun 14 06:48:43 sandmark : yup...I'll make my "meta-stuff" and get back again... Jun 14 06:48:56 LetoThe2nd: yeah, they are from the original wpa_supplicant_foo.bb Jun 14 06:49:15 eh, the .bb is called wpa-supplicant_foo, but all the scripts and service files are wpa_supplicant Jun 14 06:49:19 I've read yocto-layer create mystuff before, but not yet in practice... Jun 14 06:49:48 sandsmark: it its really call "_SYSTEMD_SERVICE_${PN}"? that sounds weird. let me have a look Jun 14 06:50:05 thank you Jun 14 06:50:31 anyway...what time is it there ? Jun 14 06:50:31 I'm fairly sure it is the correct way to do it, but I think I've been looking too long at it, probably overlooking something simple Jun 14 06:51:09 rick1: 08:51 Jun 14 06:51:09 sandsmark: i don't see none of the lot of underscores that were in your snippets here: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb?h=master Jun 14 06:51:52 LetoThe2nd: these?: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb?h=master#n18 Jun 14 06:52:21 this is my entire wpa-supplicant_%.bbappend: http://ix.io/xsc Jun 14 06:52:55 erh, ignore the rm -f, I was testing if it worked if I removed the extra .service files Jun 14 06:53:14 sandmark : Let me guess, you're somewhere in europe ... Jun 14 06:53:20 rick1: norway :) Jun 14 06:53:59 few thousands K away from me..:) Jun 14 06:54:07 I'm in Aus Jun 14 06:54:09 bah, it's probably easier to just ignore the systemd.bbclass and ln -s manually Jun 14 06:54:11 ah, nice Jun 14 06:54:44 oceania is one of the few regions of the world I haven't been in Jun 14 06:56:09 I've never been in Norway as well... Jun 14 06:56:38 sandsmark: the replacement failure rings a bell, but i donÄt know which. maybe just put it onto the ml and do something else today, waiting for a response? Jun 14 06:57:31 I suck at putting a half-solved problem away, hard to concentrate on something else then :p Jun 14 06:57:44 but yeah, I should probably do that Jun 14 06:57:53 sandsmark: :-) Jun 14 06:59:45 sandmark ==> any debug message from your WPA stuff ? I don't exactly but if you have debug stuff..echo "something" ? Jun 14 07:00:30 I don't exactly know.. Jun 14 07:01:25 not sure where it would help to put debug output, the «wpa-supplicant/latest.pkg_postinst» shows the correct stuff Jun 14 07:01:38 maybe in the systemd.bbclass code that tries to parse stuff Jun 14 07:01:49 auto-enable wifi ==> do you have the driver running already ? Jun 14 07:02:05 yup Jun 14 07:02:25 and if you manually call / ping it's working isn't it ? Jun 14 07:02:26 I managed to get our odm to use a chip that's well-supported by the mainline kernel, luckily Jun 14 07:02:45 yeah, it works well if I start or enable wpa_supplicant manually on the device Jun 14 07:03:01 but I want an image from yocto I can just stuff into delta_generator without having to do manual stuff Jun 14 07:04:36 it's just my idea...can you create a service calling that device on /etc/systemd/system ..manually ? Jun 14 07:04:56 I can see some services in that directory...what I Jun 14 07:05:16 well, I could just ln -s the file manually in do_install_append(), but I wanted to do it The Right Way (TM) Jun 14 07:06:08 I see.. Jun 14 07:07:03 so the image should have a script running that service ( auto wifi ) Jun 14 07:07:11 correct me if I'm wrong.. Jun 14 07:08:13 I'm thinking to put that "auto script" inside the image...but I don't know exactly what you want.. Jun 14 07:10:40 sysctl status "auto wifi script" ? Jun 14 07:11:48 ah, systemd is basically like a script like that Jun 14 07:12:46 yup Jun 14 07:14:01 sandsmark: to me it just sounds like the script name replacement doesn't work correctly. you can always bitbake -e the recipe to see what going on internally. Jun 14 07:15:33 it will be something : Jun 14 07:15:39 LetoThe2nd: ah, good idea Jun 14 07:16:04 [Service] Jun 14 07:16:04 ExecStart=your autowifi script Jun 14 07:16:07 [Install] Jun 14 07:16:08 WantedBy=default.target Jun 14 07:16:53 inside /etc/systemd/system Jun 14 07:17:11 rick1: yeah, I'm just using the default .service files that wpa_supplicant ships with, the problem is that for some reason the bitbake script that's supposed to automatically set them up for me fails to install it with the correct name Jun 14 07:19:03 ok, if you put a hardcode on your bitbake script, will it do it correctly ? probably you miss a variable ? Jun 14 07:19:34 it's getting complicated as it gets :) Jun 14 07:20:46 yeah, it will work correctly if I hardcode the ln -s, but it feels wrong :p Jun 14 07:21:07 scratch my head.... Jun 14 07:58:59 did anybody ever saw the message "[log_check] Failed to set locale, defaulting to C" while building rootfs ? Jun 14 07:59:35 can't find the source of the problem. my image won't build at the final step Jun 14 08:04:08 i've got message "[log_check] Failed to set locale, defaulting to C" at the final step of do_rootfs. anybody can help? Jun 14 08:07:46 Dvorkin: what host distro is this on? is it inside a container? Jun 14 08:08:51 bluelightning, it's Mageia 4 Jun 14 08:08:59 my host locale is not EN Jun 14 08:09:09 Dvorkin: what's LANG set to? Jun 14 08:09:33 ru_RU.UTF-8 I tryed en_US.UTF-8 without success Jun 14 08:10:04 is the en_US.UTF-8 locale installed? I'm not sure how that's handled on Mageia to be honest but it may be packaged separately Jun 14 08:10:26 it may be a sub-package of glibc perhaps Jun 14 08:13:08 (we ought to be checking to ensure whatever is needed is installed, so there is definitely a bug here, just a matter of figuring out where exactly) Jun 14 08:17:53 bluelightning, yes, en_US is in stalled on my PC Jun 14 08:18:41 as I said, I tryed to set LANG and LC_* to en_US without success Jun 14 08:19:56 kanavin: ^ google suggests this might be dnf complaining, any ideas? Jun 14 08:20:05 I even can't find who sais that? dnf-native? maybe I should set some host packet to build with DNF? Jun 14 08:20:54 Dvorkin: just checking, is that the only failure message or are there other errors? Jun 14 08:21:50 there are one more error, but it doesn't shown in console. I see it in the logfile: Jun 14 08:22:28 NOTE: /etc/host.conf: line 3: bad command `nospoof on' /etc/host.conf: line 4: bad command `spoofalert on' NOTE: /etc/host.conf: line 3: bad command `nospoof on' /etc/host.conf: line 4: bad command `spoofalert on' Added oe-repo repo from /home/dv/workspace/tpp.17/poky/x.tpp/tmp/work/tpp-tps-li Last metadata expiration check: 0:00:00 ago on Wed Jun 14 07:42:46 2017 UTC. Metadata cache created. Failed to set locale, defaulting to C Jun 14 08:23:05 but it doesn't shown in console. I see it in the logfile of do_rootfs Jun 14 08:24:54 "Failed to set locale" appeared right after Verifying : kbd-keymaps-2.0.4-r0.cortexa8hf_neon 814/814 Installed: .... wireless-regdb.cortexa8hf_neon 2017.03.07-AUTOINC............................ Complete! Failed to set locale, defaulting to C Jun 14 08:25:59 It says Complete! after verying packages. and then immediately says "Fail" about locale. Jun 14 08:30:50 Dvorkin: I think the operation did succeed, it's just our code is assuming something failed and is failing do_rootfs as a result Jun 14 08:31:42 Dvorkin: if you run export LC_ALL="en_US.UTF-8" does it give any error? Jun 14 08:32:16 looks like! trying... Jun 14 08:32:50 the other strange thing - where NOTE: /etc/host.conf: line 3: bad command `nospoof on' comes from? Jun 14 08:33:32 why it come from MY /etc/host.conf? Jun 14 08:34:08 that's in your /etc/host.conf? Jun 14 08:34:40 definitely! Jun 14 08:35:12 it's host PC's file. Jun 14 08:36:03 after export LC_ALL="en_US.UTF-8" it goes the same way Jun 14 08:38:26 Dvorkin: yes but does setting that give an immediate error? that's what I was after Jun 14 08:38:32 or does it just set as normal? Jun 14 08:39:06 no, I have en_US locale installed in my host PC Jun 14 08:39:15 it doesn't give any error Jun 14 08:39:20 ok, thanks Jun 14 08:39:27 not sure where to go from here to be honst :( Jun 14 08:39:33 *honest Jun 14 08:39:45 kanavin: you around/ Jun 14 08:39:47 ? Jun 14 08:42:40 I comented out "nonspoof on" and "spoofalert on" in my host PC's /etc/host.conf, spoofalert error doen't appeare in my logfile but "Failed to set locale, defaulting to C" still exists Jun 14 08:42:56 right, the two appear unrelated Jun 14 08:46:50 RP: ^ any ideas about "Failed to set locale, defaulting to C" ? Jun 14 08:53:59 the complete logfile: https://paste.fedoraproject.org/paste/Cr9IxtQWZ~DL6huZFoC8-A Jun 14 08:58:19 Dvorkin, the error is not with locales Jun 14 08:59:05 check line #8617 of your paste Jun 14 08:59:56 ant_work, oh! Jun 14 09:03:17 cheking... Jun 14 09:05:36 maybe s/no/disable/ ? Jun 14 09:08:29 ant_work, no. set to "disable" and problem still exists Jun 14 09:12:00 the syntax is enable or disable, see couple of lines above Jun 14 09:12:20 I know, thanks. I fixed, but problem still exist Jun 14 09:12:22 https://paste.fedoraproject.org/paste/iKCW88IyuBqBizYm6QaSvg Jun 14 09:12:28 the new logfile Jun 14 09:13:52 bluelightning: no, sorry :( Jun 14 09:14:23 I have to wonder which locale its trying to set... Jun 14 09:15:23 I have ru_RU.UTF-8 locale on my host PC, but setting it to en_US.UTF-8 doesn't help Jun 14 09:41:26 Dear All, Jun 14 09:41:26 I'd like to ask for your opinion - what is the preferred way to add binary program (a few KiB) to yocto? Jun 14 09:41:26 Just treat it as other source? and properly install ? Jun 14 09:42:50 lukma: here you go: http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#packaging-externally-produced-binaries Jun 14 09:43:11 lukma: its a common usecase and properly documented :) Jun 14 09:44:08 LettoThe2nd: Thanks :-) Jun 14 09:52:29 Dvorkin: the only thing I would suggest at this point would be to file a bug and we'll try to investigate it Jun 14 10:36:51 bluelightning, thanks. I'll try Jun 14 10:48:07 the other question: how to get rid of busybox in my image completely ? Jun 14 10:55:56 Does anyone use 1.1.0 with yocto or openembedded? I'm looking for a recipe. Jun 14 11:16:57 any ideas why do_rootfs failed? : https://paste.fedoraproject.org/paste/s~SuKagYWMH2wmJLB6ckFQ Jun 14 11:25:40 Dvorkin: no immediate idea. but please no thread hijacking - your problem is absolutely not realted to libraries in the image/sdk Jun 14 11:54:43 bluelightning: ? Jun 14 11:56:47 kanavin: any ideas regarding Dvorkin's locale issue within do_rootfs? it seems to be dnf that's complaining Jun 14 11:56:48 kanavin: http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-writing-a-new-recipe Jun 14 11:56:50 er Jun 14 11:56:53 wrong paste Jun 14 11:56:57 kanavin: https://paste.fedoraproject.org/paste/iKCW88IyuBqBizYm6QaSvg Jun 14 11:58:52 bluelightning: I do not have specific ideas; grep the source code to see where that error is coming from, and take it from there Jun 14 11:58:58 Dvorkin: ^^^ Jun 14 12:05:53 Dvorkin: you need to check dnf/i18n.py and dnf/pycomp.py - they seem to do a straigforward call to locale.setlocale() though, but they obscure the actual error in an exception handler Jun 14 12:06:57 so you should run the natively built python3 interpreter, issue the setlocale calls from the prompt, and see why they fail Jun 14 12:07:20 that's all I can help you with, I'm afraid, as I'm not getting the same issue here Jun 14 12:07:26 bluelightning: ^^^ Jun 14 12:08:02 kanavin: ok, that is helpful, thanks Jun 14 12:13:29 kanavin, thanks! already checked! Jun 14 12:13:45 Dvorkin: so what was it? Jun 14 12:14:14 the reason of the problem was at tmp/work/cortexa8hf-neon-tps-linux-gnueabi/dnf/2.3.0-r0/image/usr/lib/python3.5/site-packages/dnf/i18n.py Jun 14 12:14:39 yeah, but why is setlocale failing? Jun 14 12:14:43 it throws an exception while calling setup_locale() Jun 14 12:16:01 in poky DNF-2.3.0 is used, althrough 2.5.1 is out. Jun 14 12:17:06 does anyone else have troubles fetching meta-arago via git? "git clone http://arago-project.org/git/meta-arago.git" gives me "fatal: read error: Connection reset by peer"... Jun 14 12:17:39 Dvorkin: what's the exception? Jun 14 12:18:01 and it differs in this part: function setup_locale() sets locale.LC_ALL to '', instead of LC_ALL to '' and LC_TIME to "C" in youcto DNF version Jun 14 12:18:36 I don't see the message of exception yet, need to debug more... Jun 14 12:19:38 the need for an explicit setlocale call is the dumbest idea ever, codified in POSIX Jun 14 12:23:52 it want to set explicit LC_TIME for logging, afaik. but why it escalates rather "soft" error to do_rootfs ? Jun 14 12:24:28 Dvorkin: we have some logic that just looks for things like "error" "fail" etc. in the log, that's log_check Jun 14 12:25:05 I understand that... Is there a way to exclude such message from checker? Jun 14 12:25:22 if you hack the code, yes... exclusions are hardcoded unfortunately Jun 14 12:25:32 triggering in this case is probably overkill, but I'd rather just have people fix their systems if that's possible Jun 14 12:26:34 if you do bitbake -c devshell your-image, run python3 and then try to call setlocale() like the code does, do you get the same issue? Jun 14 12:32:56 empty locale: locale.Error: unsupported locale setting Jun 14 12:33:22 locale.setlocale(locale.LC_ALL, 'C') is OK Jun 14 12:34:05 locale.setlocale(locale.LC_ALL, '') : locale.Error: unsupported locale setting Jun 14 12:34:47 is something wrong in my image settings? Jun 14 12:37:00 Dvorkin: something is wrong on your host machine. Can you check what are the values of environment variables LANG, and LC_* (all of them)? Jun 14 12:37:31 env | grep LANG Jun 14 12:37:35 env |grep LC_ Jun 14 12:37:47 env | grep LC : LC_SOURCED=1 LC_ALL=ru_RU.UTF-8 Jun 14 12:38:10 env | grep LANG : LANG=ru_RU.UTF-8 LANGUAGE=ru_RU.UTF-8:ru Jun 14 12:38:27 Dvorkin: unset LC_ALL Jun 14 12:39:09 [dv@localhost x.tpp (master)]$ export LC_ALL="" [dv@localhost x.tpp (master)]$ Jun 14 12:39:14 no errors Jun 14 12:39:38 setting LC_ALL is a bad idea in general... Jun 14 12:42:08 export LC_ALL="" then running bitbake gives same error, as I expected. Jun 14 12:42:32 something is wrong with python locale setting in image. I won't set empty locale Jun 14 12:42:41 something is wrong with python locale setting in image. It won't set empty locale Jun 14 12:42:52 Dvorkin: does the same call succeed from the host python3? Jun 14 12:43:31 it does: Jun 14 12:43:35 'setting empty locale' is actually 'setting locale to what the locale environment variables specify' :-) Jun 14 12:43:36 >>> locale.setlocale(locale.LC_ALL, '') 'ru_RU.UTF-8' Jun 14 12:44:12 at my host PC python I got success reply from python3 Jun 14 12:44:17 'ru_RU.UTF-8' Jun 14 12:44:48 so... it means, I need to set default locale in the image somehow? Jun 14 12:45:42 or I need to add some localization package to my image ? Jun 14 12:45:53 for python, i mean Jun 14 12:47:05 Dvorkin: nope, this is a problem with native python, and is not about target images Jun 14 12:47:56 but native python runs ok... Jun 14 12:48:07 Dvorkin: host python and native python are two different things :) Jun 14 12:48:14 ah, sorry :) Jun 14 12:48:15 Dvorkin: host python runs ok, native python does not Jun 14 12:48:48 looking at this https://ask.fedoraproject.org/en/question/87599/hi-i-have-a-problem-which-is-failed-to-set-locale-defaulting-to-c/ Jun 14 12:48:56 so you can make a tiny script with just that one line, and run it like this: Jun 14 12:48:57 strace python3