Control: tags -1 confirmed pending Hi Guilhem,
On 08-10-2021 23:21, Guilhem Moulin wrote: > /usr/share/dbconfig-common/internal/* (and also > /usr/share/dbconfig-common/dpkg/postrm) > call which(1), which is currently deprecated. > > $ rgrep -E "^[^#]*which" /usr/share/dbconfig-common > /usr/share/dbconfig-common/internal/sqlite: which sqlite >/dev/null > 2>&1 > /usr/share/dbconfig-common/internal/sqlite: which sqlite3 >/dev/null > 2>&1 > /usr/share/dbconfig-common/internal/mysql: which mysqld >/dev/null 2>&1 > /usr/share/dbconfig-common/internal/common: if ! which > mysql >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > psql >/dev/null 2>&1; then > /usr/share/dbconfig-common/internal/common: if ! which > sqlite >/dev/null 2>&1; then > /usr/share/dbconfig-common/internal/common: if ! which > sqlite3 >/dev/null 2>&1; then > /usr/share/dbconfig-common/internal/common: if ! which > createdb >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > dropdb >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > createuser >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > dropuser >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > pg_dump >/dev/null; then > /usr/share/dbconfig-common/internal/common: if ! which > mysqldump >/dev/null; then > /usr/share/dbconfig-common/dpkg/postrm: if which ucf >/dev/null > 2>&1; then > > Some calls void the standard error but not all. In particular, `which mysql > >/dev/null;` > causes roundcube-core.postinst to spew > > /usr/bin/which: this version of `which' is deprecated; use `command -v' > in scripts instead. > > Here is a trivial patch following the suggested workaround from the > debianutils maintainer. Thanks for the report. I had committed nearly the same change locally. Can you elaborate why you removed some "2>&1" strings on top of that? Paul
OpenPGP_signature
Description: OpenPGP digital signature