[15:47] <VMGuy23> Moving to #ubuntu-discuss from #ubuntu
[15:47] <VMGuy23> ogra: are you here?
[15:47] <ogra> yep
[15:47] <ogra> https://ograblog.wordpress.com/2020/07/10/building-snap-packages-on-ubuntu-core/
[15:48] <ogra> ignore the "Ubuntu COre" part here
[15:48] <VMGuy23> "If your Ubuntu Core device is i.e. a Raspberry Pi you won’t easily be able to build for its armhf or arm64 target architecture on your PC which makes development harder."
[15:48] <ogra> that block post essentially describes how to build snaps inside an lxd container
[15:48] <ogra> thats true
[15:49] <ogra> though on a Pi4 the builds are reasonably fast
[15:49] <VMGuy23> That quote means nothing to me, I have a Raspberry Pi that can run Ubuntu Desktop
[15:49] <VMGuy23> Pi4 with 4GB RAM
[15:49] <ogra> yeah, that should be good
[15:50] <VMGuy23> Although it's in a box somewhere
[15:50] <ogra> oh, heh
[15:50] <ogra> i didnt recognize my own sentence 😛
[15:51] <VMGuy23> The question is: what if a version of a dependency is only available on 21.04?
[15:52] <ogra> try finding a PPA or do a backport yurself or buils the part from source
[15:52] <ogra> *build
[15:52] <ogra> what is it you are requiring for your snap ?
[15:53] <VMGuy23> I need glibc 2.33
[15:53] <ogra> (do you have your snapcraft.yaml public anywhere (github or so))
[15:53] <ogra> oh, that wont be easy ... but why ?
[15:53] <ogra> are you packaging some binary proprietary thing ?
[15:54] <VMGuy23> I didn't make the app, I'm making an unoficcial snap for it. I have no idea why it needs glibc 2.33
[15:56] <VMGuy23> I'm snapping a popular game, source code for it is here: https://github.com/ninjamuffin99/Funkin (not my repo, just building that game and snapping it)
[15:56] <ogra> libc is always a little problematic because all the runtime env that comes from the base snap is linked against the version in the base snap ... so while your snp can ship its own libc, if you load a lib from the base snap it might cause issues
[15:56] <VMGuy23> I think it's to do with getting the time or something...
[15:57] <ogra> well, that looks like it is source ...
[15:58] <ogra> wow, you definitely picked something really complex to start creating your first snap 🙂
[15:59] <VMGuy23> Yeah... I know how to build it, what the commands are to setup the build environment, what packages are needed, PPAs, e.t.c, it's mostly
[15:59] <VMGuy23> custom commands and and glibc that's the problem
[16:01] <ogra> so do you get some build error ?
[16:01] <VMGuy23> The program won't run.
[16:02] <VMGuy23> (When I snap the built version)
[16:02] <ogra> right, you'd need to build it from source
[16:03] <ogra> but that should just work fine then
[16:03] <VMGuy23> And I need around 15 commands to build from source.
[16:03] <VMGuy23> Build the game frrom source
[16:04] <ogra> and ? just use an "override-build:" entry in your snapcraft.yaml and add the 15 commands there
[16:04] <VMGuy23> Hold up...
[16:04] <VMGuy23> Could i...
[16:05] <VMGuy23> add the 21.04 repos in those commands?
[16:05] <ogra> snapcraft is super flexible ... you can do anything yu want in i 🙂
[16:05] <ogra> *in it
[16:05] <ogra> you really shouldnt use the 21.04 binaries ... rathe build against 20.04
[16:05] <VMGuy23> Yeah
[16:05] <VMGuy23> I just need glibc 2.33
[16:05] <ogra> but technically you could .even do that ..
[16:07] <ogra> snapcraft really doesnt care what you do inside as long as it can roll a snap in the end
[16:07] <ogra> but as i said before, mixing different libc versions will likely cause runtime trouble
[16:07] <VMGuy23> Yeah. All I need is 2.33 glibc and that's it.
[16:08] <ogra> right, but that will most likely break the runtime behaviour since the world around it is not 2.33 based
[16:08] <ogra> you'll have to try ...
[16:09] <VMGuy23> Yeah...
[16:09] <ogra> the clean way would be to simply build the game from source against 20.04 libe
[16:09] <ogra> *libs
[16:09] <VMGuy23> Good idea
[16:10] <VMGuy23> Will try
[16:10] <ogra> btw, there is a #snapcraft" channel in case you have issues ... and there is also the forum at forum.snapcraft.io
[16:10] <ogra> good luck 🙂
[16:10] <VMGuy23> Thanks
[16:16] <VMGuy23> Got this while trying to git clone: https://dpaste.com/2H8P9QV9H
[16:28] <VMGuy23> decided to push to the lxd container instead of cloning from within.
[16:34] <ogra> yeah
[16:43] <VMGuy23> Where do I put the custom build instructions?
[16:45] <VMGuy23> And... with the launch path for the snap, where is the root of that past?
[16:45] <VMGuy23> *path