Tuesday, 2022-08-23

*** RobertBerger <RobertBerger!~rber|res@62-47-47-177.adsl.highway.telekom.at> has joined #oe01:32
*** rber|res <rber|res!~rber|res@62-47-47-177.adsl.highway.telekom.at> has quit IRC (Ping timeout: 252 seconds)01:34
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has quit IRC (Quit: Leaving.)01:47
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe02:23
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has quit IRC (Quit: Leaving.)04:37
*** mvlad <mvlad!~mvlad@2a02:2f08:400a:ee00:24d7:51ff:fed6:906d> has joined #oe05:55
*** pbergin <pbergin!~pbergin@83.218.73.98> has joined #oe06:33
*** frieder <frieder!~frieder@200116b824e0f0815b4798f1139ab50e.dip.versatel-1u1.de> has joined #oe06:45
*** ptsneves <ptsneves!~Thunderbi@031011128120.dynamic-3-poz-k-0-2-0.vectranet.pl> has joined #oe07:18
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #oe07:33
ptsnevesgood morning all.07:57
ptsnevesYesterday got some funny situation with Popen.07:59
ptsneves> import subprocess; subprocess.call(('echo', 'foo'), cwd="./mypath", stdout=subprocess.STDOUT, stderr=subprocess.STDOUT)07:59
ptsnevesLeads to OSError: [Errno 9] Bad file descriptor: './mypath'07:59
ptsnevessharing with you as it was not obvious for me at all07:59
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #oe08:10
*** dl9pf[m] <dl9pf[m]!~dl9pfmatr@2001:470:69fc:105::9a8> has quit IRC (Quit: You have been kicked for being idle)09:01
*** mannerism <mannerism!~tic@107.191.100.185> has quit IRC (Remote host closed the connection)10:04
*** mannerism <mannerism!~tic@107.191.100.185> has joined #oe10:08
Habbieptsneves, but is it obvious now?10:53
*** dl9pf[m] <dl9pf[m]!~dl9pfmatr@2001:470:69fc:105::9a8> has joined #oe10:53
ptsnevesWell this is something you cannot do. The point is you cannot have stdout=STDOUT11:01
ptsnevesinstead if you want stdout enabled you need to set it to None. Otherwise you get that message11:01
ptsnevesi wondered if this was straightforward for you, because guys at #python told me it kind of is.11:02
ptsnevesand that it is in the docs11:02
Habbieahh, so the errno is not about ./mypath at all11:07
Habbiestrace showed me dup2() failing, which makes sense11:07
ptsnevesyes!12:00
ptsnevesthe mypath is an artifact12:00
ptsnevesand if cwd is None you will just get Bad file descriptor. Which seems to me very obscure just the same12:01
*** maelcum <maelcum!~horst@2001:9e8:269:5d00:2de7:c0a3:3bf:8289> has joined #oe12:35
*** pbergin <pbergin!~pbergin@83.218.73.98> has quit IRC (Quit: Leaving)13:44
*** sakoman <sakoman!~steve@dhcp-72-253-6-214.hawaiiantel.net> has joined #oe13:54
*** mihai <mihai!~mihai@user/mihai> has joined #oe14:06
*** kscherer <kscherer!~kscherer@dsl-173-206-148-172.tor.primus.ca> has joined #oe14:18
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Remote host closed the connection)14:55
*** Guest63 <Guest63!~Guest63@mtl.savoirfairelinux.net> has joined #oe14:58
Guest63Hi15:00
Guest63is there any way to execute command using '${@' expression15:00
Guest63${@os.system(command)} doesn't seem to work15:00
Saur[m]DvorkinDmitry: Well, if you are building an image that only you will use, then there are no problems with creating an SSH key at build time. However, if you are building an image that will be deployed to many different products, then you do not want them all to use the same SSH key.15:35
DvorkinDmitrySaur[m], but it requires the password to authenticate anyway....15:37
kergothJaMa: Hey, quick question for whenever you're around, we're wondering if there's a better way to switch to an eglfs-based environment, removing all weston/x11 stuff in one go. DISTRO_FEATURES+PACKAGECONFIG? It'd be nice for a user to have an easy way to switch15:42
Saur[m]DvorkinDmitry: I thought you were referring to the server key, but now it sounds more like you are talking about the public key used when accessing the product. You can of course install your public key to `${ROOT_HOME}/.ssh/authorized_keys` and as long as you have registered your key with ssh-add, you can then access the product without having to login (just like any other server where you have authorized your public key).15:44
DvorkinDmitrySaur[m], I am talking about the generation of the /etc/ssh/ssh_host* files that is automatically running on very first ssh login15:53
Saur[m]DvorkinDmitry: Here is the code we use in our extension to rootfs-postprocess.bbclass to add an SSH server key for developers: https://pastebin.com/awqcGYYB16:06
Saur[m]In our environment, OE_USER_DIR is set to `~/.openembedded`, but you can of course use whatever path you want.16:07
DvorkinDmitrySaur[m], thank you! is it safe enougth to use pre-generated files and force password auth?16:15
Saur[m]DvorkinDmitry: Well, we only use this for developers that build their own images and there it should be fine. It is definitely not suitable for production.16:45
*** maelcum <maelcum!~horst@2001:9e8:269:5d00:2de7:c0a3:3bf:8289> has quit IRC (Quit: Konversation terminated!)17:59
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has quit IRC (Quit: Leaving)18:18
*** otavio <otavio!~otavio@200-102-164-25.user3p.brasiltelecom.net.br> has quit IRC (Remote host closed the connection)18:49
*** otavio <otavio!~otavio@200-102-164-25.user3p.brasiltelecom.net.br> has joined #oe18:54
*** florian <florian!~florian@dynamic-002-243-049-011.2.243.pool.telefonica.de> has joined #oe19:24
*** rsalveti <rsalveti!uid117878@id-117878.uxbridge.irccloud.com> has quit IRC (Quit: Connection closed for inactivity)20:05
*** florian <florian!~florian@dynamic-002-243-049-011.2.243.pool.telefonica.de> has quit IRC (Ping timeout: 244 seconds)20:19
DvorkinDmitrySaur[m], yea. thank you20:40
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has quit IRC (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/)20:51
*** frieder <frieder!~frieder@200116b824e0f0815b4798f1139ab50e.dip.versatel-1u1.de> has quit IRC (Remote host closed the connection)20:58
*** mvlad <mvlad!~mvlad@2a02:2f08:400a:ee00:24d7:51ff:fed6:906d> has quit IRC (Remote host closed the connection)22:19
*** florian <florian!~florian@dynamic-002-243-049-011.2.243.pool.telefonica.de> has joined #oe22:47
*** kscherer <kscherer!~kscherer@dsl-173-206-148-172.tor.primus.ca> has quit IRC (Quit: Konversation terminated!)22:59
*** florian <florian!~florian@dynamic-002-243-049-011.2.243.pool.telefonica.de> has quit IRC (Ping timeout: 248 seconds)23:35

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