haikuporter
haikuporter copied to clipboard
Infinite loop when activating/deactivating a package
Hi!
I'm trying to build a certain recipe, but it seems like it gets stuck in an infinite loop here:
https://github.com/haikuports/haikuporter/blob/5fc67389ac0cb7b34dfba1ada14aa501e01649c3/HaikuPorter/BuildPlatform.py#L193
Would it be possible to limit this in say a for l in xrange(50)
so that it won't run forever?
Yes it happens quite often here, either on startup or after a build... I usually work around by touching or removing the file in question but it's painful.
I also get these infinite loops very often. I think I get these randomly. I just hit Ctrl-C and retry ;-) Sometimes I have to retry several times before it really starts building. Maybe I should try and see if touch has a positive impact.
I forgot to mention that sometimes the infinite loop happens after the package(s) is/are built. So if haikuporter has been running for a while before it starts looping I always have a look in work-*/hpkgs/ (right after hitting Ctrl-C) to see if the hpkg files were left in that directory. haikuporter normally moves the hpkg files from that directory to /path/to/haikuports/packages/ at the end, unless it gets stuck in the infinite loop. So if you forget to move manually the hpkg files from that directory to the /path/to/haikuports/packages/ directory and then relaunch haikuporter for that recipe then the hpkgs in work-*/hpkgs/ are deleted... and you have to cross your fingers again ;-)
Well, apparently capital letters get packages to get stuck on activating....
Just renamed my package to use lowercase and it works now.
Major thanks to @R167!