You are not logged in.

#1 2019-10-22 16:24:43

zimbi
Member
Registered: 2016-04-09
Posts: 6

[SOLVED] How to set curl options in PKGBUILD

Hi,

I'm wokring on my first PKGBUILD and getting the following error when running makepkg -si

url: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

This can be overridden by using curl -k but I do not see a way to tell curl to use specific options in the PKGBUILD file.

Frank

Last edited by zimbi (2019-10-23 07:19:41)

Offline

#2 2019-10-22 16:38:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,773

Re: [SOLVED] How to set curl options in PKGBUILD

man makepkg.conf wrote:

DLAGENTS=('protocol::/path/to/command [options]' ...)
           Sets the download agents used to fetch source files specified with a URL in the PKGBUILD(5) file. Options can be specified for each command as well, and any protocol can
           have a download agent. Any spaces in option arguments are required to be escaped to avoid being split. Several examples are provided in the default makepkg.conf.

           If present, %u will be replaced with the download URL. Otherwise, the download URL will be placed on the end of the command. If present, %o will be replaced with the
           local file name, plus a “.part” extension, which allows makepkg to handle resuming file downloads.

Whether you can - or should - do that in the PKGBUILD itself I'm unsure of.

Offline

#3 2019-10-22 18:48:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 22,272
Website

Re: [SOLVED] How to set curl options in PKGBUILD

Much easier would be to not use https but to just use http.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-10-22 23:11:37

fukawi2
Administrator
From: .vic.au
Registered: 2007-09-28
Posts: 5,757
Website

Re: [SOLVED] How to set curl options in PKGBUILD

You shouldn't be setting this in the PKGBUILD. It is up to the user if they want to accept a certificate that can't be verified.

If they do want to, then they can edit their ~/.makepkg.conf file to adjust DLAGENTS= appropriately.

Offline

#5 2019-10-23 07:19:05

zimbi
Member
Registered: 2016-04-09
Posts: 6

Re: [SOLVED] How to set curl options in PKGBUILD

Thanks, all, using http to fetch the file.

Offline

Board footer

Powered by FluxBB