libera/#devuan-dev/ Monday, 2025-01-27

gnu_srsHello, now it's time to reveal I've created a patched sysvinit not depending on hardcoded paths: anybody interested?00:46
onefangStandalone and statically linked you mean?00:47
gnu_srsMoreover with some additional symlinks you can be independent of usrmerge (for that package).00:49
gnu_srsAnd, why are most scripts/code for sysvinit in debian/?00:50
* onefang wonders if your sysvinit can handle my Lua based init script.00:51
onefangYou can write sysvinit scripts in any language.  I've written them in C to.00:51
gnu_srsonefang: WDYM: I mean patches not using "/bin/file" instead using command -v "file"00:54
gnu_srsonefang: I don't follow you here?00:55
gnu_srsI'm talking about the sysvinit package, currently  3.13-100:56
onefangYou said not depending on hardcoded paths, if the init script is written in Lua then it has to find Lua.  If it's written in C, it might have to find it's libraries.  But looks like you are just figuring out the paths on the fly, and shouldn't have an issue with that.00:56
onefangI'm talking about the scripts it runs.00:57
gnu_srsonefang: no its more like s//bin/pidof/`command -v pidof`/g01:03
onefangSo long as you don't break my Lua based init script, I wont be annoyed at you.  B-)01:04
gnu_srsI'm not interested in Lua, sorry :(01:07
onefangThe point I was making is that init scripts CAN be written in any language.  Sure 99.9% of them are some shell script variant, but sometimes some other language slips in.  So keep that in mind when messing with it.  You don't have to deal with Lua specifically, that's just a known example.01:08
gnu_srsI don't plan to mess with any other script language than shell scripts for now!?01:11
onefangThat version of sysvinit you are patching already does.  Don't break that is all I'm asking.01:11
rrqgnu_srs: my package sysvinit=3.06-4devuan3 only has the file "/usr/share/doc/sysvinit/copyright" .. you must mean another package01:16
rrqinitscripts perhaps01:19
plasma41gnu_srs: I think you'll find 's|/bin/pidof|`command -v pidof`|g' works better01:40
plasma41gnu_srs: What PATH does sysvinit use?01:41
rrqanother approach is to have an explicit PATH assignment at top and then use program names without path01:42
rrqthough I don't have any involvement in devuan's fork(s) of these pacakages01:44
gnu_srsrrq: The patches are a mixture of PATH and command -v. And the changes are plenty!10:47
gnu_srsplasma41: I was trying to give an example of s/a/b/g not using that to replace hardcoded paths.10:48
gnu_srsReplacing hardcoded paths requires some attention, and that was used.10:49
gnu_srsNevertheless why are almost all scripts under debian/ instead of in the upstream source code??10:50
gnu_srsonefang: I did not break anything with the patched sysvinit!10:51
plasma41gnu_srs: link to the patched sysvinit?21:18
gnu_srs1I can email the patches for 3.13-121:47
gnu_srs1Is devuan-dev OK?22:06

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!