Update the version of Ubuntu the kitty binaries are built on to Bionic

The upgrade was needed as I couldn't get Xenial to boot in the QEMU VM.
In any case Bionic is now three years old and comes with GLIBC 2.27
released on 2018-02-01 which will be almost four years old when the next
version of kitty is released.
This commit is contained in:
Kovid Goyal 2021-12-09 22:28:11 +05:30
parent 060362bee2
commit 8e435dff16
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
image 'https://partner-images.canonical.com/core/xenial/current/ubuntu-xenial-core-cloudimg-{}-root.tar.gz' image 'https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-{}.img'
deps 'bison flex libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libgl1-mesa-dev libxcb-xkb-dev libfontconfig1-dev libdbus-1-dev' deps 'bison flex libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libgl1-mesa-dev libxcb-xkb-dev libfontconfig1-dev libdbus-1-dev'

View File

@ -870,7 +870,10 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
for path in args.extra_include_dirs: for path in args.extra_include_dirs:
cflags.append(f'-I{path}') cflags.append(f'-I{path}')
if bundle_type == 'linux-freeze': if bundle_type == 'linux-freeze':
ldflags += ['-Wl,-rpath,$ORIGIN/../lib'] # --disable-new-dtags prevents -rpath from generating RUNPATH instead of
# RPATH entries in the launcher. The ld dynamic linker does not search
# RUNPATH locations for transitive dependencies, unlike RPATH.
ldflags += ['-Wl,--disable-new-dtags', '-Wl,-rpath,$ORIGIN/../lib']
os.makedirs(launcher_dir, exist_ok=True) os.makedirs(launcher_dir, exist_ok=True)
dest = os.path.join(launcher_dir, 'kitty') dest = os.path.join(launcher_dir, 'kitty')
src = 'launcher.c' src = 'launcher.c'