Im trying to modify the uzbl pkgbuild to build the new 2011.02.15 uzbl (i know im impatient) but I get this error
┌─[Arch]─[~/Build/uzbl] └─╼ makepkg -s ==> Making package: uzbl 2011.02.15-1 (Fri Feb 18 14:00:15 EST 2011) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies... ==> Retrieving Sources... -> Downloading uzbl-2011.02.15.tar.gz... --2011-02-18 14:00:15-- http://github.com/Dieterbe/uzbl/tarball/2011.02.15 Resolving github.com... 220.127.116.11 Connecting to github.com|18.104.22.168|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://github.com/Dieterbe/uzbl/tarball/2011.02.15 [following] --2011-02-18 14:00:15-- https://github.com/Dieterbe/uzbl/tarball/2011.02.15 Connecting to github.com|22.214.171.124|:443... connected. ERROR: certificate common name “*.github.com” doesn’t match requested host name “github.com”. To connect to github.com insecurely, use ‘--no-check-certificate’. ==> ERROR: Failure while downloading uzbl-2011.02.15.tar.gz Aborting... ┌─[Arch]─[~/Build/uzbl] └─╼
So I guess my question is where might I use the --no-check-certificate option? At first I thought it meant makepkg, but makepkg just complains its an unrecognized option.
You need to add it to DL_AGENTS in /etc/makepkg.conf. Like this:
'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
ahh , I see, thank you
Wait, wtf, I just went to modify it, and found I already have that line with the --no-check-certificate option already set for https
OK I got it, makepkg was using the regular http, and wget was redirected to https afterward but still using the regular http options from makepkg. Simply had to change http to https in pkgbuild
Last edited by tjwoosta (2011-02-18 20:26:37)
Alternatively, you can use curl which will follow redirects across protocols and won't throw cert errors:
'ftp::/usr/bin/curl -C - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl --compressed -LC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl --compressed -LC - --retry 3 --retry-delay 3 -o %o %u'
Last edited by falconindy (2011-02-18 21:37:21)