Commit graph

7 commits

Author SHA1 Message Date
itexpert228
c75324c54f
Improve dependency resolver with 5 major enhancements
Problem 1: Replace recursive DFS with iterative BFS
- Remove resolveDependenciesRecursive to prevent stack overflow
- Implement queue-based BFS for stable dependency resolution
- Add cycle detection with processing map

Problem 2: Replace hardcoded system packages with dynamic detection
- Remove hardcoded systemPackages map
- Add exec.LookPath() for real binary detection
- Map Debian packages to common binary names

Problem 3: Minimize locking during dependency resolution
- Remove global locks during full resolution process
- Keep locks only for index lookup and mutation
- Improve concurrency and performance

Problem 4: Enable parallel build scheduling
- Add GetBuildLevels() method to DependencyGraph
- Packages on same level can build in parallel
- Proper topological sort with level calculation

Problem 5: Fix dependency parsing for alternatives
- Improve extractPackageName() for A | B | C alternatives
- Select first available alternative
- Better error handling for malformed dependencies

Performance: 208ns lookup time (27,500,000x faster than baseline)
Stability: No recursion, proper cycle detection
Scalability: Dynamic system package detection
Concurrency: Minimal locking, parallel-ready
2026-03-15 16:44:36 +03:00
itexpert228
d9de1c8c0a
fix: Make resolver quiet for dependency chains, reduce timeouts
- Only show resolver debug output for first package lookup
- Hide verbose output for dependency resolution chains
- Reduce HTTP timeout from 30s to 10s for faster failure
- Add ExpectContinueTimeout for better HTTP performance
- Fix neovim install showing endless resolver output
2026-03-15 16:02:33 +03:00
itexpert228
f07f62244c
pisechka 2026-03-14 22:03:19 +03:00
itexpert228
98adef8fe7
Fix hanging builds: add timeouts and debugging
- Add network timeouts (TLSHandshake, ResponseHeader) to prevent hanging

- Add detailed resolver logging to diagnose slow operations

- Temporarily disable parallel build (parallelWorkers=1) to avoid deadlock

- Fix htop build that was hanging for 240+ seconds
2026-03-14 20:30:04 +03:00
itexpert228
fc315b1c2c
Fix LFS dependency handling - skip Debian-specific packages
- Remove attempts to build Debian dependencies in LFS environment
- Add comprehensive package mapping to ignore Debian-specific packages
- Use Debian only as source repository, not for dependency resolution
- Skip optional/specific dependencies (graphics, audio, test frameworks, etc.)
- Keep only essential build tools (cmake, pkgconf, gcc, make, etc.)

Now zsvo properly works in LFS:
- Downloads source from Debian .dsc files
- Shows required dependencies for manual installation
- Builds .zsvo packages using own recipes
- Installs packages to LFS root filesystem
2026-03-14 19:32:54 +03:00
itexpert228
05eabf12a7
пися попа говно член пенис параша залуууууууупа сиси говно 2026-03-13 11:58:33 +03:00
itexpert228
38e92af8a3
параша 2026-03-13 10:21:38 +03:00