You are not logged in.
How do i put different sources for each package in a split package?
Also i couldn't find any documentation on the build function for split packages, Will it be same for all the split packages?
Thanks
Offline
if you have different sources for each split package, they should be different packages. And there is only one build function in a PKGBUILD.
Offline
Ok but if theres only one build function does that mean all the parts have to be built irrespective of the parts chosen?
Offline
What parts are you talking about? Split packages are about splitting one build into multiple packages. If you have more than one thing that needs to be built, ie the different sources you mentioned, they should be separate packages.
Offline
Split packages are only for cases when a single source is used to build multiple packages at once (e.g. vim and gvim are built from the same source).
If you want to re-use common sources between packages that also rely on non-common sources, set the SRCDEST variable in /etc/makepkg.conf.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
As always, an actual example would help.
Offline
Thanks for your replies and sorry for the late answer.
I get the source part.
but what about the build part.
eg. if i already have vim installed and then want to install gvim.
but since the package has only one build function does it mean that both vim and gvim will get built even though i am only installing gvim.
Offline
Well using gvim (in Extra) as an example, gvim includes vim. As such it conflicts with the standalone vim package.
Offline
eg. if i already have vim installed and then want to install gvim.
but since the package has only one build function does it mean that both vim and gvim will get built even though i am only installing gvim.
--pkg <list>
Only build listed packages from a split package.
Offline
In that case "build" certain packages means "make the actual package". There is a single build function, everything gets built together.
Offline
In that case "build" certain packages means "make the actual package". There is a single build function, everything gets built together.
The finer distinction between building and making is, alas, still none the clearer for me...
makepkg runs `make` on only the package selected with the --pkg flag, but both packages (in the case of the vim PKGBUILD) get built?
Offline
makepkg runs build() always. If you use `--pkg p2' then makepkg skips package_p1() and only calls package_p2().
Offline
What is the point of building the unwanted package since it will only take resources
Offline
I will leave that to the devs.
I don't know if it's a case of "no one has implemented split build() functionality yet" or if there is some specific reasoning against it.
Last edited by tdy (2013-01-28 00:07:49)
Offline
split build == different PKGBUILDs
Edit:
And...
I can adjust the package_pkg2() function and run this just to repackage pkg2:
makepkg -R --pkg pkg2
Offline
Yes that's what i'm not understanding, if they are different packages then why have a single build function for them?
Offline
I will take gcc as an example.
Building gcc should be done at the same time for all languages. E.g. you can not build the ada stuff completely separately. But it does make sense to split the components up for install.
Same story for libreoffice.
Offline
Ok so even though i don't need to install them all to work but they cannot be built seperately.
and if they can be built separately they should not be in a split package even though they might share the same source.
Is that right?
Offline
Seems about right.
Offline
Thanks for taking the time to explain it to me.
Offline