Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2016-09-26

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:22 Big_G joined #darcs
02:25 mizu_no_oto joined #darcs
05:13 diskie joined #darcs
05:16 byorgey_ joined #darcs
05:16 jorey joined #darcs
05:16 dleverton_ joined #darcs
05:16 tg` joined #darcs
05:20 ReyuZenfold joined #darcs
05:20 carter-z- joined #darcs
05:20 vikraman_ joined #darcs
05:20 codolio joined #darcs
05:20 maerwald_ joined #darcs
05:22 kaol joined #darcs
05:28 MasseR joined #darcs
07:46 Weltraumschaf joined #darcs
08:32 gal_bolle joined #darcs
09:33 tg joined #darcs
11:28 mizu_no_oto joined #darcs
11:30 mizu_no_oto joined #darcs
11:39 ng0 joined #darcs
13:04 Big_G joined #darcs
14:44 dolio joined #darcs
17:03 amgarchIn9 joined #darcs
18:35 Weltraumschaf joined #darcs
19:16 lfam joined #darcs
19:16 lfam Hi, I'm testing a distro package of darcs. Can someone recommend an HTTPS repo that I can test the package with?
19:26 fr33domlover lfam, i think https://darcs.net should work
19:26 fr33domlover if not, go to http://hub.darcs.net and pick any repo you like
19:27 lfam https://darcs.net does not appear to exist for me
19:27 fr33domlover lfam, ah try just http
19:27 fr33domlover i think they don't have TLS
19:27 lfam Right, I'm trying to debug HTTPS connections
19:27 fr33domlover lfam, i have TLS if you specifically want HTTPS
19:28 lfam For a darcs repo? I'd like to try cloning it a few times
19:29 fr33domlover try https://dev.seek-together.space/s/fr33domlover/r/vervis
19:29 fr33domlover lfam, ^
19:30 fr33domlover actually i'm not sure cloning over HTTPS will work, i don't remember if I enabled it
19:31 lfam If I do `curl https://dev.seek-together.space/s/fr33domlover/r/vervis`, it works.
19:33 lfam If I set 'DARCS_GET_HTTP=/usr/bin/curl', and then `darcs get https://dev.seek-together.space/s/fr33domlover/r/vervis`, I get "darcs failed:  Not a repository: https://dev.seek-together.space/s/fr33domlover/r/vervis (Peer certificate cannot be authenticated with given CA certificates)"
19:33 ng0 so i just had false information with pijul's darcs repo which failed.
19:33 lfam and those are the same curl binaries
19:33 fr33domlover lfam, iirc i use Let's Encrypt there
19:33 ng0 earlier and through search I had the impression that there is no https in darcs.
19:34 fr33domlover maybe your system doesn't have it installed
19:34 fr33domlover (i mean the required CA)
19:35 lfam For the first command, the certificate is validated properly. Let's Encrypt is in basically all certificate stores, since it is cross-signed by a more established CA
19:36 lfam And I use LE too. I'm sure it works for me :)
19:36 fr33domlover ng0, HTTPS clone /does/ work
19:36 fr33domlover i'm able to clone that repo i linked
19:36 ng0 so does https://pijul.net or what their repo was work for you?
19:36 ng0 sorry, .org
19:36 lfam Okay, this is weird. I can verify with strace that when using darcs with curl as the HTTP handler, the certificate store is never opened
19:37 lfam fr33domlover: How do you get your darcs executable? Distro package?
19:37 fr33domlover ng0, yes it works
19:39 fr33domlover lfam, I use `stack install darcs` because I want to use 2.12, but 2.8.4 should work too if you want to use a distro package. it can clone HTTPS as well
19:39 lfam I am reviewing a distro package :)
19:39 fr33domlover you don't need to curl anything though
19:40 fr33domlover just open a terminal and `darcs clone https:// `
19:40 lfam Okay, I think I need to read the manual some more. I was using `darcs get`
19:40 fr33domlover if there are cert issues, maybe your cert store is outdated
19:40 fr33domlover lambdabot, `darcs get` is iirc a deprecated synonym
19:40 fr33domlover oops i mean lfam
19:41 ng0 oh... ok
19:42 lfam I see the problem now. My distro's curl package is not finding the certificate store. Even though I had set DARCS_GET_HTTP=/usr/bin/curl, this WIP darcs package was still using my distro's curl. Thanks for your help.
19:43 lfam To clarify, '/usr/bin/curl' is from a different distro than the one I am working on
20:14 gh_ joined #darcs
20:15 gh_ hi
20:15 gh_ lfam, darcs 2.12 no longer supports the DARCS_GET_HTTP variable
20:16 gh_ I currently do not know whether darcs supports HTTPS out of the box
20:17 lfam gh_: I was just about to ask about that. I couldn't get darcs to respect it
20:17 lfam Using strace on a darcs linked against curl, I do not see libcurl trying to open the certificate store
20:18 gh_ lfam, the idea is that we want darcs to support protocoles such as HTTPS (or weirder stuff) out of the box, or not at all
20:18 lfam Right, I thought that putting the URL handlers in environment variables left too much for the user to get wrong :)
20:20 ng0 so my observations while packaging it were correct.
20:20 ng0 it is not clear wether it supports https or not.
20:21 ng0 in practice it looked non-functional for me, but functional with http.
20:21 lfam fr33domlover says it works for them
20:21 ng0 without a version.
20:21 ng0 i packaged 2.12.4 or what the newest was.
20:22 lfam Well, the good news is that it fails rather than silently downgrading to HTTP
20:22 fr33domlover I tried cloning HTTPS with 2.12 and 2.8.4
20:22 fr33domlover it worked both times
20:22 lfam Hmm
20:22 ng0 could the mistake be in the dependency grpah?
20:23 ng0 or the flags i pass?
20:23 fr33domlover oh wait, i tried 2.10.3, not 2.12
20:23 lfam fr33domlover: Where does your libcurl come from, assuming that your darcs using libcurl?
20:23 lfam Ah
20:23 lfam Okay
20:23 fr33domlover lfam, but i don't think 2.12 would /remove/ HTTPS support...
20:23 fr33domlover it's a feature, not a bug
20:23 fr33domlover lfam, probably distro package
20:23 fr33domlover I use Trisquel 7
20:23 lfam Okay
20:25 fr33domlover lfam, but I don't think curl has its own TLS implementation and cert store...
20:25 fr33domlover it probably use openssl or gnutls for that
20:25 lfam No, you have to tell curl where to look
20:26 fr33domlover lfam, you just `darcs clone https://...` and it should work
20:26 ng0 it owuld be useless to ask Nix how they solved darcs packaging. I've looked at their haskell packages and they wouldn't be of any help to us.
20:26 fr33domlover you don't need to use curl at all
20:26 ng0 I did not use clone, i used get.. maybe that was my problem.
20:26 lfam fr33domlover: Does darcs have its own HTTP client? It looks as if it is using libcurl under the hood
20:26 fr33domlover ng0, should be exactly the same
20:27 fr33domlover lfam, i dunno. maybe gh_ knows
20:28 lfam The Debian package does depend on curl
20:28 ng0 and gentoo and arch
20:30 ng0 well i'm of no help, i think you can work it out somehow, if you don't and use the mailing list of darcs, CC me if there's anything you need from my side.
20:35 gh_ ng0, it can be build without curl, in which case it only depends on the HTTP library ( http://hackage.haskell.org/package/HTTP ), but by default it should be build with curl
20:35 gh_ because it brings pipelining, which is faster for transmitting lots of files via http
20:36 ng0 http://lists.gnu.org/archive/html/guix-devel/2016-09/msg01832.html this is my last version
22:16 mizu_no_oto joined #darcs
23:34 mizu_no_oto joined #darcs

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary