You are not logged in.

#1 2020-08-05 17:36:17

Toad39
Member
Registered: 2020-07-06
Posts: 60

Have Makepkg Resolve Dependencies From Source

Hello,
When I run `makepkg -s`, dependencies in the repos are automatically installed through binary. However, I would like to build the dependencies from source as well as the package, similar to how `emerge` does it. Is there some kind of option to automate this process that comes with libalpm? Or would my best option be to make a C program to do it myself?

Thank you for your time.

Offline

#2 2020-08-05 17:59:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: Have Makepkg Resolve Dependencies From Source

If you actually want to rebuild repository packages (why?) you're likely to have to do that yourself, see https://wiki.archlinux.org/index.php/Arch_Build_System for some existing helper tools.

If this is about getting AUR dependencies resolved as well, that's what AUR helpers can help with, make sure you heed the warning and understand how makepkg works first.

If you want to actually turn Arch into a source based distro, while I know a few that do so, you will likely be more generally happy by sticking with a distro designed for the use case, e.g. gentoo

Offline

#3 2020-08-05 20:03:38

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Have Makepkg Resolve Dependencies From Source

V1del wrote:

If you want to actually turn Arch into a source based distro, while I know a few that do so, ...

Yes, this is pretty much what I was looking for. Could you list or provide references to those? I'll also look into source-based distros.

Offline

#4 2020-08-05 22:19:07

merlock
Member
Registered: 2018-10-30
Posts: 262

Re: Have Makepkg Resolve Dependencies From Source

Toad39 wrote:

Could you list or provide references to those? I'll also look into source-based distros.

DDG


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#5 2020-08-05 23:20:02

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Have Makepkg Resolve Dependencies From Source

merlock, I think Toad39 is asking V1del for references to people here who build all Arch packages from source. If you can get those references from ddg, please share the search you used.

Toad39, for more about source-based distros, check here: https://wiki.archlinux.org/index.php/Ar … urce-based

I have used Gentoo, CRUX, and LFS. CRUX is my favorite of the three.

Offline

#6 2020-08-06 00:32:14

merlock
Member
Registered: 2018-10-30
Posts: 262

Re: Have Makepkg Resolve Dependencies From Source

2ManyDogs wrote:

I think Toad39 is asking V1del for references to people here who build all Arch packages from source.

If that's the case, then I apologize for the misinterpretation.


Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
It's a big club...and you ain't in it -- George Carlin
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

#7 2020-08-06 16:54:23

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Have Makepkg Resolve Dependencies From Source

Sorry, I didn't understand V1Del's statement. I thought they meant tools that do it, not people.

Offline

#8 2020-08-06 18:51:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: Have Makepkg Resolve Dependencies From Source

I did indeed mean people and I don't remember names offhand, I just know some mentions here and there. It's certainly doable, as mentioned, ABS is your friend and afaik some of the AUR helpers provide this as a byproduct of what they are doing.

It's certainly doable and I do know of people that have done it, but I'd consider it more cumbersome than just using something that's specifically tailored to do this.

But you should read the link on ABS and then you'll see that it's definitely doable, with some small scripting glue, e.g. at the very least combining asp and makepkg or so.

Offline

#9 2020-08-06 20:38:40

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: Have Makepkg Resolve Dependencies From Source

There was pacbuilder, but I don't know if it still works and it did some stuff with the arch mirrors and the package RPC interface.
https://github.com/arfoll/pacbuilder


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB