You are not logged in.

#1 2016-03-26 10:27:31

bstaletic
Member
Registered: 2014-02-02
Posts: 658

[SOLVED] How to build just one package in a split package PKGBUILD?

Hello,

Before pacman 5.0 I was able to use "--pkg" to tell makepkg which of the packages to build. This was great as I was able to build just the kernel without the headers and there were other cases, but the kernel was the most common. Does the new makepkg not have that option, or am I missing something big?

I guess this has been asked before, but I was not able to find the answer. So if it's been asked just direct me to the thread. Thanks.

Last edited by bstaletic (2016-03-26 19:12:11)

Offline

#2 2016-03-26 10:35:33

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

Moving to "Creating & Modifying Packages".

Offline

#3 2016-03-26 10:43:21

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

The option to build only one package has been removed. See the NEWS file.

Offline

#4 2016-03-26 10:53:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

Edit the PKGBUILD removing the array and only keeping the one you want I guess hmm


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2016-03-26 10:59:26

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

The original ML thread is here: https://lists.archlinux.org/pipermail/p … 20347.html and another, more recent, thread on it is here: https://lists.archlinux.org/pipermail/p … 20856.html


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2016-03-26 19:11:40

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

Alright, I guess I'll have to manually edit every PKGBUILD I don't want to build everything. I'll check the ML later. Thanks everyone, marking the thread as solved.

Offline

#7 2016-03-26 19:27:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

Just to clarify, --pkg never stopped things building -- there's only ever been one build function. It simply only did the packaging step for one (or more) packages.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-03-26 19:52:06

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

WorMzy,

Sure, but on an 8 year old laptop even the packaging takes some time. The --pkg also saved me from running some rm commands as the laptop is quite limited when it comes to available space considering the fact I'm forced to have it with that other OS and some fairly large propriatery software.

Offline

#9 2016-03-26 21:01:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

No worries, I'm not attacking your rationale.

If you need to edit a lot of frequently-updated PKGBUILDs, you might want to look into automating the editing with something like customizepkg.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2016-03-27 00:01:21

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] How to build just one package in a split package PKGBUILD?

I know you just wanted to make crystal clear what --pkg does. I was just saying it can be useful. There are even more reasons to use it (anyone interested should read the ML posted above) and, as far as I can tell, it only breaks the badly writen PKGBUILDs, though Alan would disagree.

I will look into customizepkg and some other possible alternatives. I once had tried one of those and, for some reason, I didn't like it.

Offline

Board footer

Powered by FluxBB