Bug ?: Stage package not found in part 'XXXXX': libpng12

Hello, I am a newbie trying to snap some old games (note: it seems almost impossible with 32 bits games).

When I launch snapcraft on different snaps I get the error message in the title about ‘libpng12’. I tried differents core versions (24, 22, 20) without more success.

Why Snapcraft 8 is not using a more recent libpng version ? (I have libpng 1.6 on my Kubuntu 22.04).

Or should I use a older computer with Ubuntu 18.04 to make the snap ?

% ls /snap/core2?/current/**/libpng16.so.16.*
/snap/core22/current/usr/lib/x86_64-linux-gnu/libpng16.so.16.37.0
/snap/core24/current/usr/lib/x86_64-linux-gnu/libpng16.so.16.43.0

trying to snap some old games … I get the error message in the title about ‘libpng12’

libpng12 can be required by their (old games) build system, not?

Why Snapcraft 8 is not using a more recent libpng version?

It is rather the opposite: The game you’re packaging depends on an ancient libpng library version(1.2) that the Ubuntu software archive no longer ships.

Snapcraft uses whatever packages the software archive of the Ubuntu release your targeting base snap based on(core20 → 20.04, core22 → 22.04, etc.) provides. If a library is not available you need to either:

  • Switch to an older/newer base that provides it.
  • Provide them yourself by building them from their source code.
  • Provide them via a third-party package source that is compatible with the base that you’re targeting.
  • Request the upstream(the game developers) to port their game against the newer library.
2 Likes

I think it should be on Ubuntu 16.04 or Ubuntu 14.04 or even 12.04

I remember I had to sideload it when I was trying to get Packet Tracer to work when I was in college few years ago.

@YamiYukiSenpai If you’re asking for libpng12 location, suppose it’s in core base (Install Core base snap on Linux | Snap Store)

% ls /snap/core/current/**/libpng12.so.*
/snap/core/current/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/current/usr/lib/x86_64-linux-gnu/libpng12.so.0
/snap/core/current/lib/x86_64-linux-gnu/libpng12.so.0.54.0

and cannot say anything about PacketTracer or other games (I’m not a topic starter)