Commit graph

65 commits

Author SHA1 Message Date
Fukang Chen
ba1c6ab949 shells/zsh: Fix build with devel/ncurses 6.2
When devel/ncurses is installed in the system, the Zsh configure script
detects and uses ${LOCALBASE}/include/ncurses/ncurses.h instead.

The patch is obtained from this commit:
c6a8516361/

cc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I. -I/usr/local/include -DBOOL_DEFINED -DLIBICONV_PLUG -DHAVE_CONFIG_H -DMODULE -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fPIC -o curses..o curses.c
In file included from curses.c:210:
./curses_keys.h:93:15: error: use of undeclared identifier 'KEY_EVENT'
    {"EVENT", KEY_EVENT},
              ^
1 error generated.
*** Error code 1

Reviewed by:	koobs
Approved by:	koobs (ports, mentor)
Differential Revision:	https://reviews.freebsd.org/D26355
MFH:		2020Q3 (build fix)
2020-09-13 02:49:35 +00:00
Baptiste Daroussin
a82adb747b Only show the pkg-message on installation, never do it on upgrades 2019-06-04 06:08:05 +00:00
Baptiste Daroussin
4377815d68 Update to 5.7.1 2019-02-05 17:58:51 +00:00
Baptiste Daroussin
3f35201af5 Add a patch to fix an infinite recursion when using VCS_info
Reported by:	ume
2019-01-27 16:43:30 +00:00
Baptiste Daroussin
2bf3dda12b Commit forgotten patch:
Mandoc was not able to find zshbuiltin.1 in the path
2019-01-27 15:37:13 +00:00
Baptiste Daroussin
fb9b05a4f3 Update to 5.6
Security:	CVE-2018-0502, CVE-2018-13259
2018-09-05 07:27:13 +00:00
Baptiste Daroussin
46aa5e2216 Update to 5.5.1 2018-04-17 15:15:13 +00:00
Baptiste Daroussin
ef403b13f3 Update to zsh 5.5
Patch broken linux completion so that zcompile can actually compile it
Remove now useless patch for libarchive
2018-04-10 11:45:46 +00:00
Baptiste Daroussin
0231318963 Fix diff -u completion
PR:		222420
Submitted by:	cy
2017-10-02 11:06:33 +00:00
Baptiste Daroussin
c377bbb4c7 Update to 5.4.1 2017-08-10 11:20:33 +00:00
Dag-Erling Smørgrav
3d7c7f2ece Fix bug in kldload completion (also reported upstream).
Approved by:	bapt@
2017-03-30 12:41:08 +00:00
Baptiste Daroussin
f93e01db48 Update to 5.3.1 2016-12-22 13:12:30 +00:00
Baptiste Daroussin
d464887e15 Fix typo in chflags completion
Reported by:	adamw
2016-12-18 12:13:31 +00:00
Baptiste Daroussin
b050d07493 Update ZSH to 5.3
Among the usual bugs fixes and completion updates, FreeBSD users will now
benefit new completion functions for:
- cu
- gstat
- jot
- rcctl
- sysrc
2016-12-14 07:39:46 +00:00
Baptiste Daroussin
f121cb0019 Fix make and gmake completion
Submitted by:	Daniel Shahaf (on zsh mailing list)
Reported by:	Guilherme Salazar (on zsh mailing list)
2016-10-16 18:46:14 +00:00
Adam Weinberger
5dd5b56d7e Reorganize, simplify, and improve the Makefile.
A couple options changes:
The MAILDIR and SECURE_FREE knobs were both removed and switched to
always-on. Having maildir support does not preclude mbox support, so
there's no reason not to include it for everybody. The secure-free
run-time free() safety check is good practice and is a mandatory default
on a number of other OS's, so now it's enabled for all zsh here as well.

PORTREVISION bump for the above changes.

The rest of the changes are simplifications, and reorganizing things to
be more legible. An EXTRA_PATCHES that was being applied unconditionally
was converted to a normal files/patch-, and I added in some comments
on things I got confused by.

While here, I also rewrote the descr to better describe what Zsh is
in relation to other shells. I also removed

	"See also zshcompsys(1) manpage. :)"

Not even a smiley face can undo the pain of trying to read zshcompsys(1).
2016-07-27 07:39:21 +00:00
Adam Weinberger
e260b1b6ee Switch zsh back to looking for system-wide files under ${PREFIX}/etc,
rather than /etc. Add an option, ETCDIR, to switch it back to /etc.
Also includes a couple whitespace cleanups. PORTREVISION bump, and a
note in UPDATING.

PR:		201866
2016-06-24 14:13:28 +00:00
Adam Weinberger
26866f517f Clean up Makefile and regenerate patches.
Reorganize Makefile for clarity, and add a few comments.
While here, regenerate the patches with makepatch.

No functional changes.
2016-04-06 04:36:39 +00:00
Baptiste Daroussin
8642c28c93 Update to zsh 5.2
While here:
- ensure zsh looks ${PREFIX}/etc for zshrc [1]
- hook the testsuite to our test framework

PR:		201866
Submitted by:	Georgy <delycid@gmail.com>
2015-12-04 23:27:23 +00:00
Baptiste Daroussin
7c76f50b76 Update to 5.1
Switch the default mirror to zsh.org until the distfiles appears on sourceforge
2015-08-30 20:01:07 +00:00
Baptiste Daroussin
641184f77f Fix du(1) completion
PR:		200768
Obtained from:	ZSH upstream
2015-06-15 12:36:13 +00:00
Baptiste Daroussin
648b6ac962 Update to 5.0.8
Among the usual updates, users will be happy to discover plenty of new FreeBSD
related completion as well as zpty working out of box (which wasn't the case
anymore for a while)
2015-06-02 18:51:15 +00:00
John Marino
2fe0013ab7 shells/zsh: Fix runtime error when built by gcc-5 with upstream patch
The previous approved fix for building with gcc5 still didn't work right.
Sure enough, upstream updated their patch.  When we take that update,
zshell finally behaves.  Piggybacking on previous approval.
2015-05-26 10:54:36 +00:00
John Marino
714490a122 shells/zsh: Fix runtime error when built by gcc-5 with upstream patch
ZSH was misbuilt on gcc-5 due to an intentional change in behavior of
gcc5's cpp.  This patch to execute cpp with the -P switch comes from
upstream.  No revbump necessary as GCC5 isn't used by default on FreeBSD.

Reported by:	DragonFly ZSH users
Approved by:	maintainer (bapt, IRC)
2015-04-26 14:29:35 +00:00
Baptiste Daroussin
1d15d261ee Correct time report after r367805
PR:		367805
Submitted by:	peterj
2015-01-01 14:35:03 +00:00
Baptiste Daroussin
fc76172951 Add a patch the kld* completion to find modules in /boot/modules [1]
While here, fix manpages so they render correctly with mandoc

PR:		194621 [1]
Submitted by:	clutton@zoho.com [1]
2014-11-22 01:44:09 +00:00
Baptiste Daroussin
1a3853cac2 Update to 5.0.7
Note from upstream release note:

Note in particular there is a security fix to disallow evaluation of the
initial values of integer variables imported from the environment (they
are instead treated as literal numbers).  That could allow local
privilege escalation, under some specific and atypical conditions where
zsh is being invoked in privilege elevation contexts when the
environment has not been properly sanitized, such as when zsh is invoked
by sudo on systems where "env_reset" has been disabled.
2014-10-09 06:28:14 +00:00
Baptiste Daroussin
589f4f6557 Regenerate the patch that corrects memory report for builtin time command 2014-09-10 08:38:18 +00:00
Baptiste Daroussin
58d97dbf35 Update to 5.0.6
Only build with multibyte (disabling leads to weird bugs) [1]

Reported by:	adamw [1]
2014-08-28 19:44:35 +00:00
Baptiste Daroussin
818bba15e7 - update to 5.0.0
no much changes for us (we where following the 4.3.x dev branch for a while)
except we are back on an official stable branch

Note that this version offers completion for dtrace, beadm (not tested with
FreeBSD versions) and improved completion for zfs.
2012-07-24 15:06:18 +00:00
Baptiste Daroussin
6785de0809 Fix sysctl completion on freebsd 10+ 2012-05-11 16:29:21 +00:00
Baptiste Daroussin
aec309fbc8 - update to 4.3.17 2012-02-26 22:55:15 +00:00
Baptiste Daroussin
cd62e28a33 add a patch from upstream to fix SIGWINCH detection
Obtained from:	zsh (cvs)
2012-01-13 21:05:13 +00:00
Baptiste Daroussin
f5e4192337 - Fix build for badly upgraded systems which have both utmp.h and utmpx.h
PR:		ports/156263
Submitted by:	Matthew Cashdollar <matthew@cashdollar.org>
Feature safe:	yes
2011-11-13 09:56:07 +00:00
Baptiste Daroussin
de07c68a57 Add the right patch
Reported by:	Jan Beich <jbeich@tormail.net> (by private mail)
2011-11-07 06:50:47 +00:00
Baptiste Daroussin
63b10b0674 and with the patch it is even better 2011-11-06 18:35:31 +00:00
Baptiste Daroussin
7769f7cfd2 - update to 4.3.12
Changes since 4.3.11
--------------------

The zsh/parameter module has a new readonly associative array
$usergroups whose keys are the names of system groups of which the
current user is a member and whose values are the corresponding
group identifiers.

The region_highlight array, which controls highlighting of the
command line from zle widgets, is now updated dynamically as
the command line is edited.

In POSIX emulation ("emulate sh") the shell is more accurate about
when it should or should not exit on errors.

The ${NAME:OFFSET:LENGTH} syntax now supports negative LENGTH, which
counts back from the end of the string.

The (g:opts:) flag in parameter expansion processes escape sequences like
the echo and print builtins.  opts can be any combination of o, e and c.
With e, acts like print rather than echo except for octal escapes which
are controlled separately by the o option.  With c, interpret control
sequences like "^X" as bindkey does.  Regardless of the opts, \c is not
interpreted.
2011-05-31 18:29:12 +00:00
Baptiste Daroussin
b05bfa64b5 - Take maintainership, des@ is no longer having enough time for zsh, he has done a
really great job with zsh, thanks a lot. [1]
- Upgrade to 4.3.11
- add linsysfs to the file system list for completion [2]
- fix mount completion when adding available labels to the list of devices [3]

PR:		ports/141472 [2], ports/145657 [3]
Submitted by:	scf [2], Frédéric Perrin <frederic.perrin _at_ resel.fr> [3]
Approved by:	des@ [1]
2011-02-28 08:01:01 +00:00
Dag-Erling Smørgrav
186692d099 Add some upstream completion patches + new completion files for
procstat, sockstat and fstat.

Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
2009-06-15 15:03:19 +00:00
Dag-Erling Smørgrav
80b3a34827 Update to 4.3.10.
PR:		ports/135188
2009-06-04 09:33:39 +00:00
Dag-Erling Smørgrav
62d067117e When I upgraded to 4.3.9, which included Baptiste's completion definitions
for zfs(8) and zpool(8) which we had previously had as local patches, I
blindly assumed that the upstream versions were correct.  They weren't.
2009-01-21 16:00:26 +00:00
Dag-Erling Smørgrav
c10595a43b Completion: improve portaudit, add pfctl
Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
2008-11-21 08:54:32 +00:00
Dag-Erling Smørgrav
b86648347c Upstream patch to support unusual --help syntax used by fetchmail.
Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
2008-11-17 11:21:24 +00:00
Dag-Erling Smørgrav
0ce6819834 Upgrade to 4.3.9. Most of our local patches have been committed upstream. 2008-11-10 13:40:56 +00:00
Dag-Erling Smørgrav
be6e6e662c Various command completion improvements for mount(8).
PR:		ports/128450
Submitted by:	scf@
2008-10-29 14:42:58 +00:00
Dag-Erling Smørgrav
dde2d54d97 Move a comment that broke completion for 'zfs clone'. 2008-08-27 15:50:30 +00:00
Dag-Erling Smørgrav
0fb8ee3593 Regenerate some patches that were being incorrectly applied.
Noticed by:	garga
2008-08-13 17:03:03 +00:00
Dag-Erling Smørgrav
8c293350dc Break out BSD completion patches into separate files.
Update csup, portsnap and portlint completion.  Add completion for powerd,
freebsd-update, fetch and portaudit (from submitter) as well as zfs and
zpool (from zsh repo).

Bump PORTREVISION.

PR:		ports/126457
Submitted by:	baptiste.daroussin@gmail.com
2008-08-12 12:01:21 +00:00
Renato Botelho
5186c7bfb3 - Fix segmentation fault on completion
- Bump PORTREVISION

PR:		ports/123490
Submitted by:	garga
Approved by:	maintainer timeout (2 weeks)
2008-05-21 11:55:18 +00:00
Dag-Erling Smørgrav
897e6fca5b Better version of the previous commit, with an unconditional patch this
time.  The patch has been submitted upstream.
2008-05-06 11:52:45 +00:00