You are not logged in.

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

TomTsagk
Member
From: Leamington Spa, UK
Registered: 2016-01-28
Posts: 6
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)


Video game developer, I like making unusual games.
You can find my work at https://darkdimension.org/.

Offline

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

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
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 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.

Online

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

TomTsagk
Member
From: Leamington Spa, UK
Registered: 2016-01-28
Posts: 6
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.


Video game developer, I like making unusual games.
You can find my work at https://darkdimension.org/.

Offline

Board footer

Powered by FluxBB