| 9 Mar 2024 |
hexa | the obvious fix is calling chmod +x | 19:39:26 |
hexa | but I wonder if I can copy smarter 🤔 | 19:40:01 |
Lily Foster | tbh just cp it normally then chmod u+w -R | 19:40:22 |
Lily Foster | or play with rsync idk | 19:40:25 |
raitobezarius | lndir can also be a solution | 19:40:32 |
raitobezarius | Yeah +1 rsync | 19:40:36 |
@kyle:iteratee.net | Shouldn't it have the +x bit when it gets copied? | 19:40:45 |
hexa | fine | 19:40:46 |
hexa | not with --no-preserve=mode 🙂 | 19:40:56 |
hexa | u+w recursively is probably the best way | 19:41:04 |
@kyle:iteratee.net | I used rsync with the chmod instead of copy to solve exactly this problem. | 19:41:56 |
@kyle:iteratee.net | * I used rsync with the chmod flag instead of copy to solve exactly this problem. | 19:42:09 |
Lily Foster | rsync -rlE would probably do it too | 19:42:50 |
Lily Foster | i think | 19:42:53 |
Lily Foster | idk rsync scares me | 19:42:56 |
hexa | I think rsync might be overkill 😄 | 19:43:04 |
@kyle:iteratee.net | But it's a one-liner. | 19:43:26 |
Lily Foster | nah, we need to make as many packages have rsync as a build-time reverse dep as possible (/s) | 19:43:34 |
Lily Foster | * nah, we need to make as many packages have rsync as a build-time reverse deps as possible (/s) | 19:44:20 |
Lily Foster | In reply to @lily:lily.flowers nah, we need to make as many packages have rsync as a build-time reverse deps as possible (/s) (for context, iirc the last time an rsync bump erroneously went to master instead of staging was because the PR author didn't expect it to have thousands of reverse deps) | 19:45:02 |
@kyle:iteratee.net | Once you give up on a one-liner, cp and then chmod has the nice property of being simple and obvious (to a reader) | 19:45:04 |
hexa | In reply to @kyle:iteratee.net But it's a one-liner. yeah, but it increases the closure 🙂 | 19:50:08 |
hexa | In reply to @kyle:iteratee.net But it's a one-liner. * yeah, but it increases the build closure 🙂 | 19:50:15 |
Lily Foster | rsync in linux stdenv when | 19:50:36 |
Qyriad | can't install do this? | 19:50:58 |
Qyriad | I can never remember exactly what intersection of functionality install has, but it can copy and set permissions at the same time at least | 19:51:22 |
Lily Foster | In reply to @qyriad:katesiria.org I can never remember exactly what intersection of functionality install has, but it can copy and set permissions at the same time at least it needs to be able to ignore some perm bits but keep the execute bits the same (rather than setting a static mode). i forget if it supports that, but if so that would definitely be the best idea | 19:52:18 |
Qyriad | I don't see it in the man page 😔 | 19:54:26 |
@kyle:iteratee.net | I think you can use find to locate things by their permissions. You could use that along with `--no-preserve=mode` to add back +x bits. | 19:58:04 |
@kyle:iteratee.net | (find things in source with +x bits and then arrange to chmod the same thing in destination) | 19:59:13 |