Summary: | dev-perl/PortageXS-0.02.09 broken searchPackage in Core.pm | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ralph Sennhauser (RETIRED) <sera> |
Component: | Current packages | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | perl |
Priority: | High | Keywords: | PATCH, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/gentoo-perl/PortageXS/issues/1 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | fix |
Description
Ralph Sennhauser (RETIRED)
![]() Created attachment 187131 [details, diff]
fix
Not really sure why this happens on your system. The function reads the directory and passes the current work-path do the inner loop that should exist at the time of execution. (Yep.. there might be a problem when a second task deletes directories in the directory the program currently walks thru.. that should be fixed - no doubt.) Could you please elaborate? I fail to see why this happens on your system. As you wrote a patch that fixes the problem for you I guess at least you do. :) Thanks in advance! (In reply to comment #2) > Not really sure why this happens on your system. The function reads the > directory and passes the current work-path do the inner loop that should exist > at the time of execution. It does exist. But /usr/portage/package doesn't allow read access to normal user. So that's why it fails in my case. >(Yep.. there might be a problem when a second task > deletes directories in the directory the program currently walks thru.. that > should be fixed - no doubt.) That's another possible error that may arise. > Could you please elaborate? I fail to see why this happens on your system. As > you wrote a patch that fixes the problem for you I guess at least you do. :) Even not knowing the cause writing this patch was simple.:) So if you think just skipping is not appropriate than implement a proper error handling here. > > Thanks in advance! > I have to thank you for putting energy into a portage perl api. A partial fix for this problem has been implemented in yet-to-hit portage 0.2.12. Its not perfect, but its a better solution for "now" than "just bail out for no good reason". I know there's probably still some objections, because $categories should still do *something* if they can't be traversed, however, thats not the dominant case, and will implement something better when the code is in better shape. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5678f9452dff2c54da4a50cad1ff81ce097fddf commit b5678f9452dff2c54da4a50cad1ff81ce097fddf Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2021-06-06 17:21:57 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-06-06 17:21:57 +0000 dev-perl/PortageXS: Remove last-rited pkg Closes: https://github.com/gentoo/gentoo/pull/21103 Closes: https://bugs.gentoo.org/264680 Closes: https://bugs.gentoo.org/289524 Closes: https://bugs.gentoo.org/332611 Closes: https://bugs.gentoo.org/473394 Closes: https://bugs.gentoo.org/613114 Closes: https://bugs.gentoo.org/625536 Closes: https://bugs.gentoo.org/671244 Closes: https://bugs.gentoo.org/688238 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org> dev-perl/PortageXS/Manifest | 2 - dev-perl/PortageXS/PortageXS-0.02.10-r4.ebuild | 54 ------ dev-perl/PortageXS/PortageXS-0.2.10-r5.ebuild | 60 ------- dev-perl/PortageXS/PortageXS-0.2.12-r1.ebuild | 63 ------- .../files/0.02.12/PortageXS-0.02.12-prefix.patch | 198 --------------------- .../files/PortageXS-0.02.10-portage_path_fix.patch | 86 --------- .../PortageXS/files/PortageXS-0.02.10-prefix.patch | 137 -------------- dev-perl/PortageXS/metadata.xml | 17 -- profiles/package.mask | 11 -- 9 files changed, 628 deletions(-) |