summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove "All rights reserved" from Oracle copyright noticesHEADmasterAlan Coopersmith2023-02-253-3/+3
| | | | | | Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* font-util 1.4.0font-util-1.4.0Alan Coopersmith2023-02-221-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add COMPRESS_FLAGS to pass options to compression commandAlan Coopersmith2023-02-161-1/+9
| | | | | | | | | | By default, set to -n for gzip to stop recording timestamps and enable reproducible builds, and to empty for all other methods. Will require adding COMPRESS_FLAGS to Makefile.am in each font module to become effective. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith2023-02-091-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* font-util 1.3.3font-util-1.3.3Alan Coopersmith2022-07-121-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix spelling/wording issuesAlan Coopersmith2022-07-123-4/+4
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Build xz tarballs instead of bzip2Alan Coopersmith2021-12-081-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: add a basic build testAlan Coopersmith2021-12-081-0/+98
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* ucs2any: handle NULL returns from zquotedcpy()Alan Coopersmith2020-11-161-0/+18
| | | | | | | | | | | | | | | | | | | | | | bdf file for testing: STARTFONT 2.1 FONT "Bad quotes test font-ISO10646-1 SIZE 7 75 75 FONTBOUNDINGBOX 5 7 0 -1 STARTPROPERTIES 3 SPACING "C SLANT "R ENDPROPERTIES CHARS 0 ENDFONT Before this fix, the above segfaults when the NULL return from zquotedcpy() is passed to other functions expecting a string. Fixes: 21063_61 & 21063_86 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* ucs2any: avoid segfaults if SLANT property is missingAlan Coopersmith2020-11-151-3/+6
| | | | | | | | | | | | Test case: grep -v SLANT ../../misc-misc/5x7.bdf > 5x7-noslant.bdf ucs2any 5x7-noslant.bdf ../map-ISO8859-1 -d Before this fix, the above segfaults in strcmp with a NULL slant pointer. Fixes: 21063_131 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* font-util 1.3.2font-util-1.3.2Alan Coopersmith2019-08-251-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* ucs2any: Fix parser crash on 32 bitTobias Stoeckmann2019-06-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible to crash ucs2any or provoke successful return value even though the processing was not successful. The problem lies within a possible integer overflow when adding elements with a key which is too large. You can trigger the issue this way on a 32 bit system: $ cat > source.bdf << "EOF" STARTFONT source CHARS 1 ENCODING 1073741823 EOF $ ucs2any source.bdf Segmentation fault $ _ Another possibility would be to add "ENCODING 1" right after the CHARS line. In that case, realloc will allocate 0 bytes afterwards which is a success but might return NULL, e.g. on Linux/glibc systems. Such a result value is handled as an error and errno is evaluated and returned, even though there was no error: $ cat > source.bdf << "EOF" STARTFONT source CHARS 1 ENCODING 1 ENCODING 1073741823 EOF $ ucs2any source.bdf ucs2any: Success $ echo $? 0 $ _ Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update configure.ac bug URL for gitlab migrationAlan Coopersmith2018-12-071-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update README for gitlab migrationAlan Coopersmith2018-11-182-13/+6
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* autogen: add default patch prefixMihail Konev2017-01-261-0/+3
| | | | Signed-off-by: Mihail Konev <k.mvc@ya.ru>
* autogen.sh: use quoted string variablesEmil Velikov2017-01-261-4/+4
| | | | | | | | | Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer2017-01-261-1/+1
| | | | | | | Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
* font-util 1.3.1font-util-1.3.1Alan Coopersmith2015-03-141-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Update map-JISX0201.1976-0 to current version from Unicode ConsortiumAlan Coopersmith2014-08-252-17/+27
| | | | | | | | | | New version is exactly as downloaded on August 25, 2014 from ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0201.TXT Does not change mappings, only changes comments (including license notice). Reported-by: AGinsberg on #xorg-devel irc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* fontutil.m4.in: use $PKG_CONFIG instead of pkg-configRoss Burton2013-12-131-1/+2
| | | | | | | | | Instead of assuming that pkg-config is on the path, require PKG_PROG_PKG_CONFIG to be called and use $PKG_CONFIG. Signed-off-by: Ross Burton <ross.burton@intel.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* autogen.sh: Implement GNOME Build APIbaserock/morphColin Walters2013-01-161-1/+3
| | | | | | http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
* configure: Drop AM_MAINTAINER_MODEAdam Jackson2013-01-161-1/+0
| | | | Signed-off-by: Adam Jackson <ajax@redhat.com>
* Fix a bunch of clang integer size conversion warnings in ucs2anyAlan Coopersmith2012-12-161-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ucs2any.c:149:36: warning: implicit conversion changes signedness: 'int' to 'si ze_t' (aka 'unsigned long') [-Wsign-conversion] *dest = zrealloc(*dest, dest_size + source_size); ~~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~ ucs2any.c:147:29: warning: implicit conversion loses integer precision: 'unsign ed long' to 'int' [-Wshorten-64-to-32] dest_size = strlen(*dest) + 1; ~ ~~~~~~~~~~~~~~^~~ ucs2any.c:148:16: warning: implicit conversion loses integer precision: 'size_t ' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] source_size = strlen(source); ~ ^~~~~~~~~~~~~~ ucs2any.c:159:8: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion] *t = toupper(*t); ~ ^~~~~~~~~~~ ucs2any.c:305:27: warning: implicit conversion loses integer precision: 'int' t o 'char' [-Wconversion] (*buffer)[position++] = c; ~ ^ ucs2any.c:465:21: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] if (strlen(string) <= l) return NULL; ~~~~~~~~~~~~~~ ^ ~ ucs2any.c:466:31: warning: implicit conversion changes signedness: 'int' to 'si ze_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp(string, pattern, l) != 0) return NULL; ~~~~~~~ ^ ucs2any.c:463:10: warning: implicit conversion loses integer precision: 'size_t ' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int l = strlen(pattern); ~ ^~~~~~~~~~~~~~~ ucs2any.c:730:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] target = strtol(p+2, &endp, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~ ucs2any.c:738:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] ucs = strtol(p+2, &endp, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~ ucs2any.c:843:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cwidth = w; ~ ^ ucs2any.c:844:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cheight = h; ~ ^ ucs2any.c:845:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cxoff = x; ~ ^ ucs2any.c:846:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cyoff = y; ~ ^ ucs2any.c:850:7: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:10: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:13: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* font-util 1.3.0font-util-1.3.0Alan Coopersmith2012-02-281-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* configure.ac updates to match other X.Org modulesAlan Coopersmith2012-02-231-7/+7
| | | | | | | | | | | | layout and comment the top portion of configure.ac add missing AC_CONFIG_SRCDIR Replace obsolete AM_CONFIG_HEADER with AC_CONFIG_HEADERS replace deprecated AC_HELP_STRING with AS_HELP_STRING Remove unnecessary AC_PROG_CC & AC_PROG_INSTALL (already provided by XORG_DEFAULT_OPTIONS) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
* Fix "cast discards qualifiers from pointer target type" warningsAlan Coopersmith2011-11-181-2/+2
| | | | | | | | ucs2any.c: In function ‘chars_compare’: ucs2any.c:450:2: warning: cast discards qualifiers from pointer target type ucs2any.c:451:2: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Mark usage() as not returning to clear incorrect uninit var warningAlan Coopersmith2011-11-181-1/+8
| | | | | | | | | | bdftruncate.c: In function ‘main’: bdftruncate.c:119:16: warning: ‘threshold’ may be used uninitialized in this function (It's not actually, if you consider that usage() exits when parse_threshold fails.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-09-261-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* If cross-compiling, we don't have to run mkfontdirJon TURNEY2011-09-252-2/+27
| | | | | | | | | | | | | | | | | | If cross-compiling, we can run the host mkfontdir on the font directory, since the output is arch independent (I think) If cross-compiling and we can't find mkfontdir, just warn that mkfontdir needs to be run on the target. When not cross-compiling, the behaviour remains unchanged: mkfontdir must be found and is run (Also, bump version number to 1.2.90 as the next release must be 1.3.0 as this change adds a macro) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Never run fc-cache if cross-compilingJon TURNEY2011-09-251-3/+4
| | | | | | | | | | | Since the cache files produced by fc-cache are arch-dependent, there is no point in running fc-cache if cross-compiling So, even if we aren't using a DESTDIR, but are installing directly into (a hopefully non-default) prefix, don't run fc-cache when cross-compiling Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* bdftruncate: Make sure opt_minus_w and opt_plus_w are initializedJeremy Huddleston2011-05-041-2/+2
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* ucs2any: Dead code removalJeremy Huddleston2011-04-281-1/+0
| | | | | Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* bdftruncate: Properly support -w and +wJeremy Huddleston2011-04-281-11/+10
| | | | | | | Regression introduced by fb486bb1a5038912d064291b12c7aef5da3d8b63 Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* font-util 1.2.0font-util-1.2.0Jeremy Huddleston2010-10-071-1/+1
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* fontutil.m4: Add XORG_FONT_FC_CONFDIR to find fontconfig's confdirJeremy Huddleston2010-10-071-0/+34
| | | | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Acked-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* fontutil.m4: Add a shorthand --disable-all-encodings option.Michał Górny2010-10-071-2/+12
| | | | | | | | | | | | | | This option is useful to disable all possible font encodings at once, without fine-graining the calling ebuilds for a list of encodings supported by each font package. The option is parsed before all other encoding options, so it basically sets defaults for all of them. Afterwards, any encoding can be re-enabled back using '--enable-<encoding>' (much like '--disable-all-encodings --enable-iso8859-2'). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Gaetan Nadon <memsize@videotron.ca>
* Purge cvs tags.Jesse Adkins2010-10-061-1/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* font-util 1.1.2font-util-1.1.2Alan Coopersmith2010-10-041-1/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Sun's copyrights now belong to OracleAlan Coopersmith2010-10-042-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* config: update AC_PREREQ statement to 2.60Gaetan Nadon2010-10-041-1/+1
| | | | | | | | | | Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_FONT_REQUIRED_PROG: should stop when program is missing #14436Gaetan Nadon2010-08-281-1/+1
| | | | | | | | | | | | | | The macro was designed to test for a program and, when missing, stop the configuration. The first parameter to the macro is a variable name which is used by AC_PATH_PROG to store the program path. The test failed to reference the variable content, it tested the variable name which is never blank. BDFTOPCF MKFONTSCALE MKFONTDIR COMPRESS and UCS2ANY were affected. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* config: upgrade to util-macros 1.8 for additional man page supportGaetan Nadon2010-08-205-27/+47
| | | | | | | | | Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Replace /usr/X11R6 mapfiles path in manpage with actual path via sedAlan Coopersmith2010-05-202-1/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* config: remove fontutil.pc.in from the EXTRA_DIST variableGaetan Nadon2010-03-281-3/+1
| | | | | | | It is automatically distributed in the tarball by Automake Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* config: generated fontutil.m4 is "installed", not "distributed"Gaetan Nadon2010-03-271-2/+1
| | | | | | | Generated files are not included in the tarball, only .in files The fontutil.m4.in file is added in the tarball by Automake. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Update Sun license notices to current X.Org standard formAlan Coopersmith2010-01-142-58/+46
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon2009-11-231-0/+2
| | | | | Now that the INSTALL file is generated. Allows running make maintainer-clean.
* Makefile.am: add INSTALL target and clean ChangeLog DIST targetsGaetan Nadon2009-11-231-4/+5
| | | | | | Add INSTALL target to generate file with INSTALL_CMD #24206 ChangeLog is not required in EXTRA_DIST #24432 ChangeLog is not required in MAINTAINERCLEANFILES #24432
* INSTALL, NEWS, README COPYING or AUTHORS files are missing/incorrect #24206Gaetan Nadon2009-11-233-0/+0
| | | | | | | | Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated COPYING may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
* .gitignore: use common defaults with custom section # 24239Gaetan Nadon2009-11-231-14/+69
| | | | | | Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.