Skip to content

Instantly share code, notes, and snippets.

@peterix
Created June 21, 2018 21:01
Show Gist options
  • Save peterix/957404631f7fa4eb0fcffd0bdec5cb7c to your computer and use it in GitHub Desktop.
Save peterix/957404631f7fa4eb0fcffd0bdec5cb7c to your computer and use it in GitHub Desktop.
minecraft-launcher 2.1.1139-1 dependencies
/  opt  minecraft-launc…    $  readelf -d launcher
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libcef.so]
0x0000000000000001 (NEEDED) Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
/  opt  minecraft-launc…    $  readelf -d libcef.so
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libfreetype.so.6]
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [librt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libgmodule-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libnss3.so]
0x0000000000000001 (NEEDED) Shared library: [libnssutil3.so]
0x0000000000000001 (NEEDED) Shared library: [libsmime3.so]
0x0000000000000001 (NEEDED) Shared library: [libnspr4.so]
0x0000000000000001 (NEEDED) Shared library: [libfontconfig.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpangocairo-1.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libpango-1.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libcairo.so.2]
0x0000000000000001 (NEEDED) Shared library: [libexpat.so.1]
0x0000000000000001 (NEEDED) Shared library: [libgio-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED) Shared library: [libXcomposite.so.1]
0x0000000000000001 (NEEDED) Shared library: [libXcursor.so.1]
0x0000000000000001 (NEEDED) Shared library: [libXdamage.so.1]
0x0000000000000001 (NEEDED) Shared library: [libXext.so.6]
0x0000000000000001 (NEEDED) Shared library: [libXfixes.so.3]
0x0000000000000001 (NEEDED) Shared library: [libXi.so.6]
0x0000000000000001 (NEEDED) Shared library: [libXrender.so.1]
0x0000000000000001 (NEEDED) Shared library: [libXtst.so.6]
0x0000000000000001 (NEEDED) Shared library: [libXss.so.1]
0x0000000000000001 (NEEDED) Shared library: [libXrandr.so.2]
0x0000000000000001 (NEEDED) Shared library: [libgconf-2.so.4]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libasound.so.2]
0x0000000000000001 (NEEDED) Shared library: [libcups.so.2]
0x0000000000000001 (NEEDED) Shared library: [libdbus-1.so.3]
0x0000000000000001 (NEEDED) Shared library: [libatk-1.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgtk-x11-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgdk-x11-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgdk_pixbuf-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
@peterix
Copy link
Author

peterix commented Jun 21, 2018

Running namcap on the AUR package gives us this:

minecraft-launcher W: Unused shared library '/usr/lib/libcups.so.2' by file ('opt/minecraft-launcher/libcef.so')
minecraft-launcher W: Unused shared library '/usr/lib/libgtk-x11-2.0.so.0' by file ('opt/minecraft-launcher/libcef.so')
minecraft-launcher W: Unused shared library '/usr/lib/libgdk-x11-2.0.so.0' by file ('opt/minecraft-launcher/libcef.so')
minecraft-launcher W: Unused shared library '/usr/lib/libgdk_pixbuf-2.0.so.0' by file ('opt/minecraft-launcher/libcef.so')

So, maybe we can remove the dependencies on those somehow.

The binaries are built on a rather old version of Ubuntu, and should work, as long as you are running them on ABI-compatible distributions.

The game also needs:

  • The xrandr command -- depending on version of Minecraft actually being launched
  • Java 8 -- this is the one most likely to work with current vanilla and modded versions

@peterix
Copy link
Author

peterix commented Jun 21, 2018

Looking at the imported symbols, at least the following ABI versions are needed:

ALSA_0.9
CXXABI_1.3.9
GCC_4.0.0
GLIBCXX_3.4.21
GLIBC_2.17
NSSUTIL_3.12.3
NSS_3.12.4
NSS_3.9.2

This can be determined by:

readelf -s libcef.so launcher | grep @

And then post-processing the result.

@XakepSDK
Copy link

XakepSDK commented Jun 22, 2018

libcef

No, thanks. I hope, java launcher version will be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment