SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

Do not delete contents of /usr/include

Open zhulik opened this issue 3 years ago • 1 comments

Your system information

  • Steam client version: does not matter
  • SteamOS version: 3.0
  • Opted into Steam client beta?: No
  • Opted into SteamOS beta?: Yes
  • Have you checked for updates in Settings > System?: Yes

Please describe your issue in as much detail as possible:

Header files located in /usr/include are manually deleted from the image. I can understand a decision to make the image slightly smaller, but this approach has a few downsides:

  • it is really difficult to build anything from sources on the device if the user is not familiar with Arch/Manjaro.
  • Even if they are, they need to reinstall half of the packages from the repo to restore deleted headers.
  • Removing headers breaks package integrity and pacman complains on missing files when reinstalling packages.

Steam OS could either adapt debian's approach and ship headers in *-dev packages or let the arch package management system work as intended.

It would also be nice to include base-devel and popular among devs libs. It would make it possible to develop in many languages using for instance the asdf version manager and without even disabling the RO mode. The only downside would be increased by a matter of hundreds of megabytes image size. I beleave it's worth it.

Steps for reproducing this issue:

  1. Install asdf-vm
  2. Try to install ruby or python using it.

Thank you!

zhulik avatar May 01 '22 19:05 zhulik

The other solution would be a ready to run script that unlocks the fs, reinstalls all packages that ship headers, adds base-develop and locks the fs back, so power users would have one simple command that turns their decks into dev machines after every system update. WDYT?

zhulik avatar May 01 '22 19:05 zhulik