Hello community, here is the log from the commit of package fontforge.4580 for openSUSE:13.2:Update checked in at 2016-02-04 12:43:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:13.2:Update/fontforge.4580 (Old) and /work/SRC/openSUSE:13.2:Update/.fontforge.4580.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fontforge.4580" Changes: -------- New Changes file: --- /dev/null 2016-01-27 19:41:03.648095915 +0100 +++ /work/SRC/openSUSE:13.2:Update/.fontforge.4580.new/fontforge.changes 2016-02-04 12:43:45.000000000 +0100 @@ -0,0 +1,399 @@ +------------------------------------------------------------------- +Tue Jan 26 08:17:49 UTC 2016 - [email protected] + +- do not crash on invalid input data (when eof reached) [bsc#963023] + + fontforge-eof-crash.patch + +------------------------------------------------------------------- +Sat May 31 16:12:53 UTC 2014 - [email protected] + +- Update fontforge-fixgiflib.patch to support giflib7-5.1 + +------------------------------------------------------------------- +Mon Mar 17 07:21:51 UTC 2014 - [email protected] + +- fixed linking against libpng (1.5, 1.6) [bnc#867041] + * added fontforge-libpng.diff + * removed libpng14-dynamic.diff +- spec file cleanup + * call spec-cleaner + * fontforge-20090622-fdleak.patch renamed to fontforge-fdleak.patch + * docdir.patch renamed to fontforge-docdir.patch + +------------------------------------------------------------------- +Sun Mar 9 13:40:08 UTC 2014 - [email protected] + +- fontforge-arraysubscript.patch: Fix invalid array subscript + +------------------------------------------------------------------- +Thu Nov 14 06:59:13 UTC 2013 - [email protected] + +- Put documentation into a separate subpackage +- Spruce of description of fontforge-devel a bit +- File list simplification/exactness + +------------------------------------------------------------------- +Mon Sep 9 08:48:04 UTC 2013 - [email protected] + +- add fontforge-fixgiflib.patch to fix build with giflib 5.0.5 + +------------------------------------------------------------------- +Tue Apr 16 12:17:30 UTC 2013 - [email protected] + +- use %requires_eq rather than %requires_ge (exact version) + +------------------------------------------------------------------- +Tue Apr 16 12:05:41 UTC 2013 - [email protected] + +- %requires_ge libpng16-16 to avoid + 'Application built with libpng-1.5.14 but running with 1.6.1' + warning when running fontforge + +------------------------------------------------------------------- +Fri Jan 4 12:44:05 UTC 2013 - [email protected] + +- Build with cairo and pango support + +------------------------------------------------------------------- +Sun Dec 30 06:44:35 UTC 2012 - [email protected] + +- Update to 20120731b + * see included changelog.html for details + * removed obsolete fontforge.py27.diff + * removed obsolete fontforge-missing-closedir.diff + * removed obsolete libpng14.diff + +------------------------------------------------------------------- +Tue Dec 20 20:25:40 UTC 2011 - [email protected] + +- remove call to suse_update_config (very old work around) + +------------------------------------------------------------------- +Mon Oct 3 07:55:35 UTC 2011 - [email protected] + +- Make rpmlint more happy. + +------------------------------------------------------------------- +Sun Sep 18 17:17:12 UTC 2011 - [email protected] + +- Apply packaging guidelines (remove redundant/obsolete + tags/sections from specfile, etc.) + +------------------------------------------------------------------- +Mon May 16 14:38:39 CEST 2011 - [email protected] + +- updated to 20110222: + * Did a lot of work to improve the accuracy in remove overlap. + * Fix various error messages. + * Remove some obsolete documentation. + * Technical fixes to stroking code. + * Add a miterlimit to stroking code. + * FontForge was using the wrong MIME type for svg files. + W3C has changed it and it's now "image/svg+xml" not + "image/svg-xml" or "image/svg". + * etc. on + http://fontforge.sourceforge.net/changelog.html + * libpng14.diff and fontforge.py27.diff kept but not needed yet + +------------------------------------------------------------------- +Mon Sep 6 08:54:57 UTC 2010 - [email protected] + +- adapt to python 2.7 + +------------------------------------------------------------------- +Thu Apr 8 10:56:13 CEST 2010 - [email protected] + +- fix build with older distros before libpng 1.4 + +------------------------------------------------------------------- +Thu Apr 8 08:12:59 UTC 2010 - [email protected] + +- compile with libpng 1.4 + +------------------------------------------------------------------- +Mon Apr 5 12:00:54 UTC 2010 - [email protected] + +- Updated to 20090923 +- Enabled Python bindings + +------------------------------------------------------------------- +Sat Oct 3 12:16:21 UTC 2009 - [email protected] + +- fontforge-20090622-1.6: missing call to closedir [bnc#543458] +- fix -devel package dependencies + +------------------------------------------------------------------- +Mon Jul 27 16:57:52 CEST 2009 - [email protected] + +- fix missing closedir() (bnc#525022) + +------------------------------------------------------------------- +Mon Jul 27 15:29:55 CEST 2009 - [email protected] + +- updated to version 20090622 + lots of changes. See changelog.html for details + +------------------------------------------------------------------- +Thu Jan 22 00:51:12 CET 2009 - [email protected] + +- remove "la" files and static libraries +- add missing freetype2-devel dependency to -devel package + +------------------------------------------------------------------- +Mon May 26 12:58:18 CEST 2008 - [email protected] + +- bnc#246804: update to 20080429 (needed to build recent versions + of the DejaVu fonts and freefont). + +------------------------------------------------------------------- +Fri Feb 29 10:03:29 CET 2008 - [email protected] + +- fix typo + +------------------------------------------------------------------- +Thu Feb 21 17:47:55 CET 2008 - [email protected] + +- update to 20080203 (bugfix release, fixes also bnc#363014). +- create -devel sub-package. + +------------------------------------------------------------------- +Thu Aug 02 16:33:43 CEST 2007 - [email protected] + +- update to 20070723 (user interace redesigned, many bugfixes). +- add ldconfig post scripts. +- remove executable flags from documentation. +- remove DOS line-endings from documentation. + +------------------------------------------------------------------- +Tue Jul 24 12:49:54 CEST 2007 - [email protected] + +- remove BuildPreRequires + +------------------------------------------------------------------- +Tue Feb 06 17:06:16 CET 2007 - [email protected] + +- Bugzilla #242363: uninitialized variable. + +------------------------------------------------------------------- +Wed Jan 03 11:43:21 CET 2007 - [email protected] + +- update to 20061220. +- remove fontforge-strncat.patch, + bugzilla-221210-locale-variable-used-before-set.patch, + bugzilla-225616-local-variable-used-before-set.patch + (included upstream). +- fix bugzilla #231126: "array subscript out of range". + +------------------------------------------------------------------- +Tue Dec 19 18:40:01 CET 2006 - [email protected] + +- update to 20061025. + • fontimage program has been added. +- fix bugzilla #225616 ("local variable used before set"). + +------------------------------------------------------------------- +Fri Nov 17 19:54:59 CET 2006 - [email protected] + +- Bugzilla #221210: "local variable used before set" ++++ 202 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:13.2:Update/.fontforge.4580.new/fontforge.changes New: ---- fontforge-arraysubscript.patch fontforge-docdir.patch fontforge-eof-crash.patch fontforge-fdleak.patch fontforge-fixgiflib.patch fontforge-libpng.diff fontforge-python-module-name.diff fontforge.changes fontforge.spec fontforge_full-20120731-b.tar.bz2 fontforge_htdocs-20120731-b.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fontforge.spec ++++++ # # spec file for package fontforge # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define src_version %{version}-b Name: fontforge Version: 20120731 Release: 0 Summary: A Font Editor License: BSD-3-Clause Group: Productivity/Graphics/Vector Editors Url: http://fontforge.org/ Source0: http://downloads.sourceforge.net/%{name}/%{name}_full-%{src_version}.tar.bz2 Source1: http://downloads.sourceforge.net/%{name}/%{name}_htdocs-%{src_version}.tar.bz2 # PATCH-FIX-OPENSUSE -- set path to documentation Patch0: fontforge-docdir.patch Patch1: fontforge-fdleak.patch # workaround, this should be resolved upstream (use pkg-config) bnc#867041 Patch2: fontforge-libpng.diff # PATCH-FIX-OPENSUSE fontforge-python-module-name.diff -- change python module name according to naming policy Patch3: fontforge-python-module-name.diff Patch4: fontforge-fixgiflib.patch # PATCH-FIX-UPSTREAM http://sourceforge.net/p/fontforge/git/ci/9ae25e0 Patch5: fontforge-arraysubscript.patch Patch6: fontforge-eof-crash.patch BuildRequires: cairo-devel BuildRequires: fdupes BuildRequires: freetype2-devel BuildRequires: gettext-tools BuildRequires: giflib-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libuninameslist-devel BuildRequires: libxml2-devel BuildRequires: pango-devel BuildRequires: python-devel BuildRequires: update-desktop-files BuildRequires: xorg-x11-devel # following to avoid warning # 'Application built with libpng-1.5.14 but running with 1.6.1' %requires_eq libpng16-16 Obsoletes: PfaEdit < 20110222 Provides: PfaEdit = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1210 BuildRequires: libspiro-devel %endif %description FontForge allows editing of outline and bitmap fonts. With it, you can create new fonts or modify old ones. It also converts font formats and can convert among PostScript (ASCII & binary Type 1, some Type 3s, and some Type 0s), TrueType, OpenType (Type2), and CID-keyed fonts. %package doc Summary: Documentation for FontForge Group: Documentation/HTML %if 0%{?suse_version} >= 1230 BuildArch: noarch %endif %description doc FontForge allows editing of outline and bitmap fonts. With it, you can create new fonts or modify old ones. It also converts font formats and can convert among PostScript, TrueType, OpenType, and CID-keyed fonts. This subpackage contains the documentation to FontForge. %package devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: freetype2-devel %description devel FontForge allows editing of outline and bitmap fonts. With it, you can create new fonts or modify old ones. It also converts font formats and can convert among PostScript, TrueType, OpenType, and CID-keyed fonts. This subpackage contains all necessary include files and libraries needed to develop applications that use FontForge libraries. %prep %setup -q -T -n fontforge-%{src_version} -b 0 %patch0 -p 1 -b .docdir %patch1 %patch2 %patch3 %if 0%{?suse_version} > 1230 %patch4 -p1 %endif %patch5 -p1 %patch6 mkdir docs tar -jxvf %{SOURCE1} -C docs chmod 644 docs/quadraticspline.gif chmod 644 docs/FontForgeSplash.png chmod 644 docs/*.html # tar zxvf docs/cidmaps.tgz find . -name CVS -type d | xargs rm -rf # fix wrong-file-end-of-line-encoding sed -i 's/\r$//' docs/{Big5.txt,corpchar.txt} %build # workaround, this should be resolved upstream (use pkg-config) bnc#867041 pkg-config --exists 'libpng >= 1.7.0' && echo 'Libpng was updated to 1.7, fontforge-libpng.patch will probably need to be adapted.' && exit 1 export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ --disable-static \ --enable-pyextension \ --with-regular-link make %{?_smp_mflags} pushd pyhook python setup.py build popd %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # symlink for old FontForge name - PfaEdit pushd %{buildroot}%{_bindir} ln -s fontforge pfaedit popd # install CMaps to be able to edit CID-keyed fonts: # install -m 644 Adobe* %{buildroot}%{_datadir}/fontforge # desktop file and icon install -Dm 644 Packaging/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dm 644 Packaging/icons/48x48/apps/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png %suse_update_desktop_file -i %{name} VectorGraphics %find_lang FontForge find %{buildroot} -type f -name "*.la" -delete -print pushd pyhook python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=%{name}-python.files popd %fdupes -s %{buildroot}%{_datadir}/%{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f FontForge.lang %defattr(-,root,root) %doc LICENSE %{_bindir}/* %{_libdir}/lib*.so.* %{_datadir}/fontforge/ %{_mandir}/man1/*.1* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{py_sitedir}/* %files doc %defattr(-,root,root) %doc AUTHORS VERSION LICENSE README-unix docs/ %files devel %defattr(-, root, root) %{_includedir}/fontforge/ %{_libdir}/pkgconfig/*.pc %{_libdir}/lib*.so %changelog ++++++ fontforge-arraysubscript.patch ++++++ Index: fontforge-20120731-b/fontforge/contextchain.c =================================================================== --- fontforge-20120731-b.orig/fontforge/contextchain.c +++ fontforge-20120731-b/fontforge/contextchain.c @@ -928,7 +928,7 @@ return; uc_strcpy(ubuf,buf); } else { ubuf[0]=' '; - utf82u_strncpy(ubuf-1,classes[cols*r+0].u.md_str,sizeof(ubuf)/sizeof(ubuf[0])-2 ); + utf82u_strncpy(ubuf+1,classes[cols*r+0].u.md_str,sizeof(ubuf)/sizeof(ubuf[0])-2 ); ubuf[sizeof(ubuf)/sizeof(ubuf[0])-2] = '\0'; uc_strcat(ubuf," "); } ++++++ fontforge-docdir.patch ++++++ Index: fontforge-20110222/fontforge/uiutil.c =================================================================== --- fontforge-20110222.orig/fontforge/uiutil.c +++ fontforge-20110222/fontforge/uiutil.c @@ -315,6 +315,7 @@ return; fullspec[0] = 0; if ( ! GFileIsAbsolute(file) ) { if ( helpdir==NULL || *helpdir=='\0' ) { +#define DOCDIR "/usr/share/doc/packages/fontforge/docs" #ifdef DOCDIR strcpy(fullspec,DOCDIR "/"); #elif defined(SHAREDIR) ++++++ fontforge-eof-crash.patch ++++++ Index: fontforge/parsettf.c =================================================================== --- fontforge/parsettf.c.orig 2016-01-26 09:01:44.025472518 +0100 +++ fontforge/parsettf.c 2016-01-26 09:04:24.853470665 +0100 @@ -5185,7 +5185,10 @@ /* the index table is backwards from the way I want to use it */ gcbig = 0; for ( i=0; i<gc; ++i ) { - indexes[val = getushort(ttf)] = i; + val = getushort(ttf); + if ( val<0 ) /* Don't crash on EOF */ + break; + indexes[val] = i; if ( val>=258 ) ++gcbig; } ++++++ fontforge-fdleak.patch ++++++ Index: fontforge/sfd.c =================================================================== --- fontforge/sfd.c.orig 2009-05-13 00:23:57.000000000 +0200 +++ fontforge/sfd.c 2009-10-03 13:58:14.893617000 +0200 @@ -4983,6 +4983,7 @@ return( 0 ); } } } + closedir(dir); } SFDFixupBitmapRefs( bdf ); return( 1 ); ++++++ fontforge-fixgiflib.patch ++++++ --- gutils/gimagereadgif.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) Index: fontforge-20120731-b/gutils/gimagereadgif.c =================================================================== --- fontforge-20120731-b.orig/gutils/gimagereadgif.c +++ fontforge-20120731-b/gutils/gimagereadgif.c @@ -44,7 +44,11 @@ static int a_file_must_define_something= static DL_CONST void *libgif=NULL; static GifFileType *(*_DGifOpenFileName)(char *); static int (*_DGifSlurp)(GifFileType *); +#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) +static int (*_DGifCloseFile)(GifFileType *, int *); +#else static int (*_DGifCloseFile)(GifFileType *); +#endif static int loadgif() { char *err; @@ -58,7 +62,7 @@ return( 0 ); } _DGifOpenFileName = (GifFileType *(*)(char *)) dlsym(libgif,"DGifOpenFileName"); _DGifSlurp = (int (*)(GifFileType *)) dlsym(libgif,"DGifSlurp"); - _DGifCloseFile = (int (*)(GifFileType *)) dlsym(libgif,"DGifCloseFile"); + _DGifCloseFile = (void *)dlsym(libgif,"DGifCloseFile"); if ( _DGifOpenFileName && _DGifSlurp && _DGifCloseFile ) return( 1 ); dlclose(libgif); @@ -132,13 +136,17 @@ GImage *GImageReadGif(char *filename) { if ( !loadgif()) return( NULL ); - if ((gif = _DGifOpenFileName(filename)) == NULL) { + if ((gif = _DGifOpenFileName(filename, NULL)) == NULL) { fprintf( stderr, "can't open %s\n", filename); return( NULL ); } if ( _DGifSlurp(gif)==GIF_ERROR ) { +#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) + _DGifCloseFile(gif, NULL); +#else _DGifCloseFile(gif); +#endif fprintf( stderr, "Bad gif file %s\n", filename ); return( NULL ); } @@ -150,7 +158,11 @@ return( NULL ); ret = images[0]; else ret = GImageCreateAnimation(images,gif->ImageCount); - _DGifCloseFile(gif); +#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) + _DGifCloseFile(gif, NULL); +#else + _DGifCloseFile(gif); +#endif free(images); return( ret ); } @@ -220,13 +232,17 @@ GImage *GImageReadGif(char *filename) { GifFileType *gif; int i; - if ((gif = DGifOpenFileName(filename)) == NULL) { + if ((gif = DGifOpenFileName(filename, NULL)) == NULL) { fprintf( stderr, "can't open %s\n", filename); return( NULL ); } if ( DGifSlurp(gif)==GIF_ERROR ) { - DGifCloseFile(gif); +#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) + DGifCloseFile(gif, NULL); +#else + DGifCloseFile(gif); +#endif fprintf(stderr,"Bad gif file %s\n", filename ); return( NULL ); } @@ -238,7 +254,11 @@ return( NULL ); ret = images[0]; else ret = GImageCreateAnimation(images,gif->ImageCount); - DGifCloseFile(gif); +#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) + DGifCloseFile(gif, NULL); +#else + DGifCloseFile(gif); +#endif free(images); return( ret ); } ++++++ fontforge-libpng.diff ++++++ Index: configure =================================================================== --- configure.orig 2012-08-02 17:09:08.000000000 +0200 +++ configure 2014-03-14 14:27:30.539876212 +0100 @@ -14074,6 +14074,12 @@ if test "$ac_cv_lib_png14_png_create_read_struct" = "yes"; then STATIC_LIBS="$STATIC_LIBS -lpng14 -lz" fi + if test "$ac_cv_lib_png15_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng15 -lz" + fi + if test "$ac_cv_lib_png16_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng16 -lz" + fi if test "$ac_cv_lib_tiff_TIFFOpen" = "yes"; then STATIC_LIBS="$STATIC_LIBS -ltiff" fi @@ -14178,6 +14184,16 @@ $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h fi + if test "$ac_cv_lib_png15_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng15 -lz" + $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h + + fi + if test "$ac_cv_lib_png16_png_create_read_struct" = "yes"; then + STATIC_LIBS="$STATIC_LIBS -lpng16 -lz" + $as_echo "#define _STATIC_LIBPNG 1" >>confdefs.h + + fi if test "$ac_cv_lib_tiff_TIFFOpen" = "yes"; then STATIC_LIBS="$STATIC_LIBS -ltiff" $as_echo "#define _STATIC_LIBTIFF 1" >>confdefs.h ++++++ fontforge-python-module-name.diff ++++++ --- pyhook/setup.py.in 2011-10-03 09:42:46.000000000 +0200 +++ pyhook/setup.py.in 2011-10-03 09:43:39.000000000 +0200 @@ -4,16 +4,16 @@ from distutils.sysconfig import get_conf if float(get_config_var('VERSION')) < 3: - setup(name='fontforge', + setup(name='python-fontforge', version='1.0', description='font manipulation module', author='George Williams', url='http://fontforge.sf.net/', - ext_modules=[Extension('fontforge',['fontforgepyhook.c'], + ext_modules=[Extension('python-fontforge',['fontforgepyhook.c'], include_dirs=[@PYINCLUDE@], define_macros=[@PYDEFINES@], libraries=[@PYLIBS@]), - Extension('psMat',['psMatpyhook.c'], + Extension('python-psMat',['psMatpyhook.c'], include_dirs=[@PYINCLUDE@], define_macros=[@PYDEFINES@], libraries=[@PYLIBS@])] @@ -28,8 +28,8 @@ else: so_ext = get_config_var('SO') py_libdir = get_python_lib(prefix = '@PYPREFIX@') libfontforge_so = join('@libdir@', 'libfontforge' + so_ext) - fontforge_so = join(py_libdir, 'fontforge' + so_ext) - psMat_so = join(py_libdir, 'psMat' + so_ext) + fontforge_so = join(py_libdir, 'python-fontforge' + so_ext) + psMat_so = join(py_libdir, 'python-psMat' + so_ext) if hasattr(os, 'symlink'): link = 'sym'
