All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
pkglint --only "https instead of http" -r -F
With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.
This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
global provides a bundled sqlite3 that it is built and used unconditionally.
Adjust configure and libglibc/Makefile.in to avoid building it and instead
use databases/sqlite3.
Bump PKGREVISION
Version 6.6.2 - February 9 2018
[INCOMPATIBLE CHANGES]
o gozilla: Deleted the following undocumented functions to reduce or eliminate
possibility of future security risks. These were inherently unnecessary as
source code tagging system.
$HOME/.gozillarc
Alias file. Please read the source code for details.
BUGS
Gozilla can accept not only source files but also text files,
directories, HTML files and even URLs, because it is omnivorous.
[FIXED BUGS]
o geco.rc: gecoless always failed with a message 'geco: percol, peco or fzf is required.'
Now, it works.
o gtags-cscope: did not accept function '9' in the line mode. This caused vim8 to hang.
Now it accepts function '9' and reports an error message.
Version 6.6.1 - December 16 2017
[FIXED BUG]
o gozilla: A critical vulnerability (CVE-2017-17531) was found in a unknown
function of gozilla(1). It allows remote attackers to execute arbitrary
code via a crafted URL. All gozilla(1) before GLOBAL-6.6.1 have the vulnerability.
Now it is fixed.
- What is the unknown function?
Gozilla accepts a URL as an argument, and invokes a web browser with the URL.
Though it is undocumented, it is implied in the online manual as follows:
> BUGS
> Gozilla can accept not only source files but also text files,
> directories, HTML files and even URLs, because it is omnivorous.
Version 6.6 - December 12 2017
[CHANGES]
New facilities:
o gtags: Added support for glob patterns in langmap variable in gtags.conf(5).
Now, you can treat source files without extension like ctags(1).
(e.g. :langmap=Make\:.mak.mk([Mm]akefile):)
Changed:
o gozilla: Changed the default browser from 'mozilla' to 'firefox'.
o gtags.conf.in: Updated to adapt to the latest ctags(s).
Removed: common-ctags-maps
Updated: exuberant-ctags, universal-ctags
[INCOMPATIBLE CHANGES]
o universal-ctags.la: The --extra option in Exuberant-ctags is renamed
to --extras (plural) in Universal-ctags for making consistent with
--kinds-<LANG> and --fields.
[FIXED BUGS]
o gtags: (parser error) picked up a typedef name as both of definition
and reference. Now it works.
Input:
[a.h]
typedef struct a A;
$ global -x A
A 1 a.h typedef struct a A;
$ global -x A -r
(global-6.5.7)
A 1 a.h typedef struct a A;
(global-6.6)
no output
o global: the -i option does not work correctly in some conditions.
Now it works.
o global: didn't accept pattern as a string literal with the --from-here
option, even if the --literal option was specified. Now, global(1)
accepts pattern as a string literal with the --literal option.
o libdb: there was 4 Gbyte limitation on the system where `off_t' is 64 bits
and `long' is 32 bits. Now it is eliminated.
o libparser: php parser was not reset state for each source file.
So, it was producing unintelligible results. Now it is fixed.
o gozilla: with wrong argument caused segmentation violation.
$ gozilla -d
Segmentation fault: 11
Now it displays usage.
Version 6.5.7 - 15 May 2016
[CHANGES]
o global: Now global(1) accept a file as --nearness option.
If it is a file, tags in the file are shown first.
o global: Added aliases for MAKEOBJDIR and MAKEOBJDIRPREFIX.
GTAGSOBJDIR: alias for MAKEOBJDIR
GTAGSOBJDIRPREFIX: alias for MAKEOBJDIRPREFIX
These aliases are given higher priority than the originals.
o global: New command --print=<name>.
<name> may be one of: root, dbpath or conf.
This is a generic version of the -p (--print-dbpath) command.
'global -p' is equal to 'global --print=dbpath'
'global -pr' is equal to 'global --print=root'
o gtags: Updated the built-in PHP parser to support namespaces and traits,
which were introduced in PHP5. The following keywords have been removed:
- failure: not a keyword
- header: normal built-in function
- is_array: normal built-in function
- is_set: typo -> isset
- printf: normal built-in function
- setcookie: normal built-in function
- success: not a keyword
[FIXED BUGS]
o globash: Echo command with -n option didn't work on some OS. Now it works.
o global: The --nearness option without -x option brought segmentation fault.
$ global --nearness=. main
Segmentation fault: 11
Now it works.
o global: --from-here with -i option did not ignore case of function name
in the context. Now it works.
Input:
[main.c]
1: main() {
2: func();
3: Func();
4: }
5: func() {}
6: Func() {}
$ global -xi --from-here=6:main.c func
(global-6.5.6)
Func 6 main.c Func() {}
func 5 main.c func() {}
(global-6.5.7)
Func 3 main.c Func();
func 2 main.c func();
[INCOMPATIBLE CHANGES]
o gtags.conf: Added new candidate path.
(1) --gtagsconf file
(2) $GTAGSCONF
(3) [project root]/gtags.conf
(4) [project root]/[objdir]/gtags.conf <- [NEW]
(5) $HOME/.globalrc
(6) /etc/gtags.conf
(7) [sysconfdir]/gtags.conf
The default of [objdir] is 'obj'. You can change it by
the environment variables (GTAGSOBJDIR or MAKEOBJDIR).
Version 6.5.6 - December 19 2016
[CHANGES]
New facilities:
o htags-server: New --retry[=n] option.
If the port is already in use, retry n times with incrementing the port number.
The default of n is 20.
o htags: Changed the format of function header (--show-position) to make copying
text easier.
o geco.rc: Added 'fzf' as a selector candidate.
o gtags: New configuration variable 'gtags_hook'.
gtags_hook=<command line>
Specify a command line which should be executed at the beginning of gtags(1).
Leading "./" in any path is always means the project root directory, since
gtags(1) is always invoked there.
GTAGS_COMMANDLINE environment variable (read only)
You can get the effective command line of gtags(1) from the hook. It includes
both $GTAGS_OPTIONS and real arguments.
[Usage]
You can update 'gtags.files' before gtags(1) read it.
[gtags.conf]
+----------------------------------------
|...
|:gtags_hook=find src lib -print >gtags.files:
You can refer the effective arguments of gtags(1) from the hook using
environment variable GTAGS_COMMANDLINE.
[gtags.conf]
+----------------------------------------
|...
|:gtags_hook=./gen.sh:\
|:GTAGS_OPTIONS=-c:\
[gen.sh]
+----------------------------------------
|#!/bin/sh
|echo ">>> $GTAGS_COMMANDLINE" # show effective command line
$ gtags -O
>>> gtags -c -O
$ _
[INCOMPATIBLE CHANGES]
o htags: Now --cvsweb option always insert 'view=log' to the generated URLs.
Because it seems to be almost always a desirable specification.
[FIXED BUGS]
o gtags: Gtags often aborts with a message "buffer overflow. strlimcpy" when
it encounters a long token (> 152 bytes). Now gtags always ignores it with
a message "symbol name is too long. (Ignored)".
o htags: Old packages included two CGI scripts (completion.cgi, global.cgi)
generated in the release manager's machine by mistake. They have some literal
path like '/opt/local/bin/perl' which works only with MacPorts.
Now, they are generated in the target (your) machine.
Version 6.5.5 - Sep 21 2016
This is a bug fix release.
[FIXED BUGS]
o exuberant-ctags.la: The path name of ctags command couldn't changed.
Now, it can be changed by configuration variable 'ctagscom'.
o Tag files got corrupted when the built-in C++ parser gave up parsing and aborted.
Now, it is avoided.
o Some inappropriate error messages was changed.
Error1: NULL file (file size == 0)
$ cp /dev/null GTAGS
$ global -x main
(GLOBAL-6.5.4) global: /tmp/test/GTAGS seems older format. Please remake tag files.
(GLOBAL-6.5.5) global: /tmp/test/GTAGS seems to be corrupted.
Error2: Corrupted file
$ echo aaa >GTAGS
$ global -x main
(GLOBAL-6.5.4) global: GTAGS not found.
(GLOBAL-6.5.5) global: /tmp/test/GTAGS seems to be corrupted.
Version 6.5.4 - Mar 27 2016
This is a bug fix release.
[CHANGES]
Changed:
o gtags.conf: The entries which include '.xml' were commented out,
because they require libxml.a. If you use them, please uncomment them.
[FIXED BUGS]
Serious bug:
o universal-ctags.la: Universal ctags plug-in parser did not work
on almost files. Now it works.
$ echo 'void a() {}' >a.inl
$ echo 'void b() {}' >b.cpp
$ gtags --gtagslabel=new-ctags
$ global -x '.*'
a 1 a.inl void a() {}
(b.cpp is ignored.)
Version 6.5.3 - Mar 18 2016
[CHANGES]
New facilities:
o Added new plug-in parser 'universal-ctags.la'.
o gtags.conf:
- Added new entry 'universal-ctags'.
- Added new variable 'ctagscom'. You can overwrite the path of ctags(1)
dynamically for exuberant-ctags.la, universal-ctags.la and pygments-parser.la.
Changed:
o gtags.conf: Added the following patterns to the skip list.
'*.o,*.a,*.so,*.lo,*.zip,*.gz,*.bz2,*.xz,*.lzh,*.Z,*.tgz,*.min.js,*min.css'
o gtags: Added some explanations for the --explain option.
[FIXED BUGS]
o global: Global generated incorrect path with the --color option.
Now, it works well.
[bad case]
+- GTAGS
+- hi/
|- foo.cpp
+- what/
$ cd hi/what
$ global -P hi/foo.cpp --color
foo.cpp # It should be '../foo.cpp'.
o global: Global aborted in obstack_free() in some cases. Now it works well.
o htags: Htags ended abnormally when there is a file which includes single
quote characters in its file name. Now, it works.
Version 6.5.2 - Dec 16 2015
[CHANGES]
New facilities:
o Improvements of gtags.conf
- Including from another file: Label syntax is expanded. (:tc=label[@file]:)
- Variable substitution: B shell like variable substitution is available.
- Addition of variables: 'bindir', 'datadir', 'libdir' and 'localstatedir'.
By default, these variables has a value given by the configure script.
- gtags.conf(5): Online manual of the configuration file.
o global: Now the -N(--nearness) option also works with the -P and -g command
as well as the tag search command.
o gtags.vim: New custom variable 'Gtags_Close_When_Single' (default 0).
If this variable is set to 1, quickfix window is closed when single tag.
Changed:
o gtags-cscope: Title changed to reduce misunderstanding.
Find locations calling this function: -> Find references of this function:
[FIXED BUGS]
o gtags.el: a strange error message in gtags-visit-rootdir was fixed.
$ cp /dev/null main.c
$ ls
main.c
$ emacs -f gtags-mode main.c
[Emacs mini buffer]
M-x gtags-visit-rootdir[ENTER]
Visit root directory: /tmp/test/[ENTER]
/tmp/test/main.c is not directory. <= STRANGE ERROR
o gtags (C, C++): Gtags couldn't handle enums in the case that there are
newlines between "enum" and " {". Now it can handle correctly.
+-------------
|typedef enum
|{
| E_FIRST = 1,
| E_SECOND
|} FIRST_SECOND;
+-------------
$ global -x '.*'
E_FIRST 3 test.h E_FIRST = 1,
FIRST_SECOND 5 test.h } FIRST_SECOND; <= E_SECOND not found
$ _
+-------------
|enum
|tag
|{ ... };
+-------------
$ global -x '.*'
$ _ <= tag not found
o gtags.conf: some part of a comment line (start with '#') was not skipped
when the line is very large. Now it is skipped correctly.
o gtags: If the DLL path includes ':', loading failed. Now it works.
Issues found with existing distfiles:
distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
distfiles/fortran-utils-1.1.tar.gz
distfiles/ivykis-0.39.tar.gz
distfiles/enum-1.11.tar.gz
distfiles/pvs-3.2-libraries.tgz
distfiles/pvs-3.2-linux.tgz
distfiles/pvs-3.2-solaris.tgz
distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.
Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden). All existing
SHA1 digests retained for now as an audit trail.
Version 6.5.1 - Sep 15 2015
[CHANGES]
New facilities:
o gtags(c, c++): New environment variable GTAGSFORCEENDBLOCK.
If this variable is set, each '}' at the first column brings
end of all blocks.
o gtags: New --skip-unreadable option.
If this option is specified, gtags skips unreadable files
instead of exiting the command.
[FIXED BUGS]
o gtags: There was a difference of interpretation of the langmap
between gtags and ctags. Now there is no difference.
o gtags (C++): Gtags did not pick up 'my_type1' as a definition
in the following example:
[xxx.cpp]
+------------------------
|using my_type1 = double;
Now it picks up the symbol as a definition.
o gtags (C++): gtags picked up 'DomainId_t' as a definition
in the following example:
[xxx.cc]
+------------------------
|typedef std::map<DomainId_t, int> map_t2;
Now it does not pick up it as a definition.
o gtags (C, C++): Gtags did not pick up 'pr_debug' as a definition
in the following example:
[xxx.h]
+------------------------
|extern void dump_stack(void) __cold;
|#define pr_debug() printk()
Now it picks up it as a definition.
o gtags (PHP): Gtags did not treat back-quote correctly.
[xxx.php]
+------------------------
|<?php `ls $echo ~/*`; ?>
Now it works.
[INCOMPATIBLE CHANGES]
o gozilla: Now, gozilla invokes firefox as a generic browser, that is, using
command line 'firefox url'. Because firefox have removed the -remote command
since version 39.
Version 6.5 - June 10 2015
[CHANGES]
New facilities:
o global: New -N (--nearness=[start]) option.
Nearness sort method is available for the output of tag search command.
The result of nearness sort is concatenation of the followings ([1]-[n])
in this order. The default of 'start' is the current directory.
[1] Output of local search in the 'start' directory.
[2] Output of local search in the parent directory except for [1].
[3] Output of local search in the grandparent directory except for [1]-[2].
(repeat until the project root directory)
[n] Output of local search in the project root directory except for [1]-[n-1].
In each directory, they are sorted by alphabetical order.
o global: Now the --literal option also works with the tag search command,
-P command and -I command as well as the -g command.
[FIXED BUGS]
o htags: The -c and -x option of htags(1) were still available in the help
message, even though they had actually been removed. Now, these options
are removed completely.
o gtags (PHP): Against the following source code, gtags(1) aborted with a message
'short of memory'. Now it works.
[nullstring.php]
+----------------
|<?php
|define('');
|?>
+----------------
o gtags (C++): Gtags(1) didn't recognize the shift operator. Now it works.
[a.hh]
+----------------
|class const_mod<uint64_t(1) << 48>
|{
|};
+----------------
$ gtags
gtags: failed to parse template [+1 ./a.hh].
o gtags (C, C++): Gtags(1) couldn't pick up 'E2' as a definition. Now it works.
[test.c]
+----------------
|enum my_enum2
|{
| E2
|};
+----------------
Version 6.4 - March 24 2015
[CHANGES]
New facilities:
o gtags: Now --sqlite3 option is supported formally. This option uses
SQLite3 API instead of BSD/DB API for making tag files.
To use this option, you need to invoke configure script with
--with-sqlite3 in the build phase.
[configuration phase]
$ ./configure --with-sqlite3 # use sqlite3 API
[execution phase]
$ gtags --sqlite3 # make sqlite3 tag files
o gtags: --single-update option supports deletion of a file.
Now the next command line works well.
$ rm test.c
$ gtags --single-update=test.c
o gtags: New --explain option. This option explains handling files.
You can know the following information:
- Skipped reason for each skipped files.
- Used parser and its library path for each source file.
[FIXED BUGS]
o global: global(1) could not pick up source code from source files
in library projects (GTAGSLLIBPATH) if their tag files are compact
format. Now it works.
[INCOMPATIBLE CHANGES]
The following features of htags(1) were removed.
o The -c (--compact) option.
o The --system-cgi option.
o The --overwrite-key option.
o The -x (--xhtml[=version]) option.
All files are 1.0.
o The following configuration variables:
colorize-warned-line (substitute: --colorize-warned-line)
gzipped_suffix (substitute: not available)
htags_options (substitute: HTAGS_OPTIONS)
ncol (substitute: -n, --line-number [n])
normal_suffix (will be always '.html')
no_order_list (substitute: --no-order-list)
script_alias (substitute: not available)
tabs (substitute: --tabs n)
xhtml_version (will be always 1.0)
Version 6.3.4 - February 2 2015
[FIXED BUGS]
o global: Global(1) exited with a message "Abbrev character must be
a lower alphabetic character ()" in some condition. Now it is fixed.
o gozilla/Makefile.am: Installation made a directory outside of the DESTDIR.
Now it is fixed.
o gtags: The C++ parser picked up compiler specific macros as a class name.
It is not desirable. Now it is fixed.
[CHANGES]
New facilities:
o Pygments plug-in parser: Support python 3.
o gozilla: added support of OSX's default browser.
Please set environment variable BROWSER to 'osx-default'.
$ htags --suggest --map-file
$ export BROWSER=osx-default
$ gozilla +120 main.c # shows line 120 in main.c
$ gozilla -d main # shows definitions of main()
o vim74-gtags-cscope.patch: New patch for vim + gtags-cscope to treat
file names which include spaces correctly. Please see README.PATCHES.
Release for beta test:
o Added --sqlite3 option which uses SQLite3 API instead of BSD/DB API for
making tag files. If you will test the code then please do as follows:
[configuration phase]
$ ./configure --with-sqlite3 # use sqlite3 API
[execution phase]
$ gtags --sqlite3 # make sqlite3 tag files
[FIXED BUGS]
o gtags-cscope.vim: There was a calling to undefined function.
Now it works.
Version 6.3.2 - September 4 2014
[CHANGES]
New facilities:
o Pygments plug-in parser by Yoshitaro MAKISE.
By this parser, you can apply gtags(1) to wide variety of programming
languages supported by Pygments. The method of plug-in is very simple.
See 'plugin-factory/PLUGIN_HOWTO.pygments' for details.
It should mention especially that Pygments plug-in parser can treat both
definitions and references using Exuberant Ctags together.
Version 6.3.1 - August 11 2014
[CHANGES]
New facilities:
o gtags.vim: New 'Gtagsa' (Gtags with append) command.
This command appends tags to the current tag list.
If you want to get a union of 'global -d foo' and
'global -r foo' then please do as follows:
:Gtags -d foo
:Gtagsa -r foo
o geco.rc: New command (Bash function).
You need bash, percol and less to use geco.
$ source /usr/local/share/gtags/geco.rc
$ geco --help # show help
$ geco mai[TAB] # auto completion
v
$ geco main [ENTER]
QUERY> init # narrowing down
(less's screen)
:tag -r main # tag jump again
The same options are available on the both prompts:
$ geco <options> arg
:tag <options> arg
[INCOMPATIBLE CHANGES]
o global: The following configuration variables were removed
since they will surely cause confusion.
GTAGSROOT, GTAGSDBPATH
Version 6.3 - June 9 2014
[CHANGES]
New facilities:
o htags-server: A private HTTP/CGI web server for a hyper-text
generated by htags(1).
o gtags.conf: New project based configuration mechanism.
You can make a configuration file for each project.
This is Leo Liu's idea.
o gtags, htags: New environment variables which have default
options for each command: GTAGS_OPTIONS, HTAGS_OPTIONS
o global: Added support of GREP_COLORS environment variable.
o global: Added new options:
-F (--first-match), -M (--match-case), -E (--extended-regexp)
[DEPRECATED FEATURES]
The following features of htags(1) are now deprecated.
They will be removed in the future.
o The -c (--compact) option.
o The --system-cgi option.
o The --overwrite-key option.
o The -x (--xhtml[=version]) option.
All files will be 1.0.
o The following configuration variables:
colorize-warned-line (substitute: --colorize-warned-line)
gzipped_suffix
htags_options (substitute: HTAGS_OPTIONS)
ncol (substitute: -n, --line-number [n])
normal_suffix (will be always '.html')
no_order_list (substitute: --no-order-list)
script_alias
tabs (substitute: --tabs n)
xhtml_version (will be always 1.0)
[FIXED BUGS]
o global: The highlight of symbols in library paths does not
work. Now it works.
o htags: Htags with the --suggest option didn't find GTAGS
in the obj directories. Now it works.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
March 17 2014, Shigio YAMAGUCHI
libutil/pathconvert.c module was divided into the following two modules:
o libutil/encodepath.c
o global/convert.c
According to the change, the function of the --path command of gtags(1)
(undocumented) was moved to global(1)'s --path-convert command.