<i>Glibc detection broken on Linux for platform::identify</i> status still Open with 3 other changes
by
.
D 2023-11-24T10:14:43.899
J comment The\sbundled\s`platform`\spackage\sfails\sto\sfind\sthe\sversion\sof\sglibc\son\sthe\s`ubuntu:22.04`\sDocker\simage.\r\n\r\nSteps\sto\sreproduce:\r\n\r\n`docker\srun\s-it\subuntu:22.04\r\napt-get\supdate\s&&\sapt-get\sinstall\s-y\stcl\r\ntclsh\r\npackage\srequire\splatform\r\nplatform::identify`\r\n\r\nOutput\sis:\r\n\r\n`linux-unknown-x86_64`\r\n\r\nExpected\soutput:\r\n\r\n`linux-glibc2.35-x86_64`\r\n\r\nThis\sproblem\salso\soccurs\swith\sthe\slatest\strunk,\sand\sis\sprobably\salso\spresent\sin\sa\snon-Docker\sUbuntu\sinstall\s(~~but\sI\scould\snot\stest\sthat~~,\sedit:\sconfirmed\son\snon-Docker\sUbuntu\s22.04\sas\swell).\sI\slooked\sat\sthe\scode\sand\sthe\sroot\scause\sseems\sto\sbe\smissing\sexecute\spermissions\son\s`libc.so.6`.\sCurrently\sthe\smost\spopular\sway\sof\sfinding\sthe\slibc\sversion\sseems\sto\sbe\sto\scall\s`ldd\s--version`\sinstead\sof\sthe\s.so\sfile\sdirectly.\sThis\soutputs\sthe\slibc\sversion\s(among\sother\sstuff)\son\sall\sLinux\sdistros\sincluding\sMUSL-based\sones,\swhich\swould\smake\sit\svery\seasy\sto\sextend\sthe\scode\sto\sdetect\sMUSL\sversions\stoo.
J login mbwagner
J mimetype text/plain
K 917c4a896afc744d7d5310a68ceccad4afcb2a6e
U mbwagner
Z 18d1df7c5bb4b95e477ddb4f61f92ae8