I have seen MANY field-expedient repairs using duck tape wrapped around a toe box... just sayin...
Dougfitz's Shoe Goo idea is also very good, if you can find it. It also helps if you have the time and ability to do this sort of repair properly. Not everyone can use these adhesives properly.
Absent that, look in a hardware or DIY store for waterproof contact cement / glue. This sort of adhesive requires a clean, dry surface to work properly.
Basically, you apply to both parts to be joined, then clamp, tape, wrap, tie them securely against one another. A 24-hour bond time is ideal, but 12-hours should work for more porous materials. Follow the package directions...
This said, once you get home, you can research vendors who do this sort of work. In my experience, most any hiking shoe or boot can be resoled.
Do an online search for hiking boot resoling. Here in the US, and in the UK as well, I know there are specialists who do this, even for the vulcanized sort of glued on soles that so many modern shoes and boots come with.
FYI, my first pair of Keen boots were resoled twice, before the upper finally started wearing through.
In addition to the above, a local shoe repair person, MIGHT be able to do a temporary repair that will hold you until you get home. The iffy thing here, is whether the temporary repair will ruin the shoe / boot for further and perhaps more appropriate repair or resoling.
Hope this helps.