You are not logged in.

#1 2016-10-26 10:54:10

FlowIt
Member
Registered: 2014-10-25
Posts: 243

[Solved] Building packages without installing build dependencies

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

#2 2016-10-26 11:38:27

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [Solved] Building packages without installing build dependencies

Offline

#3 2016-10-26 11:44:08

mpan
Member
Registered: 2012-08-01
Posts: 1,680
Website

Re: [Solved] Building packages without installing build dependencies

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

#4 2016-10-26 12:55:01

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: [Solved] Building packages without installing build dependencies

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

#5 2016-10-26 14:20:04

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [Solved] Building packages without installing build dependencies

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

#6 2016-10-26 16:36:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Building packages without installing build dependencies

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB