136 Commits

Author SHA1 Message Date
Ikey Doherty 7d0acc9891 Add script to magically make a tarball, bump version to 0.4
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
v0.4
2017-10-11 00:32:29 +01:00
Ikey Doherty 7bae532d85 Update README with details about the intercept library
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-11 00:23:16 +01:00
Ikey Doherty 4f332c9acf Update mkgobuildy to install directly to the system
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-11 00:16:54 +01:00
Ikey Doherty f2dddd9f88 intercept: Catch the last of the SDL offenders like steamwebhelper
This now ensures steamwebhelper is also using our SDL as it was previously
loading from a relative location. This actually fixes issues on my local
system whereby the steam trailer videos couldn't full screen properly,
now using our own SDL, they can.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-11 00:15:52 +01:00
Ikey Doherty 94d5c6d939 intercept: Pretty print stuff
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:38:12 +01:00
Ikey Doherty f4564e2ab8 intercept: Be spammy only on demand, and provide relevant information
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:33:11 +01:00
Ikey Doherty 8d85cb3bed Fix storage of the use-libintercept setting
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:28:40 +01:00
Ikey Doherty fb2e84cb97 frontend: Teach UI how to control the libintercept setting
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:23:48 +01:00
Ikey Doherty e1f2783d11 shim: Allow disabling libintercept from config
Note libintercept requires that we use the native runtime, otherwise very
bad things will happen. ™

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:18:11 +01:00
Ikey Doherty 13afbe69c3 lsi: Teach configuration about libintercept toggle
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:17:29 +01:00
Ikey Doherty b458346f5a Fix invalid date range for copyright assignment
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:12:53 +01:00
Ikey Doherty bf4fcfe533 Fix another trace of autotools
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:11:39 +01:00
Ikey Doherty b7ba890433 Start updating README for meson
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:10:47 +01:00
Ikey Doherty faa0c3a154 Nuke ancient TODO that knows not of which it speaks
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:06:32 +01:00
Ikey Doherty 99e54dd74b Drastically simplify gitignore..
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:05:58 +01:00
Ikey Doherty 5d18366a17 Nuke old autotools cruft
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:05:30 +01:00
Ikey Doherty 6154f2373c Allow installing .desktop files once more
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:03:51 +01:00
Ikey Doherty fe80861f66 frontend: Fix linking once more
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 23:00:12 +01:00
Ikey Doherty 38ec05ce98 Move lsi into new subdir to be reused as static lib
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:59:33 +01:00
Ikey Doherty d983f8ebdf Add currently failing build for frontend
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:54:51 +01:00
Ikey Doherty 4d3abc5e37 Enable GTK frontend, don't build Shim for 32-bit
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:52:45 +01:00
Ikey Doherty 47e50b789f shim: Only set LD_AUDIT if we were built with libintercept enabled
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:51:40 +01:00
Ikey Doherty 9905a2bc81 intercept: Allow controlling build of this library
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:50:28 +01:00
Ikey Doherty 11e1d8ae5f shim: Build lsi-steam or not at all, depending on meson options
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:46:19 +01:00
Ikey Doherty 00e78f705e Only build frontend and look for GTK if its requested
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:44:02 +01:00
Ikey Doherty 54c685bb1a Set things up to be configured via meson options
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:42:07 +01:00
Ikey Doherty a61e22d677 shim: When using native runtime, load liblsi-intercept in LD_AUDIT
liblsi-intercept has a simple job of stopping Steam from trying to
replace all of the system libraries in a mish-mash approach. Even when
we have STEAM_RUNTIME=0, and even with the advent of the new "prefer host
libraries" system, the internal replacements and pinning system actually
break massively.

To counteract this issue, we use our own rtld-audit implementation when
launching the real Steam, which will severely restrict which libraries the
main Steam binaries are actually allowed to load. This is on a whitelist
basis and ensures that the host libraries will be used where appropriate,
i.e. SDL, X11, etc. This prevents compatibility issues as well as the random
crashes we're now seeing with Steam beta.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:31:25 +01:00
Ikey Doherty 93b0f82279 Hack stuff up so we can build shim again
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:27:54 +01:00
Ikey Doherty d870577a55 intercept: Add missing modelines
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:07:15 +01:00
Ikey Doherty fd252e265d Move common helpers to common.h to fix compilation warnings
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:07:02 +01:00
Ikey Doherty 3684dfe11e intercept: More unused code
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:04:22 +01:00
Ikey Doherty d5b31dbf54 intercept: That guy is unused
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 22:03:43 +01:00
Ikey Doherty f6dcc30d33 shim: Ensure we disable GTK_MODULES (thanks @cybre!)
Same reason as XMODIFIERS - it'll stop Steam starting up properly

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 21:56:11 +01:00
Ikey Doherty 7a2670f3e1 intercept: Completely clamp down on Steam, allow only Steam's own libs
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 21:54:59 +01:00
Ikey Doherty 61d9296a6c Let's pretend that one didnt happen
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 21:07:36 +01:00
Ikey Doherty f2bbe963b6 Clean up script so LD_AUDIT is a thing again
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:52:12 +01:00
Ikey Doherty 4547d8582a One more test to ensure this isnt environment related
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:50:50 +01:00
Ikey Doherty 1db376fa38 Turns out fatal is bad always because Steam is bad. Also, preload again
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:45:36 +01:00
Ikey Doherty 0bf704fc79 We like segfaults
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:44:08 +01:00
Ikey Doherty cf023ffb6a Ensure XMODIFIERS go bye bye
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:42:53 +01:00
Ikey Doherty 4b36347ade Remove unused define
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:41:51 +01:00
Ikey Doherty d3469e3eb0 intercept: Add quick hack which *should* work
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:37:19 +01:00
Ikey Doherty 29081c492d Make build script a bit more robust..
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:32:52 +01:00
Ikey Doherty ac76372b84 Add helper script so we can easily test liblsi-intercept
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:31:26 +01:00
Ikey Doherty 6b107f33b5 Ensure we can build everything now.
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:29:13 +01:00
Ikey Doherty ba8ae8f384 Add mkgobuildy to handle dual builds..
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:26:33 +01:00
Ikey Doherty d77ad58934 Remove intercept-emul32 because meson is weak a.f.
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:24:47 +01:00
Ikey Doherty 2aae934271 Ensure we can build 32-bit and 64-bit libraries together
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:16:11 +01:00
Ikey Doherty 12d5268252 Split emul32 into new dir
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:07:59 +01:00
Ikey Doherty 15253b97df Fail massively. But progress.
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2017-10-10 20:06:02 +01:00