[php-maint] Bug#770163: php sessionclean uses sed -z witch is unsupported.

Assar Svensson Assar.Svensson at king.com
Wed Nov 19 09:40:31 UTC 2014


Package: php5-common
Version: 5.4.35-0+deb7u1

Running the sessionclean script shiped with php5-common results in help for sed, since sed do not support -z options.

Additional information for php-common:
Depends: sed (>= 4.1.1-1), psmisc (>= 22.15-1~), lsof, libc6 (>= 2.4), ucf

Output:
$ /usr/lib/php5/sessionclean
sed: invalid option -- 'z'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if extension supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
lsof 4.86
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
find: invalid argument `-delete' to `-cmin'
$

Some information about which sed that are installed on the system.
$ dpkg --status sed
Package: sed
Essential: yes
Status: install ok installed
Priority: required
Section: utils
Installed-Size: 847
Maintainer: Clint Adams <clint at debian.org>
Architecture: amd64
Version: 4.2.1-10
Depends: dpkg (>= 1.15.4) | install-info
$

Revert  to old sessionclean or set IFS to null for sed.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20141119/3efa2324/attachment-0001.html>


More information about the pkg-php-maint mailing list