remove package from working copy of the chroot #144
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Corresponding to the -i option it would be a great feature to be able to uninstall a certain pkg from the chroot.
At the moment when I build pkg with conflicting dependencies one after the other I have to delete the chroot completely - or am I missing something here?
Created by: NuLogicSystems
I don't remember an -i option, unless you mean the -n option (Install and run namcap check)?
You could always use the -c option (Recreate chroot) or the -w option (Clean up).
man buildpkg lists
-i PKG Install a package into the working copy of the chroot.Does -c not delete the whole chroot? What exactly will -w do?
Created by: philmmanjaro
A remove function we don't have yet ...
Yes, that's exactly what I mean :)
Created by: NuLogicSystems
Oops, I apologize. I was looking at the wiki:
https://wiki.manjaro.org/index.php?title=Manjaro-tools#buildpkg
I usually just use -p to build packages.
Created by: udeved
Why do you want to remove a package from chroot?
Can you explain your problem with example?
Example: I build conky-i3 which requires conky.
After that I want to build lua-clock-manjaro which requires conky-lua, which conflicts with conky.
I have to delete the chroot to be able to build it.
Created by: udeved
Yes, recreate chroot is probably best in this case.
Btw, in my view, this can be solved in the conky-lua PKGBUILD eventually, by providing conky.
Unfortunately not, because conky-lua still uses 1.9 and conky is at 1.10 with new config-syntax 😛 So that means to provide something like
buildpkg -R conkyis not feasilbe? Like, just the opposite function of -i ? Complicated?Would you mind pointing me to the place in the code where the -i option lives?
Created by: udeved
Its doable, but the devil is in the details what pacman removal args to use.
Simple _R option could generate errors if other stuff depend on the package.
So, the clean solution is indeed recreating choot in my view.
We'd kind of pollute the chroot I thnk, undermining the purpose of building in chroot, and the chroot could end up like a normal system when makepkg is run.
Yes I understand :-) thanks!
Created by: udeved
The only case we have to remove a package from chroot is when building eudev stuff, so libsystemd has to go from chroot. I am thinking about a way to improve this with fake groups.