Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 16:25:29 +0600
From:      "Denis Eremenko <moonshade@pnhz.kz>" <moonshade@pnhz.kz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/109976: fc-match of x11-fonts/fontconfig have no short option for --sort
Message-ID:  <1173176729.74313@abyss.pnhz.kz>
Resent-Message-ID: <200703061030.l26AUBEn031841@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109976
>Category:       ports
>Synopsis:       fc-match of x11-fonts/fontconfig have no short option for --sort
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 06 10:30:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Denis Eremenko <moonshade@pnhz.kz>
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.2-STABLE #0: Mon Mar  5 11:32:02 ALMT 2007
    root@abyss.pnhz.kz:/usr/obj/data/os/FreeBSD/src/6/src/sys/ABYSS-6



>Description:


There is a typo in getopt_long() in fc-match/fc-match.c which makes -s an 'unknown option', but it present in 'fc-match --help'.



>How-To-Repeat:


fc-match -s



>Fix:


--- patch-fc-match_sort_opt begins here ---
--- fc-match/fc-match.c.orig	Tue Mar  6 16:08:41 2007
+++ fc-match/fc-match.c	Tue Mar  6 16:08:51 2007
@@ -99,7 +99,7 @@
     int		c;
 
 #if HAVE_GETOPT_LONG
-    while ((c = getopt_long (argc, argv, "Vv?", longopts, NULL)) != -1)
+    while ((c = getopt_long (argc, argv, "sVv?", longopts, NULL)) != -1)
 #else
     while ((c = getopt (argc, argv, "sVv?")) != -1)
 #endif
--- patch-fc-match_sort_opt ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1173176729.74313>