New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local repo path bug after multiple "solver iterations" #1070
Comments
I can confirm this bug in similar circumstances with pkg 1.3.8_3 :
The actual repo URL is file:///usr/local/poudriere/data/packages/basejail-default
The problem seems to come from pkg_repo_binary_try_fetch() function which has the following code:
The problem is that when another iteration is done that function is called again on the same pkg object. So, %R would expand to PKG_REPOPATH set in the previous iteration. Thus packagesite can be prepended multiple times when its URL scheme is file://. I think that @vstakhov might know how to fix this bug. |
This is still a problem AFAICS. |
It seems that the problem is fixed in 1.4.0 RC. |
I ran into a strange issue that I think is worth reporting. Using FreeBSD-10.1-RC3 and pkg 1.3.8.
I am building a custom pkg using "pkg create".
I have two repos setup. One remote and one local.
The error happened when doing a pkg install against "mypkg" (the custom pkg), which changed the freeradius dependency. I had freeradius-3 installed, and "mypkg" required freeradius-2. pkg correctly detected this problem, which caused a second "solver iteration". At the end of the second solver iteration, the path to my custom "mypkg" pkg in repo "myco-mypkg" was wrong. See the log below...
Notice at the very end: "Failed to open '/tmp/upgrade_mypkg_repo//tmp/upgrade_mypkg_repo/mypkg-7572.txz'". The path should have been simply "/tmp/upgrade_mypkg_repo/mypkg-7572.txz". Somewhere the full path to the package file is not getting generated correctly.
If I fix the dependency problem manually by
Then...
mypkg is correctly installed from the local repo. I believe this was because a second "solver iteration" was not required.
Here is the log after manually correcting the freeradius dependency and installing mypkg from the local repo.
The text was updated successfully, but these errors were encountered: