<troels51>
Hi everyone. While debugging a recipe I was writing, the log warnings were kind of lacking. I was getting a FileNotFoundError(2, "No such file or directory"), which was lacking the path of the file that was missing, tracking this log message brought me to a log line that looked like this 'logger.error(repr(exc))' with exc being the exception being
<troels51>
logged. Changing this to log str(exc) instead of repr(exc) gave me the path information i needed. It looks like it is a general pattern that bitbake logs repr(object) instead of str(object), is there a reason why this is, and would you accept a patch that changes this?
enok has quit [Ping timeout: 252 seconds]
<RP>
troels51: we've had the opposite problem in the past where str(e) has also lost information if I remember rightly. I tink we concluded repr() was safer :/
<RP>
troels51: str is probably more correct looking at the docs but it does sometimes lose info
<troels51>
Hmm, that's unfortunate. Do you know the specifics?
<troels51>
Of what is lost
<RP>
troels51: I don't remember I'm afraid. Probably we needed to know some parameters which repr() did show and str simplified too muc
<troels51>
Looking at the docs, it sounds to me that repr() is meant for printing objects such that they can be parsed again, whereas str() is human readable purposes. But if either looses some amount of information, i won't do a patch changing it :)
prabhakalad has quit [Ping timeout: 248 seconds]
<RP>
troels51: a patch showing where you ran into this would be helpful. I'm wondering whether we print both repr() and str()...
prabhakalad has joined #yocto
<troels51>
Ill put something together monday :). I only ran in to logs with repr, but i there is one __repr__ that forwards to __str__, which i don't think is right
<jonmason>
RP: thanks, I love intermittent issues :)
<RP>
jonmason: I have more if you'd like? :)
<jonmason>
No thanks, assign them all to rburton
<RP>
jonmason: He said something about vacation and not wanting to deprive you of them!
<fray>
Is there a way to know if a multiconfig is available? Is it as simple as checking if something exists in BBMULTICONFIG? (I have a recipe that depends on a multiconfig, but there are cases where the multiconfig might not be added/enabled and I want to throw an error other then multiconfig dependency is bad.
Xagen has joined #yocto
rfuentess has quit [Remote host closed the connection]
Pferreira has joined #yocto
berton has joined #yocto
<RP>
fray: I think checking that should work
<Pferreira>
Hey guys, im trying to send a patch using: git send-email --to openembedded-core@lists.openembedded.org --confirm=always -M -2
jpuhlman has quit [Read error: Connection reset by peer]
jpuhlman has joined #yocto
sakman_ has joined #yocto
sakman has quit [Ping timeout: 260 seconds]
troels51 has quit [Quit: Client closed]
jmd has quit [Remote host closed the connection]
<mischief>
i keep getting errors about cached basehash changes and i kept ignoring it but it's friday so i suppose it's time to find out what's wrong
<mischief>
my recipe (upx-native_4.2.4.bb) https://0x0.st/XOxP.txt, and 'bitbake-diffsigs -t upx-native do_unpack' https://0x0.st/XOxK.txt. i have no clue why these variables would suddenly change :s