17 Aug 2022 |
@janne.hess:helsinki-systems.de | in particular I want to check whether a module.build exists | 18:39:31 |
@janne.hess:helsinki-systems.de | * in particular I want to check whether a Build.PL exists | 18:40:21 |
@janne.hess:helsinki-systems.de | got it ;) | 19:14:26 |
stigo |
| 19:15:29 |
stigo | * curl -XPOST https://fastapi.metacpan.org/v1/file/_search -d '{
"query" : { "filtered" : {
"query" : {
"query_string" : {
"query" : "Build.PL",
"fields" : [ "name" ] }
},
"filter" : { "and" : [
{ "term" : { "distribution" : "Module-Build" } },
{ "term" : { "status" : "latest" } }
]}
}},
"fields" : [ "distribution", "name" ],
"size" : 20
}'
| 19:15:33 |
stigo | How did you do it? :) | 19:15:49 |
@janne.hess:helsinki-systems.de | In reply to @stigo:matrix.org How did you do it? :) https://github.com/stigtsp/nix-update-cpan/pull/3/files | 19:16:00 |
@janne.hess:helsinki-systems.de | not sure if this is the cleanest way | 19:16:04 |
stigo | Seems like it | 19:16:22 |
stigo | Easier :) | 19:16:30 |
@janne.hess:helsinki-systems.de | whew :D | 19:16:45 |
@janne.hess:helsinki-systems.de | I guess I only need this then:
figure out and update propagatedBuildInputs, buildInputs, etc
| 19:17:10 |
@janne.hess:helsinki-systems.de | Do you have any pointers? Is there even a way to distinguish between the propagated/regular inputs from the metacpan api? | 19:19:09 |
stigo | Yeah I've done some work on it | 19:19:13 |
stigo | (not committed yet, on the other laptop) | 19:19:25 |
stigo | Hm, was thinking to use checkInputs instead of buildInputs too btw | 19:19:49 |
@janne.hess:helsinki-systems.de | nice, could you share it once you get back to the other machine? :) | 19:19:57 |
stigo | META.json should be correct | 19:19:58 |
stigo | Yes ofc :) | 19:20:09 |
@janne.hess:helsinki-systems.de | Does that matter? I thought the doCheck is true by default | 19:20:17 |
stigo | Added you as collaborator on the repo btw if thats useful | 19:20:20 |
stigo | Not for cross builds for instance | 19:20:26 |
@janne.hess:helsinki-systems.de | hmmm I think I'll have to wrap my head around it more | 19:21:26 |
stigo | But for perl runtime dependencies you want them in propagatedBuildInputs | 19:21:28 |
stigo | .. but cross builds have problems with Module::Build and friends anyway, have a rough idea on what to try now that 5.36.0 is in | 19:22:03 |
@janne.hess:helsinki-systems.de | In reply to @stigo:matrix.org .. but cross builds have problems with Module::Build and friends anyway, have a rough idea on what to try now that 5.36.0 is in Oh that would be awesome! Although our dependency on Module::Tiny should shrink a lot when we automatically use buildPerlPackage | 19:22:47 |
stigo | have do do some $dayjob stuff now, (or $nightjob I guess it is soon) but can look at things a bit tomorrow eve | 19:23:18 |
@janne.hess:helsinki-systems.de | In reply to @stigo:matrix.org But for perl runtime dependencies you want them in propagatedBuildInputs so prereqs->configure + prereqs→build + prereqs→test into checkInputs and prereqs→runtime into propagatedBuildInputs ? | 19:23:41 |
@janne.hess:helsinki-systems.de | In reply to @stigo:matrix.org have do do some $dayjob stuff now, (or $nightjob I guess it is soon) but can look at things a bit tomorrow eve Thanks, have some day-fun :) | 19:24:00 |
stigo | probably build+configure into buildInputs | 19:24:05 |