/srv/irclogs.ubuntu.com/2021/05/23/#ubuntu-discuss.txt

=== ogra is now known as imgbot
=== imgbot is now known as ogra
VMGuy23Moving to #ubuntu-discuss from #ubuntu15:47
VMGuy23ogra: are you here?15:47
ograyep15:47
ograhttps://ograblog.wordpress.com/2020/07/10/building-snap-packages-on-ubuntu-core/15:47
ograignore the "Ubuntu COre" part here15: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
ograthat block post essentially describes how to build snaps inside an lxd container15:48
ograthats true15:48
ograthough on a Pi4 the builds are reasonably fast15:49
VMGuy23That quote means nothing to me, I have a Raspberry Pi that can run Ubuntu Desktop15:49
VMGuy23Pi4 with 4GB RAM15:49
ograyeah, that should be good15:49
VMGuy23Although it's in a box somewhere15:50
ograoh, heh15:50
ograi didnt recognize my own sentence πŸ˜›15:50
VMGuy23The question is: what if a version of a dependency is only available on 21.04?15:51
ogratry finding a PPA or do a backport yurself or buils the part from source15:52
ogra*build15:52
ograwhat is it you are requiring for your snap ?15:52
VMGuy23I need glibc 2.3315:53
ogra(do you have your snapcraft.yaml public anywhere (github or so))15:53
ograoh, that wont be easy ... but why ?15:53
ograare you packaging some binary proprietary thing ?15:53
VMGuy23I didn't make the app, I'm making an unoficcial snap for it. I have no idea why it needs glibc 2.3315:54
VMGuy23I'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
ogralibc 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 issues15:56
VMGuy23I think it's to do with getting the time or something...15:56
ograwell, that looks like it is source ...15:57
ograwow, you definitely picked something really complex to start creating your first snap πŸ™‚15:58
VMGuy23Yeah... 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 mostly15:59
VMGuy23custom commands and and glibc that's the problem15:59
ograso do you get some build error ?16:01
VMGuy23The program won't run.16:01
VMGuy23(When I snap the built version)16:02
ograright, you'd need to build it from source16:02
ograbut that should just work fine then16:03
VMGuy23And I need around 15 commands to build from source.16:03
VMGuy23Build the game frrom source16:03
ograand ? just use an "override-build:" entry in your snapcraft.yaml and add the 15 commands there16:04
VMGuy23Hold up...16:04
VMGuy23Could i...16:04
VMGuy23add the 21.04 repos in those commands?16:05
ograsnapcraft is super flexible ... you can do anything yu want in i πŸ™‚16:05
ogra*in it16:05
ograyou really shouldnt use the 21.04 binaries ... rathe build against 20.0416:05
VMGuy23Yeah16:05
VMGuy23I just need glibc 2.3316:05
ograbut technically you could .even do that ..16:05
ograsnapcraft really doesnt care what you do inside as long as it can roll a snap in the end16:07
ograbut as i said before, mixing different libc versions will likely cause runtime trouble16:07
VMGuy23Yeah. All I need is 2.33 glibc and that's it.16:07
ograright, but that will most likely break the runtime behaviour since the world around it is not 2.33 based16:08
ograyou'll have to try ...16:08
VMGuy23Yeah...16:09
ograthe clean way would be to simply build the game from source against 20.04 libe16:09
ogra*libs16:09
VMGuy23Good idea16:09
VMGuy23Will try16:10
ograbtw, there is a #snapcraft" channel in case you have issues ... and there is also the forum at forum.snapcraft.io16:10
ogragood luck πŸ™‚16:10
VMGuy23Thanks16:10
VMGuy23Got this while trying to git clone: https://dpaste.com/2H8P9QV9H16:16
VMGuy23decided to push to the lxd container instead of cloning from within.16:28
ograyeah16:34
VMGuy23Where do I put the custom build instructions?16:43
VMGuy23And... with the launch path for the snap, where is the root of that past?16:45
VMGuy23*path16:45

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!