**** BEGIN LOGGING AT Mon May 31 02:59:56 2021 May 31 03:38:08 well, technically. Anyone can message on any channel they want May 31 03:39:02 they just may or may not have more luck finding people May 31 07:40:11 good morning May 31 07:59:53 we should activate a BOT saying every hour "This channel moved to 'irc.libera.chat'" May 31 08:01:10 This channel moved to 'irc.libera.chat May 31 09:04:19 Good morning/evening everybody May 31 09:25:06 morning all May 31 09:26:29 was wondering whether anyone can point me in the direction of some clear instructions to add LAMP (Apache, PHP, MySQL) to a yocto image. instructions found so far are confusing and contradictory at best ... May 31 09:58:18 patrick_r, I guess you can start by finding which layer provides those items via https://layers.openembedded.org/layerindex/branch/master/recipes/ May 31 09:59:26 @kanavin: found apache2 so trying to install that first. May 31 10:00:39 patrick_r, this may be a good point to start http://cgit.openembedded.org/meta-openembedded/tree/meta-webserver/recipes-core May 31 10:00:47 off the shelf images and packagegroups May 31 11:10:16 when there is a conflict in building the image, i.e my recipe tries to install a file called index.html where apache2 does try that too, how do i resolve  the conflict by giving priority to MY file? May 31 11:12:33 patrick_r: depends(TM) the bbappend usually overrides the bb and please check layer priority May 31 11:15:03 mckoan: conf/bblayers.conf lists the meta-webserver before my layer May 31 11:15:32 does that mean that apache gets priority? May 31 11:16:15 also should I create a bbappend to apache and somehow prevent the installation of index.html? May 31 11:17:47 see conf/layer.conf in each layer May 31 11:19:22 patrick_r: https://docs.yoctoproject.org/ref-manual/variables.html#term-BBFILE_PRIORITY May 31 11:19:53 apache has a priority of 6 and my layer has a priority of 9 May 31 11:20:13 I'm struggling creating a recipe for include-what-you-use for nativesdk. I think i'm in the same condition described here: http://cgit.openembedded.org/openembedded-core/commit/?id=5d3df78367be0afbfe001b4fa776a98a82e6ce54 , but adding ```EXTRA_OECMAKE_class-nativesdk_append = " -DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON -DCMAKE_SYSROOT:PATH='${WORKDIR}/recipe-sysroot' "``` (I think it's the CMake equivalnt of uboot fix) leave May 31 11:20:13 the RPATH absolute. Here the recipe and bitbake logs https://drive.google.com/file/d/1YSHZJ6fU7luh0KDrczNDlFGfbW4TaXPs/view May 31 11:36:04 hi guys, I was reading this https://www.yoctoproject.org/docs/1.2/poky-ref-manual/poky-ref-manual.html#licenses and I'm wondering ... COPYING would beis a licence file? May 31 11:36:14 s/beis/be/ May 31 11:37:20 also SRC_URI[md5sum] is the md5sum of what? the source downloaded as a zip? May 31 11:54:24 @mckoan: added a do_install_append() with rm ${D}/usr/share/apache2/default-site/htdocs/index.html to my recipe's bb and there is no conflict but the apache file takes precedence which is not what I want, should i create a bbapend to the apache recipe to erase that file instead ? May 31 11:59:51 hmm, so apparently when you use PYPI_PACKAGE variable the source is downloaded from pypi May 31 12:14:27 wyre: also, you're looking at the docs from the 1.2 release which is ancient to say the least May 31 12:14:36 docs.yoctoproject.org ;) May 31 12:15:23 patrick_r: precedence applies only to recipes with the same name or bbappends May 31 12:16:35 so yes, you need to remove it from the apache2 recipe... though, I mean in the path there is "default-site", don't know much about apache, but shouldn't you put your html pages in some other path in which case you don't need to care about the file you mentioned in the first place May 31 12:17:16 qschulz, oh, yes, sorry, I just googled it and it brought me there, you know May 31 12:18:06 Yeah, can't control the web search engine unfortunately :) May 31 12:21:43 do you recommend me some article on how to create a recipe for a repository containing few python scripts? May 31 12:23:54 wyre: SRC_URI[md5sum] is the md5 checksum of the first (only?) file that is not local (not starting with file://). Though it does not make sense for git for example. May 31 12:24:35 wyre: can you tell us exactly what you're trying to achieve in a recipe? you mention pypi package not fitting your usecase, but we don't know what you want to do actually May 31 12:24:38 oh, yes, SRC_URI[md5sum] is for the tar.gz which is fetched from pypi May 31 12:25:21 qschulz, well, I need https://pypi.org/project/gpiodev/ as a dependency of my python scripts May 31 12:25:26 so I had to create a recipe for it May 31 12:26:02 because there is no recipe for it in meta-openembedded May 31 12:26:16 that's why I was asking for those variables May 31 12:26:20 but right now I apparently have it May 31 12:26:38 and now I need to package my app/set of scripts May 31 12:26:59 and I have not them in PyPi so I guess I should package them directly from the git repo, right? May 31 12:28:57 wyre: yup, makes sense May 31 12:29:31 There is a reproducibility issue showing up if anyone has some time to debug: https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20210531-niv755r2/packages/diff-html/ :/ May 31 12:30:21 qschulz, so ... I'm interested in some example to follow May 31 12:49:07 wyre: just copy them on your rootfs from your recipe? May 31 12:49:46 you mean to create a recipe which copy them onto /opt for example? May 31 12:50:42 yes? to run a python script you need python and the script, so that's already a good start to have it on your rootfs I think :) May 31 12:52:36 well, the point now is to figure out how to create that simple recipe, I guess 😂 May 31 12:54:34 wyre: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/documentation/ref-manual/examples/hello-single/hello.bb, obviously you'll have a different SRC_URI and probably no compile task May 31 12:54:38 but that should help you a bit May 31 12:56:54 it a license always mandatory? 🤔 May 31 13:00:36 In the case it is ... what license do you recommend me among all in common-licenses directory? May 31 13:00:50 I mean, this is a proprietary project May 31 13:01:50 wyre: even if it is proprietary there's very often a license associated to it right? May 31 13:02:29 well, I could use one, but I'd like to use the most restrictive by the moment May 31 13:02:46 there is not any IRC channel to discuss this kind of things? May 31 13:03:11 don't remember if LICENSE = "Proprietary" should work and then you link to the license file in the project May 31 13:03:34 wyre: otherwise, LICENSE = "CLOSED" but that's the lazy way to do it May 31 13:03:43 well, there is a Proprietary file, but I don't have a proprietary license either May 31 13:04:36 qschulz, in this case it has not any md5sum, right? May 31 13:06:38 wyre: LIC_FILES_CHKSUM is not needed if it is set to CLOSED (don't remember what's supposed to happen for Proprietary) May 31 13:37:03 qschulz, yes; I was reading this in here http://docs.yoctoproject.org/dev-manual/common-tasks.html#specifying-the-lic-files-chksum-variable so I guess I'll set the license as CLOSED by now May 31 13:37:23 also ... I'm not sure how to call the folder to gather all my custom recipes May 31 14:15:28 wyre: does not matter, it should just match the path pattern in your meta-mylayer/conf/layer.conf BBPATH May 31 14:16:25 so, by default meta-mylayer/recipes-*/*/ May 31 14:17:28 * RP identified the reproducibility issue May 31 15:04:29 qschulz, why the first `install -d ${D}${bindir}` in the example recipe you linked? 🤔 May 31 15:35:47 wyre: can you do `cp file /non/existent/directory` ? May 31 15:36:10 oh, I see May 31 15:39:12 :) May 31 15:43:45 qschulz, is install also recursive? May 31 15:47:28 I mean, the example is for a single helloworld.c but I'd like to create a whole folder in the image with all the scripts 🤔 May 31 15:51:33 wyre: install is a UNIX tool :) https://linux.die.net/man/1/install May 31 15:53:50 yes, I was reading it and apparently there is no way, you can do a for loop or use find May 31 15:54:14 but I'm not sure if this is what I want May 31 15:54:56 also apparently I cannot set SRC_URI several times so ... I'm sure on how should I handle multiple files May 31 15:55:17 because I'd say SRC_URI should be a folder May 31 15:57:16 wyre: https://pretalx.com/media/yocto-project-summit-2021/submissions/WTT3UV/resources/Demystifying_the_OVERRIDES_mechan_no6J6fb.pdf first chapter of slides :) May 31 15:57:27 SRC_URI += works just fine May 31 15:59:12 in the end, SRC_URI is just a space separated list of things to fetch May 31 15:59:20 so you could just add a space and then add your other source May 31 15:59:34 you can also point to a directory directly in SRC_URI May 31 15:59:48 everything in it will be taken (DO NOT ADD THE *, this does NOT work) May 31 16:00:23 (well in some releases you THINK it does something, but it does it really wrong :) ) **** ENDING LOGGING AT Tue Jun 01 02:59:57 2021