[buildpkg] Add local packages to the chroot #98
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#98
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?
Created by: Kirek
I want to add the option to add local packages to the chroot when building packages, but before starting I want to ask which way should we do it.
Basically this functions already exist with mkchrootpkg with the -I option, but buildpkg doesn't support it.
With devtools the extra arguments (options after --) that you pass with "unstable-x86_64-build" command are passed to the mkchrootpkg functions, but with buildpkg we pass them to makepkg.
So two options:
So any thoughts which way we should go?
Created by: udeved
buildpkg can install built package in the chroot with -n switch, which also runs a namcap check.
I think what you want is already there. :)
In mkchrootpkg:
You mean you want to specify a path to a package you want to install in chroot, ie a pkg which is not (yet) in repo? I didn't see any usecase for -I, if you can install any built pkg in chroot.
Created by: Kirek
Yes, its about installing and already built package in the chroot that you only have locally.
Using -n is useful if you do that in succession, but if you have a clean chroot and the package that you want to install, using the -n route would mean rebuilding a package that you already have.
It's not something I always use but from time to time I need to.
Also the functionality is pretty much there, there only thing left to do is pass the argument to mkchrootpkg.
Created by: udeved
Its ok, we can do a switch wrapper.
I just don't get use case, so its curiosity.
If you have clean chroot, say you want to build lxqt.
You would first have to install liblxqt, after you installed liblxqt, you don't clean chroot, you use the chroot for other packages which need liblxqt and so on. Next time you build lxqt, liblxqt would be in repos.
Its about setting up a build root quickly? I don't get the purpose of installing a local package, except it the initial build before the package goes in repo.
Created by: Kirek
Well for use cases the other day I needed to compile firefox-kde with the nss package that was in arch testing so I downloaded the nss package and used mkchrootpkg with the -I option to do it.
This is not something I usually need, 99% of times I compile a package everything is already in the repos, or can be built in chain, but the rare case that I need it I prefer to be able to use buildpkg directly rather than mkchrootpkg.
Created by: udeved
I haven't tested this.
Does it work @Kirek ?
Can we close this?
Created by: Kirek
It works.