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.26866f517f
zsh -- Arbitrary command execution vulnerabilityentered 2022-02-12
The Z shell
# pkg install zshinstalls 5.9.2 from latest; from quarterly (2026Q4) 5.9.2# cd /usr/ports/shells/zsh && make install clean# make -C /usr/ports/shells/zsh config # change options first
========================================================== By default, zsh looks for system-wide defaults in /usr/local/etc. If you previously set up /etc/zprofile, /etc/zshenv, etc., either move them to /usr/local/etc or rebuild zsh with the ETCDIR option enabled. ==========================================================
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 5.9.2 | 5.9.2 | – |
| FreeBSD 15 | 5.9.2 | 5.9.2 | – |
| FreeBSD 14 | 5.9.2 | 5.9.2 | 5.9.2 |
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 5.9.2 | 5.9.2 | – |
| FreeBSD 14 | 5.9.2 | 5.9.2 | 5.9.2 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
pkg audit for the packaged version 5.9.2.| PR | Summary | Status | Changed |
|---|---|---|---|
| 287149 | maintainer-feedback? shells/zsh: does not clean temporary files anymore | New | 2025-05-29 |
| 278380 | maintainer-feedback? shells/zsh: Consider making PCRE=on the default | New | 2024-10-10 |
| 278817 | maintainer-feedback? shells/zsh: HTML documentation is mostly missing | New | 2024-05-06 |
| 269292 | maintainer-feedback? shells/zsh fails to reset tty state on TMOUT | New | 2023-02-02 |
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.26866f517f
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat: portmgr
Sponsored by: Absolight597afc47baFix ncurses detection properly. Now zsh builds and packages properly with base and ports ncurses, static or non-static. Many thanks to bapt for showing me the magic trick here!69d974e963
Partially revert r403755. It can't build the curses module against ncurses from ports. It probably can, but configure is too smart to figure that out. I have no confidence that linking against curses from ports results in a properly working zshell. So, for now, back out the change. It will build a shared lib zsh against ncurses from ports, but breaks statically-linked zsh's. Mark the port as IGNORE if we're using ncurses from ports and building a static zsh. Also, remove a regression-test target that isn't useful anymore (thanks to bapt for the reminder about this). I am not enthused about this change. It doesn't really "fix" the below PR, so much as shoot ourselves in the other foot instead. PR: 205500625ae90c22
Fix static build against devel/ncurses by correcting how zsh tries to link against the terminal libraries. No PORTREVISION bump as this shouldn't really change the generated packages. PR: 181720 Submitted by: wulf@mail.mipt.ru While here, fix a spacing nit and wrap compound commands in parens.ab9cfed5a5
I'll take this port.4e4acda59d
Make zsh read again conf in /etc Drop maintainership79c5812c13
We do not have yet the need for that new timestamp :)905a009ac4
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>8642c28c93- Switch to options helpers Approved by: portmgr blanket43eff73c3e
Update to 5.1.1a5cbb74d50
Update to 5.1 Switch the default mirror to zsh.org until the distfiles appears on sourceforge7c76f50b76
- Fix shebangs Approved by: portmgr blanket MFH: 2015Q3 (blanket)cc1adc655e
Move the SF mirrors first againa90e315803
Fix du(1) completion PR: 200768 Obtained from: ZSH upstream641184f77f
Really fix the plist Pointyhat to: bapt Reported by: many784a48d73e
Forgot about the plist98daa443af
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)648b6ac962
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.2fe0013ab7
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)714490a122
Stop installing info files, the manpages already covers the full documentation Add --as-needed to LDFLAGS to avoid overlinking with some options2241654c18
Correct time report after r367805 PR: 367805 Submitted by: peterj1d15d261ee
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]fc76172951
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.1a3853cac2
Make zsh look at its config files in localbase in priority Cleanup a bit more the plist Submitted by: Rolf Nielsen <rmg1970swe@gmail.com>3676fb9f80
Fix stage violation/allow staging as a regular user6b326fccf6
Clean up directory handling41ec698b06
Regenerate the patch that corrects memory report for builtin time command589f4f6557
Update to 5.0.6 Only build with multibyte (disabling leads to weird bugs) [1] Reported by: adamw [1]58d97dbf35
Fix build with texinfo from ports321251d1ce
Fix building zsh on a FreeBSD which is a NIS client [1] Fix hangs upon '>(command)' redirections (enforce always using pipes) [2] PR: 183253 [1], 180178 [2] Submitted by: Yasuhiro KIMURA <yasu@utahime.org> [1], danielsh@apache.org [2] With help of: jilles [2]67d99922a7
Test ICONV_LIB instead of being dependant on an OSVERSION Submitted by: tijl1e29832872
Only pickup iconv from base even if libiconv is installed [1] While here do not leak stage path info zwc bytecode Reported & tested by: dim [1]a4f5f55d83
Add an @shell keyword to handle adding and remove a shell path in /etc/shell Bump port revision of all ports that were doing it wrong prior to the keyword CR: D208 Reviewed by: antoine With hat: portmgr2bacde9c3b
Update my ports to the latest infrastructure changesb2bb033360
Fix properties on pkg-pliste04b632220
Update to 5.0.591ffb1cd96
Update to 5.0.4a921c711a6
Convert to stage, while here, cleanup a bita81009fc18
Add NO_STAGE all over the place in preparation for the staging support (cat: shells)f6e6105ff8
- Fix a typo in configure arguments - Bump port revision as it concerns a default option Submitted by: Paul Mulders <justinkb@gmail.com> (by private mail)10cee3fd8a
Fix a confusion Reported by: wgb962befb99
Use new helpersaff2ff05fa
Adopt USES=ncurses1c24d964d5
- Convert USE_ICONV=yes to USES=iconv - Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig and USE_GETTEXT=yes to USES=gettext while here95e7081976
Variable that start with _ are considered private to the defining makefile and may not be used by ports makefiles. In addition, avoid problems should the defaults ever change. Approved by: portmgr (tabthorpe)b7b9ec7a12
- update to 5.0.247979576c1
- update to 5.0.1c5eb15edbf
Update PCRE to 8.32 Introduces the UTF-32 library pcre32 Bump PORTREVISION in dependent portsb2c4fbb77a
- Add the documentation to distinfo [1] - Fix plist Reported by: zi [1]2d31e9fdbc