You are not logged in.
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
Moving to "Creating & Modifying Packages".
Offline
The option to build only one package has been removed. See the NEWS file.
Offline
Edit the PKGBUILD removing the array and only keeping the one you want I guess
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
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
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
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
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
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
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