You are not logged in.
For example, I want to build gtk from git. Therefore I need to install gobject-introspection. However, I pass the --disable-intospection configure flag so this package is only a build time dependency, not a runtime dependency and I can remove it after I packaged gtk on my own. This process can be automated using makepkg's -r option.
But actually, I don't want to install all the build dependencies whenever I build a package. I just want them in my build dir (on a tempfs). Is this possible? To find the development headers I could simply pass an additional CFLAG adding an include path, but what about libs/pkgconfig?
Last edited by FlowIt (2016-10-26 12:55:15)
Offline
Offline
ABS, also some parts of wiki on clean chroot.
However, you’re trying to take the long and painful way for no gains. Installing the dependency is the easiest way that costs you nothing. makepkg removes them later.
Offline
I feel that the clean chroot approach may not be what I am looking for. I want to use my own build of gcc for example. So everytime I set up the clean chroot I would need to rebuild my whole devtools chain. However, it might be the only sensible approach available. I'll mark this thread as solved anyway, because this was more a question regarding a general approach and not on a concrete issue.
Offline
You don't need to rebuild your tools every time; instead create a PKGBUILD for your devtools chain. Use that to build your tools and create a pacman package.
Whenever you setup a chroot, install that package.
Offline
Take a look at graysky's clean-chroot-manager, it lets you build in a chroot but with the added bonus of having a locally available custom repo containing all previously built packages.
Offline