Saturday, 2015-12-05

*** seebs <seebs!~seebs@home.seebs.net> has joined #yocto00:02
*** khem` is now known as onoffon00:04
jynikWell yet another dash vs bash item bit me in the arse00:11
jynikprintf '\xa2' | hexump -C00:11
*** YoctoAutoBuilder <YoctoAutoBuilder!~YoctoAuto@yocto-www.yoctoproject.org> has quit IRC00:11
jynikdifferent results in dash and bash00:11
*** YoctoAutoBuilder <YoctoAutoBuilder!~YoctoAuto@yocto-www.yoctoproject.org> has joined #yocto00:12
jynikdash yields 4 characters, the string "\xa2", wheras bash lands you the byte 0xa2. Long story... part of an image fixup00:13
*** IvanSB <IvanSB!~IvanSB@host136-114-dynamic.54-79-r.retail.telecomitalia.it> has quit IRC00:17
jynikAnyone happen to know if this is a POSIX-ism or just dash being silly?00:17
*** Aethenelle <Aethenelle!~Aethenell@199.15.128.78> has quit IRC00:18
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has quit IRC00:22
*** onoffon is now known as khem`00:23
jynik(To answer my own question - man dash explains it pretty well - c89 backescapes only)00:24
*** sameo <sameo!samuel@nat/intel/x-fagunkwuhkvanatk> has quit IRC00:25
*** stwcx <stwcx!~stwcx@32.97.110.52> has quit IRC00:38
*** khem` is now known as onoffon00:41
*** onoffon is now known as khem`00:41
*** khem` is now known as onoffon00:42
*** onoffon is now known as khem`00:42
*** Aethenelle <Aethenelle!~Aethenell@166.175.57.201> has joined #yocto00:42
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC00:56
*** fledermaus <fledermaus!~vivek@78.32.176.249> has joined #yocto00:58
*** Net147 <Net147!~Net147@unaffiliated/net147> has quit IRC01:02
*** Net147 <Net147!~Net147@unaffiliated/net147> has joined #yocto01:03
*** pevster <pevster!~pev@95.147.121.123> has joined #yocto01:45
*** fledermaus <fledermaus!~vivek@78.32.176.249> has quit IRC01:49
*** Aethenelle <Aethenelle!~Aethenell@166.175.57.201> has quit IRC01:51
kergothjynik: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html02:08
kergothjynik: via http://pubs.opengroup.org/onlinepubs/9699919799/02:08
*** Snert <Snert!~LoginName@65-70-174-206.gci.net> has joined #yocto02:09
*** dreyna4529 <dreyna4529!~dreyna@c-24-5-28-247.hsd1.ca.comcast.net> has quit IRC02:16
*** kscherer <kscherer!~kscherer@128.224.252.2> has quit IRC02:25
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has quit IRC02:47
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has joined #yocto02:49
*** sjolley <sjolley!~sjolley@134.134.139.77> has joined #yocto03:00
*** sjolley1 <sjolley1!~sjolley@134.134.139.77> has quit IRC03:00
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has quit IRC04:04
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has joined #yocto04:10
*** pevster <pevster!~pev@95.147.121.123> has quit IRC04:12
*** rburton <rburton!~Adium@35.106.2.81.in-addr.arpa> has joined #yocto04:12
*** rburton <rburton!~Adium@35.106.2.81.in-addr.arpa> has quit IRC04:15
jynikkergoth: Thanks. I assume it's best to stick closely to that for recipes, eh?04:24
*** khem` is now known as onoffon04:34
*** dvhart <dvhart!~dvhart@134.134.139.72> has quit IRC04:51
*** zeddii_home <zeddii_home!~zeddii_ho@CPEe8de27b71faa-CMbcc810032faf.cpe.net.cable.rogers.com> has quit IRC05:07
*** deviosity <deviosity!~deviosity@c-67-160-33-141.hsd1.wa.comcast.net> has quit IRC05:18
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has joined #yocto05:23
*** seebs <seebs!~seebs@home.seebs.net> has quit IRC05:33
*** seebs <seebs!~seebs@home.seebs.net> has joined #yocto05:43
*** Snert_ <Snert_!~snert_@69.161.21.126> has quit IRC06:23
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has quit IRC06:27
*** onoffon is now known as khem`06:57
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has joined #yocto07:02
*** khem` is now known as onoffon07:13
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC08:03
*** ecdhe <ecdhe!~ecdhe@173-22-126-166.client.mchsi.com> has quit IRC08:09
*** pohly <pohly!~pohly@p5DE8D1B8.dip0.t-ipconnect.de> has joined #yocto08:12
*** ecdhe <ecdhe!~ecdhe@173-22-126-166.client.mchsi.com> has joined #yocto08:12
*** onoffon <onoffon!~khem@unaffiliated/khem> has quit IRC08:30
*** khem` <khem`!~khem@unaffiliated/khem> has joined #yocto08:31
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto08:51
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto09:17
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has quit IRC09:32
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC10:01
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto10:03
*** evanp_ <evanp_!~evan@192.55.54.42> has joined #yocto10:22
*** evanp <evanp!evan@nat/intel/x-stsxcvuriqpjexyi> has quit IRC10:24
*** evanp_ is now known as evanp10:24
*** townxelliot <townxelliot!~ell@94.7.148.253> has joined #yocto10:25
*** townxelliot <townxelliot!~ell@94.7.148.253> has quit IRC10:30
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto10:31
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC10:41
*** evanp <evanp!~evan@192.55.54.42> has quit IRC10:59
*** evanp <evanp!~evan@134.134.139.77> has joined #yocto11:01
*** obsrwr <obsrwr!~obsrwr@188.24.244.199> has joined #yocto11:07
*** ndec <ndec!~ndec@linaro/ndec> has quit IRC11:22
*** atenart <atenart!~atenart@nat1.foo.tf> has quit IRC11:24
*** ndec <ndec!~ndec@linaro/ndec> has joined #yocto11:24
*** crankslider is now known as slidercrank11:28
*** Crofton <Crofton!~balister@pool-108-44-110-59.ronkva.east.verizon.net> has quit IRC11:38
*** atenart <atenart!~atenart@nat1.foo.tf> has joined #yocto12:15
*** yann|work <yann|work!~yann@64.191.100.84.rev.sfr.net> has joined #yocto12:29
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC12:30
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto12:31
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC12:55
*** Mohican <Mohican!~Doug@187.74.87.227> has joined #yocto13:05
*** Mohican-br <Mohican-br!~Doug@201-43-218-187.dsl.telesp.net.br> has joined #yocto13:11
*** Mohican <Mohican!~Doug@187.74.87.227> has quit IRC13:14
*** grma <grma!~gruberm@chello213047201250.tirol.surfer.at> has joined #yocto13:14
*** Mohican-br <Mohican-br!~Doug@201-43-218-187.dsl.telesp.net.br> has quit IRC13:25
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has quit IRC13:44
*** Jackie <Jackie!~quassel@106.120.101.38> has joined #yocto13:45
*** Jackie is now known as Guest1475713:45
obsrwrHello, I am a beginner using yocto. I have made a custom layer with a non-yocto kernel (Linus's tree), it compiles and installs fine but at do_package i get these errors http://pastebin.com/t0uxgW7A . I googled around a bit and saw that I should remove these in the do_install function. Could anyone give me a hint on how I can do that?14:14
*** vdehors_ <vdehors_!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has joined #yocto14:23
*** vdehors_ <vdehors_!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has joined #yocto14:24
*** vdehors__ <vdehors__!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has quit IRC14:27
*** pidge <pidge!~pidge@2a02:8084:0:3000:bc0e:9c7c:b9d4:cdfb> has quit IRC15:20
*** pidge <pidge!~pidge@2a02:8084:0:3000:557b:cbc4:e080:8920> has joined #yocto15:26
obsrwri just added this to my recipe and it seems to have fixed it15:47
obsrwrdo_install() {15:47
obsrwr        for x in `find ${B}*.ko.gz`;do15:47
obsrwr                rm $x15:47
obsrwr        done15:47
obsrwr}15:47
rZrobsrwr, your assuming there is no space in paths15:53
rZrfind -iname -exec rm -f "{}"15:54
rZrwill be safer isnt it ?15:54
obsrwrcrap, yes15:55
obsrwrthanks15:55
rZryou're welcome15:55
rZrbtw they could be other ways15:56
obsrwrI'm sure they could :) but baby steps15:57
*** pevster <pevster!~pev@95.147.121.123> has joined #yocto16:04
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC16:17
*** dv_ <dv_!~quassel@chello062178118086.5.14.vie.surfer.at> has joined #yocto16:20
*** dv__ <dv__!~quassel@chello062178118086.5.14.vie.surfer.at> has quit IRC16:21
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto16:32
*** fledermaus <fledermaus!~vivek@78.32.176.249> has joined #yocto16:32
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC16:40
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC16:45
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto16:46
*** pevster <pevster!~pev@95.147.121.123> has quit IRC16:58
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto17:08
*** cesdv <cesdv!~cesdv@client-188-168-43-165.spb-teleport.ru> has quit IRC17:27
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-zmewzuqzsggtmfcc> has quit IRC17:41
nerdboythat for loop will execute the find command each time through the loop17:48
obsrwryou know i never really thought it like that in bash17:50
* nerdboy still on first coffee...17:50
nerdboybut bash is a little weird sometimes17:50
obsrwrit's not production code anyway, this is me playing with yocto outside of work xD17:50
obsrwrstill had a few problems after the rootfs was built, i couldn't mount the ext4 img17:51
obsrwrso i'm doing a clean build now17:52
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-hsmtnozykyergxmx> has joined #yocto17:52
* nerdboy looking at bash stuff17:54
nerdboythat's right, it's mostly the quoting/expansion of (possible) weird stuff17:55
nerdboya glob/regex is safest in the first line i think17:56
obsrwrexactly what does ${B} expand to though18:02
nerdboywhere did you get that?18:03
obsrwri read it in the reference manuals, said it's the build directory, tried it, seems to have worked18:03
obsrwrit says it's where objects end up in18:04
obsrwrhttp://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#build-directory18:04
obsrwroh damn it's actually the 2nd path after sourcing oe-init18:05
obsrwri did a really dumb thing18:05
obsrwr:)18:05
obsrwrthat deletes all the modules for all my machines18:06
obsrwrbecause that's all i do in the do_install also, i think none of the modules actually get into my rootfs either18:07
obsrwrhow do you guys write a custom kernel layer? i just took linux-yocto-custom.bb18:08
nerdboyB should be build dir18:09
nerdboyand this is the nice but non-posix way:18:09
nerdboyfind . -name '*.temp' -delete18:09
nerdboyplus quote your variables18:10
nerdboyrm "${x}"18:10
obsrwrthis is common practice?18:11
nerdboycommon practice for recipes?18:11
obsrwryes18:11
nerdboyprobably shouln't depend on gnu extensions18:11
obsrwrah18:12
nerdboybut you don't need a loop for that anyway18:12
obsrwrso. find . -name '${B}*.ko.gz' -delete ?18:13
nerdboyfind "${B}"/foo -name \*.ko | xargs -0 rm18:14
nerdboyer, -print0 before the pipe18:14
obsrwroh, got it18:15
*** cesdv <cesdv!~cesdv@client-188-168-43-165.spb-teleport.ru> has joined #yocto18:17
obsrwri read that do_install opies from B to D so i'll replace {B} with {D} and see if that works better18:23
obsrwrbeause the problem is really do_package in my ase18:23
obsrwrcase*18:23
nerdboyhere's a nice one from an ebuild: find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'18:25
obsrwr:)18:28
nerdboyto be "safe" should really do rm -f or -rf on the end of xargs18:32
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC18:32
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto18:32
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto18:36
obsrwrhuh18:40
obsrwrhttp://pastebin.com/tu9sN2NJ18:40
obsrwrdo_install() {18:41
obsrwr        find "${D}" -name \*.ko.gz -print0 | xargs -0 rm18:41
obsrwr}18:41
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC18:43
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto18:44
obsrwrgetting slightly bizzare18:44
obsrwrwait, i'm a moron18:50
obsrwrnevermind18:50
obsrwrcan't possibly be something in D cause i'm overriding the do_install function18:50
obsrwr__yeah__, i gotta find a better way18:53
obsrwrPlease set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.18:53
obsrwrhow do i get those modules packaged18:54
*** ddom <ddom!~ddom@ip-37-24-103-185.hsi14.unitymediagroup.de> has joined #yocto18:58
kergothit just told you19:11
kergothset the FILES variables to include those paths19:11
kergothsee the reference manual19:11
obsrwroh, FILES_${PN}.. i have seen the light19:17
*** fledermaus <fledermaus!~vivek@78.32.176.249> has quit IRC19:59
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC21:11
*** |thrawn| <|thrawn|!thrawn@executor.shadowhunt.de> has joined #yocto22:01
*** bavery <bavery!~bavery@98.232.142.195> has quit IRC22:22
*** obsrwr <obsrwr!~obsrwr@188.24.244.199> has quit IRC22:55
*** bfederau <bfederau!~quassel@service.basyskom.com> has quit IRC23:01
*** fmeerkoetter <fmeerkoetter!~quassel@service.basyskom.com> has quit IRC23:01
*** bfederau <bfederau!~quassel@service.basyskom.com> has joined #yocto23:01
*** fmeerkoetter <fmeerkoetter!~quassel@service.basyskom.com> has joined #yocto23:01
*** raykinsella78 <raykinsella78!~rkinsell@192.198.151.44> has joined #yocto23:40
*** raykinsella78 <raykinsella78!~rkinsell@192.198.151.44> has left #yocto23:59

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!