You are not logged in.

#1 2016-10-03 05:36:43

fusion809
Member
Registered: 2015-06-19
Posts: 87

How to get makepkg to ignore Mercurial SSL certificates issues

I have git cloned the textadept AUR repository and ran

makepkg -sifC --noconfirm

in it, and it returns the error:

==> Making package: textadept 9.0-1 (Mon Oct  3 15:30:14 AEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning textadept hg repo...
(could not negotiate a common security protocol (tls1.1+) with foicica.com; the likely cause is Mercurial is configured to be more secure than the server can support)
(consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.foicica.com:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
(see https://mercurial-scm.org/wiki/SecureConnections for more info)
abort: error: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:590)
==> ERROR: Failure while downloading textadept hg repo
    Aborting...

Now I know how to clone the textadept mercurial repo without this error (namely by passing the --insecure flag to hg clone), but I don't know how to get past this makepkg error. Any ideas?

Thanks for your time

Last edited by fusion809 (2016-10-03 05:47:33)

Offline

#2 2016-10-06 10:36:00

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: How to get makepkg to ignore Mercurial SSL certificates issues

I don't use hg myself, but the library responsible for hg in makepkg is a shell script, /usr/share/makepkg/source/hg.sh. I didn't ponder over the issue too long, but I see no obvious reason, why you shouldn't be able to influence hg with its config file, because makepkg does all of this with the permissions of the user calling it. According to the wiki. Mercurial is being configured in ~/.hgrc.

EDIT: To make a wild statement, I am an advocate of reading code to solve problems. I have made it a point to at least try to read the file installed on the system. If it's a bash script, hooray. If not, well, that's why it's open source.

Last edited by Awebb (2016-10-06 10:39:52)

Offline

Board footer

Powered by FluxBB