fontforge.git
3 years ago"#undef extended" temporarily to avoid conflict on GNU Hurd
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
"#undef extended" temporarily to avoid conflict on GNU Hurd

Origin: vendor
Forwarded: https://github.com/fontforge/fontforge/pull/5047
Last-Update: 2022-06-16

GNU Mach microkernel header files (gnumach-dev 1.8+git20201129) added to
struct i386_xfp_save in /usr/include/i386-gnu/include/mach/i386/fp_reg.h
a new "extended" field which happens to collide with the macro definition
"#define extended double" in FontForge, leading to FTBFS on GNU Hurd:

    FAILED: fontforge/CMakeFiles/fontforge.dir/asmfpst.c.o
    /usr/bin/cc -Dfontforge_EXPORTS -I../../fontforge -I../../inc -Iinc -isystem /usr/include/glib-2.0 -isystem /usr/lib/i386-gnu/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/libxml2 -isystem /usr/include/readline -isystem /usr/include/python3.9 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Werror=implicit-function-declaration -Werror=int-conversion -fdiagnostics-color=always -std=gnu99 -MD -MT fontforge/CMakeFiles/fontforge.dir/asmfpst.c.o -MF fontforge/CMakeFiles/fontforge.dir/asmfpst.c.o.d -o fontforge/CMakeFiles/fontforge.dir/asmfpst.c.o -c ../../fontforge/asmfpst.c
    In file included from ../../fontforge/asmfpst.h:4,
                     from ../../fontforge/asmfpst.c:30:
    ../../fontforge/splinefont.h:63:18: error: two or more data types in declaration specifiers
       63 | #define extended double
          |                  ^~~~~~
    In file included from /usr/include/i386-gnu/bits/sigcontext.h:30,
                     from /usr/include/signal.h:291,
                     from /usr/include/glib-2.0/glib/gbacktrace.h:36,
                     from /usr/include/glib-2.0/glib.h:34,
                     from /usr/include/glib-2.0/gobject/gbinding.h:28,
                     from /usr/include/glib-2.0/glib-object.h:22,
                     from /usr/include/glib-2.0/gio/gioenums.h:28,
                     from /usr/include/glib-2.0/gio/giotypes.h:28,
                     from /usr/include/glib-2.0/gio/gio.h:26,
                     from ../../inc/ffglib.h:29,
                     from ../../fontforge/baseviews.h:31,
                     from ../../fontforge/fontforgevw.h:31,
                     from ../../fontforge/asmfpst.c:33:
    /usr/include/i386-gnu/mach/i386/fp_reg.h:80:24: error: expected identifier or ‘(’ before ‘[’ token
       80 |  unsigned char extended[0]; /* Extended region */
          |                        ^

This patch temporarily undefines the "extended" macro before loading
<gio/gio.h> and friends, and redefines the "extended" macro right after.
and redefines it afterwards.
Last-Update: 2022-06-16
Gbp-Pq: Name 0005-hurd-undef-extended-temporarily.patch

3 years agoDefine PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Define PATH_MAX and MAXPATHLEN for GNU/Hurd compatibility

Origin: vendor
Bug-Debian: https://bugs.debian.org/877795
Forwarded: https://github.com/fontforge/fontforge/pull/5046
Last-Update: 2021-01-14, 2022-06-16

Last-Update: 2021-01-14, 2022-06-16
Gbp-Pq: Name 0004-hurd-PATH_MAX-and-MAXPATHLEN.patch

3 years agoUse packaged copy of MathJax from libjs-mathjax
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Use packaged copy of MathJax from libjs-mathjax

Origin: vendor
Forwarded: not-needed
Last-Update: 2020-11-24

FontForge documentation uses sphinx.ext.mathjax which insert script links
to MathJax served on remote CDNs.

This patch, together with debian/fontforge-doc.links, replaces remote
scripts with MathJax from the libjs-mathjax package.
See https://bugs.debian.org/739300 for discussion.

Fixes Lintian privacy-breach-generic warnings.
Last-Update: 2020-11-24
Gbp-Pq: Name 0003-use-local-libjs-mathjax.patch

3 years agoRemove custom library search path (RPATH/RUNPATH)
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Remove custom library search path (RPATH/RUNPATH)

Origin: vendor
Forwarded: not-needed
Last-Update: 2020-11-18

This reverts upstream's preference of setting RPATH/RUNPATH for
installed binaries.  Fixes Lintian custom-library-search-path error.
Last-Update: 2020-11-18
Gbp-Pq: Name 0002-remove-custom-library-search-path.patch

3 years agoAdd extra CMake install rules
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Add extra CMake install rules

Origin: vendor
Forwarded: not-needed
Last-Update: 2020-11-18, 2022-06-15

for contrib/fonttools and pycontrib to restore the files that were
installed to fontforge-extras and python3-fontforge prior to the
FontForge 2020 March Release.
Last-Update: 2020-11-18, 2022-06-15
Gbp-Pq: Name 0001-add-extra-cmake-install-rules.patch

3 years agofontforge (1:20220308~dfsg-1) unstable; urgency=medium
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
fontforge (1:20220308~dfsg-1) unstable; urgency=medium

  [ Boyuan Yang ]
  * debian/control: Drop Rogério Brito from uploaders list. (Closes: #994659)

  [ Anthony Fok ]
  * New upstream version 20220308~dfsg
  * Add 20120731.b-{6,7,7.1,7.2} changelog entries
    from Nov 2015 to Apr 2016 that were missing partly due to the failed
    (forgotten? ignored?) switch from master to debian/sid branch
  * Add Jonas Smedegaard’s copyright file contributions (which I overlooked)
    to the 1:20201107~dfsg-2 changelog entry
  * Refresh Debian patches:
    - 0001-add-extra-cmake-install-rules.patch: Upstream now installs
      cidmaps by default (Thanks to Fredrick Brennan for the fix!)
    - 0004-hurd-PATH_MAX-and-MAXPATHLEN.patch: Finally forwarded upstream
      at https://github.com/fontforge/fontforge/pull/5046
    - 0005-hurd-rename-extended-to-avoid-conflict-with-gnumach-dev.patch:
      Resolve conflicts and rename more "extended" to "extendeddbl"
  * Replace 0005-hurd-rename-extended-to-avoid-conflict-with-gnumach-dev.patch
    with a much simpler 0005-hurd-undef-extended-temporarily.patch
    that "#undef extended" temporarily to circumvent the name collision
    issue on Hurd.  See https://github.com/fontforge/fontforge/pull/5047
  * Update fontforge-common.install and fontforge-extras.install
    - Stop installing app icon in legacy /usr/share/pixmaps location
      (see upstream commit 6b4ab5a)
    - cidmaps have been moved from /usr/share/fontforge/ to
      /usr/share/fontforge/cidmap/ (see commit f97a2cd)
  * Bump Standards-Version to 4.6.1 (no change)

[dgit import unpatched fontforge 1:20220308~dfsg-1]

3 years agoImport fontforge_20220308~dfsg.orig.tar.xz
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Import fontforge_20220308~dfsg.orig.tar.xz

[dgit import orig fontforge_20220308~dfsg.orig.tar.xz]

3 years agoImport fontforge_20220308~dfsg-1.debian.tar.xz
Anthony Fok [Thu, 16 Jun 2022 10:08:43 +0000 (11:08 +0100)]
Import fontforge_20220308~dfsg-1.debian.tar.xz

[dgit import tarball fontforge 1:20220308~dfsg-1 fontforge_20220308~dfsg-1.debian.tar.xz]