120 Commits

Author SHA1 Message Date
Marc Deslauriers
043750d03f
Import Ubuntu changes 0.5.7-4ubuntu2
dash (0.5.7-4ubuntu2) wily; urgency=medium

  * Drop privileges when euid != uid as a security measure (LP: #1215660)
    - debian/diff/9001-Add-privmode-Part-1.diff
    - debian/diff/9002-Add-privmode-Part-2.diff
2018-01-05 17:40:15 +01:00
Dimitri John Ledkov
543222f769
Import Ubuntu changes 0.5.7-4ubuntu1
dash (0.5.7-4ubuntu1) trusty; urgency=medium

  * Merge from Debian testing, remaining changes:
    - If the dash/sh question has not been seen by the user, reset it to
      the default which is now true.
    - Support build with profile feedback based optimization.
    - Ensure correct strip is called when cross-building.
2018-01-05 17:38:37 +01:00
Gerrit Pape
3268e467e3
Import Debian changes 0.5.7-4
dash (0.5.7-4) unstable; urgency=low

  * Thx Michael Gilbert for NMU.
    * 0006-JOBS-address-format-security-build-error.diff: new: address
      format-security build error (patch from Simon Ruderich).
  * debian/rules: make DEB_BUILD_OPTIONS=diet build working again.
  * debian/diff/0007-EVAL-Report-I-O-error-on-stdout.diff: new: eval: report
    I/O error on stdout (closes: #690473).
2018-01-05 17:03:42 +01:00
Michael Gilbert
a71a231b5e
Import Debian changes 0.5.7-3+nmu1
dash (0.5.7-3+nmu1) unstable; urgency=medium

  * Non-maintainer upload.
  * Enable build-hardening flags (closes: #662721).
2018-01-05 17:03:28 +01:00
Gerrit Pape
cfd476edf1
Import Debian changes 0.5.7-3
dash (0.5.7-3) unstable; urgency=low

  [ Christian Perrier ]
  * Non-maintainer upload.
  * Fix pending l10n issues. Debconf translations:
  * French (Julien Patriarca).  Closes: #638821
  * Indonesian (Mahyuddin Susanto).  Closes: #657111
  * Polish (Michał Kułach).  Closes: #658180
  * Romanian (Andrei POPESCU).  Closes: #660615
  * Turkish (Mert Dirik).  Closes: #661513

  [ Gerrit Pape ]
  * debian/control: Standards-Version: 3.9.3.0.
2018-01-05 17:03:21 +01:00
Jonathan Nieder
66b2f436d6
Import Debian changes 0.5.7-2
dash (0.5.7-2) unstable; urgency=high

  * debian/diff/:
    - 0004-BUILTIN-Fix-test-x-as-root...diff: new; teach "test -x"
      as root not to return true for nonexecutable files on
      platforms where faccessat() does return true in this case,
      such as glibc-bsd in squeeze (thx Christoph Egger, closes:
      #640334).
    - 0005-SHELL-Disable-sh-c-...diff: back out the optimization
      that makes dash -c "script" avoid a fork().  It caused
      several packages to fail to build from source (thx Stéphane
      Glondu, closes: #642922).
2018-01-05 17:02:16 +01:00
Jonathan Nieder
0effc5c28c
Import Debian changes 0.5.7-2~exp1
dash (0.5.7-2~exp1) experimental; urgency=low

  * debian/diff/0003-VAR-Disable-LINENO-support.diff: remove
    (closes: #540685, reopens: #582952).
  * debian/dash.preinst:
    - rewrite in C (closes: #604873).
    - if dash's copy of /bin/sh is not already diverted, divert it
      on behalf of bash.  This ensures extracting a new version of
      dash does not overwrite /bin/sh and handling of that symlink
      is left to postinst.  Likewise for .../man/man1/sh.1.gz.
    - if /bin/sh is not executable (for example because it is a
      symlink to a nonexistent file), replace it with a symlink to
      dash.  Likewise for /usr/share/man/man1/sh.1.gz.
  * debian/dash.postinst:
    - remove workaround for dpkg bug #160848 ("dpkg-divert --remove"
      silently enabling --rename).  The dash package already depends
      on dpkg 1.15.0 or later, which has the fix.
    - respect local diversions.
    - clarify.
2018-01-05 17:01:47 +01:00
Jonathan Nieder
f563e2edc6
Import Debian changes 0.5.7-1
dash (0.5.7-1) unstable; urgency=low

  * new upstream release.
    * optimize dash -c "script" to notice the last command and
      exec it without forking (thx Jilles Tjoelker; closes:
      #436466).  This change is inspired by a similar trick in
      ksh, bash, and zsh and can be useful in commands passed to
      system(), popen(), and Makefiles, where "exec" is usually
      not explicitly used.
    * remove spurious space in descriptions of PS1, PS2, PS4 (thx
      Kalle Olavi Niemitalo; closes: #624715).
    * test builtin: use faccessat if available (closes: #539909,
      #556521) so ACLs and other corner cases can be handled
      correctly.
  * debian/diff/:
    - remove patches applied upstream (i.e. all except 0045, 0046).
    - 0045-SHELL-print-n-upon-EOF-...diff: rename to 0001-*.
    - 0046-PARSER-Remove-backslash-...diff: rename to 0002-*.
    - 0003-VAR-Disable-LINENO-support.diff: new; remove LINENO
      support (closes: #582952, reopens: #540685).
  * debian/po/sk.po: [INTL:sk] Slovak debconf templates (thx
    Slavko; closes: #611556).
  * debian/po/nl.po: [INTL:nl] Dutch debconf templates (thx
    Jeroen Schot; closes: #624172).
2018-01-05 17:00:49 +01:00
Jonathan Nieder
bcc4df19d1
Import Debian changes 0.5.6.1-1~exp2
dash (0.5.6.1-1~exp2) experimental; urgency=low

  * debian/diff/:
    - 0036-BUILTIN-Fix-corruption-of-reads...diff: remove; fixed
      upstream.
    - 0037-EVAL-Make-.-dev-null-return-.diff: remove; applied
      upstream.
    - 0034-SHELL-print-n-upon...diff: rename to 0045-*.
    - 0035-PARSER-Remove-backslash...diff: rename to 0046-*.
    - 0034...0044: new from the upstream "master" branch.
    - 0042-EXPAND-Free-IFS-state...diff: new from upstream:
      do not let parameter expansion in here documents corrupt word
      splitting state (thx Aurelien Jarno; closes: #618023).
2018-01-05 16:54:19 +01:00
Jonathan Nieder
55835babc8
Import Debian changes 0.5.6.1-1~exp1
dash (0.5.6.1-1~exp1) experimental; urgency=low

  * new upstream release.
    * add preliminary LINENO support (closes: #540685, reopens:
      #582952).
    * fix corruption of redirections with byte 0x81 (closes:
      #532302).
    * honor tab as IFS whitespace in read (closes: #429251,
      #607174).
  * debian/diff/:
    - remove patches applied upstream (0001-0016, 0020).
    - 0021--INPUT-exit-127...diff: remove; patch is faulty
      (reopens: #548687).
    - 0022--EVAL-with-set-e-exit: remove; fixed upstream.
    - 0019--SHELL-print-n-upon...diff: rename to 0034-*.
    - 0001...0033: new from the upstream "master" branch.
    - 0035-PARSER-Remove-backslash-before...diff: new from the
      mailing list: remove backslashes used to escape closing
      braces in ${...} expressions (thx Jilles Tjoelker).
    - 0036-BUILTIN-Fix-corruption-of-reads...diff: new from the
      mailing list: do not corrupt input by removing CTLESC bytes
      ('\x81') in readcmd (thx Alexey Gladkov).
    - 0037-EVAL-Make-.-dev-null-return-0.diff: new from the
      mailing list: dotcmd should yield status 0 when no command
      is executed (thx Tim Allen, closes: #615922).
  * debian/watch: document upstream source location.
2018-01-05 16:52:37 +01:00
Gerrit Pape
7a164b5508
Merge changes from unstable. 2018-01-05 16:52:10 +01:00
Gerrit Pape
b81c281711
Import Debian changes 0.5.6.1-1~exp0
dash (0.5.6.1-1~exp0) experimental; urgency=low

  * merge branch debian-sid.
  * new upstream version.
  * 0006--INPUT-exit-127-if-command_file-is-given-but-doesn-t.diff: new;
    replaces 0020--INPUT-exit-127-...diff, 0021--INPUT-exit-127-...diff.
  * debian/diff/0001-...0016-...diff: remove; included upstream.
  * debian/diff/0024--SHELL-Add-preliminary-LINENO-support.diff: remove;
    included upstream.
  * 0001--JOBS-Fix-for-job-control-off-warning.diff,
    0002--EVAL-Force-fork-if-any-trap-is-set-not-just-on-EXI.diff: new;
    from branch upstream/master.
2018-01-05 16:48:42 +01:00
Jonathan Nieder
758d8ba532
Import Debian changes 0.5.5.1-7.4
dash (0.5.5.1-7.4) unstable; urgency=low

  * Non-maintainer upload.
  * dash.preinst: Do not error out if /bin/sh or its manpage is
    not already present (thx Brian Potkin; closes: #606756).
  * dash.postinst: Cope with missing files.  Atomically replace
    /bin/sh and its manpage rather than removing and re-creating them
    (thx Adam D. Barratt).
2018-01-05 16:40:41 +01:00
Adam D. Barratt
a1509b27ae
Import Debian changes 0.5.5.1-7.3
dash (0.5.5.1-7.3) unstable; urgency=medium

  * Non-maintainer upload.
  * Modify the preinst to use /bin/bash rather than /bin/sh to avoid having
    to rely on /bin/sh being available during unpack.  (Closes: #546528)
  * Adapt preinst diversion handling to be idempotent; thanks to
    Jonathan Nieder.
2018-01-05 16:40:31 +01:00
Christian Perrier
5513ed6d9a
Import Debian changes 0.5.5.1-7.2
dash (0.5.5.1-7.2) unstable; urgency=low

  * Non-maintainer upload to correct previous NMU.
  * Drop dependency on debconf as that change was not agreed
    with the maintainer when the NMU was prepared.
2018-01-05 16:39:59 +01:00
Christian Perrier
6ed813014c
Import Debian changes 0.5.5.1-7.1
dash (0.5.5.1-7.1) unstable; urgency=low

  * Non-maintainer upload with maintainer approval.
  * Add "debconf | debconf-2.0" to dependencies as this package is
    using debconf
  * Explicitly re-include the text of the BSD licence as
    /usr/share/common-licenses/BSD could be dropped in the future
    because of minor wording changes in the different version of
    the BSD licence text
  * Fix pending l10n issues. Debconf translations:
    - Czech (Miroslav Kure).  Closes: #598331
    - Finnish (Esko Arajärvi).  Closes: #600518
2018-01-05 16:39:18 +01:00
Gerrit Pape
45f8384cba
Update the changelog. 2018-01-05 15:51:19 +01:00
Gerrit Pape
54384a3ef6
debian/po/pt_BR.po: [INTL:pt_BR] Brazilian Portuguese debconf
templates (thx Adriano Rafael Gomes; closes: #582973).
2018-01-05 15:50:49 +01:00
Gerrit Pape
a2fc7fe5c3
debian/po/da.po: [INTL:da] Danish translation of the debconf
templates Dash (thx Joe Dalton; closes: #584484).
2018-01-05 15:50:00 +01:00
Gerrit Pape
62c5ef6c85
debian/implicit: update to revision 60d9070. 2018-01-05 15:49:40 +01:00
Gerrit Pape
ff4e0b478c
debian/dash.README.source: new; document how to use the Debian package source. 2018-01-05 15:49:01 +01:00
Raphael Geissert
1c322a0fd4 Re-add code to allow taking over bash's diversion (Closes: #82554)
When the user doesn't want dash to be used as /bin/sh, a diversion is
added on behalf of bash.
2010-05-28 19:21:17 -05:00
Gerrit Pape
28f1f14d7e * debian/diff/0001-JOBS-Fix-dowait-signal-race.diff,
debian/diff/0002-SIGNAL-Remove-EXSIG.diff: remove (closes: #581425).
  * debian/diff/: remove patches with reverts (0009, 0013, 0015, 0018,
    0019).
  * debian/diff/0010-SHELL-Add-preliminary-LINENO-support.diff: remove
    (re-opens: #540685, closes: #582952).
  * debian/diff/0015--BUILTIN-Use-TMPDIR-in-mkbuiltins.diff,
    debian/diff/0016--BUILTIN-Make-trap-signal-name-number-...diff,
    debian/diff/0017--JOBS-Fix-for-job-control-off-warning.diff: new;
    cherry-picked from upstream git.
2010-05-26 12:05:06 +00:00
Gerrit Pape
43284f8c29 * debian/diff/0029-Revert-BUILTIN-Fix-off-by-one-recordregion-...diff,
debian/diff/0030-Revert-BUILTIN-Avoid-compiler-warnings-on-...diff,
    debian/diff/0031-Revert-BUILTIN-Fix-NUL-termination-in-readcmd.diff,
    debian/diff/0032-Revert-BUILTIN-Honor-tab-as-IFS-whitespace-...diff:
    new; revert "Honor tab as IFS whitespace when splitting fields in
    readcmd" fix (re-opens: #429251, closes: #581351).
2010-05-13 23:18:22 +00:00
Gerrit Pape
4164995bd9 debian/changelog: Raphael Geissert's changes 2010-05-10 23:15:51 +00:00
Gerrit Pape
649c27f593 Merge remote branch 'raphael/proposed-debian-sid' into debian-sid 2010-05-10 23:12:17 +00:00
Gerrit Pape
8b85658baf * debian/diff/0028-EVAL-Fix-command-crash.diff: new; Fix command --
crash (closes: #579543).
2010-05-10 23:11:46 +00:00
Gerrit Pape
8c71df9fef * debian/po/pt.po: [INTL:pt] Updated Portuguese translation for
debconf messages (thx Traduz - Portuguese Translation Team; closes:
    #578104).
2010-05-10 23:07:00 +00:00
Gerrit Pape
ec408190b9 * debian/po/eu.po: [l10n:eu] dash 0.5.5.1-3.1: updated Basque
translation (thx dooteo; closes: #577506).
2010-05-10 23:05:36 +00:00
Gerrit Pape
7e8d9eb3f6 * debian/po/vi.po: [INTL:vi] Vietnamese debconf templates translation
update (thx Clytie Siddall; closes: #577156).
2010-05-10 23:03:30 +00:00
Raphael Geissert
0ceaba40a9 Add watch file 2010-05-09 21:34:16 -05:00
Raphael Geissert
ec867d7409 Pass --package name to dpkg-divert call to remove ash's diversion
The code is already verifying that the diversion was added by ash, make
it clear that local diversions are not removed.
2010-05-09 21:12:29 -05:00
Raphael Geissert
566344358d Let the postinst script abort if there was already a diversion in place
This is a temporary solution. The definitive solution is to skip the
debconf prompt completely, but that should be done by the other shells
once dash is the only one providing /bin/sh.
2010-05-09 20:48:11 -05:00
Raphael Geissert
41de2dea93 Quoting style changes 2010-05-09 20:40:55 -05:00
Raphael Geissert
f538867001 Pass --package name to dpkg-divert call to replace ash's diversion
The code is already verifying that the diversion was added by ash, make
it clear that local diversions are not removed.
2010-04-28 19:09:19 -05:00
Raphael Geissert
52a62e9119 Simplify prerm by making dpkg-divert do most of the work
The package that diverted the file can now be queried with
--listpackage, and restoring the original file can be done by passing
--rename to the --remove call.

Additionally pass --package so that it is clear that local diversions
are not removed.
2010-04-28 19:02:39 -05:00
Raphael Geissert
7e7070eedc Pass package name to dpkg-divert when removing diversion
The code block is only executed if dash (the package) diverted the
file being processed. Pass --package to dpkg-divert to make it clear
(and to lintian) that a local diversion is not being removed, in any
case.
2010-04-28 18:18:34 -05:00
Raphael Geissert
c3c6b45e41 Document "/bin/sh -> dash" NMU changes 2010-04-28 18:17:43 -05:00
Gerrit Pape
738fc570c2 * debian/control: Standards-Version: 3.8.4.0. 2010-03-22 22:39:46 +00:00
Gerrit Pape
f4b7b0a3e4 * debian/dash.preinst: remove superfluous code (closes: #557755). 2010-03-22 22:37:00 +00:00
Gerrit Pape
1dc8b576d2 * debian/po/bg.po: [I18N:bg] Updated Bulgarian debconf translation
(thx Damyan Ivanov; closes: #562836).
2010-03-22 22:32:11 +00:00
Gerrit Pape
168113234e * debian/po/ja.po: [INTL:ja] Update po-debconf template translation
(thx Hideki Yamane; closes: #564483).
2010-03-22 22:28:20 +00:00
Gerrit Pape
8a5fedf479 * debian/diff/0002--SHELL-print-n-upon-EOF-CTRL-D-when-run-...diff:
rename to 0023-*.diff.
  * debian/diff/0001--MAN-rename-sh-to-dash-update-DESCRIPTION-...diff:
    remove; applied upstream.
  * debian/diff/0001-*...0022-*.diff: new from upstream git.
    * debian/diff/0010-*.diff: Add preliminary LINENO support (closes:
      #540685).
    * debian/diff/0017-*.diff: Fix syntax array size (closes: #548493).
    * debian/diff/0009-*.diff: Honor tab as IFS whitespace when
      splitting fields in readcmd (closes: #429251).
  * debian/diff/0024-INPUT-exit-127-if-command_file-is-given-...diff:
    new; exit 127 if command_file is given but does not exist (closes:
    #548743).
  * debian/diff/0025-INPUT-exit-127-if-command_file-is-given-...diff:
    new; exit 127 if command_file is given but is a directory (closes:
    #548687).
  * debian/diff/0026-EVAL-with-set-e-exit-the-shell-if-a-...diff: new;
    with set -e exit the shell if a subshell exits non-zero (closes:
    #514863).
  * debian/diff/0027-EVAL-don-t-clear-eflag-when-forking-subshell.diff:
    new; don't clear eflag when forking subshell (closes: #514863).
2010-03-22 22:25:26 +00:00
Gerrit Pape
9a15701225 * debian/po/es.po: [INTL:es] Spanish debconf template translation for
dash (closes: #540707).
2009-09-16 14:23:16 +00:00
Gerrit Pape
90820f6bcb * debian/po/it.po: [INTL:it] Italian translation (thx Luca Monducci;
closes: #540631).
2009-09-16 14:21:50 +00:00
Gerrit Pape
da082dc7be * debian/po/de.po: [INTL:de] updated German debconf translation (thx
Helge Kreutzmann; closes: #540221).
2009-09-16 14:20:23 +00:00
Gerrit Pape
76dc4fb5f4 * debian/po/fr.po: fr.po: French program translation (thx julien
patriarca; closes: #539630).
2009-09-16 14:18:53 +00:00
Gerrit Pape
11e92612d1 * debian/po/ru.po: [INTL:ru] Russian debconf templates translation
update (thx Yuri Kozlov; closes: #539189).
2009-09-16 14:16:48 +00:00
Gerrit Pape
7783244577 * debian/po/sv.po: [INTL:sv] Swedish strings for dash debconf (thx
Martin Bagge; closes: #539070).
2009-09-16 14:15:37 +00:00
Gerrit Pape
ac7ff3698c * debian/control: update long description (thx Justin B Rye; closes:
#546458).
2009-09-16 14:09:17 +00:00