haikuports / haikuporter

The tool that builds HaikuPorts recipes.
MIT License
41 stars 44 forks source link

Infinite loop when activating/deactivating a package #102

Open ohnx opened 7 years ago

ohnx commented 7 years ago

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?

mmuman commented 7 years ago

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.

fbrosson commented 7 years ago

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.

fbrosson commented 7 years ago

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 ;-)

ohnx commented 7 years ago

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!

jmairboeck commented 1 week ago

Is this a duplicate of #207 (and thus fixed)?

OscarL commented 1 week ago

FWIW, I still get "waiting for package [...] to be activated/deactivated" occasionally, even after switching to beta5.

Begasus commented 1 week ago

Same here (even had a few occasional ones on 64bit not that long ago), deffenitly not fixed.