Subject: emacs-gtk: Cherry-pick upstream fix for "Attempt to shape unibyte text" crashes

From: Axel Beckert <[email-masked]>
Date: Sun, 27 Dec 2020 05:43:04 +0100

Package: emacs-gtk
Version: 1:27.1+1-3
Severity: wishlist
Tags: patch fixed-upstream
Control: affects -1 elpa-ligature

Dear Rob,

I'm currently packaging ligature.el from
https://github.com/mickeynp/ligature.el at
https://salsa.debian.org/emacsen-team/elpa-ligature

According to
https://github.com/mickeynp/ligature.el#crash-issues-in-emacs-271 a fix
for occasional Emacs crashes with error message "Attempt to shape
unibyte text" when using ligature.el is available in upstream git, but
hasn't made it into the 27.1 upstream release:

https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fe903c5ab7354b97f80ecf1b01ca3ff1027be446

It would be nice if you could cherry-pick this commit until the next
upstream release.

If you don't want to cherry-pick that commit, please at least keep this
bug report open for now and close it only with the upload of the next
Emacs upstream release which contains the above mentioned patch,
presumably 27.2.

Thanks in advance!

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/4 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages emacs-gtk depends on:
ii  emacs-bin-common           1:27.1+1-3
ii  emacs-common               1:27.1+1-3
ii  libacl1                    2.2.53-9
ii  libasound2                 1.2.4-1
ii  libc6                      2.31-6
ii  libcairo2                  1.16.0-4
ii  libdbus-1-3                1.12.20-1
ii  libelogind0 [libsystemd0]  246.9.1-1+debian1
ii  libfontconfig1             2.13.1-4.2
ii  libfreetype6               2.10.4+dfsg-1
ii  libgdk-pixbuf2.0-0         2.40.2-2
ii  libgif7                    5.1.9-1
ii  libglib2.0-0               2.66.4-1
ii  libgmp10                   2:6.2.1+dfsg-1
ii  libgnutls30                3.7.0-3
ii  libgpm2                    1.20.7-6
ii  libgtk-3-0                 3.24.24-1
ii  libharfbuzz0b              2.6.7-1
ii  libice6                    2:1.0.10-1
ii  libjansson4                2.13.1-1
ii  libjpeg62-turbo            1:2.0.5-1.1
ii  liblcms2-2                 2.9-4+b1
ii  libm17n-0                  1.8.0-2
ii  libotf0                    0.9.13-7
ii  libpango-1.0-0             1.46.2-3
ii  libpng16-16                1.6.37-3
ii  librsvg2-2                 2.50.2+dfsg-1
ii  libselinux1                3.1-2+b2
ii  libsm6                     2:1.2.3-1
ii  libtiff5                   4.2.0-1
ii  libtinfo6                  6.2+20201114-1
ii  libx11-6                   2:1.6.12-1
ii  libxext6                   2:1.3.3-1.1
ii  libxfixes3                 1:5.0.3-2
ii  libxml2                    2.9.10+dfsg-6.3+b1
ii  libxrender1                1:0.9.10-1
ii  zlib1g                     1:1.2.11.dfsg-2

emacs-gtk recommends no packages.

Versions of packages emacs-gtk suggests:
pn  emacs-common-non-dfsg  <none>

-- no debconf information