npub172…wpavj on Nostr: I'm both proud and ashamed of this kludge to avoid using patchelf! Adjusting ELF's ...
I'm both proud and ashamed of this kludge to avoid using patchelf! Adjusting ELF's DT_NEEDED via a regular expression:
perl -e '$r = "\x00" x (length($ENV{"LPEG"}) - length("lpeg.so"));' -i -pe 's;$ENV{"LPEG"};lpeg.so$r;' .../bin/nvim
#neovim #pkgsrc
1/n
Published at
2025-03-15 10:48:47 UTCEvent JSON
{
"id": "3eb6f0c61437edb237da1fb4783df0387790dfe45ef6b68f3e5f1ca2e8d3520c",
"pubkey": "f285259223cebf9d97842a84d3c43654ac78dea8c046cacb7777bc1d8ebe8397",
"created_at": 1742035727,
"kind": 1,
"tags": [
[
"t",
"neovim"
],
[
"t",
"pkgsrc"
],
[
"proxy",
"https://mastodon.sdf.org/users/iamleot/statuses/114166053408566346",
"activitypub"
]
],
"content": "I'm both proud and ashamed of this kludge to avoid using patchelf! Adjusting ELF's DT_NEEDED via a regular expression:\n\n perl -e '$r = \"\\x00\" x (length($ENV{\"LPEG\"}) - length(\"lpeg.so\"));' -i -pe 's;$ENV{\"LPEG\"};lpeg.so$r;' .../bin/nvim\n\n#neovim #pkgsrc\n\n1/n",
"sig": "4a0eadbfdbdd63f0a5108df20349268914dc250e62489f789b15c500b17b56a42150c8469c95dfae3bf3f6daedea5f188fb96929186b6087c8f652b8848c2a32"
}