Commit f5ebfb3
committed
docs(libgbm): second-round self-review supersedes the mcpp-side proposal
Four substantive errors in the first cut, three of them 'concluded without
running the experiment'.
1. B1/B2 was a false dichotomy. Measured the project subos: it has libc,
crt1.o, libm and ld-linux but NOT libgcc_s or libstdc++, so it is not a
superset of the toolchain subos. B2 (switch selection) would therefore
REGRESS, which is the real objection -- the one I gave (blast radius /
full rebuild) was weak, since contractHash already handles invalidation.
And B1 (merge envs only) fixes runtime while leaving gbm.h and -lgbm to
the package forever. The correct shape is layered inheritance (B3):
keep --sysroot on the toolchain subos and overlay the project subos as
-isystem / -L / -rpath plus a prepend env merge. One compiler takes one
--sysroot, so 'inherit' necessarily means base + overlay, not swap.
2. Never tested whether the compat package could be avoided entirely.
It cannot, but not for the reason given: [xlings] deps materializes
"deps": ["mesa"] into .mcpp/.xlings.json and then installs nothing
(gbm.h not found, no subos created), and [xlings] subos errors rather
than bootstrapping a missing subos. So a package's xpm.deps.runtime is
currently the ONLY door into the xim layer for an mcpp project --
which is itself a gap, and means compat.libgbm is presently doing a job
that is not a library package's to do.
3. The verification matrix conflated the two C2 variants: V5 can only go
green under B3. Under B1 the thin shim is permanent, not transitional.
4. R2 was one line where it is three: R2a ([xlings] subos cannot bootstrap),
R2b ([xlings] deps materialized but not provisioned), R2c (default
selection reads only the toolchain subos, no layering).
R1/C1 and the industry argument in §3 are unaffected.1 parent 3c8c21f commit f5ebfb3
1 file changed
Lines changed: 106 additions & 1 deletion
Lines changed: 106 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
149 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| |||
319 | 329 | | |
320 | 330 | | |
321 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
0 commit comments