You are not logged in.

#1 2019-09-19 09:45:25

TomTsagk
Member
From: Leamington Spa, UK
Registered: 2016-01-28
Posts: 2
Website

[SOLVED] How to handle compile-only dependencies on an AUR package?

Hi all,

I'm developing a project, and was thinking of uploading to the AUR. I've uploaded another project of mine there in the past, so I have some experience.

However, for this project to be compiled, it needs some specific packages installed, but once its compiled, it doesn't need those packages anymore. My concern is, if I put those packages as dependencies, that means someone trying to install it will get those packages as well, and they will remain installed on their system afterwards, assuming they weren't installed already. Is there a way to declare them as "compile-time" dependencies, so that they are not needed after the main package has been installed?

I'm not sure if it matters, but the project is some form of a custom programming language, and it needs the `flex` and `bison` packages.

Last edited by TomTsagk (2019-09-19 10:14:45)

Offline

#2 2019-09-19 10:10:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,134
Website

Re: [SOLVED] How to handle compile-only dependencies on an AUR package?

"compile-time" dependencies are declared as "makedepends" in the PKGBUILD.

man PKGBUILD | less -p makedepends

However, both flex and bison are part of the base-devel group, and are therefore expected to be installed on any system building AUR packages. You don't need to list them as makedepends.

https://wiki.archlinux.org/index.php/Ar … requisites


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-09-19 10:15:30

TomTsagk
Member
From: Leamington Spa, UK
Registered: 2016-01-28
Posts: 2
Website

Re: [SOLVED] How to handle compile-only dependencies on an AUR package?

Thanks WorMzy, that was exactly what I was looking for! I've marked my post as solved.

Offline

Board footer

Powered by FluxBB