← Back to team overview

touch-packages team mailing list archive

[Bug 1379869] [NEW] patches-freetype/fix-incorrect-korean-fonts-rendering.patch appears incorrect

 

Public bug reported:

This is reported in relation to
https://bugs.launchpad.net/freetype/+bug/1310017 . See
https://bugs.launchpad.net/freetype/+bug/1310017/comments/21 for comment
on related bug report.

I have an issue with the patch for FreeType in debian/patches-freetype
/fix-incorrect-korean-fonts-rendering.patch . It appears to be
incorrect. It claims to apply

http://git.savannah.gnu.org/cgit/freetype/freetype2.git/patch/?id=98e510ee94e552e9e9f80891aa87b2b472d0f276

but it does not. It applies the above patch, but also runs

src/autofit$ perl ../tools/afblue.pl afblue.dat < afblue.hin > afblue.h

to regenerate the afblue.h. However, it does not also re-generate
afblue.c. The re-generation is itself suspect, as this appears to have
been run without FreeType commits

991cbcce97527e74ca3751dd04b89e393420549c
c46fa86bd585639bf4311809ba561675267e99af
741f736662476403cbcac3b9bf0756134f53ce1b
6dce136937ab8c436413ce617ffb5ddb329f3ecc
181fd071ee58b4b59257a2a162ea0a928057aa8d

which would bring afblue.pl up to date with this change. (I believe that
these commits should be considered a part of a cumulative fix.) It would
be nice if afblue.c and afblue.h were generated as part of the build to
avoid these sorts of issues, but the initial check-in
(8b8be78385a2e564ebd62983512b81e541dff622) indicates this was not done
to avoid a perl build dependency.

I would like to request that this patch be re-built to match the
FreeType commit. Particularly that after the re-built patch is applied
the src/autofit/afblue.h file look as much like
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/plain/src/autofit/afblue.h?id=98e510ee94e552e9e9f80891aa87b2b472d0f276
as possible. Equivalently the output of

git diff trusty:src/autofit/afblue.h
98e510ee94e552e9e9f80891aa87b2b472d0f276:src/autofit/afblue.h

should have no material differences. I have done this manually, and am
attaching a new fix-incorrect-korean-fonts-rendering.patch which shows
what should be the correct patch. I believe that the error in the
existing patch may lead to incorrect behavior, as af_blue_stringsets
will be out of alignment with af_blue_strings.

** Affects: freetype (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-update

** Patch added: "Revised version of existing patch."
   https://bugs.launchpad.net/bugs/1379869/+attachment/4230879/+files/fix-incorrect-korean-fonts-rendering.patch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to freetype in Ubuntu.
https://bugs.launchpad.net/bugs/1379869

Title:
  patches-freetype/fix-incorrect-korean-fonts-rendering.patch appears
  incorrect

Status in “freetype” package in Ubuntu:
  New

Bug description:
  This is reported in relation to
  https://bugs.launchpad.net/freetype/+bug/1310017 . See
  https://bugs.launchpad.net/freetype/+bug/1310017/comments/21 for
  comment on related bug report.

  I have an issue with the patch for FreeType in debian/patches-freetype
  /fix-incorrect-korean-fonts-rendering.patch . It appears to be
  incorrect. It claims to apply

  http://git.savannah.gnu.org/cgit/freetype/freetype2.git/patch/?id=98e510ee94e552e9e9f80891aa87b2b472d0f276

  but it does not. It applies the above patch, but also runs

  src/autofit$ perl ../tools/afblue.pl afblue.dat < afblue.hin >
  afblue.h

  to regenerate the afblue.h. However, it does not also re-generate
  afblue.c. The re-generation is itself suspect, as this appears to have
  been run without FreeType commits

  991cbcce97527e74ca3751dd04b89e393420549c
  c46fa86bd585639bf4311809ba561675267e99af
  741f736662476403cbcac3b9bf0756134f53ce1b
  6dce136937ab8c436413ce617ffb5ddb329f3ecc
  181fd071ee58b4b59257a2a162ea0a928057aa8d

  which would bring afblue.pl up to date with this change. (I believe
  that these commits should be considered a part of a cumulative fix.)
  It would be nice if afblue.c and afblue.h were generated as part of
  the build to avoid these sorts of issues, but the initial check-in
  (8b8be78385a2e564ebd62983512b81e541dff622) indicates this was not done
  to avoid a perl build dependency.

  I would like to request that this patch be re-built to match the
  FreeType commit. Particularly that after the re-built patch is applied
  the src/autofit/afblue.h file look as much like
  http://git.savannah.gnu.org/cgit/freetype/freetype2.git/plain/src/autofit/afblue.h?id=98e510ee94e552e9e9f80891aa87b2b472d0f276
  as possible. Equivalently the output of

  git diff trusty:src/autofit/afblue.h
  98e510ee94e552e9e9f80891aa87b2b472d0f276:src/autofit/afblue.h

  should have no material differences. I have done this manually, and am
  attaching a new fix-incorrect-korean-fonts-rendering.patch which shows
  what should be the correct patch. I believe that the error in the
  existing patch may lead to incorrect behavior, as af_blue_stringsets
  will be out of alignment with af_blue_strings.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1379869/+subscriptions


Follow ups

References